Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2016-11

Cannot cross build from Linux x86_64 to i386

2 messages · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Leonardo M. Ramé

Hi, I've built FPC 3.1.1 (ppc386) from trunk then I'm trying to build a project from Lazarus and I'm getting this:

/usr/lib32/libc_nonshared.a(elf-init.oS): En la función `__libc_csu_init':

I'm on XUbuntu 16.04 64bits.

P.S.: I created /usr/bin/i386-linux-as with this content:

#!/bin/bash
as --32 "$@"

and /usr/bin/i386-linux-ld:

#!/bin/bash
ld -melf_i386 "$@"

Regards,

Leonardo M. Ramé Medical IT - Griensu S.A. Av. Colón 636 - Piso 8 Of. A X5000EPT -- Córdoba Tel.: +54(351)4246924 +54(351)4247788 +54(351)4247979 int. 19 Cel.: +54 9 (011) 40871877

Reply by email

Leonardo M. Ramé
to Leonardo M. Ramé
Leonardo M. Ramé wrote 22 lines
Hi, I've built FPC 3.1.1 (ppc386) from trunk then I'm trying to build a project from Lazarus and I'm getting this: /usr/lib32/libc_nonshared.a(elf-init.oS): En la función `__libc_csu_init': I'm on XUbuntu 16.04 64bits. P.S.: I created /usr/bin/i386-linux-as with this content: #!/bin/bash as --32 "$@" and /usr/bin/i386-linux-ld: #!/bin/bash ld -melf_i386 "$@" Regards,

Fixed by copying /usr/lib32/crtn.o and /usr/lib/crti.o to /usr/lib/i386-linux-gnu

Leonardo M. Ramé Medical IT - Griensu S.A. Av. Colón 636 - Piso 8 Of. A X5000EPT -- Córdoba Tel.: +54(351)4246924 +54(351)4247788 +54(351)4247979 int. 19 Cel.: +54 9 (011) 40871877

Reply by email