public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* problem when building gcc 4.3.0
@ 2004-08-16 18:49 Rongjun Lu
  0 siblings, 0 replies; 2+ messages in thread
From: Rongjun Lu @ 2004-08-16 18:49 UTC (permalink / raw)
  To: gcc-help

Dear Sir:

when I build the gcc 4.3.0 for bootloader cross-compiler, the building process failed with pthread errors.Is there any one can tell me why?
Thanks.

I configured the gcc as following:
../build-gcc/configure --target=arm-linux \ >--prefix=/home/lurj/board_tms5471/tools --without-headers --with-newlib \ >--enable-languages=c
 
then make all-gcc

the error are following:
.........
arm-linux-ranlib ./libgcov.a
/home/lurj/board_tms5471/build-tools/build-gcc/gcc/xgcc -B/home/lurj/board_tms5471/build-tools/build-gcc/gcc/ -B//home/lurj/board_tms5471/tools/arm-linux/bin/ -B//home/lurj/board_tms5471/tools/arm-linux/lib/ -isystem //home/lurj/board_tms5471/tools/arm-linux/include -isystem //home/lurj/board_tms5471/tools/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 -I. -I. -I../../gcc-3.4.0/gcc -I../../gcc-3.4.0/gcc/. -I../../gcc-3.4.0/gcc/../include  -fexceptions -c ../../gcc-3.4.0/gcc/unwind-dw2.c -o libgcc/./unwind-dw2.o
In file included from ./gthr-default.h:1,
                 from ../../gcc-3.4.0/gcc/gthr.h:96,
                 from ../../gcc-3.4.0/gcc/unwind-dw2.c:42:
../../gcc-3.4.0/gcc/gthr-posix.h:43:21: pthread.h: No such file or directory
../../gcc-3.4.0/gcc/gthr-posix.h:44:20: unistd.h: No such file or directory
In file included from ./gthr-default.h:1,
                 from ../../gcc-3.4.0/gcc/gthr.h:96,
                 from ../../gcc-3.4.0/gcc/unwind-dw2.c:42:
../../gcc-3.4.0/gcc/gthr-posix.h:46: error: parse error before "__gthread_key_t"
../../gcc-3.4.0/gcc/gthr-posix.h:46: warning: type defaults to `int' in declaration of `__gthread_key_t'
../../gcc-3.4.0/gcc/gthr-posix.h:46: warning: data definition has no type or storage class
../../gcc-3.4.0/gcc/gthr-posix.h:47: error: parse error before "__gthread_once_t"
../../gcc-3.4.0/gcc/gthr-posix.h:47: warning: type defaults to `int' in declaration of `__gthread_once_t'
../../gcc-3.4.0/gcc/gthr-posix.h:47: warning: data definition has no type or storage class
../../gcc-3.4.0/gcc/gthr-posix.h:48: error: parse error before "__gthread_mutex_t"
../../gcc-3.4.0/gcc/gthr-posix.h:48: warning: type defaults to `int' in declaration of `__gthread_mutex_t'
../../gcc-3.4.0/gcc/gthr-posix.h:48: warning: data definition has no type or storage class
../../gcc-3.4.0/gcc/gthr-posix.h: In function `__gthread_active_p':
../../gcc-3.4.0/gcc/gthr-posix.h:96: error: `pthread_create' undeclared (first use in this function)
../../gcc-3.4.0/gcc/gthr-posix.h:96: error: (Each undeclared identifier is reported only once
../../gcc-3.4.0/gcc/gthr-posix.h:96: error: for each function it appears in.)
../../gcc-3.4.0/gcc/gthr-posix.h: At top level:
../../gcc-3.4.0/gcc/gthr-posix.h:456: error: parse error before '*' token
../../gcc-3.4.0/gcc/gthr-posix.h:456: error: parse error before ')' token
../../gcc-3.4.0/gcc/gthr-posix.h:465: error: parse error before '*' token
../../gcc-3.4.0/gcc/gthr-posix.h:465: error: parse error before ')' token
../../gcc-3.4.0/gcc/gthr-posix.h:471: error: parse error before "key"
../../gcc-3.4.0/gcc/gthr-posix.h:472: warning: function declaration isn't a prototype
../../gcc-3.4.0/gcc/gthr-posix.h: In function `__gthread_key_delete':
../../gcc-3.4.0/gcc/gthr-posix.h:472: warning: old-style parameter declaration
../../gcc-3.4.0/gcc/gthr-posix.h:473: warning: implicit declaration of function `pthread_key_delete'
../../gcc-3.4.0/gcc/gthr-posix.h:473: error: `key' undeclared (first use in this function)
../../gcc-3.4.0/gcc/gthr-posix.h: At top level:
../../gcc-3.4.0/gcc/gthr-posix.h:477: error: parse error before "key"
../../gcc-3.4.0/gcc/gthr-posix.h:478: warning: function declaration isn't a prototype
../../gcc-3.4.0/gcc/gthr-posix.h: In function `__gthread_getspecific':
../../gcc-3.4.0/gcc/gthr-posix.h:478: warning: old-style parameter declaration
../../gcc-3.4.0/gcc/gthr-posix.h:479: warning: implicit declaration of function `pthread_getspecific'
../../gcc-3.4.0/gcc/gthr-posix.h:479: error: `key' undeclared (first use in this function)
../../gcc-3.4.0/gcc/gthr-posix.h:479: warning: return makes pointer from integer without a cast
../../gcc-3.4.0/gcc/gthr-posix.h: At top level:
../../gcc-3.4.0/gcc/gthr-posix.h:483: error: parse error before "key"
../../gcc-3.4.0/gcc/gthr-posix.h:484: warning: function declaration isn't a prototype
../../gcc-3.4.0/gcc/gthr-posix.h: In function `__gthread_setspecific':
../../gcc-3.4.0/gcc/gthr-posix.h:484: warning: old-style parameter declaration
../../gcc-3.4.0/gcc/gthr-posix.h:485: warning: implicit declaration of function `pthread_setspecific'
../../gcc-3.4.0/gcc/gthr-posix.h:485: error: `key' undeclared (first use in this function)
../../gcc-3.4.0/gcc/gthr-posix.h:485: error: `ptr' undeclared (first use in this function)
../../gcc-3.4.0/gcc/gthr-posix.h: At top level:
../../gcc-3.4.0/gcc/gthr-posix.h:489: error: parse error before '*' token
../../gcc-3.4.0/gcc/gthr-posix.h:490: warning: function declaration isn't a prototype
../../gcc-3.4.0/gcc/gthr-posix.h: In function `__gthread_mutex_lock':
../../gcc-3.4.0/gcc/gthr-posix.h:490: warning: old-style parameter declaration
../../gcc-3.4.0/gcc/gthr-posix.h:492: warning: implicit declaration of function `pthread_mutex_lock'
../../gcc-3.4.0/gcc/gthr-posix.h:492: error: `mutex' undeclared (first use in this function)
../../gcc-3.4.0/gcc/gthr-posix.h: At top level:
../../gcc-3.4.0/gcc/gthr-posix.h:498: error: parse error before '*' token
../../gcc-3.4.0/gcc/gthr-posix.h:499: warning: function declaration isn't a prototype
../../gcc-3.4.0/gcc/gthr-posix.h: In function `__gthread_mutex_trylock':
../../gcc-3.4.0/gcc/gthr-posix.h:499: warning: old-style parameter declaration
../../gcc-3.4.0/gcc/gthr-posix.h:501: warning: implicit declaration of function `pthread_mutex_trylock'
../../gcc-3.4.0/gcc/gthr-posix.h:501: error: `mutex' undeclared (first use in this function)
../../gcc-3.4.0/gcc/gthr-posix.h: At top level:
../../gcc-3.4.0/gcc/gthr-posix.h:507: error: parse error before '*' token
../../gcc-3.4.0/gcc/gthr-posix.h:508: warning: function declaration isn't a prototype
../../gcc-3.4.0/gcc/gthr-posix.h: In function `__gthread_mutex_unlock':
../../gcc-3.4.0/gcc/gthr-posix.h:508: warning: old-style parameter declaration
../../gcc-3.4.0/gcc/gthr-posix.h:510: warning: implicit declaration of function `pthread_mutex_unlock'
../../gcc-3.4.0/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 `/home/lurj/board_tms5471/build-tools/build-gcc/gcc'
make[1]: *** [libgcc.a] Error 2
make[1]: Leaving directory `/home/lurj/board_tms5471/build-tools/build-gcc/gcc'
make: *** [all-gcc] Error 2


^ permalink raw reply	[flat|nested] 2+ messages in thread

* RE: problem when building gcc 4.3.0
@ 2004-08-16 19:24 lrtaylor
  0 siblings, 0 replies; 2+ messages in thread
From: lrtaylor @ 2004-08-16 19:24 UTC (permalink / raw)
  To: Rongjun.Lu, gcc-help

Have you tried the configure option for disabling thread support?

--disable-threads

Just a thought - don't know if it will actually help in this case,
though...

Thanks,
Lyle


-----Original Message-----
From: gcc-help-owner@gcc.gnu.org [mailto:gcc-help-owner@gcc.gnu.org] On
Behalf Of Rongjun Lu
Sent: Monday, August 16, 2004 11:05 AM
To: gcc-help@gcc.gnu.org
Subject: problem when building gcc 4.3.0

Dear Sir:

when I build the gcc 4.3.0 for bootloader cross-compiler, the building
process failed with pthread errors.Is there any one can tell me why?
Thanks.

I configured the gcc as following:
../build-gcc/configure --target=arm-linux \
>--prefix=/home/lurj/board_tms5471/tools --without-headers --with-newlib
\ >--enable-languages=c
 
then make all-gcc

the error are following:
.........
arm-linux-ranlib ./libgcov.a
/home/lurj/board_tms5471/build-tools/build-gcc/gcc/xgcc
-B/home/lurj/board_tms5471/build-tools/build-gcc/gcc/
-B//home/lurj/board_tms5471/tools/arm-linux/bin/
-B//home/lurj/board_tms5471/tools/arm-linux/lib/ -isystem
//home/lurj/board_tms5471/tools/arm-linux/include -isystem
//home/lurj/board_tms5471/tools/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 -I. -I. -I../../gcc-3.4.0/gcc
-I../../gcc-3.4.0/gcc/. -I../../gcc-3.4.0/gcc/../include  -fexceptions
-c ../../gcc-3.4.0/gcc/unwind-dw2.c -o libgcc/./unwind-dw2.o
In file included from ./gthr-default.h:1,
                 from ../../gcc-3.4.0/gcc/gthr.h:96,
                 from ../../gcc-3.4.0/gcc/unwind-dw2.c:42:
../../gcc-3.4.0/gcc/gthr-posix.h:43:21: pthread.h: No such file or
directory
../../gcc-3.4.0/gcc/gthr-posix.h:44:20: unistd.h: No such file or
directory
In file included from ./gthr-default.h:1,
                 from ../../gcc-3.4.0/gcc/gthr.h:96,
                 from ../../gcc-3.4.0/gcc/unwind-dw2.c:42:
../../gcc-3.4.0/gcc/gthr-posix.h:46: error: parse error before
"__gthread_key_t"
../../gcc-3.4.0/gcc/gthr-posix.h:46: warning: type defaults to `int' in
declaration of `__gthread_key_t'
../../gcc-3.4.0/gcc/gthr-posix.h:46: warning: data definition has no
type or storage class
../../gcc-3.4.0/gcc/gthr-posix.h:47: error: parse error before
"__gthread_once_t"
../../gcc-3.4.0/gcc/gthr-posix.h:47: warning: type defaults to `int' in
declaration of `__gthread_once_t'
../../gcc-3.4.0/gcc/gthr-posix.h:47: warning: data definition has no
type or storage class
../../gcc-3.4.0/gcc/gthr-posix.h:48: error: parse error before
"__gthread_mutex_t"
../../gcc-3.4.0/gcc/gthr-posix.h:48: warning: type defaults to `int' in
declaration of `__gthread_mutex_t'
../../gcc-3.4.0/gcc/gthr-posix.h:48: warning: data definition has no
type or storage class
../../gcc-3.4.0/gcc/gthr-posix.h: In function `__gthread_active_p':
../../gcc-3.4.0/gcc/gthr-posix.h:96: error: `pthread_create' undeclared
(first use in this function)
../../gcc-3.4.0/gcc/gthr-posix.h:96: error: (Each undeclared identifier
is reported only once
../../gcc-3.4.0/gcc/gthr-posix.h:96: error: for each function it appears
in.)
../../gcc-3.4.0/gcc/gthr-posix.h: At top level:
../../gcc-3.4.0/gcc/gthr-posix.h:456: error: parse error before '*'
token
../../gcc-3.4.0/gcc/gthr-posix.h:456: error: parse error before ')'
token
../../gcc-3.4.0/gcc/gthr-posix.h:465: error: parse error before '*'
token
../../gcc-3.4.0/gcc/gthr-posix.h:465: error: parse error before ')'
token
../../gcc-3.4.0/gcc/gthr-posix.h:471: error: parse error before "key"
../../gcc-3.4.0/gcc/gthr-posix.h:472: warning: function declaration
isn't a prototype
../../gcc-3.4.0/gcc/gthr-posix.h: In function `__gthread_key_delete':
../../gcc-3.4.0/gcc/gthr-posix.h:472: warning: old-style parameter
declaration
../../gcc-3.4.0/gcc/gthr-posix.h:473: warning: implicit declaration of
function `pthread_key_delete'
../../gcc-3.4.0/gcc/gthr-posix.h:473: error: `key' undeclared (first use
in this function)
../../gcc-3.4.0/gcc/gthr-posix.h: At top level:
../../gcc-3.4.0/gcc/gthr-posix.h:477: error: parse error before "key"
../../gcc-3.4.0/gcc/gthr-posix.h:478: warning: function declaration
isn't a prototype
../../gcc-3.4.0/gcc/gthr-posix.h: In function `__gthread_getspecific':
../../gcc-3.4.0/gcc/gthr-posix.h:478: warning: old-style parameter
declaration
../../gcc-3.4.0/gcc/gthr-posix.h:479: warning: implicit declaration of
function `pthread_getspecific'
../../gcc-3.4.0/gcc/gthr-posix.h:479: error: `key' undeclared (first use
in this function)
../../gcc-3.4.0/gcc/gthr-posix.h:479: warning: return makes pointer from
integer without a cast
../../gcc-3.4.0/gcc/gthr-posix.h: At top level:
../../gcc-3.4.0/gcc/gthr-posix.h:483: error: parse error before "key"
../../gcc-3.4.0/gcc/gthr-posix.h:484: warning: function declaration
isn't a prototype
../../gcc-3.4.0/gcc/gthr-posix.h: In function `__gthread_setspecific':
../../gcc-3.4.0/gcc/gthr-posix.h:484: warning: old-style parameter
declaration
../../gcc-3.4.0/gcc/gthr-posix.h:485: warning: implicit declaration of
function `pthread_setspecific'
../../gcc-3.4.0/gcc/gthr-posix.h:485: error: `key' undeclared (first use
in this function)
../../gcc-3.4.0/gcc/gthr-posix.h:485: error: `ptr' undeclared (first use
in this function)
../../gcc-3.4.0/gcc/gthr-posix.h: At top level:
../../gcc-3.4.0/gcc/gthr-posix.h:489: error: parse error before '*'
token
../../gcc-3.4.0/gcc/gthr-posix.h:490: warning: function declaration
isn't a prototype
../../gcc-3.4.0/gcc/gthr-posix.h: In function `__gthread_mutex_lock':
../../gcc-3.4.0/gcc/gthr-posix.h:490: warning: old-style parameter
declaration
../../gcc-3.4.0/gcc/gthr-posix.h:492: warning: implicit declaration of
function `pthread_mutex_lock'
../../gcc-3.4.0/gcc/gthr-posix.h:492: error: `mutex' undeclared (first
use in this function)
../../gcc-3.4.0/gcc/gthr-posix.h: At top level:
../../gcc-3.4.0/gcc/gthr-posix.h:498: error: parse error before '*'
token
../../gcc-3.4.0/gcc/gthr-posix.h:499: warning: function declaration
isn't a prototype
../../gcc-3.4.0/gcc/gthr-posix.h: In function `__gthread_mutex_trylock':
../../gcc-3.4.0/gcc/gthr-posix.h:499: warning: old-style parameter
declaration
../../gcc-3.4.0/gcc/gthr-posix.h:501: warning: implicit declaration of
function `pthread_mutex_trylock'
../../gcc-3.4.0/gcc/gthr-posix.h:501: error: `mutex' undeclared (first
use in this function)
../../gcc-3.4.0/gcc/gthr-posix.h: At top level:
../../gcc-3.4.0/gcc/gthr-posix.h:507: error: parse error before '*'
token
../../gcc-3.4.0/gcc/gthr-posix.h:508: warning: function declaration
isn't a prototype
../../gcc-3.4.0/gcc/gthr-posix.h: In function `__gthread_mutex_unlock':
../../gcc-3.4.0/gcc/gthr-posix.h:508: warning: old-style parameter
declaration
../../gcc-3.4.0/gcc/gthr-posix.h:510: warning: implicit declaration of
function `pthread_mutex_unlock'
../../gcc-3.4.0/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
`/home/lurj/board_tms5471/build-tools/build-gcc/gcc'
make[1]: *** [libgcc.a] Error 2
make[1]: Leaving directory
`/home/lurj/board_tms5471/build-tools/build-gcc/gcc'
make: *** [all-gcc] Error 2


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-08-16 17:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-08-16 18:49 problem when building gcc 4.3.0 Rongjun Lu
2004-08-16 19:24 lrtaylor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).