This is the mail archive of the gcc@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]

help with gcc-3.3.2 for ARM


Hello everybody,

I am having problems building gcc-3.3.2 for ARM.

This is the toolchain versions I am using:

binutils version=2.14;

gcc version=3.3.2;

newlib version=1.11.0;

and these are the instructions I have run:

mkdir build-binutils

cd build-binutils

../binutils-2.14/configure --target=arm-linux
--prefix=/usr/local/arm --host=i686-pc-linux-gnu

export PATH=$PATH:/usr/local/arm/bin

cd ..

tar xvfz newlib-1.11.0.tar.gz

tar --bzip2 -xvf gcc-3.3.2.tar.bz2

mkdir build-gcc

cd build-gcc

../gcc-3.3.2/configure --target=arm-linux
--prefix=/usr/local/arm --host=i686-pc-linux-gnu
--with-newlib
--with-headers=../newlib-1.11.0/newlib/libc/include

Please, I need help because I am really stuck with
this.

Regards,

Aitor

This is the error message I get:

In file included from
../../gcc-3.3.2/gcc/unwind-dw2.c:26:

../../gcc-3.3.2/gcc/unwind-pe.h: In function
`size_of_encoded_value':

../../gcc-3.3.2/gcc/unwind-pe.h:76: warning: implicit
declaration of function `abort'

In file included from gthr-default.h:1,

from ../../gcc-3.3.2/gcc/gthr.h:98,

from ../../gcc-3.3.2/gcc/unwind-dw2.c:28:

../../gcc-3.3.2/gcc/gthr-posix.h: At top level:

../../gcc-3.3.2/gcc/gthr-posix.h:40: error: parse
error before "__gthread_key_t"

../../gcc-3.3.2/gcc/gthr-posix.h:40: warning: type
defaults to `int' in declaration of `__gthread_key_t'

../../gcc-3.3.2/gcc/gthr-posix.h:40: warning: data
definition has no type or storage class

../../gcc-3.3.2/gcc/gthr-posix.h:41: error: parse
error before "__gthread_once_t"

../../gcc-3.3.2/gcc/gthr-posix.h:41: warning: type
defaults to `int' in declaration of `__gthread_once_t'

../../gcc-3.3.2/gcc/gthr-posix.h:41: warning: data
definition has no type or storage class

../../gcc-3.3.2/gcc/gthr-posix.h:42: error: parse
error before "__gthread_mutex_t"

../../gcc-3.3.2/gcc/gthr-posix.h:42: warning: type
defaults to `int' in declaration of
`__gthread_mutex_t'

../../gcc-3.3.2/gcc/gthr-posix.h:42: warning: data
definition has no type or storage class

../../gcc-3.3.2/gcc/gthr-posix.h: In function
`__gthread_active_p':

../../gcc-3.3.2/gcc/gthr-posix.h:90: error:
`pthread_create' undeclared (first use in this
function)

../../gcc-3.3.2/gcc/gthr-posix.h:90: error: (Each
undeclared identifier is reported only once

../../gcc-3.3.2/gcc/gthr-posix.h:90: error: for each
function it appears in.)

../../gcc-3.3.2/gcc/gthr-posix.h: At top level:

../../gcc-3.3.2/gcc/gthr-posix.h:450: error: parse
error before '*' token

../../gcc-3.3.2/gcc/gthr-posix.h:450: error: parse
error before ')' token

../../gcc-3.3.2/gcc/gthr-posix.h:459: error: parse
error before '*' token

../../gcc-3.3.2/gcc/gthr-posix.h:459: error: parse
error before ')' token

../../gcc-3.3.2/gcc/gthr-posix.h:465: error: parse
error before "key"

../../gcc-3.3.2/gcc/gthr-posix.h:466: warning:
function declaration isn't a prototype

../../gcc-3.3.2/gcc/gthr-posix.h: In function
`__gthread_key_dtor':

../../gcc-3.3.2/gcc/gthr-posix.h:468: error: `ptr'
undeclared (first use in this function)

../../gcc-3.3.2/gcc/gthr-posix.h:469: warning:
implicit declaration of function `pthread_setspecific'

../../gcc-3.3.2/gcc/gthr-posix.h:469: error: `key'
undeclared (first use in this function)

../../gcc-3.3.2/gcc/gthr-posix.h: At top level:

../../gcc-3.3.2/gcc/gthr-posix.h:475: error: parse
error before "key"

../../gcc-3.3.2/gcc/gthr-posix.h:476: warning:
function declaration isn't a prototype

../../gcc-3.3.2/gcc/gthr-posix.h: In function
`__gthread_key_delete':

../../gcc-3.3.2/gcc/gthr-posix.h:477: warning:
implicit declaration of function `pthread_key_delete'

../../gcc-3.3.2/gcc/gthr-posix.h:477: error: `key'
undeclared (first use in this function)

../../gcc-3.3.2/gcc/gthr-posix.h: At top level:

../../gcc-3.3.2/gcc/gthr-posix.h:481: error: parse
error before "key"

../../gcc-3.3.2/gcc/gthr-posix.h:482: warning:
function declaration isn't a prototype

../../gcc-3.3.2/gcc/gthr-posix.h: In function
`__gthread_getspecific':

../../gcc-3.3.2/gcc/gthr-posix.h:483: warning:
implicit declaration of function `pthread_getspecific'

../../gcc-3.3.2/gcc/gthr-posix.h:483: error: `key'
undeclared (first use in this function)

../../gcc-3.3.2/gcc/gthr-posix.h:483: warning: return
makes pointer from integer without a cast

../../gcc-3.3.2/gcc/gthr-posix.h: At top level:

../../gcc-3.3.2/gcc/gthr-posix.h:487: error: parse
error before "key"

../../gcc-3.3.2/gcc/gthr-posix.h:488: warning:
function declaration isn't a prototype

../../gcc-3.3.2/gcc/gthr-posix.h: In function
`__gthread_setspecific':

../../gcc-3.3.2/gcc/gthr-posix.h:489: error: `key'
undeclared (first use in this function)

../../gcc-3.3.2/gcc/gthr-posix.h:489: error: `ptr'
undeclared (first use in this function)

../../gcc-3.3.2/gcc/gthr-posix.h: At top level:

../../gcc-3.3.2/gcc/gthr-posix.h:493: error: parse
error before '*' token

../../gcc-3.3.2/gcc/gthr-posix.h:494: warning:
function declaration isn't a prototype

../../gcc-3.3.2/gcc/gthr-posix.h: In function
`__gthread_mutex_lock':

../../gcc-3.3.2/gcc/gthr-posix.h:496: warning:
implicit declaration of function `pthread_mutex_lock'

../../gcc-3.3.2/gcc/gthr-posix.h:496: error: `mutex'
undeclared (first use in this function)

../../gcc-3.3.2/gcc/gthr-posix.h: At top level:

../../gcc-3.3.2/gcc/gthr-posix.h:502: error: parse
error before '*' token

../../gcc-3.3.2/gcc/gthr-posix.h:503: warning:
function declaration isn't a prototype

../../gcc-3.3.2/gcc/gthr-posix.h: In function
`__gthread_mutex_trylock':

../../gcc-3.3.2/gcc/gthr-posix.h:505: warning:
implicit declaration of function
`pthread_mutex_trylock'

../../gcc-3.3.2/gcc/gthr-posix.h:505: error: `mutex'
undeclared (first use in this function)

../../gcc-3.3.2/gcc/gthr-posix.h: At top level:

../../gcc-3.3.2/gcc/gthr-posix.h:511: error: parse
error before '*' token

../../gcc-3.3.2/gcc/gthr-posix.h:512: warning:
function declaration isn't a prototype

../../gcc-3.3.2/gcc/gthr-posix.h: In function
`__gthread_mutex_unlock':

../../gcc-3.3.2/gcc/gthr-posix.h:514: warning:
implicit declaration of function
`pthread_mutex_unlock'

../../gcc-3.3.2/gcc/gthr-posix.h:514: error: `mutex'
undeclared (first use in this function)

../../gcc-3.3.2/gcc/unwind-dw2.c: At top level:

../../gcc-3.3.2/gcc/unwind-pe.h:61: warning:
`size_of_encoded_value' defined but not used

make[2]: *** [libgcc/./unwind-dw2.o] Error 1

make[2]: Leaving directory
`/root/toolchain/build-gcc/gcc'

make[1]: *** [libgcc.a] Error 2

make[1]: Leaving directory
`/root/toolchain/build-gcc/gcc'

make: *** [all-gcc] Error 2



__________________________________
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
http://companion.yahoo.com/


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