LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 07-16-2003, 12:34 AM   #1
zeusBox
LQ Newbie
 
Registered: Jul 2003
Distribution: Slack9; SuSE8.x; LFS4; ...
Posts: 2

Rep: Reputation: 0
gcc3.2 make ERROR


Hey all,

Attempting another LFS with 4.0. Same machine I've used on several distros (LFS included v.3.3)

When installing/patching/making gcc3.2 I'm getting the following error:

**************
auto-host.h:576: parse error before numeric constant
make[2]: *** [gengenrtl.o] Error 1
make[2]: Leaving directory '/mnt/lfs/usr/src/gcc-build/gcc'
make[1]: *** [stage1_build] Error 2
make[1]: Leaving directory '/mnt/lfs/usr/src/gcc-build/gcc'
make: *** [bootstrap] Error 2
**************

The 2 steps prior to this was installing the 2 patches listed by the 4.0 manual. The patches went ok. At least as far as I could tell, nothing looked odd.
The above error appears with the following command:
**********
make BOOT_LDFLAGS=-static bootstrap
**********

Any ideas? I looked at the header file and line 576 has:
HAVE_GAS_HIDDEN 1
which I can only assume was added with the command:
*************
echo "#define HAVE_GAS_HIDDEN 1" >> gcc/auto-host.h
*************
which was applied right before the make BOOT...

Any help is appreciated.

Thanks.
 
Old 07-16-2003, 09:14 PM   #2
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 374Reputation: 374Reputation: 374Reputation: 374
If that's what is on the line, then you forgot to add the "#define" portion when you executed the echo command.

Just edit the file and change it to
#define HAVE_GAS_HIDDEN 1
 
Old 07-17-2003, 01:33 PM   #3
zeusBox
LQ Newbie
 
Registered: Jul 2003
Distribution: Slack9; SuSE8.x; LFS4; ...
Posts: 2

Original Poster
Rep: Reputation: 0
no i didnt
 
Old 07-17-2003, 01:36 PM   #4
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 374Reputation: 374Reputation: 374Reputation: 374
Maybe you executed the line twice. I don't know, but I can tell you, one way or the other, the line was not placed in the file properly.

The line, as you said the file contained, WILL cause a syntax error when trying to compile the source code. Regardless of how it got there, you need to add the #define to the beginning of the line.
 
  


Reply



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
BLFS6.0: GCC3.4.1: "make -k check" no working StevePhM Linux From Scratch 5 08-10-2005 09:35 AM
has any one upgraded from gcc3.3.4 to gcc3.4.3? mojarron Slackware 2 03-20-2005 10:44 AM
lopster v1.2.2 make error: No rule to make target `m4/glibc21.m4' Kropotkin Fedora 0 10-31-2004 11:19 AM
Error - no gcc3 or cc compiler when installing source code bshelton Linux - General 1 09-16-2003 02:26 PM
make: cc: command not found make: *** [gzip.o]error 127 zyjk Linux - Newbie 5 02-08-2002 09:58 AM

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

All times are GMT -5. The time now is 08:10 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
Open Source Consulting | Domain Registration