Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
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.


  Search this Thread
Old 09-05-2003, 08:18 AM   #1
Registered: Jun 2003
Posts: 30

Rep: Reputation: 15
glibc error: ld retured 1 exit status

i don't know what is the fate for me

i am fed up

i tried a lot of time but my glibc fails for one or the other reason in chapter 6

initially it failed for cpp sanity check but i did
touch /usr/include/assert.h
as the answer to one of th equestions was and it worked fine

but now in make phase it fails saying
........ld:/usr/src/glibc-build/ 108 arse error

ld returned exit status 1
i looked at that line in that file and found something like
KEEP(*(EXCLUDE_FIL(............and some file

when i do

it gives the same parse error and gets exit

i don't know whats the problem

probably the problem is of ncurses

can anybody tell me how to install ncurses statically in chapter 5

i tried in chap 6 before glibc but it says
c ompiler could not create executables and exits configure phase

host: redhat 8.0
Old 09-05-2003, 03:46 PM   #2
Senior Member
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 374Reputation: 374Reputation: 374Reputation: 374
Is there a specific reason you need glibc2.3.2 or gcc 3.3?? The LFS FAQ mentions that gcc 3.3 is definitely known to cause problems. I don't know about glibc2.3.2, but you're obviously trying to compile it with gcc 3.3, and that may be part of the problem.

If you must have those versions, then I'm not sure many folks here can help out. I've built many LFS systems, but they were always by-the-book. I think that's how most folks in this forum do their installs. One option might be to install as the book suggests, and then try to install gcc 3.3 after that. I'm not sure how you would install glibc2.3.2 though.
Old 09-17-2003, 02:57 PM   #3
LQ Newbie
Registered: Sep 2003
Location: UK
Distribution: LFS-CVS-20031113
Posts: 29

Rep: Reputation: 15
It took me a couple of goes to install glibc-2.3.2 and gcc-3.3.1, problems generally being typos on my part. If you must use these versions, then follow the instructions in the latest (CVS) version of the book.

However, I can install it successfully using either Red Hat 9 or 7.2 as the host system (I like to experiment...)

Make sure you've passed

make configure-host

when you're installing binutils-2.14 otherwise that won't work. Also, if you're trying to install glibc-2.3.2 using gcc-3.3.1, you must patch glibc - patch is available from lfs - otherwise compile will fail. Using gcc-3.2 (actually the recommended compiler for glibc-2.3.2) shouldn't give this problem.

Finally, and this is where I went wrong, pay CAREFUL attention to the procedure for adjusting the toolchain in both chapters. The book suggests cut-n-paste rather than typing the commands in, and for good reason IMHO.


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
exit status naflan Programming 2 10-22-2004 12:22 PM
error exit status 30 debian_dummy Debian 2 09-21-2004 10:26 PM
konstruct error collect2: ld returned 1 exit status X2O Linux - Software 2 08-11-2004 08:48 PM
problem with "rpm -bb" , 1 out of 1 hunk ignored ...error: Bad exit status from /v wohaolouis Linux - Software 0 03-07-2004 07:12 AM
Trapping an exit status chrisk5527 Linux - General 3 09-12-2003 09:02 PM > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 04:13 PM.

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