tvinhas n00b
Joined: 12 Apr 2006 Posts: 14
|
Posted: Tue May 22, 2007 9:42 pm Post subject: Error compiling stuff after stage4 cloning |
|
|
Hi guys, first time I ask anything here, so please be gentle.
I've been testing gentoo for a couple weeks, on my USB hdd, and I'm really happy with it.
That said, I tried to not build it from scratch, so I followed this howto http://gentoo-wiki.com/HOWTO_Custom_Stage4 in the hope to be quick. The problem is that most programs I try to compile now, just doesn't compile. If I boot from my usb drive, it compiles fine.
Here are some of the errors:
From GCC 4.2.0:
Code: |
gcc -c -DHAVE_CONFIG_H -O -I. -I/var/tmp/portage/sys-devel/gcc-4.2.0/work/gcc-4.2.0/libiberty/../include -W -Wall -pedantic -Wwrite-strings -Wstrict-prototypes -Wc++-compat /var/tmp/portage/sys-devel/gcc-4.2.0/work/gcc-4.2.0/libiberty/getruntime.c -o getruntime.o
if [ x"-fpic" != x ]; then \
gcc -c -DHAVE_CONFIG_H -O -I. -I/var/tmp/portage/sys-devel/gcc-4.2.0/work/gcc-4.2.0/libiberty/../include -W -Wall -pedantic -Wwrite-strings -Wstrict-prototypes -Wc++-compat -fpic /var/tmp/portage/sys-devel/gcc-4.2.0/work/gcc-4.2.0/libiberty/hashtab.c -o pic/hashtab.o; \
else true; fi
In file included from /usr/include/stdint.h:8,
from /var/tmp/portage/sys-devel/gcc-4.2.0/work/gcc-4.2.0/libiberty/hashtab.c:54:
/usr/include/gentoo-multilib/amd64/stdint.h:123: error: duplicate 'unsigned'
make[3]: *** [hashtab.o] Error 1
make[3]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.2.0/work/build/libiberty'
make[2]: *** [all-stage1-libiberty] Error 2
make[2]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.2.0/work/build'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.2.0/work/build'
make: *** [profiledbootstrap] Error 2
!!! ERROR: sys-devel/gcc-4.2.0 failed.
Call stack:
ebuild.sh, line 1615: Called dyn_compile
ebuild.sh, line 972: Called qa_call 'src_compile'
ebuild.sh, line 44: Called src_compile
ebuild.sh, line 1305: Called toolchain_src_compile
toolchain.eclass, line 26: Called gcc_src_compile
toolchain.eclass, line 1537: Called gcc_do_make
toolchain.eclass, line 1411: Called die
|
From the Kernel 2.6.1:
Code: |
gentoo linux # make
CHK include/linux/version.h
CHK include/linux/utsrelease.h
HOSTCC scripts/mod/sumversion.o
scripts/mod/sumversion.c: In function 'get_src_version':
scripts/mod/sumversion.c:384: error: 'PATH_MAX' undeclared (first use in this function)
scripts/mod/sumversion.c:384: error: (Each undeclared identifier is reported only once
scripts/mod/sumversion.c:384: error: for each function it appears in.)
scripts/mod/sumversion.c:384: warning: unused variable 'filelist'
make[2]: *** [scripts/mod/sumversion.o] Error 1
make[1]: *** [scripts/mod] Error 2
make: *** [scripts] Error 2
|
I'm on the exactly same machine (a Dell Optiplex GX620) and everything was compiling perfectly. My /usr/include is exactly the same, and so is all the rest of the HD.
Can anyone please help me?
Regards,
Thiago Vinhas |
|