Re: [fpc-pascal] The strange case of arm-linux-ld: skipping incompatible

2011-11-27 Thread Marco van de Voort
In our previous episode, Felipe Monteiro de Carvalho said: Browse through the below thread, mainly my and Jonas posts: http://lazarus.freepascal.org/index.php/topic,8084.msg57377.html#msg57377 ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] The strange case of arm-linux-ld: skipping incompatible

2011-11-26 Thread Felipe Monteiro de Carvalho
On Sat, Nov 26, 2011 at 2:57 PM, Sven Barth wrote: > There should be something similar as C applications AFAIK rely on this. > Otherwise we'd need to change arm-linux to use an internal sysinit like > i386-linux and the Windows targets do. Yes, the ndk r7 has something similar, but it has many fi

Re: [fpc-pascal] The strange case of arm-linux-ld: skipping incompatible

2011-11-26 Thread Sven Barth
On 26.11.2011 13:38, Felipe Monteiro de Carvalho wrote: 1> We might have a problem because this crtn.o was removed from ndk-r7 as part of their removal for arm-eabi 4 support =( Maybe there is another file there in ndk-r7 which is equivalent with another name for eabi-5 There should be somethi

Re: [fpc-pascal] The strange case of arm-linux-ld: skipping incompatible

2011-11-26 Thread Felipe Monteiro de Carvalho
On Sat, Nov 26, 2011 at 1:38 PM, Felipe Monteiro de Carvalho wrote: > thanks for the tips, I figured out (although I still don't know if the > resulting binary works). Complementing: Yes, the binary works fine. -- Felipe Monteiro de Carvalho ___ fpc-p

Re: [fpc-pascal] The strange case of arm-linux-ld: skipping incompatible

2011-11-26 Thread Jonas Maebe
On 26 Nov 2011, at 09:05, Felipe Monteiro de Carvalho wrote: > arm-linux-ld seams to have a fixed idea about where to find libc No, FPC has that fixed idea. Use the -Xd command line option to make the compiler/linker skip searching the default directories for libraries and object files. Altern

Re: [fpc-pascal] The strange case of arm-linux-ld: skipping incompatible

2011-11-26 Thread Felipe Monteiro de Carvalho
Hello, thanks for the tips, I figured out (although I still don't know if the resulting binary works). >> /usr/bin/arm-linux-ld: skipping incompatible /usr/lib//libc.so when >> searching for -lc This part was not a problem, it can be safely ignored. If anyone wants to get rid of this message fo

Re: [fpc-pascal] The strange case of arm-linux-ld: skipping incompatible

2011-11-26 Thread Sven Barth
On 26.11.2011 09:05, Felipe Monteiro de Carvalho wrote: Compiling resource /home/felipe/Programas/lazarus-ccr/examples/androidlclv2/lib/arm-linux/androidlcltest.or Linking /home/felipe/Programas/lazarus-ccr/examples/androidlclv2/android/libs/armeabi/libmain.so /usr/bin/arm-linux-ld: warning: /ho

[fpc-pascal] The strange case of arm-linux-ld: skipping incompatible

2011-11-26 Thread Felipe Monteiro de Carvalho
Hello, Quite a number of people already reported having problems with this in the lazarus forum when cross-compiling for Android and yesterday it was my turn to hit this. I searched quite a bit in old threads but I haven't seen any satisfactory resolution, and it seams that the problem isnt so com