Just a note - the scripts appear OK but there seem to be problems
within the gcc-4.2 source that cause the build to fail:

/usr/armeb-linux-gnu/bin/ar  rc ./libgcov.a libgcc/./_gcov.o 
libgcc/./_gcov_merge_add.o libgcc/./_gcov_merge_single.o 
libgcc/./_gcov_merge_delta.o libgcc/./_gcov_fork.o libgcc/./_gcov_execl.o 
libgcc/./_gcov_execlp.o libgcc/./_gcov_execle.o libgcc/./_gcov_execv.o 
libgcc/./_gcov_execvp.o libgcc/./_gcov_execve.o 
libgcc/./_gcov_interval_profiler.o libgcc/./_gcov_pow2_profiler.o 
libgcc/./_gcov_one_value_profiler.o
/usr/armeb-linux-gnu/bin/ranlib ./libgcov.a
/opt/emdebian/emchain/gcc-4.2-4.2.1/build/./gcc/xgcc 
-B/opt/emdebian/emchain/gcc-4.2-4.2.1/build/./gcc/ -B/usr/armeb-linux-gnu/bin/ 
-B/usr/armeb-linux-gnu/lib/ -isystem /usr/armeb-linux-gnu/include -isystem 
/usr/armeb-linux-gnu/sys-include -O2  -O2 -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 -I. 
-I. -I../../src/gcc -I../../src/gcc/. -I../../src/gcc/../include 
-I../../src/gcc/../libcpp/include  -I../../src/gcc/../libdecnumber 
-I../libdecnumber -fexceptions -fvisibility=hidden -DHIDE_EXPORTS -c 
../../src/gcc/unwind-dw2.c -o libgcc/./unwind-dw2.o
In file included from ./gthr-default.h:1,
                 from ../../src/gcc/gthr.h:114,
                 from ../../src/gcc/unwind-dw2.c:42:
../../src/gcc/gthr-posix.h:43:21: error: pthread.h: No such file or directory
../../src/gcc/gthr-posix.h:44:20: error: unistd.h: No such file or directory
In file included from ./gthr-default.h:1,
                 from ../../src/gcc/gthr.h:114,
                 from ../../src/gcc/unwind-dw2.c:42:
../../src/gcc/gthr-posix.h:46: error: expected '=', ',', ';', 'asm' or 
'__attribute__' before '__gthread_key_t'
../../src/gcc/gthr-posix.h:47: error: expected '=', ',', ';', 'asm' or 
'__attribute__' before '__gthread_once_t'
../../src/gcc/gthr-posix.h:48: error: expected '=', ',', ';', 'asm' or 
'__attribute__' before '__gthread_mutex_t'
../../src/gcc/gthr-posix.h:49: error: expected '=', ',', ';', 'asm' or 
'__attribute__' before '__gthread_recursive_mutex_t'
../../src/gcc/gthr-posix.h:92: error: 'pthread_once' undeclared here (not in a 
function)
../../src/gcc/gthr-posix.h:92: warning: type defaults to 'int' in declaration 
of '__gthrw_pthread_once'
../../src/gcc/gthr-posix.h:93: error: 'pthread_getspecific' undeclared here 
(not in a function)
../../src/gcc/gthr-posix.h:93: warning: type defaults to 'int' in declaration 
of '__gthrw_pthread_getspecific'
../../src/gcc/gthr-posix.h:94: error: 'pthread_setspecific' undeclared here 
(not in a function)
../../src/gcc/gthr-posix.h:94: warning: type defaults to 'int' in declaration 
of '__gthrw_pthread_setspecific'
../../src/gcc/gthr-posix.h:95: error: 'pthread_create' undeclared here (not in 
a function)
../../src/gcc/gthr-posix.h:95: warning: type defaults to 'int' in declaration 
of '__gthrw_pthread_create'
../../src/gcc/gthr-posix.h:96: error: 'pthread_cancel' undeclared here (not in 
a function)
../../src/gcc/gthr-posix.h:96: warning: type defaults to 'int' in declaration 
of '__gthrw_pthread_cancel'
../../src/gcc/gthr-posix.h:97: error: 'pthread_mutex_lock' undeclared here (not 
in a function)
../../src/gcc/gthr-posix.h:97: warning: type defaults to 'int' in declaration 
of '__gthrw_pthread_mutex_lock'
../../src/gcc/gthr-posix.h:98: error: 'pthread_mutex_trylock' undeclared here 
(not in a function)
../../src/gcc/gthr-posix.h:98: warning: type defaults to 'int' in declaration 
of '__gthrw_pthread_mutex_trylock'
../../src/gcc/gthr-posix.h:99: error: 'pthread_mutex_unlock' undeclared here 
(not in a function)
../../src/gcc/gthr-posix.h:99: warning: type defaults to 'int' in declaration 
of '__gthrw_pthread_mutex_unlock'
../../src/gcc/gthr-posix.h:100: error: 'pthread_mutex_init' undeclared here 
(not in a function)
../../src/gcc/gthr-posix.h:100: warning: type defaults to 'int' in declaration 
of '__gthrw_pthread_mutex_init'
../../src/gcc/gthr-posix.h:103: error: 'pthread_key_create' undeclared here 
(not in a function)
../../src/gcc/gthr-posix.h:103: warning: type defaults to 'int' in declaration 
of '__gthrw_pthread_key_create'
../../src/gcc/gthr-posix.h:104: error: 'pthread_key_delete' undeclared here 
(not in a function)
../../src/gcc/gthr-posix.h:104: warning: type defaults to 'int' in declaration 
of '__gthrw_pthread_key_delete'
../../src/gcc/gthr-posix.h:105: error: 'pthread_mutexattr_init' undeclared here 
(not in a function)
../../src/gcc/gthr-posix.h:105: warning: type defaults to 'int' in declaration 
of '__gthrw_pthread_mutexattr_init'
../../src/gcc/gthr-posix.h:106: error: 'pthread_mutexattr_settype' undeclared 
here (not in a function)
../../src/gcc/gthr-posix.h:106: warning: type defaults to 'int' in declaration 
of '__gthrw_pthread_mutexattr_settype'
../../src/gcc/gthr-posix.h:107: error: 'pthread_mutexattr_destroy' undeclared 
here (not in a function)
../../src/gcc/gthr-posix.h:107: warning: type defaults to 'int' in declaration 
of '__gthrw_pthread_mutexattr_destroy'
../../src/gcc/gthr-posix.h:572: error: expected ')' before '*' token
../../src/gcc/gthr-posix.h:581: error: expected ')' before '*' token
../../src/gcc/gthr-posix.h:587: error: expected ')' before 'key'
../../src/gcc/gthr-posix.h:593: error: expected ')' before 'key'
../../src/gcc/gthr-posix.h:599: error: expected ')' before 'key'
../../src/gcc/gthr-posix.h:605: error: expected ')' before '*' token
../../src/gcc/gthr-posix.h:614: error: expected ')' before '*' token
../../src/gcc/gthr-posix.h:623: error: expected ')' before '*' token
../../src/gcc/gthr-posix.h:633: error: expected ')' before '*' token
../../src/gcc/gthr-posix.h:654: error: expected ')' before '*' token
../../src/gcc/gthr-posix.h:660: error: expected ')' before '*' token
../../src/gcc/gthr-posix.h:666: error: expected ')' before '*' token
make[5]: *** [libgcc/./unwind-dw2.o] Error 1
make[5]: Leaving directory `/opt/emdebian/emchain/gcc-4.2-4.2.1/build/gcc'
make[4]: *** [libgcc.a] Error 2
make[4]: Leaving directory `/opt/emdebian/emchain/gcc-4.2-4.2.1/build/gcc'
make[3]: *** [all-gcc] Error 2
make[3]: Leaving directory `/opt/emdebian/emchain/gcc-4.2-4.2.1/build'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/opt/emdebian/emchain/gcc-4.2-4.2.1/build'
s=`cat status`; rm -f status; test $s -eq 0
make[1]: *** [stamps/05-build-stamp] Error 1
make[1]: Leaving directory `/opt/emdebian/emchain/gcc-4.2-4.2.1'
make: *** [stamps/05-build-stamp] Error 2
emchain: Build failed.

This could be a build-dependency problem. If you have any info on
whether this is internal to gcc-4.2 or external to the build
environment, let me know and I'll incorporate those settings into the
script.

-- 


Neil Williams
=============
http://www.data-freedom.org/
http://www.nosoftwarepatents.com/
http://www.linux.codehelp.co.uk/

Attachment: pgp8iQqXQkPzI.pgp
Description: PGP signature

Reply via email to