This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
RE: FW: GCC Cross Compiler for cygwin
- From: "Amir Fuhrmann" <afuhrmann at thx dot com>
- To: "James E Wilson" <wilson at specifixinc dot com>
- Cc: <gcc at gcc dot gnu dot org>
- Date: Thu, 28 Apr 2005 09:53:01 -0700
- Subject: RE: FW: GCC Cross Compiler for cygwin
Definitely helps!! but into the next problem, again, any help would be appreciated.
Amir
Configuring in powerpc-eabi/libiberty
configure: creating cache ./config.cache
checking whether to enable maintainer-specific portions of Makefiles... no
checking for makeinfo... makeinfo
checking for perl... perl
checking build system type... i686-pc-linux-gnu
checking host system type... powerpc-unknown-eabi
checking for powerpc-eabi-ar... ppc-ar
checking for powerpc-eabi-ranlib... ppc-ranlib
checking for powerpc-eabi-gcc... /home/afuhrmann/gcc/BUILD/gcc/gcc/xgcc -B/home/afuhrmann/gcc/BUILD/gcc/gcc/ -B/usr/local/powerpc-eabi/bin/ -B/usr/local/powerpc-eabi/lib/ -isystem /usr/local/powerpc-eabi/include -isystem /usr/local/powerpc-eabi/sys-include
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether /home/afuhrmann/gcc/BUILD/gcc/gcc/xgcc -B/home/afuhrmann/gcc/BUILD/gcc/gcc/ -B/usr/local/powerpc-eabi/bin/ -B/usr/local/powerpc-eabi/lib/ -isystem /usr/local/powerpc-eabi/include -isystem /usr/local/powerpc-eabi/sys-include accepts -g... yes
checking for /home/afuhrmann/gcc/BUILD/gcc/gcc/xgcc -B/home/afuhrmann/gcc/BUILD/gcc/gcc/ -B/usr/local/powerpc-eabi/bin/ -B/usr/local/powerpc-eabi/lib/ -isystem /usr/local/powerpc-eabi/include -isystem /usr/local/powerpc-eabi/sys-include option to accept ANSI C... none needed
checking how to run the C preprocessor... /home/afuhrmann/gcc/BUILD/gcc/gcc/xgcc -B/home/afuhrmann/gcc/BUILD/gcc/gcc/ -B/usr/local/powerpc-eabi/bin/ -B/usr/local/powerpc-eabi/lib/ -isystem /usr/local/powerpc-eabi/include -isystem /usr/local/powerpc-eabi/sys-include -E
checking whether /home/afuhrmann/gcc/BUILD/gcc/gcc/xgcc -B/home/afuhrmann/gcc/BUILD/gcc/gcc/ -B/usr/local/powerpc-eabi/bin/ -B/usr/local/powerpc-eabi/lib/ -isystem /usr/local/powerpc-eabi/include -isystem /usr/local/powerpc-eabi/sys-include and cc understand -c and -o together... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking whether byte ordering is bigendian... cross-compiling...
unknown
checking to probe for byte ordering... /usr/local/powerpc-eabi/bin/ld: warning: cannot find entry symbol _start; defaulting to 01800074
/home/afuhrmann/gcc/BUILD/gcc/gcc/libgcc.a(eabi.o)(.text+0xc4): In function `__eabi':
/home/afuhrmann/gcc/BUILD/gcc/gcc/eabi.S:232: undefined reference to `__init'
/home/afuhrmann/gcc/BUILD/gcc/gcc/libgcc.a(eabi.o)(.got2+0x8):/home/afuhrmann/gcc/BUILD/gcc/gcc/eabi.S:146: undefined reference to `__SDATA_START__'
/home/afuhrmann/gcc/BUILD/gcc/gcc/libgcc.a(eabi.o)(.got2+0xc):/home/afuhrmann/gcc/BUILD/gcc/gcc/eabi.S:148: undefined reference to `__SBSS_END__'
/home/afuhrmann/gcc/BUILD/gcc/gcc/libgcc.a(eabi.o)(.got2+0x14):/home/afuhrmann/gcc/BUILD/gcc/gcc/eabi.S:150: undefined reference to `__SDATA2_START__'
/home/afuhrmann/gcc/BUILD/gcc/gcc/libgcc.a(eabi.o)(.got2+0x18):/home/afuhrmann/gcc/BUILD/gcc/gcc/eabi.S:151: undefined reference to `__SBSS2_END__'
/home/afuhrmann/gcc/BUILD/gcc/gcc/libgcc.a(eabi.o)(.got2+0x1c):/home/afuhrmann/gcc/BUILD/gcc/gcc/eabi.S:152: undefined reference to `__GOT_START__'
/home/afuhrmann/gcc/BUILD/gcc/gcc/libgcc.a(eabi.o)(.got2+0x28):/home/afuhrmann/gcc/BUILD/gcc/gcc/eabi.S:155: undefined reference to `__GOT_END__'
/home/afuhrmann/gcc/BUILD/gcc/gcc/libgcc.a(eabi.o)(.got2+0x2c):/home/afuhrmann/gcc/BUILD/gcc/gcc/eabi.S:156: undefined reference to `__GOT2_START__'
/home/afuhrmann/gcc/BUILD/gcc/gcc/libgcc.a(eabi.o)(.got2+0x30):/home/afuhrmann/gcc/BUILD/gcc/gcc/eabi.S:157: undefined reference to `__GOT2_END__'
/home/afuhrmann/gcc/BUILD/gcc/gcc/libgcc.a(eabi.o)(.got2+0x34):/home/afuhrmann/gcc/BUILD/gcc/gcc/eabi.S:158: undefined reference to `__FIXUP_START__'
/home/afuhrmann/gcc/BUILD/gcc/gcc/libgcc.a(eabi.o)(.got2+0x38):/home/afuhrmann/gcc/BUILD/gcc/gcc/eabi.S:159: undefined reference to `__FIXUP_END__'
/home/afuhrmann/gcc/BUILD/gcc/gcc/libgcc.a(eabi.o)(.got2+0x3c):/home/afuhrmann/gcc/BUILD/gcc/gcc/eabi.S:163: undefined reference to `__CTOR_LIST__'
/home/afuhrmann/gcc/BUILD/gcc/gcc/libgcc.a(eabi.o)(.got2+0x40):/home/afuhrmann/gcc/BUILD/gcc/gcc/eabi.S:164: undefined reference to `__CTOR_END__'
/home/afuhrmann/gcc/BUILD/gcc/gcc/libgcc.a(eabi.o)(.got2+0x44):/home/afuhrmann/gcc/BUILD/gcc/gcc/eabi.S:165: undefined reference to `__DTOR_LIST__'
/home/afuhrmann/gcc/BUILD/gcc/gcc/libgcc.a(eabi.o)(.got2+0x48):/home/afuhrmann/gcc/BUILD/gcc/gcc/eabi.S:166: undefined reference to `__DTOR_END__'
/home/afuhrmann/gcc/BUILD/gcc/gcc/libgcc.a(eabi.o)(.got2+0x4c):/home/afuhrmann/gcc/BUILD/gcc/gcc/eabi.S:167: undefined reference to `__EXCEPT_START__'
/home/afuhrmann/gcc/BUILD/gcc/gcc/libgcc.a(eabi.o)(.got2+0x50):/home/afuhrmann/gcc/BUILD/gcc/gcc/eabi.S:171: undefined reference to `__EXCEPT_END__'
collect2: ld returned 1 exit status
unknown
configure: error: unknown endianess - sorry
/home/afuhrmann/gcc/gcc-3.4.3/libiberty/configure: line 3289: exit: please: numeric argument required
/home/afuhrmann/gcc/gcc-3.4.3/libiberty/configure: line 3289: exit: please: numeric argument required
make: *** [configure-target-libiberty] Error 1
-----Original Message-----
From: James E Wilson [mailto:wilson@specifixinc.com]
Sent: Wed 4/27/2005 7:18 PM
To: Amir Fuhrmann
Cc: gcc@gcc.gnu.org
Subject: Re: FW: GCC Cross Compiler for cygwin
Amir Fuhrmann wrote:
> ../gcc-3.4.3/configure --exec-prefix=/usr/local --program-prefix=ppc-
> --with-stabs -with-cpu=603 --target=powerpc-eabi --with-gnu-as=ppc-as
> --with-gnu-ld=ppc-ld --enable-languages=c,c++
Try adding --with-newlib. You either have to use a combined tree so
that newlib will be auto-detected, or or else explicitly tell configure
that your target "OS" is newlib. We need to know the target OS in order
to configure target libraries correctly.
The powerpc-unknown-eabi suggestion is nonsense. Ignore it.
The suggestion to look at Dan Kegel's crosstool is a good one, but
crosstool only handles cross compilers to linux, and hence isn't
relevant here.
--
Jim Wilson, GNU Tools Support, http://www.SpecifixInc.com