Subject: fpmkunit.pp(19,2) Error: Mode switch "OBJFPC" not allowed here
---
Update: This top section was added a few minutes after I posted, based upon Cyrax's reqeust for version info here
http://forum.lazarus.freepascal.org/index.php/topic,36029.0.htmlBelow I have included my full reply to Cyrax's, with my action item of downloading version 1.20l, not the i I used. Alfredo is rapid in his releases. +1
I have reported this post to the webmaster, asking them to 'remove' it (I see I could have done that myself), as I have just reposted to the right thread, that Alfredo reads.
http://forum.lazarus.freepascal.org/index.php/topic,34645.405.htmlPoint is, this thread may disappear soon. Your question does need an answer, and here it is. Appearing in the title bar of my snapshot
I read this post of Feb 5th:
http://forum.lazarus-ide.org/index.php?topic=27211.240by DonAlfredo giving this link
https://github.com/newpascal/fpcupdeluxe/releases/download/v1.2.0i/fpcupdeluxe-x86_64-linuxI was thinking 22 days old was 'good' enough - but now I see the v1.2.0i - that 'i', is old - SURPRISE ME Alfredo had released 'l' now according to:
https://github.com/newpascal/fpcupdeluxe/releasesWow, Alfredo is burning through everyone's wish list, so rapidly. Kudos to Alfredo!!!
So, I will RETRY with the latest.
---
I started using Lazarus/FPC just 3 weeks ago, trying for a Linux cross compile to Mac OS X Intel, and have done a dozen different installs, following any of three instructions, and glad to have found fpcup/deluxe. Condolences on the passing of the previous author. Alfredo, you have certainly taken the project forward, so rapidly. Congrats. I really have high hopes that fpcupdeluxe will come through for me. Sure has a nice interface, though on Ubuntu 16 Unity the buttons look perhaps like selected options, no button shadow, fyi. BTW, a screen shot of your busy interface would have really caught my imagination, and I would have immediately tried, instead of waiting 2 hours.
I downloaded fpcupdeluxe-x86_64-linux binary and softlinked fpcupdeluxe to fpcupdeluxe-x86_64-linux for the below:
fpcupdeluxe --fpcURL=trunk --lazURL=trunk --installdir=/home/lee/fpc3 --verbose
on Ubuntu 16.04 AMD64. The window opened, and I changed from 'default' to 'trunk' in both the FPC and Lazarus selection lists.
I clicked on the Trunk Button, and after I got the below error, I cd'ed to the folder, and pasted in the compile command, and got the same error. Then, I pressed the Install FPC & Lazarus button, and got the same error. Do you need more info?
BTW, the --installdir was not honored. Does Clang need to be installed (I'm thinking not).
EXCERPT (blank lines surrounding the error are added by me):
make packages_smart FPC=/home/pete/fpcupdeluxe/fpcsrc/compiler/ppcx64 FPCFPMAKE=/home/pete/fpcupdeluxe/fpcsrc/compiler/ppcx64 RELEASE=1 'OPT=-Sg -vi-n-h-'
make[1]: Entering directory '/home/pete/fpcupdeluxe/fpcsrc'
make -C packages smart
make[2]: Entering directory '/home/pete/fpcupdeluxe/fpcsrc/packages'
make -C fpmkunit bootstrap
make[3]: Entering directory '/home/pete/fpcupdeluxe/fpcsrc/packages/fpmkunit'
/bin/mkdir -p units_bs/x86_64-linux
/home/pete/fpcupdeluxe/fpcsrc/compiler/ppcx64 src/fpmkunit.pp -Fu/home/pete/fpcupdeluxe/fpcsrc/rtl/units/x86_64-linux -FUunits_bs/x86_64-linux -Fu../paszlib/src -Fu../hash/src -Fi../paszlib/src -Cg -Fi../fcl-process/src/unix -Fu../fcl-process/src -Fi../fcl-process/src/linux -Fi../fcl-process/src/dummy -Fu../libtar/src -Sg -vi-n-h-
Free Pascal Compiler version 3.1.1 [2017/02/28] for x86_64
Copyright (c) 1993-2017 by Florian Klaempfl and others
fpmkunit.pp(19,2) Error: Mode switch "OBJFPC" not allowed herepipes.pp(61,1) Fatal: There were 1 errors compiling module, stopping
Fatal: Compilation aborted
Makefile:2357: recipe for target 'bootstrap' failed
make[3]: *** [bootstrap] Error 1
make[3]: Leaving directory '/home/pete/fpcupdeluxe/fpcsrc/packages/fpmkunit'
Makefile:1709: recipe for target 'fpmake' failed
make[2]: *** [fpmake] Error 2
make[2]: Leaving directory '/home/pete/fpcupdeluxe/fpcsrc/packages'
Makefile:2738: recipe for target 'packages_smart' failed
make[1]: *** [packages_smart] Error 2
make[1]: Leaving directory '/home/pete/fpcupdeluxe/fpcsrc'
Makefile:2933: recipe for target 'build-stamp.x86_64-linux' failed
make: *** [build-stamp.x86_64-linux] Error 2
make: Leaving directory '/home/pete/fpcupdeluxe/fpcsrc'
fpcupdeluxe: info: FPC: Error running make failed with exit code 512
. Details:
fpcupdeluxe: ERROR: Error running BuildModuleCustom for module FPC
fpcupdeluxe: WARNING: FPC cleanup: could not cleanup /home/pete/fpcupdeluxe/fpcsrc/utils/bin
fpcupdeluxe: WARNING: FPC cleanup: could not cleanup /home/pete/fpcupdeluxe/fpcsrc/utils/units/x86_64-linux
fpcupdeluxe: info: Error running fpcup. Technical details: error executing sequence fpc; line: 5, param: FPC
fpcupdeluxe: info: Error running fpcup. Technical details: error executing sequence Default; line: 3, param: fpc