gmp 4.3.1 failed cross compile for mingw-w64

zhou drangon drangon.zhou at gmail.com
Fri May 29 03:33:29 CEST 2009


$ /compile/mingw/cross/bin/x86_64-pc-mingw32-gcc -v
Using built-in specs.
Target: x86_64-pc-mingw32
Configured with: ../gcc/configure --build=x86_64-redhat-linux
--host=x86_64-redhat-linux --target=x86_64-pc-mingw32 --disable-nls
--disable-multilib --enable-languages=c,c++ --disable-libstdcxx-pch
--prefix=/compile/mingw/cross --with-sysroot=/compile/mingw/cross
Thread model: win32
gcc version 4.5.0 20090517 (experimental) (GCC)

the compile output is :

/bin/sh ../libtool --mode=compile --tag=CC ../../gmp-4.3.1/mpn/m4-ccas
--m4="m4" /compile/mingw/cross/bin/x86_64-pc-mingw32-gcc -c
-DHAVE_CONFIG_H -I. -I../../gmp-4.3.1/mpn -I.. -D__GMP_WITHIN_GMP
-I../../gmp-4.3.1 -DOPERATION_`echo sqr_basecase | sed 's/_$//'`    -g
-pipe   `test -f 'sqr_basecase.asm' || echo
'../../gmp-4.3.1/mpn/'`sqr_basecase.asm
 ../../gmp-4.3.1/mpn/m4-ccas --m4=m4
/compile/mingw/cross/bin/x86_64-pc-mingw32-gcc -c -DHAVE_CONFIG_H -I.
-I../../gmp-4.3.1/mpn -I.. -D__GMP_WITHIN_GMP -I../../gmp-4.3.1
-DOPERATION_sqr_basecase -g -pipe sqr_basecase.asm -o sqr_basecase.o
m4  -DHAVE_CONFIG_H -D__GMP_WITHIN_GMP -DOPERATION_sqr_basecase
sqr_basecase.asm >tmp-sqr_basecase.s
 /compile/mingw/cross/bin/x86_64-pc-mingw32-gcc -c -DHAVE_CONFIG_H -I.
-I../../gmp-4.3.1/mpn -I.. -D__GMP_WITHIN_GMP -I../../gmp-4.3.1
-DOPERATION_sqr_basecase -g -pipe tmp-sqr_basecase.s -o sqr_basecase.o
tmp-sqr_basecase.s: Assembler messages:
tmp-sqr_basecase.s:124: Error: junk at end of line, first unrecognized
character is `,'



102     .text
103     .align  16, 0x90
104
105     .globl  ___gmpn_sqr_basecase
106
107 ___gmpn_sqr_basecase:
108
109     add $-48, %rsp
110     mov %rbx, 40(%rsp)
111     mov %rbp, 32(%rsp)
112     mov %r12, 24(%rsp)
113     mov %r13, 16(%rsp)
114     mov %r14, 8(%rsp)
115
116     mov %edx, %r11d
117     mov %edx, %ecx
118     and $3, %ecx
119     lea 4(%rcx), %rbx
120     cmp $4, %edx
121     cmovg   %rbx, %rcx
122     lea Ljmptab(%rip), %rax
123     jmp *(%rax,%rcx,8)
124     .section    .data.rel.ro.local,"aw", at progbits
125     .align  8, 0x90
126 Ljmptab:
127     .quad   L4
128     .quad   L1
129     .quad   L2
130     .quad   L3
131     .quad   L0m4
132     .quad   L1m4
133     .quad   L2m4
134     .quad   L3m4
135     .text
136
137 L1: mov (%rsi), %rax

-- 
regards,

drangon
-------------------------
homepage : http://www.drangon.org/
mingw stuff : http://www.drangon.org/mingw/
-------------------------


More information about the gmp-bugs mailing list