Recent

Author Topic: Cross compile build is failing  (Read 3920 times)

Jim Welch

  • Newbie
  • Posts: 2
Cross compile build is failing
« on: September 23, 2014, 11:49:05 pm »
I've been trying for a couple of days to get a cross compiler working from my Windows 32 to a Linux arm version.  I'm using fpcup and it downloaded Make.exe version 3.80.  I'm getting the following output:

Executing : C:\development\fpcbootstrap\make.exe "FPC=C:\development\fpcbootstrap\ppc386.exe" "--directory=C:\development\fpctrunk" "INSTALL_PREFIX=C:\development\fpctrunk" "CROSSBINDIR=C:\development\fpctrunk\bin\arm-linux" "UPXPROG=echo""COPYTREE=echo" "all" "OS_TARGET=linux" "CPU_TARGET=arm" "BINUTILSPREFIX=arm-linux-" "CROSSOPT=-XParm-linux- -CaEABIHF -CpARMV6 -CfVFPV3" "OPT=-dFPC_ARMHF -Xd -FlC:\development\cross\lib\arm-linux" (working dir: C:\development\fpctrunk)
C:\development\fpcbootstrap\make.exe: Entering directory `C:/development/fpctrunk'
C:\development\fpcbootstrap\make.exe: Leaving directory `C:/development/fpctrunk'
C:\development\fpcbootstrap\make.exe: *** No rule to make target `all'.  Stop.
fpcup: ERROR: FPC: Running cross compiler fpc make all for arm-linux failed with an error code.


I've already installed fpc version 2.7.1 with Lazarus version 1.3 (also using fpcup) with no problems.

Anyone know what's wrong?

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: Cross compile build is failing
« Reply #1 on: September 24, 2014, 07:47:57 am »
Hi Jim,

Try with make 3.82 (e.g. as distributed with Lazarus 1.2.4) for FPC 2.7.1+ (I'd suggest renaming the existing c:\development\fpcbootstrap\make.exe to make.3.80.exe)
(Unfortunately FPC 2.6.x requires make 3.80 on Windows)

Thanks
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: Cross compile build is failing
« Reply #2 on: September 24, 2014, 08:54:28 am »
I've updated the wiki page with an explicit note. Hope this clears things up (don't know if it was already documented in fpcup readme).

Thanks for pointing this out - sorry for the inconvenience.

Please post your progress - hope it goes well ;)
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

Jim Welch

  • Newbie
  • Posts: 2
Re: Cross compile build is failing
« Reply #3 on: September 30, 2014, 03:20:05 am »
Not totally sure how, but I managed to get fpcupgui to install both fpc and Lazarus (v2.1.7 and v1.3).  I kept working with it and finally found the correct combination in the settings.ini file.  See the [linuxarm] section in the attached copy.  Lazarus now gives me the option to compile using Linux/arm/ARMV6.  Had a problem with setting it to ARMV7 even though it ley me.  Thanks BigChimp for the advice.
« Last Edit: September 30, 2014, 03:47:20 am by Jim Welch »

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: Cross compile build is failing
« Reply #4 on: September 30, 2014, 07:59:30 am »
File looks good except: your settings.txt specifies FPC 2.6.4 for linuxarm but you say you're using 2.7.1 (and I believe you ;) - otherwise [linuxarm] fpcopt="-dFPC_ARMHF" won't work...)

This discrepancy needn't be a problem as linuxarm has
skip=FPCGetOnly,
which avoids doing svn up from the 2.6.4 branch but perhaps out of tidiness change the fpcurl?!? (Likewise in other sections you're using but I suspect you're not actually using any other sections in that file...)

Quote
Had a problem with setting it to ARMV7 even though it ley me
No idea if fpc trunk supports it or what the exact naming is.
You could try running the cross compiler with some info switches (I forgot which to see which CPU names it thinks are supported..

Thanks
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: Cross compile build is failing
« Reply #5 on: September 30, 2014, 08:14:33 am »
What about something like this:
- unified fpc and laz dirs to what you have specified in linuxarm
- specified using fpc trunk instead of fixes 2.6 where necessary
- removed some redundant stuff

(rename jimsettings.txt => jimsettings.ini)
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

 

TinyPortal © 2005-2018