LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   HELP a new guy... (https://www.linuxquestions.org/questions/linux-from-scratch-13/help-a-new-guy-240554/)

xtrem 10-09-2004 08:54 AM

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

Andrew Benton 10-09-2004 11:18 AM

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.

xtrem 10-09-2004 11:46 AM

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?

xtrem 10-10-2004 02:11 AM

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?

xtrem 10-10-2004 09:34 AM

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?

HZC 02-17-2005 04:42 AM

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


All times are GMT -5. The time now is 05:42 PM.