LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 01-18-2009, 04:50 PM   #1
gazza1z
Member
 
Registered: Sep 2008
Posts: 30

Rep: Reputation: 15
LFS 6.4 Chapter 5.4. Binutils-2.18 - Pass 1


Host system BLFS6.3 kernel 2.6.22.5 on a $GB USB Stick

In the config.log file I get errors:

Code:
configure:3565: gcc -B/usr/bin/ -c -g -O2  conftest.c >&5
conftest.c:2: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'me'
configure:3571: $? = 1
configure: failed program was:
| #ifndef __cplusplus
|   choke me
| #endif

and later on in the same config.log file:

Code:
configure:4017: g++ -c -g -O2  conftest.cc >&5
conftest.cc: In function 'int main()':
conftest.cc:13: error: 'exit' was not declared in this scope
configure:4023: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| 
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| /* end confdefs.h.  */
| 
| int
| main ()
| {
| exit (42);
|   ;
|   return 0;
| }
However the

CC="gcc -B/usr/bin/" ../binutils-2.18/configure \
--prefix=/tools --disable-nls --disable-werror

finishes with

Code:
configure: exit 0
and the make comaands run okay. So are these errors anything to worry about?
Gary
 
Old 01-23-2009, 05:18 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,543

Rep: Reputation: 2509Reputation: 2509Reputation: 2509Reputation: 2509Reputation: 2509Reputation: 2509Reputation: 2509Reputation: 2509Reputation: 2509Reputation: 2509Reputation: 2509
Probably no issue for 'binutils' having just
a couple of c++ files ( and for test only ).

You may have a corrupt g++ and c++ in /usr/bin/,
but then again, wouldn't be used for building LFS ?
....
 
Old 01-23-2009, 11:16 AM   #3
gazza1z
Member
 
Registered: Sep 2008
Posts: 30

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by knudfl View Post
Probably no issue for 'binutils' having just
a couple of c++ files ( and for test only ).

You may have a corrupt g++ and c++ in /usr/bin/,
but then again, wouldn't be used for building LFS ?
....
Thanks for the info. I seem to be getting these errors in all the sections in chapter 5. Having done a bit more research it doesn't seem to be a big problem as the configure script apparently tests a lot of things on a system not all of which will be present.

All the configure scripts and make commands have run successfully and I am now on chapter 6.
 
  


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
lfs chapter 6.11 Binutils-2.16.1 make problems Nislick Linux From Scratch 3 08-15-2006 05:25 PM
LFS binutils-build error : Pass 1 ramlnx Linux From Scratch 1 07-12-2006 07:06 AM
building Binutils-2.14 pass 1 (LFS 5.1.1) alihamza Linux From Scratch 1 10-10-2005 07:37 AM
LFS 5.1.1: another problem after binutils pass 2 7.e.Q Linux From Scratch 1 07-12-2004 04:37 AM
binutils chapter 5 pass 2 qod Linux From Scratch 3 11-03-2003 12:39 PM


All times are GMT -5. The time now is 06:09 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration