This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
GCC 4.4 cross compiler and issue with __floatdidf
- From: "Vincent R." <forumer at smartmobili dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Tue, 10 Mar 2009 22:08:27 +0100
- Subject: GCC 4.4 cross compiler and issue with __floatdidf
Hi,
When compiling the following code with a gcc 4.4 cross-compiler targetting
arm wince platform I get a problem with undefined reference __floatdidf :
find__floatdidf.c:
----
#include <windows.h>
LONGLONG _evil_time_freq;
LONGLONG _evil_time_count;
long _evil_time_second;
double
evil_time_get()
{
LARGE_INTEGER count;
QueryPerformanceCounter(&count);
return (double)_evil_time_second + (double)(count.QuadPart -
_evil_time_count)/
(double)_evil_time_freq;
}
//int main(int argc, char* argv[])
int WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPWSTR lpCmdLine,
int nCmdShow)
{
double dTime = evil_time_get();
printf("ret : %d\n", dTime);
return 0;
}
----
$ arm-mingw32ce-g++ -v find__floatdidf.c
Using built-in specs.
Target: arm-mingw32ce
Configured with: /home/Vincent/cegcc/cegcc/src/gcc-trunk/configure
--with-gcc --with-gnu-ld --with-gnu-as --target=arm-mingw32ce
--prefix=/opt/mingw32ce-4.4.0 --enable-threads=win32 --disable-nls
--enable-languages=c,c++ --disable-win32-registry --disable-multilib
--disable-interwork --without-newlib --enable-checking --with-headers
Thread model: win32
gcc version 4.4.0 20090310 (experimental) (GCC)
COLLECT_GCC_OPTIONS='-v' '-shared-libgcc'
/opt/mingw32ce-4.4.0/libexec/gcc/arm-mingw32ce/4.4.0/cc1plus.exe -quiet -v
find__floatdidf.c -quiet -dumpbase find__floatdidf.c -auxbase
find__floatdidf -version -o /c/DOCUME~1/Vincent/LOCALS~1/Temp/ccsOiRvb.s
...
GNU C++ (GCC) version 4.4.0 20090310 (experimental) (arm-mingw32ce)
compiled by GNU C version 3.4.4 (cygming special, gdc 0.12, using
dmd 0.125), GMP version 4.2.4, MPFR version 2.4.1.
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
Compiler executable checksum: 6f254b178188838682258d701691e447
COLLECT_GCC_OPTIONS='-v' '-shared-libgcc'
/opt/mingw32ce-4.4.0/lib/gcc/arm-mingw32ce/4.4.0/../../../../arm-mingw32ce/bin/as.exe
-v -o /c/DOCUME~1/Vincent/LOCALS~1/Temp/ccIrneqx.o
/c/DOCUME~1/Vincent/LOCALS~1/Temp/ccsOiRvb.s
GNU assembler version 2.19.51 (arm-mingw32ce) using BFD version (GNU
Binutils) 2.19.51.20090204
COMPILER_PATH=/opt/mingw32ce-4.4.0/libexec/gcc/arm-mingw32ce/4.4.0/:/opt/mingw32ce-4.4.0/libexec/gcc/arm-mingw32ce/4.4.0/:/opt/mingw32ce-4.4.0/libexec/gcc/arm-mingw32ce/:/opt/mingw32ce-4.4.0/lib/gcc/arm-mingw32ce/4.4.0/:/opt/mingw32ce-4.4.0/lib/gcc/arm-mingw32ce/:/opt/mingw32ce-4.4.0/lib/gcc/arm-mingw32ce/4.4.0/../../../../arm-mingw32ce/bin/
LIBRARY_PATH=/opt/mingw32ce-4.4.0/lib/gcc/arm-mingw32ce/4.4.0/:/opt/mingw32ce-4.4.0/lib/gcc/arm-mingw32ce/4.4.0/../../../../arm-mingw32ce/lib/
COLLECT_GCC_OPTIONS='-v' '-shared-libgcc'
/opt/mingw32ce-4.4.0/libexec/gcc/arm-mingw32ce/4.4.0/collect2.exe
-Bdynamic
/opt/mingw32ce-4.4.0/lib/gcc/arm-mingw32ce/4.4.0/../../../../arm-mingw32ce/lib/crt3.o
/opt/mingw32ce-4.4.0/lib/gcc/arm-mingw32ce/4.4.0/crtbegin.o
-L/opt/mingw32ce-4.4.0/lib/gcc/arm-mingw32ce/4.4.0
-L/opt/mingw32ce-4.4.0/lib/gcc/arm-mingw32ce/4.4.0/../../../../arm-mingw32ce/lib
/c/DOCUME~1/Vincent/LOCALS~1/Temp/ccIrneqx.o -lstdc++ -lmingw32 -lgcc_s
-lgcc -lceoldname -lmingwex -lcoredll -lcoredll -lmingw32 -lgcc_s -lgcc
-lceoldname -lmingwex -lcoredll
/opt/mingw32ce-4.4.0/lib/gcc/arm-mingw32ce/4.4.0/crtend.o
/c/DOCUME~1/Vincent/LOCALS~1/Temp/ccIrneqx.o:find__floatdidf.c:(.text+0x50):
undefined reference to `__floatdidf'
/c/DOCUME~1/Vincent/LOCALS~1/Temp/ccIrneqx.o:find__floatdidf.c:(.text+0x6c):
undefined reference to `__floatdidf'
collect2: ld returned 1 exit status
Any idea ?