LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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
 
LinkBack Search this Thread
Old 10-09-2004, 08:54 AM   #1
xtrem
LQ Newbie
 
Registered: Oct 2004
Distribution: REd Hat 9
Posts: 9

Rep: Reputation: 0
Unhappy HELP a new guy...


I have a problem with creating a LSF (I hope that only the first time is hard)
Ok this is the error I get when I 'make install' GCC-3.3.3 pass 2

3.3/gcc -I../../gcc-3.3.3/gcc/. -I../../gcc-3.3.3/gcc/config -I../../gcc-3.3.3/gcc/../include -g0 -finhibit-size-directive -fno-inline-functions -fno-exceptions -fno-zero-initialized-in-bss -fno-omit-frame-pointer \
-c ../../gcc-3.3.3/gcc/crtstuff.c -DCRT_BEGIN \
-o crtbegin.o
In file included from /mnt/bhl/tools/include/stdio.h:28,
from ../../gcc-3.3.3/gcc/tsystem.h:72,
from ../../gcc-3.3.3/gcc/crtstuff.c:62:
/mnt/bhl/tools/include/features.h:318:23: gnu/stubs.h: No such file or directory
../../gcc-3.3.3/gcc/crtstuff.c:84:18: link.h: No such file or directory
make[1]: *** [crtbegin.o] Error 1
make[1]: Leaving directory `/mnt/bhl/build/gcc-build/gcc'
make: *** [install-gcc] Error 2

real 8m32.002s
user 7m17.230s
sys 0m32.770s


Ring a bell anyone????????
LFS 5.1.1
 
Old 10-09-2004, 11:18 AM   #2
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
I notice the $PATH in your error message contains the folder /mnt/bhl/build, but the book suggests you build in /mnt/lfs/sources. If you're deveating from the book you need to know what you're doing, be extra careful to think everything through or errors will creep in when you're not looking...I would (as allways) suggest that you do it exactly the way the good book says, at least until you've done it a few times. When you've seen it work, then try making changes. Also, LFS-5.1.1 is quite old now. Book 6 is still called testing but that's just because they're waiting for the publishers to get book into the shops before they announce it online.
 
Old 10-09-2004, 11:46 AM   #3
xtrem
LQ Newbie
 
Registered: Oct 2004
Distribution: REd Hat 9
Posts: 9

Original Poster
Rep: Reputation: 0
Ok.. Ok...
I figure that changing just a little would not matter
I'll try again later ...
But I realy don't think it's that the big problem...
Any way I'm not sure I understand 1 thing
In my distro (Red hat 9) I'll make a folder in the root dir '/stuf' where I'll keep the tar's and in my root folder '/' I'm suppose to make a link to /mnt/lfs called tools rigth...
??????
and in '/tools' who is /mnt/lfs the new distro is gong to pop up?
 
Old 10-10-2004, 02:11 AM   #4
xtrem
LQ Newbie
 
Registered: Oct 2004
Distribution: REd Hat 9
Posts: 9

Original Poster
Rep: Reputation: 0
Ok so this time I did it by the book....
And the firts time I try to test the tool chain ths is what I got when tring to compile the dummy program

bash-2.05b$ cc dum.c
/mnt/lfs/tools/bin/../lib/gcc-lib/i686-pc-linux-gnu/3.3.3/../../../../i686-pc-linux-gnu/bin/ld: cannot find /tools/lib/libc.so.6
collect2: ld returned 1 exit status
bash-2.05b$ gcc dum.c
/mnt/lfs/tools/bin/../lib/gcc-lib/i686-pc-linux-gnu/3.3.3/../../../../i686-pc-linux-gnu/bin/ld: cannot find /tools/lib/libc.so.6
collect2: ld returned 1 exit status

What the F**** is that supose to mean?????
Anyone?
 
Old 10-10-2004, 09:34 AM   #5
xtrem
LQ Newbie
 
Registered: Oct 2004
Distribution: REd Hat 9
Posts: 9

Original Poster
Rep: Reputation: 0
Ok I made it to the chroot part ...
But then smt bad hapens when i compile gcc

here it it

FAIL: 30: expected branch percentages not found: 1
FAIL: 47: expected branch percentages not found: 0
FAIL: gcc.misc-tests/gcov-8.c gcov: 0 failures in line counts, 4 in branch percentages, 0 in return percentages
FAIL: linkage.c

=== gcc Summary ===

# of expected passes 11553
# of unexpected failures 5000
# of unexpected successes 1
# of expected failures 52
# of unresolved testcases 4673
# of unsupported tests 100
/build/gcc-build/gcc/xgcc version 3.3.3


Compiler version: 3.3.3
Platform: i686-pc-linux-gnu
configure flags: --host=i686-pc-linux-gnu --prefix=/usr --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --enable-languages=c,c++
EOF
Mail -s "Results for 3.3.3 testsuite on i686-pc-linux-gnu" gcc-testresults@gcc.gnu.org &&
mv /build/gcc-build/./gcc/testsuite/g++.sum /build/gcc-build/./gcc/testsuite/g++.sum.sent &&
mv /build/gcc-build/./gcc/testsuite/gcc.sum /build/gcc-build/./gcc/testsuite/gcc.sum.sent &&
mv /build/gcc-build/./gcc/testsuite/g++.log /build/gcc-build/./gcc/testsuite/g++.log.sent &&
mv /build/gcc-build/./gcc/testsuite/gcc.log /build/gcc-build/./gcc/testsuite/gcc.log.sent &&
true
/bin/sh ../gcc-3.3.3/mkinstalldirs /usr /usr
make[1]: Entering directory `/build/gcc-build/gcc'
(cd intl && make all)
make[2]: Entering directory `/build/gcc-build/gcc/intl'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/build/gcc-build/gcc/intl'
/build/gcc-build/gcc/xgcc -B/build/gcc-build/gcc/ -B/usr/i686-pc-linux-gnu/bin/ -B/usr/i686-pc-linux-gnu/lib/ -isystem /usr/i686-pc-linux-gnu/include -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -isystem ./include -I. -I. -I../../gcc-3.3.3/gcc -I../../gcc-3.3.3/gcc/. -I../../gcc-3.3.3/gcc/config -I../../gcc-3.3.3/gcc/../include -g0 -finhibit-size-directive -fno-inline-functions -fno-exceptions -fno-zero-initialized-in-bss -fno-omit-frame-pointer \
-c ../../gcc-3.3.3/gcc/crtstuff.c -DCRT_BEGIN \
-o crtbegin.o
In file included from ../../gcc-3.3.3/gcc/crtstuff.c:62:
../../gcc-3.3.3/gcc/tsystem.h:72:19: stdio.h: No such file or directory
../../gcc-3.3.3/gcc/tsystem.h:75:23: sys/types.h: No such file or directory
../../gcc-3.3.3/gcc/tsystem.h:78:19: errno.h: No such file or directory
../../gcc-3.3.3/gcc/tsystem.h:85:20: string.h: No such file or directory
../../gcc-3.3.3/gcc/tsystem.h:89:20: stdlib.h: No such file or directory
../../gcc-3.3.3/gcc/tsystem.h:90:20: unistd.h: No such file or directory
../../gcc-3.3.3/gcc/tsystem.h:96:18: time.h: No such file or directory
../../gcc-3.3.3/gcc/crtstuff.c: In function `__do_global_dtors_aux':
../../gcc-3.3.3/gcc/crtstuff.c:277: warning: passing arg 1 of `__deregister_frame_info_bases' discards qualifiers from pointer target type
../../gcc-3.3.3/gcc/crtstuff.c: In function `frame_dummy':
../../gcc-3.3.3/gcc/crtstuff.c:313: warning: passing arg 1 of `__register_frame_info_bases' discards qualifiers from pointer target type
make[1]: *** [crtbegin.o] Error 1
make[1]: Leaving directory `/build/gcc-build/gcc'
make: *** [install-gcc] Error 2
ln: `/lib/cpp': File exists
ln: `/usr/bin/cc': File exists



HELP ...I have no clue here....
What the f... is crtbegin?
 
Old 02-17-2005, 04:42 AM   #6
HZC
LQ Newbie
 
Registered: Feb 2005
Posts: 7

Rep: Reputation: 0
hello!!

i am installing gcc-3.3.2 on my linux machine, m trying to cross compile it for ARM. but the problem is that afte ri run make command it gives me the following errors.
In file included from ../../gcc/crtstuff.c:62:
../../gcc/tsystem.h:72:19: stdio.h: No such file or directory
../../gcc/tsystem.h:75:23: sys/types.h: No such file or directory
../../gcc/tsystem.h:78:19: errno.h: No such file or directory
../../gcc/tsystem.h:85:20: string.h: No such file or directory
../../gcc/tsystem.h:89:20: stdlib.h: No such file or directory
../../gcc/tsystem.h:90:20: unistd.h: No such file or directory
../../gcc/tsystem.h:96:18: time.h: No such file or directory
../../gcc/crtstuff.c: In function `__do_global_dtors_aux':
../../gcc/crtstuff.c:280: warning: passing arg 1 of `__deregister_frame_info' discards qualifiers from pointer target type
../../gcc/crtstuff.c: In function `frame_dummy':
../../gcc/crtstuff.c:316: warning: passing arg 1 of `__register_frame_info' discards qualifiers from pointer target type
make[1]: *** [crtbegin.o] Error 1
make[1]: Leaving directory `/usr/arm-tools/gcc-3.3.2/arm-linux/gcc'
make: *** [all-gcc] Error 2

i have also used _Dinhibit_libc hack in /gcc/config/arm/t-linux
but still its not working. it gets configured correctly but gives error after executing teh make command.

one more question is that i have come across one command which is used before make configure command is,

cp $(ATTACHED t-linux file ) gcc/config/arm/
this command gives an eror

[root@orio arm-linux]# cp $(attached t-linux file) gcc/config/arm/
bash: attached: command not found
cp: missing destination file
Try `cp --help' for more information.


please help me in this regard.
regards
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Not ANOTHER NEW GUY!!!!!! patfogle LinuxQuestions.org Member Intro 3 01-22-2005 09:52 AM
The New Guy madcowjim LinuxQuestions.org Member Intro 1 01-20-2005 05:43 PM
New guy! cdc7 LinuxQuestions.org Member Intro 2 01-10-2005 09:22 PM
what can i say to this guy? Surfmonkey General 20 12-12-2003 03:17 AM
new guy... Pongo Linux - Newbie 4 11-17-2002 09:33 PM


All times are GMT -5. The time now is 12:02 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