Hello, On 29/11/14 00:32, Léo Testard wrote:
I'm trying to build code for 32-bits x86 (because I have to link it against 32-bits code) on an x86_64 build machine. But it looks like x86 target libraries are not build, even with --enable-multilib. Is there a way to build x86 target libraries ?
There is currently no support for multilib in ghdl. Feel free to investigate that (and to contribute).
I found this post on the mailing list: https://mail.gna.org/public/ghdl-discuss/2005-12/msg00002.html, but the suggested solution (copying libraries from an x86 machine) doesn't work. In fact it looks like a recent version of GHDL (I'm working with 0.31) doesn't even recognizes options such as -m32, -Wc or -Wa. Is this still up-to-date ?
The options -m32/-Wc/-Wa should be understood. What is the error message ?
As a workaround, I tried building an x86 version of GHDL using --target=i386-linux-gnu, but I got assembly errors in vhdl/grt/config/i386.S, which shows it's 32 bits code compiled as 64 code. This sounds like a bug in the build system. Is this file intended to be built for the target, in which case it should be build using the target compiler, or for the host, in which case it should be 64 bits assemly...
I think you need to configure with --build=i386-linux-gnu. It is simpler if your compiler is a 32bit compiler. Regards, Tristan. _______________________________________________ Ghdl-discuss mailing list [email protected] https://mail.gna.org/listinfo/ghdl-discuss
