I'm trying to install the w64 compiler on a Ubuntu Linux machine, 
following the instructions at:
http://sourceforge.net/apps/trac/mingw-w64/wiki/Cross Win32 and Win64 
compiler

I am unable to build the shared 64 bit libgcc_s_sjlj-1.dll

Tracking down the problem, it seems that the compiler emits symbols with 
a leading underscore, but attempts to export those symbols without the 
leading underscore in 64 bit mode (The 32-bit libgcc_s_sjlj-1.dll was 
built with no problems).  All exports fail with a message like:

Cannot export _Unwind_Backtrace: symbol not defined.

Using x86_64-w64-mingw32-nm to examine the intermediate library 
.../build/x86_64-w64-mingw32/libgcc/shlib/libgcc_s.a.tmp, I can see the 
symbols:

libgcc_s.a.tmp:d000001.o:0000000000000000 T __Unwind_Backtrace
libgcc_s.a.tmp:d000001.o:0000000000000000 I __imp___Unwind_Backtrace

Apparently in 64 bit mode GCC-4.5.1 tries to export the symbols without 
the leading underscore when building a dll, and then fails when it can't 
find the symbol.

Here's my configuration:

GCC-4.5 exported from the 4.5 branch, Revision 167434 on 12/3/2010.
Binutils 2.20.1

configure -v --with-pkgversion='GCC Mingw-w64 cross compiler' 
--{host,build}=x86_64-linux-gnu --target=x86_64-w64-mingw32 
--enable-multilib --enable-64bit 
--{prefix,with-sysroot}=/usr/local/Mingw-w64 --enable-static 
--enable-shared=libgcc --enable-fully-dynamic-string 
--enable-languages=c --enable-libssp --with-host-libstdcxx="-lstdc++ 
-lsupc++" --with-{gmp,mpfr,mpc,cloog,ppl}=/usr --with-gnu-ld 
--with-system-zlib --disable-werror --enable-targets=all 
--enable-threads=win32 --enable-lto


------------------------------------------------------------------------------
Oracle to DB2 Conversion Guide: New IBM DB2 features make compatibility easy. 
Learn about native support for PL/SQL, new data types, scalar functions, 
improved concurrency, built-in packages, OCI, SQL*Plus, data movement tools, 
best practices and more - all designed to run applications on both DB2 and 
Oracle platforms. http://p.sf.net/sfu/oracle-sfdev2dev
_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to