LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 10-09-2019, 06:02 AM   #1
NameUser
LQ Newbie
 
Registered: Oct 2019
Posts: 1

Rep: Reputation: Disabled
v9.0: 6.52. Ninja-1.9.0: ./build/browse_py.h:2:1: error: expected primary-expression before ';' token


Distro: Linux Mint 19 Xfce 64-bits
uname -a: Linux machine 4.15.0-20-generic #21-Ubuntu SMP Tue Apr 24 06:16:15 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
output of version-check.sh
LFS version: 9.0

Hello, I have problems with the Ninja package. I haven't got much problems in LFS ("spawn ls" in binutils but it was solved) so this is the first big problem.

I am trying to compile ninja with
Code:
python3 configure.py --bootstrap
but it returns the follow error
Code:
In file included from ./src/browse.cc:23:
./build/browse_py.h:2:1: error: expected primary-expression before ‘;’ token
    2 | ;
      | ^
Traceback (most recent call last):
  File "configure.py", line 465, in <module>
    objs += cxx('browse', order_only=built('browse_py.h'))
  File "configure.py", line 282, in cxx
    return n.build(built(name + objext), 'cxx', src(name + '.cc'), **kwargs)
  File "configure.py", line 164, in build
    self._run_command(self._expand(cmd, local_vars))
  File "configure.py", line 189, in _run_command
    subprocess.check_call(cmdline, shell=True)
  File "/usr/lib/python3.7/subprocess.py", line 347, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command 'g++ -MMD -MT build/browse.o -MF build/browse.o.d -g -Wall -Wextra -Wno-deprecated -Wno-missing-field-initializers -Wno-unused-parameter -fno-rtti -fno-exceptions -fvisibility=hidden -pipe '-DNINJA_PYTHON="python3"' -O2 -DNDEBUG -fdiagnostics-color -DUSE_PPOLL -DNINJA_HAVE_BROWSE -I. -c ./src/browse.cc -o build/browse.o' returned non-zero exit status 1.
I tried to compile the package in the machine host (out of LFS) and It compiled with any problems.
Thank you.

Last edited by NameUser; 10-09-2019 at 09:49 AM. Reason: add more info
 
Old 10-09-2019, 08:39 AM   #2
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Linux From Scratch, Slackware64, Partedmagic
Posts: 2,715

Rep: Reputation: 680Reputation: 680Reputation: 680Reputation: 680Reputation: 680Reputation: 680
You need to include WAY more info, what distro are u using, what is the output of the version.sh script, what version of the book r u using
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can not access Global variable in C "expected expression before ??:?? token" golden_boy615 Programming 1 11-16-2011 02:30 PM
[SOLVED] "Error: syntax before '@' token and Error: syntax at 'OTHER' token" bullrider Programming 2 07-27-2009 08:00 AM
C compiling error: expected expression before { token CoderMan Programming 3 03-31-2009 04:31 PM
expected primary expression before... Uint character question. RHLinuxGUY Programming 3 05-12-2006 12:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 08:43 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration