Hi Kai,

Kai Tietz wrote:
> 2010/4/13 Hervé Pagès <[email protected]>:
>> Hi,
>>
>> While trying to compile samtools 0.1.7a
>> (http://samtools.sourceforge.net/) with the x86_64-w64-mingw32-gcc
>> compiler (on a Windows Server 2008 R2 Enterprise (64-bit) box),
>> I get the following error:
>>
>>   D:\biocbld\bbs-2.6-bioc\tmp\cclpzy0n.s: Assembler messages:
>>   D:\biocbld\bbs-2.6-bioc\tmp\cclpzy0n.s:290: Error: register value
>> used as expression
>>   D:\biocbld\bbs-2.6-bioc\tmp\cclpzy0n.s:452: Error: register value
>> used as expression
>>
>> Here is some very simple code that seems to reproduce the error (it
>> doesn't involve any samtools code):
>>
>>   C:\Users\hpages\sandbox>cat test.c
>>   #include <winsock2.h>
>>   int main() {return 0;}
>>
>> Then:
>>
>>   C:\Users\hpages\sandbox>x86_64-w64-mingw32-gcc -Dinline="" -O2
>> -std=gnu99 test.c
>>   C:\Users\hpages\AppData\Local\Temp\2\cceWUOyY.s: Assembler messages:
>>   C:\Users\hpages\AppData\Local\Temp\2\cceWUOyY.s:278: Error: register
>> value used as expression
>>   C:\Users\hpages\AppData\Local\Temp\2\cceWUOyY.s:440: Error: register
>> value used as expression
>>
>> Note that without the combination of the 3 options (-Dinline="" AND
>> -O2 AND -std=gnu99), I don't get the error (try to remove any of them
>> and test.c compiles just fine).
>>
>> I'm using mingw-w64-1.0-bin_i686-mingw_20100405:
>>
>>   C:\Users\hpages>x86_64-w64-mingw32-gcc -v
>>   Using built-in specs.
>>   Target: x86_64-w64-mingw32
>>   Configured with: ../../../build/gcc/gcc/configure
>> --target=x86_64-w64-mingw32
>> --prefix=/c/bb/vista64-mingw32/mingw-x86-x86_64/build/build/root
>> --with-sysroot=/c/bb/vista64-mingw32/mingw-x86-x86_64/build/build/root
>> --with-gmp=/c/bb/vista64-mingw32/mingw-x86-x86_64/build/build/gmp/install
>> --with-mpfr=/c/bb/vista64-mingw32/mingw-x86-x86_64/build/build/mpfr/install
>> --with-mpc=/c/bb/vista64-mingw32/mingw-x86-x86_64/build/build/mpc/install
>> --enable-languages=all,obj-c++ --enable-fully-dynamic-string
>> --disable-multilib
>>   Thread model: win32
>>   gcc version 4.4.4 20100405 (prerelease) (GCC)
>>
>> Thanks in advance,
>> H.
>>
>> --
> 
> Hello Hervé,
> 
> Well, first, if you are using mingw-w64 compiler, please use
> mingw-w64's MLor SF site to report problems. I redirect this thread to
> mingw-w64 ML for further discussion.

Oops, sorry for using the wrong list and thanks for redirecting me...

> 
> Your issue is mainly reasoned by this '-Dinline=" argument. What is
> the purpose of it? In general there is no good reason to do this.

Thanks for the hint. I agree it doesn't look good to do this. I'm using
this argument only because a co-worker is using it in his project of
writing R bindings for samtools. I'll try to compile samtools without
it and let you know if I run into any other issue. Thanks again!

H.

> 
> Regards,
> Kai
> 

-- 
Hervé Pagès

Program in Computational Biology
Division of Public Health Sciences
Fred Hutchinson Cancer Research Center
1100 Fairview Ave. N, M2-B876
P.O. Box 19024
Seattle, WA 98109-1024

E-mail: [email protected]
Phone:  (206) 667-5791
Fax:    (206) 667-1319

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to