This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
cross-compilation, deprecated option and libgcc
- From: "Vincent R." <forumer at smartmobili dot com>
- To: gcc at gcc dot gnu dot org
- Date: Mon, 26 Jan 2009 14:19:58 +0100
- Subject: cross-compilation, deprecated option and libgcc
Hi,
I am still trying to generate a cross-compiler targeting wince-pe from
trunk.
Last time it seems nobody was able to answer so now I am going to ask
simpler questions :
1) When I compile bootstrap gcc, I am using make all-gcc and make
install-gcc and it seems it doesn't build libgcc anymore.
${BASE_DIRECTORY}/${gcc_src}/configure \
--with-gcc \
--with-gnu-ld \
--with-gnu-as \
--target=${TARGET} \
--prefix=${PREFIX} \
--disable-threads \
--disable-nls \
--enable-languages=c \
--disable-win32-registry \
--disable-multilib \
--disable-shared \
--disable-interwork \
--without-newlib \
--enable-checking
make ${PARALLELISM} all-gcc
make install-gcc
So my first question is : For a bootstrap gcc do I need to build libgcc and
in this case should I use make all and make install instead ?
2) On my previous post I had an issue when building mingw because linker
was missing crtbegin.o adn crtend.o so I tried to replace
make all-gcc by make all but then there was some missing headers to compile
libgcc.
So I have added a --with-headers option and I thought everything was fine
because crtbegin/crtend are available but now I get the following error:
arm-mingw32ce-gcc -Wl,--base-file=mingwthrd.base -B./ -mdll
-Wl,--image-base,0x6FBC0000 mthr.o mthr_init.o -Lmingwex \
-o mingwthrd_dummy.exe
arm-mingw32ce-gcc -Wl,--base-file=mingwthrd.base -B./ -mdll
-Wl,--image-base,0x6FBC0000 mthr.o mthr_init.o -Lmingwex \
-o mingwthrd_dummy.exe
/opt/mingw32ce/lib/gcc/arm-mingw32ce/4.4.0/../../../../arm-mingw32ce/bin/ld:
warning: cannot find entry symbol DllMainCRTStartup; defaulting to 6fbc1000
./libmingw32.a(winmain_ce.o): In function `WinMain':
/home/Vincent/cegcc-4.4.0/src/mingw/winmain_ce.c:151: undefined reference
to `main'
/home/Vincent/cegcc-4.4.0/src/mingw/winmain_ce.c:151: relocation truncated
to fit: ARM_26 against undefined symbol `main'
collect2: ld returned 1 exit status
make: *** [mingwthrd.def] Error 1
I wanted also to use --with-sysroot because --with-headers is marked as
'deprecated' so I tried the --with-sysroot option
but then I had the following message :
configure: WARNING: you should use --build, --host, --target
configure: WARNING: invalid host type:
This message is quite explicit so I have added this options and I still
have this error message.
When I check in config.log :
/home/Vincent/cegcc-4.4.0/src/gcc/configure --host=i686-pc-cygwin
--build=i686-pc-cygwin --target=arm-mingw32ce --prefix=/opt/mingw32ce
--with-sysroot=/home/Vincent/cegcc-4.4.0/src/w32api/include
Just to be sure I will try again on a linux box to be sure the problem is
not related to cygwin ...
If someone could help or at least answer question 1)
Thanks