GMP on x86_64 Interix

Michael Abshoff Michael.Abshoff at fsmath.mathematik.uni-dortmund.de
Tue Oct 23 17:31:43 CEST 2007


Jerker Bäck wrote:
> Greetings all,

Hello Jerker,

>
> I tried to run configure on Interix but it exits with a message:
> "configure: error: Cannot determine text section directive"
>
> Settings:
> $ uname -a
> Interix max 6.0 10.0.6000.0 EM64T Intel_EM64T_Family_15_Model_6_Stepping_5
>
> Vista x64 NT POSIX subsystem (SUA) with Interix x64 SDK 6.0
> Interix ksh, GNU make 3.81, GNU m4 1.4.8
> CC=cc (shell script wrapper of MS x64 compiler giving LP64, unix cc syntax
> etc)
>
> As I understand, configure is trying to figure out how to invoke an
> assembler, right? cc doesn't support .s or .asm files so I need to assign
> another tool. The command looks like this:
>
> $CCAS $CFLAGS $CPPFLAGS conftest.s
>
> Any suggestions or solutions of this?

I do not believe this can be solved with Microsoft's compilers because
they do not understand the inline assembly syntax used by GMP. The Intel
C++ compiler release 10 is supposed to handle it, search the list for some
info Brian Gladman did provide on that about 6 weeks ago. Visual Studio
2005's C/C++ compiler also allegedly removed inline assembly support in
general, but I am not 100% on that.

>
> There is no working x64 GNU as for Interix. I have yasm compiled for
> Interix
> - syntax?
> I would prefer using ml64.exe if it is possible to use.
>

There is experimental 64 bit support via MinGW, but I haven't tried it out
due to lack of time. I doubt the 64 bit masm will understand the assembly
syntax used, but I am willing to be proven wrong on that one.

> Since Interix is using a BSD style LIBC, I would at least need a proper
> config.h. The actual build can then be done by makefiles or in Visual
> Studio
> using some of Brian Gladman's solutions.

Yep, as far as I know that is the only way to get a 64 bit GMP on Windows
working at the moment. Since you are using the Microsoft compilers anyway
I would suggest using Brian's project files. If you get it to work via
Interix please let us know.

>
> Thanks
> Jerker Bäck
>

Cheers,

Michael

>
>
> _______________________________________________
> gmp-discuss mailing list
> gmp-discuss at swox.com
> https://gmplib.org/mailman/listinfo/gmp-discuss
>




More information about the gmp-discuss mailing list