On Sun, 2015-03-01 at 10:52 +0100, Endre Bak wrote:
> Hi,
> 
> 
> I try to compile the tip but I get the following linker errors:
> 
> 
> ./ortho_code-x86-abi.o: In function
> `ortho_code__x86__abi__link_intrinsics':
> /home/endre/Prg/ghdl/src/ortho/mcode/ortho_code-x86-abi.adb:773:
> undefined reference to `__muldi3'
> /home/endre/Prg/ghdl/src/ortho/mcode/ortho_code-x86-abi.adb:777:
> undefined reference to `__divdi3'
> /home/endre/Prg/ghdl/src/ortho/mcode/ortho_code-x86-abi.adb:781:
> undefined reference to `__moddi3'
> collect2: error: ld returned 1 exit status
> gnatlink: error when calling /usr/bin/gcc-4.8
> gnatmake: *** link failed.
> 
> 
> I am using gnat-4.8, is that okay?
> What libs should I install to satisfy the linker?

This is expected when trying to build the mcode version as a 64-bit
executable : mcode is a JIT compiler for i386, linker flags aren't the
problem.

As far as I know, you can build on x64 targetting i386 by adding -m32,
e.g. 
make CFLAGS="-m32"
it seemed to work when I tried it (Debian Jessie, gcc4.9.1) so maybe
worth a try. If you do this, please report.

Building the gcc version takes longer and is less straightforward, but
works on both 32 and 64 bit.

-- Brian




_______________________________________________
Ghdl-discuss mailing list
[email protected]
https://mail.gna.org/listinfo/ghdl-discuss

Reply via email to