Re: [Harbour] cross compile harbour for linux mipsel

2009-06-20 Thread Viktor Szakáts
Hi Guy, Yes, it's picked up from both hbmk2.cfg and also from internal extra C switch used to build hbmk2 itself. For me the strange thing here is that it's also enabled for your hbmk2 build. It shouldn't normally be. This won't cause any problem, but I'll add some protection for this case. Pls

Re: [Harbour] cross compile harbour for linux mipsel

2009-06-20 Thread Guy Roussin
Hi Viktor, Can you post your -trace hbmk2 output? Notice that now, (because i use HBHB_USER_CFLAGS="-fPIC" to compile harbour mips(el)), i get 2 "-fPIC" in hbmk2 trace: g...@cobalt:~$ hbmk2 -trace t hbmk: Processing configuration: /usr/local/bin/hbmk.cfg hbmk: Harbou

Re: [Harbour] cross compile harbour for linux mipsel

2009-06-19 Thread Guy Roussin
Hi Viktor and Przemyslaw, Probably there is sth wrong with shared library. Try to check if valid harbour.so is used by: ldd ./t $ ldd ./t libharbour.so => /usr/local/lib/harbour/libharbour.so (0x2aadc000) libc.so.6 => /lib/libc.so.6 (0x2af44000) libm.so.6 => /lib/libm.so.6 (0x2b0bc000) libdl.so

Re: [Harbour] cross compile harbour for linux mipsel

2009-06-19 Thread Przemyslaw Czerpak
On Fri, 19 Jun 2009, Guy Roussin wrote: > $ ldd ./t >libharbour.so => /usr/local/lib/harbour/libharbour.so (0x2aadc000) >libc.so.6 => /lib/libc.so.6 (0x2af44000) >libm.so.6 => /lib/libm.so.6 (0x2b0bc000) >libdl.so.2 => /lib/libdl.so.2 (0x2b154000) >librt.so.1

Re: [Harbour] cross compile harbour for linux mipsel

2009-06-19 Thread Viktor Szakáts
Probably there is sth wrong with shared library. Try to check if valid harbour.so is used by: ldd ./t $ ldd ./t libharbour.so => /usr/local/lib/harbour/libharbour.so (0x2aadc000) libc.so.6 => /lib/libc.so.6 (0x2af44000) libm.so.6 => /lib/libm.so.6 (0x2b0bc000) libdl.s

Re: [Harbour] cross compile harbour for linux mipsel

2009-06-19 Thread Guy Roussin
Hi Przemyslaw, All is fine *except one point* : When i run apps dynamic link on mips(el) i get a segmentation fault : g...@cobalt:~$ hbmk2 t hbmk: Processing configuration: /usr/local/bin/hbmk.cfg Harbour 2.0.0beta1 (Rev. 11424) Copyright (c) 1999-2009, http://www.harbour-project.org/ Compi

Re: [Harbour] cross compile harbour for linux mipsel

2009-06-19 Thread Przemyslaw Czerpak
On Fri, 19 Jun 2009, Guy Roussin wrote: Hi, > All is fine *except one point* : > When i run apps dynamic link on mips(el) i get a > segmentation fault : > > g...@cobalt:~$ hbmk2 t > hbmk: Processing configuration: /usr/local/bin/hbmk.cfg > Harbour 2.0.0beta1 (Rev. 11424) > Copyright (c) 1999-

Re: [Harbour] cross compile harbour for linux mipsel

2009-06-19 Thread Guy Roussin
Hi Przemyslaw, I apply your patch in config/linux/gcc.cf with this exports : export HB_CCPREFIX="mipsel-linux-gnu-" export HB_BIN_COMPILE="/usr/local/bin" export HB_PPGEN_PATH="/usr/local/bin" export HB_WITHOUT_GTCRS="yes" export HB_WITHOUT_ODBC="yes" export HB_WITHOUT_X11="yes" export HB_WITH

Re: [Harbour] cross compile harbour for linux mipsel

2009-06-19 Thread Guy Roussin
Thank you Viktor, Works fine with your suggestions. I only modify 2 lines in config/linux/gcc.cf : line 10 : HB_CMP = $(HB_COMPILER) to HB_CMP = $(HB_CCPREFIX)$(HB_COMPILER) line 113 : AR = ar to AR = $(HB_CCPREFIX)ar and i set this exports : export HB_BIN_COMPILE="/usr/local/bin" export HB

Re: [Harbour] cross compile harbour for linux mipsel

2009-06-19 Thread Przemyslaw Czerpak
On Fri, 19 Jun 2009, Szak�ts Viktor wrote: Hi, > Thanks Guy. > Maybe it's simpler to just add HB_CCPREFIX support > to that AR macro in gcc.cf: > AR = ${HB_CCPREFIX}ar > And set HB_CCPREFIX accordingly: > export HB_CCPREFIX=mipsel-linux-gnu- > This envvar should also make hbmk2 work. Can you try?

Re: [Harbour] cross compile harbour for linux mipsel

2009-06-19 Thread Viktor Szakáts
Thanks Guy. Maybe it's simpler to just add HB_CCPREFIX support to that AR macro in gcc.cf: AR = ${HB_CCPREFIX}ar And set HB_CCPREFIX accordingly: export HB_CCPREFIX=mipsel-linux-gnu- This envvar should also make hbmk2 work. Can you try? In case we made these work, we can probably add a new ta

Re: [Harbour] cross compile harbour for linux mipsel

2009-06-19 Thread Guy Roussin
Hi, I manage to cross compile harbour for mips(el). Perhaps this would be usefull for someone ... I think you can replace mipsel with your target architecture (arm, ...) $ pwd /usr/local/src/harbour $ svn update At revision 11424. $ cp config/linux/gcc.cf config/linux/mipsel-linux-gnu-gcc.cf $

[Harbour] cross compile harbour for linux mipsel

2009-06-18 Thread Guy Roussin
Hi, I try to cross-compile harbour for linux mipsel on linux x86. I install all the stuff necessary to cross compilation for mipsel. I copy config/linux/gcc.cf to config/linux/mipsel-linux-gnu-gcc.cf $ diff -uNr config/linux/gcc.cf config/linux/mipsel-linux-gnu-gcc.cf --- config/linux/gcc.cf