public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* help with gcc-3.3.2 for ARM
@ 2003-11-28 12:53 Aitor Garcia
  0 siblings, 0 replies; 2+ messages in thread
From: Aitor Garcia @ 2003-11-28 12:53 UTC (permalink / raw)
  To: gcc

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/

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

* re: help with gcc-3.3.2 for ARM
@ 2003-11-28 17:11 Dan Kegel
  0 siblings, 0 replies; 2+ messages in thread
From: Dan Kegel @ 2003-11-28 17:11 UTC (permalink / raw)
  To: Aitor Garcia, GCC Mailing List

Aitor Garcia <carrierphasejitter@yahoo.com> wrote:
wrote:
> 
> 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
> ...
> ../../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"

You should try asking on the crossgcc or etux mailing lists;
they're quite good at debugging this kind of stuff.
Only problems I see are
  * your target should be arm-elf or something like that, not arm-linux
  * you might want to try adding
         --enable-threads=no
to the gcc configure line.

FWIW, http://darkfader.net/toolbox/files/building%20GCC%20toolkit.txt
is a random google hit showing these two suggestions in action, I think.
- Dan



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

end of thread, other threads:[~2003-11-28 15:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-11-28 12:53 help with gcc-3.3.2 for ARM Aitor Garcia
2003-11-28 17:11 Dan Kegel

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).