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





------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
Gambas-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to