This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/14275] New: Problem building gcc3.3.3 x86_64 cross-compiler


I first built binutils-2.14 as cross-platform from i686 to x86_64, then I tried 
to build a gcc-3.3.3 cross-compiler from i686 to x86_64.  I ran 'make'.  
Everything went fine until around here: 
 
In file included from gthr-default.h:1, 
                 from /root/gcc-3.3.3/gcc/gthr.h:98, 
                 from /root/gcc-3.3.3/gcc/unwind-dw2.c:28: 
/root/gcc-3.3.3/gcc/gthr-posix.h:37:21: pthread.h: No such file or directory 
/root/gcc-3.3.3/gcc/gthr-posix.h:38:20: unistd.h: No such file or directory 
In file included from gthr-default.h:1, 
                 from /root/gcc-3.3.3/gcc/gthr.h:98, 
                 from /root/gcc-3.3.3/gcc/unwind-dw2.c:28: 
/root/gcc-3.3.3/gcc/gthr-posix.h: At top level: 
/root/gcc-3.3.3/gcc/gthr-posix.h:40: error: parse error before 
"__gthread_key_t" 
/root/gcc-3.3.3/gcc/gthr-posix.h:40: warning: type defaults to `int' in 
declaration of `__gthread_key_t' 
/root/gcc-3.3.3/gcc/gthr-posix.h:40: warning: data definition has no type or 
storage class 
/root/gcc-3.3.3/gcc/gthr-posix.h:41: error: parse error before 
"__gthread_once_t" 
/root/gcc-3.3.3/gcc/gthr-posix.h:41: warning: type defaults to `int' in 
declaration of `__gthread_once_t' 
/root/gcc-3.3.3/gcc/gthr-posix.h:41: warning: data definition has no type or 
storage class 
/root/gcc-3.3.3/gcc/gthr-posix.h:42: error: parse error before 
"__gthread_mutex_t" 
/root/gcc-3.3.3/gcc/gthr-posix.h:42: warning: type defaults to `int' in 
declaration of `__gthread_mutex_t' 
/root/gcc-3.3.3/gcc/gthr-posix.h:42: warning: data definition has no type or 
storage class 
/root/gcc-3.3.3/gcc/gthr-posix.h: In function `__gthread_active_p': 
/root/gcc-3.3.3/gcc/gthr-posix.h:90: error: `pthread_create' undeclared (first 
use in this function) 
/root/gcc-3.3.3/gcc/gthr-posix.h:90: error: (Each undeclared identifier is 
reported only once 
/root/gcc-3.3.3/gcc/gthr-posix.h:90: error: for each function it appears in.) 
/root/gcc-3.3.3/gcc/gthr-posix.h: At top level: 
/root/gcc-3.3.3/gcc/gthr-posix.h:450: error: parse error before '*' token 
/root/gcc-3.3.3/gcc/gthr-posix.h:450: error: parse error before ')' token 
/root/gcc-3.3.3/gcc/gthr-posix.h:459: error: parse error before '*' token 
/root/gcc-3.3.3/gcc/gthr-posix.h:459: error: parse error before ')' token 
/root/gcc-3.3.3/gcc/gthr-posix.h:465: error: parse error before "key" 
/root/gcc-3.3.3/gcc/gthr-posix.h:466: warning: function declaration isn't a 
prototype 
/root/gcc-3.3.3/gcc/gthr-posix.h: In function `__gthread_key_dtor': 
/root/gcc-3.3.3/gcc/gthr-posix.h:468: error: `ptr' undeclared (first use in 
this function) 
/root/gcc-3.3.3/gcc/gthr-posix.h:469: warning: implicit declaration of function 
`pthread_setspecific' 
/root/gcc-3.3.3/gcc/gthr-posix.h:469: error: `key' undeclared (first use in 
this function) 
/root/gcc-3.3.3/gcc/gthr-posix.h: At top level: 
/root/gcc-3.3.3/gcc/gthr-posix.h:475: error: parse error before "key" 
/root/gcc-3.3.3/gcc/gthr-posix.h:476: warning: function declaration isn't a 
prototype 
/root/gcc-3.3.3/gcc/gthr-posix.h: In function `__gthread_key_delete': 
/root/gcc-3.3.3/gcc/gthr-posix.h:477: warning: implicit declaration of function 
`pthread_key_delete' 
/root/gcc-3.3.3/gcc/gthr-posix.h:477: error: `key' undeclared (first use in 
this function) 
/root/gcc-3.3.3/gcc/gthr-posix.h: At top level: 
/root/gcc-3.3.3/gcc/gthr-posix.h:481: error: parse error before "key" 
/root/gcc-3.3.3/gcc/gthr-posix.h:482: warning: function declaration isn't a 
prototype 
/root/gcc-3.3.3/gcc/gthr-posix.h: In function `__gthread_getspecific': 
/root/gcc-3.3.3/gcc/gthr-posix.h:483: warning: implicit declaration of function 
`pthread_getspecific' 
/root/gcc-3.3.3/gcc/gthr-posix.h:483: error: `key' undeclared (first use in 
this function) 
/root/gcc-3.3.3/gcc/gthr-posix.h:483: warning: return makes pointer from 
integer without a cast 
/root/gcc-3.3.3/gcc/gthr-posix.h: At top level: 
/root/gcc-3.3.3/gcc/gthr-posix.h:487: error: parse error before "key" 
/root/gcc-3.3.3/gcc/gthr-posix.h:488: warning: function declaration isn't a 
prototype 
/root/gcc-3.3.3/gcc/gthr-posix.h: In function `__gthread_setspecific': 
/root/gcc-3.3.3/gcc/gthr-posix.h:489: error: `key' undeclared (first use in 
this function) 
/root/gcc-3.3.3/gcc/gthr-posix.h:489: error: `ptr' undeclared (first use in 
this function) 
/root/gcc-3.3.3/gcc/gthr-posix.h: At top level: 
/root/gcc-3.3.3/gcc/gthr-posix.h:493: error: parse error before '*' token 
/root/gcc-3.3.3/gcc/gthr-posix.h:494: warning: function declaration isn't a 
prototype 
/root/gcc-3.3.3/gcc/gthr-posix.h: In function `__gthread_mutex_lock': 
/root/gcc-3.3.3/gcc/gthr-posix.h:496: warning: implicit declaration of function 
`pthread_mutex_lock' 
/root/gcc-3.3.3/gcc/gthr-posix.h:496: error: `mutex' undeclared (first use in 
this function) 
/root/gcc-3.3.3/gcc/gthr-posix.h: At top level: 
/root/gcc-3.3.3/gcc/gthr-posix.h:502: error: parse error before '*' token 
/root/gcc-3.3.3/gcc/gthr-posix.h:503: warning: function declaration isn't a 
prototype 
/root/gcc-3.3.3/gcc/gthr-posix.h: In function `__gthread_mutex_trylock': 
/root/gcc-3.3.3/gcc/gthr-posix.h:505: warning: implicit declaration of function 
`pthread_mutex_trylock' 
/root/gcc-3.3.3/gcc/gthr-posix.h:505: error: `mutex' undeclared (first use in 
this function) 
/root/gcc-3.3.3/gcc/gthr-posix.h: At top level: 
/root/gcc-3.3.3/gcc/gthr-posix.h:511: error: parse error before '*' token 
/root/gcc-3.3.3/gcc/gthr-posix.h:512: warning: function declaration isn't a 
prototype 
/root/gcc-3.3.3/gcc/gthr-posix.h: In function `__gthread_mutex_unlock': 
/root/gcc-3.3.3/gcc/gthr-posix.h:514: warning: implicit declaration of function 
`pthread_mutex_unlock' 
/root/gcc-3.3.3/gcc/gthr-posix.h:514: error: `mutex' undeclared (first use in 
this function) 
/root/gcc-3.3.3/gcc/unwind-dw2.c: In function `extract_cie_info': 
/root/gcc-3.3.3/gcc/unwind-dw2.c:247: warning: implicit declaration of function 
`strlen' 
/root/gcc-3.3.3/gcc/unwind-dw2.c: In function `uw_frame_state_for': 
/root/gcc-3.3.3/gcc/unwind-dw2.c:928: warning: implicit declaration of function 
`memset' 
/root/gcc-3.3.3/gcc/unwind-dw2.c: In function `uw_install_context_1': 
/root/gcc-3.3.3/gcc/unwind-dw2.c:1222: error: syntax error before 
"once_regsizes" 
/root/gcc-3.3.3/gcc/unwind-dw2.c:1223: warning: implicit declaration of 
function `__gthread_once' 
/root/gcc-3.3.3/gcc/unwind-dw2.c:1223: error: `once_regsizes' undeclared (first 
use in this function) 
/root/gcc-3.3.3/gcc/unwind-dw2.c:1237: warning: implicit declaration of 
function `memcpy' 
make[2]: *** [libgcc/./unwind-dw2.o] Error 1 
make[2]: Leaving directory `/root/gcc-3.3.3-obj64/gcc' 
make[1]: *** [stmp-multilib] Error 2 
make[1]: Leaving directory `/root/gcc-3.3.3-obj64/gcc' 
make: *** [all-gcc] Error 2

-- 
           Summary: Problem building gcc3.3.3 x86_64 cross-compiler
           Product: gcc
           Version: 3.3.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: target
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jasonar79 at yahoo dot com
                CC: gcc-bugs at gcc dot gnu dot org
  GCC host triplet: i686-linux-gnu
GCC target triplet: x86_64-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14275


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]