Problem compiling Bricxcc SVN in Fedora Linux 64-bit
Problem compiling Bricxcc SVN in Fedora Linux 64-bit
Hi John,
I'm currently trying to compile nxttools and nxtcc from SVN (rel. 610) on Fedora Linux 17 64-bit and came across the following error.
Compiling SynHighlighterNQC.pas
SynHighlighterNQC.pas(939,13) Error: Illegal type conversion: "TRangeState" to "Pointer"
SynHighlighterNQC.pas(1000,13) Error: Illegal type conversion: "Pointer" to "TRangeState"
SynHighlighterNQC.pas(1332) Fatal: There were 2 errors compiling module, stopping
Fatal: Compilation aborted
make: *** [nxttools] Error 1
This is using the latest fpc, lazarus and fpc-src from Fedora 17 x86_64. I modified toolsunix.mak where necessary to account for 64-bit paths.
This error seem to be present since the end of 2011 or so (I didn't check every release, but if I remember correctly, the releases from 2012-01-01 onwards fail with this error).
If this is too low level for the forum, we can take this offline (either via BricxCC SourceForge Bug Tracker, or email).
I'm currently trying to compile nxttools and nxtcc from SVN (rel. 610) on Fedora Linux 17 64-bit and came across the following error.
Compiling SynHighlighterNQC.pas
SynHighlighterNQC.pas(939,13) Error: Illegal type conversion: "TRangeState" to "Pointer"
SynHighlighterNQC.pas(1000,13) Error: Illegal type conversion: "Pointer" to "TRangeState"
SynHighlighterNQC.pas(1332) Fatal: There were 2 errors compiling module, stopping
Fatal: Compilation aborted
make: *** [nxttools] Error 1
This is using the latest fpc, lazarus and fpc-src from Fedora 17 x86_64. I modified toolsunix.mak where necessary to account for 64-bit paths.
This error seem to be present since the end of 2011 or so (I didn't check every release, but if I remember correctly, the releases from 2012-01-01 onwards fail with this error).
If this is too low level for the forum, we can take this offline (either via BricxCC SourceForge Bug Tracker, or email).
Re: Problem compiling Bricxcc SVN in Fedora Linux 64-bit
My apologies for the delayed response. I will look into this error and get back to you asap.
John Hansen
John Hansen
Multi-platform LEGO MINDSTORMS programming
http://bricxcc.sourceforge.net/
http://bricxcc.sourceforge.net/
Re: Problem compiling Bricxcc SVN in Fedora Linux 64-bit
No problem, I've been busy the past 2 weeks as well.afanofosc wrote:My apologies for the delayed response. I will look into this error and get back to you asap.
John Hansen
If we can sort this out, I can post the RPM SPEC files for folks interested in compiling their own packages from SVN.
Re: Problem compiling Bricxcc SVN in Fedora Linux 64-bit
Hi John,
Any updates regarding this?
TIA
Any updates regarding this?
TIA
Re: Problem compiling Bricxcc SVN in Fedora Linux 64-bit
It looks like the pascal script component that I am using does not currently compile with the 64-bit FreePascal compiler. I will work toward extracting it out so that it works for all platforms with the 32-bit compiler but is not included in the code when using the 64-bit compiler. I have made changes for the syntax highlighter errors you were getting and will check in those changes this week. It will probably take a few more days before I can separate out the pascal script stuff.
John Hansen
John Hansen
Multi-platform LEGO MINDSTORMS programming
http://bricxcc.sourceforge.net/
http://bricxcc.sourceforge.net/
Re: Problem compiling Bricxcc SVN in Fedora Linux 64-bit
Hi,
i determine to don't start the new thread. I have problem with preparing new svn (r611) packages (Debian wheeze 64bit), the compiler fails with this:
Can you help me please?
i determine to don't start the new thread. I have problem with preparing new svn (r611) packages (Debian wheeze 64bit), the compiler fails with this:
Code: Select all
FantomSpirit.pas(1342,32) Error: Identifier not found "Min"
FantomSpirit.pas(1455,15) Error: Identifier not found "Min"
FantomSpirit.pas(1588,15) Error: Identifier not found "GetTimeOfDay"
FantomSpirit.pas(1607,17) Error: Identifier not found "Min"
FantomSpirit.pas(1608,15) Error: Identifier not found "Min"
FantomSpirit.pas(2247,30) Error: Identifier not found "Max"
FantomSpirit.pas(3403,19) Error: Identifier not found "Min"
FantomSpirit.pas(4172,29) Error: Identifier not found "Min"
FantomSpirit.pas(4452) Fatal: There were 8 errors compiling module, stopping
Re: Problem compiling Bricxcc SVN in Fedora Linux 64-bit
I will have this problem fixed in a few minutes. My sincere apologies for checking in this breaking change without testing it with FPC on linux.
John Hansen
John Hansen
Multi-platform LEGO MINDSTORMS programming
http://bricxcc.sourceforge.net/
http://bricxcc.sourceforge.net/
Re: Problem compiling Bricxcc SVN in Fedora Linux 64-bit
I have checked in a few revisions which should fix the build errors you were encountering with r611.
John Hansen
John Hansen
Multi-platform LEGO MINDSTORMS programming
http://bricxcc.sourceforge.net/
http://bricxcc.sourceforge.net/
Re: Problem compiling Bricxcc SVN in Fedora Linux 64-bit
Hi,
I just tried compiling svn Rel. 617 on Fedora 17 x86_64.
nbc and nexttool compiles ok.
Also, I'm not sure how to deal with all the GUI related executables, as I'm failing compilation on uPSComponent,for example.
Can the GUI tools be built on Linux? Is there a pascalscript RPM available? The RemObjects website is rather cryptic to someone not familiar with Free Pascal. There does not seem to be any Linux packages available.
I just tried compiling svn Rel. 617 on Fedora 17 x86_64.
Code: Select all
$ make -f fantom.mak all
[...]
uSpirit.pas(544,11) Hint: Found declaration: LoadLSBlock(var NXTLSBlock,Byte,AnsiString,LongInt);
fantomspiritlib.pas(1179,4) Fatal: There were 1 errors compiling module, stopping
Also, I'm not sure how to deal with all the GUI related executables, as I'm failing compilation on uPSComponent,for example.
Code: Select all
Compiling uEditorUtils.pas
Fatal: Can't find unit uPSComponent used by uEditorUtils
Re: Problem compiling Bricxcc SVN in Fedora Linux 64-bit
I have been able to build the GUI tools on Linux 32-bit. The pascal script components do not currently compile using FreePascal 64-bit.
I pulled the PS code from the remobjects SVN repository which they have now moved to github:
https://github.com/remobjects/pascalscript
I think if you pull the code and make sure the makefile points to the correct path for the pascal script source then it should compile for you.
I have checked in revisions to fix the compiler error you mentioned. I made a change to the LoadLSBlock signature in uSpirit.pas and forgot to update the Linux-specific files that referred to that function.
John Hansen
I pulled the PS code from the remobjects SVN repository which they have now moved to github:
https://github.com/remobjects/pascalscript
I think if you pull the code and make sure the makefile points to the correct path for the pascal script source then it should compile for you.
I have checked in revisions to fix the compiler error you mentioned. I made a change to the LoadLSBlock signature in uSpirit.pas and forgot to update the Linux-specific files that referred to that function.
John Hansen
Multi-platform LEGO MINDSTORMS programming
http://bricxcc.sourceforge.net/
http://bricxcc.sourceforge.net/
Who is online
Users browsing this forum: Semrush [Bot] and 1 guest