On 7/6/22 1:30 PM, Nilesh Patra wrote:
Hi, I was trying to make saclib cross-buildable, as per the failure in salsa-CI[1] it seems to stem from CC being set to build compiler rather than the host in d/rules. I went ahead and did a "include /usr/share/dpkg/buildtools.mk". However, while linking, it chokes at: | /usr/bin/ld: .libs/AADV.o: Relocations in generic ELF (EM: 183) | /usr/bin/ld: .libs/AADV.o: Relocations in generic ELF (EM: 183) | /usr/bin/ld: .libs/AADV.o: Relocations in generic ELF (EM: 183) | /usr/bin/ld: .libs/AADV.o: Relocations in generic ELF (EM: 183) | /usr/bin/ld: .libs/AADV.o: Relocations in generic ELF (EM: 183) | /usr/bin/ld: .libs/AADV.o: error adding symbols: file in wrong format I cross-checked, and this file is compiled with the right compiler. And I am not entirely sure of the cross for this error, and would appreciate hints.
I took a look again after sometime, it seems to happen because libtool tries to compile with 'gcc' and not the host compiler during link time. | libtool: link: gcc -shared -fPIC -DPIC .libs/AADV.o .libs/ABS.o .libs/ACLOCK.o | .libs/ADDTO.o .libs/ADV.o .libs/ADV2.o .libs/ADV3.o ....... Is there a way to change this to the host compiler instead?
[1]: https://salsa.debian.org/math-team/saclib/-/jobs/2308469
-- Best, Nilesh
Attachment:
OpenPGP_signature
Description: OpenPGP digital signature