[Gambas-user] [Gambas Bug Tracker] Bug #900: cross compilation broken

bugtracker at ...3416... bugtracker at ...3416...
Tue Mar 1 22:49:41 CET 2016


http://gambaswiki.org/bugtracker/edit?object=BUG.900&from=L21haW4-

sab OTAGE reported a new bug.

Summary
-------

cross compilation broken

Type             : Bug
Priority         : Medium
Gambas version   : Unknown
Product          : Unknown


Description
-----------

everything seems to work fine, until gambas tries to execute the crosscompiled binary to do some stuff

libtool: install: (cd /home/rofl/x-prefix/armv7hf/opt/gambas3/lib/gambas3 && { ln -s -f gb.so.0.0.0 gb.so || { rm -f gb.so && ln -s gb.so.0.0.0 gb.so; }; })
libtool: install: /bin/install -c .libs/gb.lai /home/rofl/x-prefix/armv7hf/opt/gambas3/lib/gambas3/gb.la
libtool: warning: remember to run 'libtool --finish /lib/gambas3'
make[4]: Leaving directory `/home/rofl/x-prefix/armv7hf/src/build/gambas3/gambas3-3.8.4/main/gbx'
make[3]: Leaving directory `/home/rofl/x-prefix/armv7hf/src/build/gambas3/gambas3-3.8.4/main/gbx'
Making install in .
make[3]: Entering directory `/home/rofl/x-prefix/armv7hf/src/build/gambas3/gambas3-3.8.4/main'
make[4]: Entering directory `/home/rofl/x-prefix/armv7hf/src/build/gambas3/gambas3-3.8.4/main'
[Installing with DESTDIR=/home/rofl/x-prefix/armv7hf/opt/gambas3]
Making runtime symbolic link
Creating the information files for gb component...
/bin/bash: /home/rofl/x-prefix/armv7hf/opt/gambas3/bin/gbi3: cannot execute binary file: Exec format error
make[4]: *** [install-exec-local] Error 126
make[4]: Leaving directory `/home/rofl/x-prefix/armv7hf/src/build/gambas3/gambas3-3.8.4/main'

of course, gbi3 is an arm binary so how could it work on my x86 ?

possible solutions:
- if x-compile is detected, build a host gbi3 and a target gbi3, install the target one and use the host one to create the information files...
- or generate the information file from a portable shell script or a small single-purpose C program that was compiled for the host arch








More information about the User mailing list