Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 115537 - gcc 3.4.4 fails to build using for CHOST=arm-linux using crossdev
Summary: gcc 3.4.4 fails to build using for CHOST=arm-linux using crossdev
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: SpanKY
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-14 07:53 UTC by Arjan Schrijver
Modified: 2005-12-14 10:39 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Arjan Schrijver 2005-12-14 07:53:47 UTC
When building a crosscompile environment using crossdev (stage4), it failed at
stage1, when trying to compile gcc. In the logfile I have the following errors:

/var/tmp/cross/arm-linux/portage/gcc-3.4.4-r1/work/build/gcc/xgcc
-B/var/tmp/cross/arm-linux/portage/gcc-3.4.4-r1/work/build/gcc/
-B/usr/arm-linux/bin/ -B/usr/arm-linux/lib/ -isystem /usr/arm-linux/include -isys
tem /usr/arm-linux/sys-include -O2  -DIN_GCC -DCROSS_COMPILE   -W -Wall
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition
 -isystem ./include  -fomit-frame-pointer -fPIC -g0 -DHAVE_
GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc
-D_LIBC_PROVIDES_SSP_ -fno-stack-protector -I. -I.
-I/var/tmp/cross/arm-linux/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc
-I/var/tmp/cross/arm-linux/
portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc/.
-I/var/tmp/cross/arm-linux/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc/../include  
-DL_gcov -c
/var/tmp/cross/arm-linux/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc/libgcov.c -o
 libgcc/./_gcov.o
In file included from
/var/tmp/cross/arm-linux/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc/gcov-io.h:240,
                 from
/var/tmp/cross/arm-linux/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc/libgcov.c:51:
./auto-host.h:23:1: warning: "DEFAULT_USE_CXA_ATEXIT" redefined
In file included from ./tm.h:13,
                 from
/var/tmp/cross/arm-linux/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc/libgcov.c:39:
/var/tmp/cross/arm-linux/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc/defaults.h:608:1:
warning: this is the location of the previous definition
In file included from
/var/tmp/cross/arm-linux/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc/gcov-io.h:240,
                 from
/var/tmp/cross/arm-linux/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc/libgcov.c:51:
./auto-host.h:185:1: warning: "HAVE_DECL_GETOPT" redefined
In file included from
/var/tmp/cross/arm-linux/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc/libgcov.c:37:
/var/tmp/cross/arm-linux/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc/tsystem.h:40:1:
warning: this is the location of the previous definition
/var/tmp/cross/arm-linux/portage/gcc-3.4.4-r1/work/build/gcc/xgcc
-B/var/tmp/cross/arm-linux/portage/gcc-3.4.4-r1/work/build/gcc/
-B/usr/arm-linux/bin/ -B/usr/arm-linux/lib/ -isystem /usr/arm-linux/include -isys
tem /usr/arm-linux/sys-include -O2  -DIN_GCC -DCROSS_COMPILE   -W -Wall
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition
 -isystem ./include  -fomit-frame-pointer -fPIC -g0 -DHAVE_
GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc
-D_LIBC_PROVIDES_SSP_ -fno-stack-protector -I. -I.
-I/var/tmp/cross/arm-linux/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc
-I/var/tmp/cross/arm-linux/
portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc/.
-I/var/tmp/cross/arm-linux/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc/../include  
-DL_gcov_merge_add -c
/var/tmp/cross/arm-linux/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc/li
bgcov.c -o libgcc/./_gcov_merge_add.o
/var/tmp/cross/arm-linux/portage/gcc-3.4.4-r1/work/build/gcc/xgcc
-B/var/tmp/cross/arm-linux/portage/gcc-3.4.4-r1/work/build/gcc/
-B/usr/arm-linux/bin/ -B/usr/arm-linux/lib/ -isystem /usr/arm-linux/include -isys
tem /usr/arm-linux/sys-include -O2  -DIN_GCC -DCROSS_COMPILE   -W -Wall
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition
 -isystem ./include  -fomit-frame-pointer -fPIC -g0 -DHAVE_
GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc
-D_LIBC_PROVIDES_SSP_ -fno-stack-protector -I. -I.
-I/var/tmp/cross/arm-linux/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc
-I/var/tmp/cross/arm-linux/
portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc/.
-I/var/tmp/cross/arm-linux/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc/../include  
-DL_gcov_merge_single -c
/var/tmp/cross/arm-linux/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc
/libgcov.c -o libgcc/./_gcov_merge_single.o
In file included from
/var/tmp/cross/arm-linux/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc/gcov-io.h:240,
                 from
/var/tmp/cross/arm-linux/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc/libgcov.c:51:
./auto-host.h:23:1: warning: "DEFAULT_USE_CXA_ATEXIT" redefined
In file included from ./tm.h:13,
                 from
/var/tmp/cross/arm-linux/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc/libgcov.c:39:
/var/tmp/cross/arm-linux/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc/defaults.h:608:1:
warning: this is the location of the previous definition
In file included from
/var/tmp/cross/arm-linux/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc/gcov-io.h:240,
                 from
/var/tmp/cross/arm-linux/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc/libgcov.c:51:
./auto-host.h:185:1: warning: "HAVE_DECL_GETOPT" redefined
In file included from
/var/tmp/cross/arm-linux/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc/libgcov.c:37:
/var/tmp/cross/arm-linux/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc/tsystem.h:40:1:
warning: this is the location of the previous definition
In file included from
/var/tmp/cross/arm-linux/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc/gcov-io.h:240,
                 from
/var/tmp/cross/arm-linux/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc/libgcov.c:51:
./auto-host.h:23:1: warning: "DEFAULT_USE_CXA_ATEXIT" redefined
In file included from ./tm.h:13,
                 from
/var/tmp/cross/arm-linux/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc/libgcov.c:39:
/var/tmp/cross/arm-linux/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc/defaults.h:608:1:
warning: this is the location of the previous definition
In file included from
/var/tmp/cross/arm-linux/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc/gcov-io.h:240,
                 from
/var/tmp/cross/arm-linux/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc/libgcov.c:51:
./auto-host.h:185:1: warning: "HAVE_DECL_GETOPT" redefined
In file included from
/var/tmp/cross/arm-linux/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc/libgcov.c:37:
/var/tmp/cross/arm-linux/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc/tsystem.h:40:1:
warning: this is the location of the previous definition
/var/tmp/cross/arm-linux/portage/gcc-3.4.4-r1/work/build/gcc/xgcc
-B/var/tmp/cross/arm-linux/portage/gcc-3.4.4-r1/work/build/gcc/
-B/usr/arm-linux/bin/ -B/usr/arm-linux/lib/ -isystem /usr/arm-linux/include -isys
tem /usr/arm-linux/sys-include -O2  -DIN_GCC -DCROSS_COMPILE   -W -Wall
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition
 -isystem ./include  -fomit-frame-pointer -fPIC -g0 -DHAVE_
GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc
-D_LIBC_PROVIDES_SSP_ -fno-stack-protector -I. -I.
-I/var/tmp/cross/arm-linux/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc
-I/var/tmp/cross/arm-linux/
portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc/.
-I/var/tmp/cross/arm-linux/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc/../include  
-DL_gcov_merge_delta -c
/var/tmp/cross/arm-linux/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc/
libgcov.c -o libgcc/./_gcov_merge_delta.o
In file included from
/var/tmp/cross/arm-linux/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc/gcov-io.h:240,
                 from
/var/tmp/cross/arm-linux/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc/libgcov.c:51:
./auto-host.h:23:1: warning: "DEFAULT_USE_CXA_ATEXIT" redefined
In file included from ./tm.h:13,
                 from
/var/tmp/cross/arm-linux/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc/libgcov.c:39:
/var/tmp/cross/arm-linux/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc/defaults.h:608:1:
warning: this is the location of the previous definition
In file included from
/var/tmp/cross/arm-linux/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc/gcov-io.h:240,
                 from
/var/tmp/cross/arm-linux/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc/libgcov.c:51:
./auto-host.h:185:1: warning: "HAVE_DECL_GETOPT" redefined
In file included from
/var/tmp/cross/arm-linux/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc/libgcov.c:37:
/var/tmp/cross/arm-linux/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc/tsystem.h:40:1:
warning: this is the location of the previous definition
/var/tmp/cross/arm-linux/portage/gcc-3.4.4-r1/work/build/gcc/xgcc
-B/var/tmp/cross/arm-linux/portage/gcc-3.4.4-r1/work/build/gcc/
-B/usr/arm-linux/bin/ -B/usr/arm-linux/lib/ -isystem /usr/arm-linux/include -isys
tem /usr/arm-linux/sys-include -O2  -DIN_GCC -DCROSS_COMPILE   -W -Wall
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition
 -isystem ./include  -fomit-frame-pointer -fPIC -g0 -DHAVE_
GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc
-D_LIBC_PROVIDES_SSP_ -fno-stack-protector -I. -I.
-I/var/tmp/cross/arm-linux/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc
-I/var/tmp/cross/arm-linux/
portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc/.
-I/var/tmp/cross/arm-linux/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc/../include 
-fexceptions -c
/var/tmp/cross/arm-linux/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc/unwind-dw
2.c -o libgcc/./unwind-dw2.o
In file included from ./gthr-default.h:1,
                 from
/var/tmp/cross/arm-linux/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc/gthr.h:96,
                 from
/var/tmp/cross/arm-linux/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc/unwind-dw2.c:42:
/var/tmp/cross/arm-linux/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc/gthr-posix.h:43:21:
pthread.h: No such file or directory
/var/tmp/cross/arm-linux/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc/gthr-posix.h:44:20:
unistd.h: No such file or directory
In file included from ./gthr-default.h:1,
                 from
/var/tmp/cross/arm-linux/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc/gthr.h:96,
                 from
/var/tmp/cross/arm-linux/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc/unwind-dw2.c:42:
/var/tmp/cross/arm-linux/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc/gthr-posix.h:46:
error: parse error before "__gthread_key_t"
/var/tmp/cross/arm-linux/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc/gthr-posix.h:46:
warning: type defaults to `int' in declaration of `__gthread_key_t'
/var/tmp/cross/arm-linux/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc/gthr-posix.h:46:
warning: data definition has no type or storage class
/var/tmp/cross/arm-linux/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc/gthr-posix.h:47:
error: parse error before "__gthread_once_t"
/var/tmp/cross/arm-linux/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc/gthr-posix.h:47:
warning: type defaults to `int' in declaration of `__gthread_once_t'
/var/tmp/cross/arm-linux/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc/gthr-posix.h:47:
warning: data definition has no type or storage class
/var/tmp/cross/arm-linux/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc/gthr-posix.h:48:
error: parse error before "__gthread_mutex_t"
/var/tmp/cross/arm-linux/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc/gthr-posix.h:48:
warning: type defaults to `int' in declaration of `__gthread_mutex_t'
/var/tmp/cross/arm-linux/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc/gthr-posix.h:48:
warning: data definition has no type or storage class
/var/tmp/cross/arm-linux/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc/gthr-posix.h:
In function `__gthread_active_p':
/var/tmp/cross/arm-linux/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc/gthr-posix.h:96:
error: `pthread_create' undeclared (first use in this function)
/var/tmp/cross/arm-linux/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc/gthr-posix.h:96:
error: (Each undeclared identifier is reported only once
/var/tmp/cross/arm-linux/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc/gthr-posix.h:96:
error: for each function it appears in.)
/var/tmp/cross/arm-linux/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc/gthr-posix.h:
At top level:
/var/tmp/cross/arm-linux/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc/gthr-posix.h:456:
error: parse error before '*' token
/var/tmp/cross/arm-linux/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc/gthr-posix.h:456:
error: parse error before ')' token
/var/tmp/cross/arm-linux/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc/gthr-posix.h:465:
error: parse error before '*' token
/var/tmp/cross/arm-linux/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc/gthr-posix.h:465:
error: parse error before ')' token
/var/tmp/cross/arm-linux/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc/gthr-posix.h:471:
error: parse error before "key"
/var/tmp/cross/arm-linux/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc/gthr-posix.h:472:
warning: function declaration isn't a prototype
/var/tmp/cross/arm-linux/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc/gthr-posix.h:
In function `__gthread_key_delete':
/var/tmp/cross/arm-linux/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc/gthr-posix.h:472:
warning: old-style parameter declaration
/var/tmp/cross/arm-linux/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc/gthr-posix.h:473:
warning: implicit declaration of function `pthread_key_delete'
/var/tmp/cross/arm-linux/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc/gthr-posix.h:473:
error: `key' undeclared (first use in this function)
/var/tmp/cross/arm-linux/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc/gthr-posix.h:
At top level:
/var/tmp/cross/arm-linux/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc/gthr-posix.h:477:
error: parse error before "key"
/var/tmp/cross/arm-linux/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc/gthr-posix.h:478:
warning: function declaration isn't a prototype
/var/tmp/cross/arm-linux/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc/gthr-posix.h:
In function `__gthread_getspecific':
/var/tmp/cross/arm-linux/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc/gthr-posix.h:478:
warning: old-style parameter declaration
/var/tmp/cross/arm-linux/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc/gthr-posix.h:479:
warning: implicit declaration of function `pthread_getspecific'
/var/tmp/cross/arm-linux/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc/gthr-posix.h:479:
error: `key' undeclared (first use in this function)
/var/tmp/cross/arm-linux/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc/gthr-posix.h:479:
warning: return makes pointer from integer without a cast
/var/tmp/cross/arm-linux/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc/gthr-posix.h:
At top level:
/var/tmp/cross/arm-linux/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc/gthr-posix.h:483:
error: parse error before "key"
/var/tmp/cross/arm-linux/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc/gthr-posix.h:484:
warning: function declaration isn't a prototype
/var/tmp/cross/arm-linux/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc/gthr-posix.h:
In function `__gthread_setspecific':
/var/tmp/cross/arm-linux/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc/gthr-posix.h:484:
warning: old-style parameter declaration
/var/tmp/cross/arm-linux/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc/gthr-posix.h:485:
warning: implicit declaration of function `pthread_setspecific'
/var/tmp/cross/arm-linux/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc/gthr-posix.h:485:
error: `key' undeclared (first use in this function)
/var/tmp/cross/arm-linux/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc/gthr-posix.h:485:
error: `ptr' undeclared (first use in this function)
/var/tmp/cross/arm-linux/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc/gthr-posix.h:
At top level:
/var/tmp/cross/arm-linux/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc/gthr-posix.h:489:
error: parse error before '*' token
/var/tmp/cross/arm-linux/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc/gthr-posix.h:490:
warning: function declaration isn't a prototype
/var/tmp/cross/arm-linux/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc/gthr-posix.h:
In function `__gthread_mutex_lock':
/var/tmp/cross/arm-linux/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc/gthr-posix.h:490:
warning: old-style parameter declaration
/var/tmp/cross/arm-linux/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc/gthr-posix.h:492:
warning: implicit declaration of function `pthread_mutex_lock'
/var/tmp/cross/arm-linux/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc/gthr-posix.h:492:
error: `mutex' undeclared (first use in this function)
/var/tmp/cross/arm-linux/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc/gthr-posix.h:
At top level:
/var/tmp/cross/arm-linux/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc/gthr-posix.h:498:
error: parse error before '*' token
/var/tmp/cross/arm-linux/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc/gthr-posix.h:499:
warning: function declaration isn't a prototype
/var/tmp/cross/arm-linux/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc/gthr-posix.h:
In function `__gthread_mutex_trylock':
/var/tmp/cross/arm-linux/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc/gthr-posix.h:499:
warning: old-style parameter declaration
/var/tmp/cross/arm-linux/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc/gthr-posix.h:501:
warning: implicit declaration of function `pthread_mutex_trylock'
/var/tmp/cross/arm-linux/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc/gthr-posix.h:501:
error: `mutex' undeclared (first use in this function)
/var/tmp/cross/arm-linux/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc/gthr-posix.h:
At top level:
/var/tmp/cross/arm-linux/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc/gthr-posix.h:507:
error: parse error before '*' token
/var/tmp/cross/arm-linux/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc/gthr-posix.h:508:
warning: function declaration isn't a prototype
/var/tmp/cross/arm-linux/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc/gthr-posix.h:
In function `__gthread_mutex_unlock':
/var/tmp/cross/arm-linux/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc/gthr-posix.h:508:
warning: old-style parameter declaration
/var/tmp/cross/arm-linux/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc/gthr-posix.h:510:
warning: implicit declaration of function `pthread_mutex_unlock'
/var/tmp/cross/arm-linux/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc/gthr-posix.h:510:
error: `mutex' undeclared (first use in this function)
make[2]: *** [libgcc/./unwind-dw2.o] Error 1
make[2]: Leaving directory
`/var/tmp/cross/arm-linux/portage/gcc-3.4.4-r1/work/build/gcc'
make[1]: *** [libgcc.a] Error 2
rm gcc.pod
make[1]: Leaving directory
`/var/tmp/cross/arm-linux/portage/gcc-3.4.4-r1/work/build/gcc'
make: *** [all-gcc] Error 2

!!! ERROR: cross-arm-linux/gcc-3.4.4-r1 failed.
!!! Function gcc_do_make, Line 1312, Exitcode 2
!!! emake failed with all
!!! If you need support, post the topmost build error, NOT this status message.


Reproducible: Always
Steps to Reproduce:
1. try to compile the environment using 'crossdev --target arm-linux'
Actual Results:  
crossdev exited with the message 'gcc failed :('

Expected Results:  
it should have compiled the complete crosscompiling environment

--------------------------------------------------------------------------------
 * Host Portage ARCH:     x86
 * Target Portage ARCH:   arm
 * Target System:         arm-linux
 * Stage:                 4 (C/C++ compiler)

 * binutils:              binutils-[latest]
 * gcc:                   gcc-[latest]
 * headers:               linux-headers-[latest]
 * libc:                  glibc-[latest]

 * PORTDIR_OVERLAY:       /usr/local/portage
 * PORT_LOGDIR:           /var/log/portage
 * PKGDIR:                /usr/portage/packages/cross/arm-linux
 * PORTAGE_TMPDIR:        /var/tmp/cross/arm-linux
  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  
Gentoo Base System version 1.6.13
Portage 2.0.51.22-r3 (default-linux/x86/2005.1, gcc-3.3.6, glibc-2.3.5-r2,
2.6.14-gentoo-r4 i686)
=================================================================
System uname: 2.6.14-gentoo-r4 i686 AMD Sempron(tm)   2800+
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-lang/python:     2.3.5-r2, 2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.20
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -mcpu=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/
control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=i686 -mcpu=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages/cross/arm-linux"
PORTAGE_TMPDIR="/var/tmp/cross/arm-linux"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X aalib acpi alsa apache2 apm arts audiofile autofs avi berkdb
bitmap-fonts bluetooth bzip2 cdr crypt cups curl dv dvd dvdr eds emboss encode
esd evo exif expat fam ffmpeg foomaticdb fortran gd gdbm gif
 glut gmp gnome gpm gstreamer gtk gtk2 hal idn imagemagick imap imlib ipv6 irmc
jack java jpeg kerberos lcms ldap libg++ libwww live mad mbox mhash mikmod mime
mng motif mozilla mp3 mpeg mysql mythtv ncurses net
work nls nptl nvidia ogg oggvorbis openal opengl oss pam pcre pda pdflib perl
png pnp python qt quicktime readline recode samba sdl slc sndfile spell ssl tcpd
theora tiff truetype truetype-fonts type1-fonts udev
 unicode usb v4l v4l2 vhosts vorbis win32codecs xft xine xinerama xml xml2 xmms
xscreensaver xv xvid zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LINGUAS
Comment 1 SpanKY gentoo-dev 2005-12-14 07:59:55 UTC
post the log file as an attachment
Comment 2 Arjan Schrijver 2005-12-14 08:02:36 UTC
ah well, it seems I should have taken 'arm-unknown-linux-gnu' as the target, not
'arm-linux'. should the last one work anyway?
Comment 3 SpanKY gentoo-dev 2005-12-14 08:53:23 UTC
that depends

if you want to cross-compile for a libc system, then you need arm-linux-gnu

if you want to produce code to run on the bare metal, you want arm-linux

i'm going to assume you want glibc
Comment 4 Arjan Schrijver 2005-12-14 10:14:45 UTC
Indeed, I wanted the build including glibc. So for me it's resolved... But it
still is a fact that it won't build when using arm-linux, which should work.
Comment 5 SpanKY gentoo-dev 2005-12-14 10:37:33 UTC
i dont really care about bare metal systems, thus i dont plan on fixing any
arch-linux target

feel free to post a patch
Comment 6 Arjan Schrijver 2005-12-14 10:39:27 UTC
I don't care too. :)
Thanks for answering.