On 8/27/2010 09:37, mescali...@gmail.com wrote:
>    hi,
> I just installed a mingw-w64 toolcain using the ossbuild script.
>
> I started building tcl, but it stopped at some point with this error:
>
> ~tcl8.5.8/win $ ./configure --enable-shared --host=x86_64-w64-mingw32
> --target=x86_64-w64-mingw32 --build=x86_64-w64-mingw32
> [...]
> x86_64-w64-mingw32-gcc -c -O2 -fomit-frame-pointer -Wall
> -I"./../generic" -DTCL_TOMMATH -DMP_PREC=4 -I"./../libtommath" -I"."
> -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\"
> -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1
> -DHAVE_NO_SEH=1 -DHAVE_NO_LPFN_DECLS=1 -DHAVE_ALLOCA_GCC_INLINE=1
> -DHAVE_CAST_TO_UNION=1 -DTCL_CFGVAL_ENCODING=\"cp1252\"
> -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1
> -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1
> -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1
> -DTCL_CFG_OPTIMIZED=1 -DTCL_CFG_DEBUG=1   -DBUILD_tcl "tclWinChan.c" -o
> tclWinChan.o
> tclWinChan.c: In function 'TclpGetDefaultStdChannel':
> tclWinChan.c:1226:22: warning: cast from pointer to integer of different
> size
> tclWinChan.c: In function 'TclWinOpenFileChannel':
> tclWinChan.c:1339:39: warning: cast from pointer to integer of different
> size
> C:\Users\Federico\AppData\Local\Temp\ccDDhQ7j.s: Assembler messages:
> C:\Users\Federico\AppData\Local\Temp\ccDDhQ7j.s:834: Error: invalid
> instruction suffix for `push'
> make: *** [tclWinChan.o] Error 1
>
> how come?? I checked the x86_64 instruction set [1], and it appears
> PUSHL is not a valid instruction.
> so what's happening? it's using a x86 compiler to generate assembly,
> ignoring --target/--build/--host directives?
>
>
> [1]: http://support.amd.com/us/Processor_TechDocs/24594.pdf
>

pushl is not a valid 64bit insn, there is only pushq.

It is only valid for 32bit x86. Your program might be using inline 
assemblies.

The "cast from pointer to integer of different size" warning is a big 
red flag that the program assumes LP64 instead of LLP64. This program 
will not work properly in win64 unless you fixed those issues.

------------------------------------------------------------------------------
Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
Be part of this innovative community and reach millions of netbook users 
worldwide. Take advantage of special opportunities to increase revenue and 
speed time-to-market. Join now, and jumpstart your future.
http://p.sf.net/sfu/intel-atom-d2d
_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to