[SOLVED] Installing lazarus from SVN on Ubuntu 11.04 x64 lazarus / 1-Linux ---------------------------------------------------------------------- Mike.Cornflake · 2011-08-10 06:54 G'day, I know - a thousand of these topics, yet none seem to answer my question :-(   (And I even went through my shiny new lazarus book, but no help there, not for this).  I'm new to Linux, SVN and makefiles, and that trifecta is killing me :-( I'm running Ubuntu 11.04 64bit.  I've already got fpc 2.4.2 installed and lazarus 0.9.30.  Both of these were installed from rpms, and they work. I'm now trying to build lazarus from SVN (so I can create a patch file).  Got my ~/lazarusSVN folder, got all the files.  Type make and I get Code: [Select]> make clean all Makefile:198: *** The Makefile doesn't support target can't-executed,, please run fpcmake first.  Stop. Running fpcmake doesn't help, but it gives me clues. Code: [Select]> fpcmake -w Processing Makefile.fpc  i386-linux requires: rtl,regexpr  Writing Makefile I'm running both make and fpcmake while sitting in the ~/lazarusSVN folder. From this I guess there's a setting wrong somewhere - when I run fpcmake it's generating a Makefile for i386, I need x64.  I just can't find where or how to fix this though :-(   All help greatly appreciated...  Before anyone asks, I would like to repeat that fpc 2.4.2 (and sources) is installed on my system, and that I can compile and run apps using lazarus 0.9.30, so I have a high confidence that fpc is correctly installed....   I've tried fpcmake -w -Tall, and while the output of fpcmake is now longer, when I run make I get exactly the same results... ---------------------------------------------------------------------- Mike.Cornflake · 2011-08-10 07:01 Code: [Select]> fpcmake -w -Tx86_64-linux Processing Makefile.fpc  x86_64-linux requires: rtl,regexpr  Writing Makefile Darned - I had high hopes for that, but the output of make is unchanged :-( ---------------------------------------------------------------------- BigChimp · 2011-08-10 07:12 Maybe a stupid question, but you had installed the 64 bit rpms (presumably using alien)? ---------------------------------------------------------------------- Mike.Cornflake · 2011-08-10 07:16 Yup - installed the 64bit rpm's - and yes, using alien.     Not a stupid question at all.  I could be wrong, but I don't think the 32 bit versions would work, but to be sure I checked, and yes my rpms were 64bit... ---------------------------------------------------------------------- Mike.Cornflake · 2011-08-10 07:35 and I think I'm in :-) trawling through the forums for vaguely related articles and found make supports the following syntax Code: [Select]> make CPU_TARGET=x64_86 OS_TARGET=linux I've still got errors, but I think I can work through them - looks like I need to fpcmake -w -Tx64_84 in a few more folders first... Code: [Select] make[1]: Leaving directory `/home/mike/Code/lazarusSVN/components' make -C ide ide make[1]: Entering directory `/home/mike/Code/lazarusSVN/ide' /bin/mkdir -p ../units/x86_64-linux make -C ../tools svn2revisioninc OS_TARGET=be CPU_TARGET=ppc386 OPT='' make[2]: Entering directory `/home/mike/Code/lazarusSVN/tools' Wish me luck :-) ---------------------------------------------------------------------- Mike.Cornflake · 2011-08-10 07:52 Nope :-(   Running fpcmake -w -Tx64_84 in the IDE folder did indeed get me past the previous error, but now I've got the following error, and no idea how to get past this... Quote...  5 pages of successfull compiles, leading to... treefilteredit.pas(175,33) Warning: Symbol "OnGetImageIndex" is deprecated: "use OnDrawItem handler in FilteredListbox" treefilteredit.pas(9,21) Hint: Unit "StdCtrls" not used in TreeFilterEdit treefilteredit.pas(9,71) Hint: Unit "ImgList" not used in TreeFilterEdit 1389 lines compiled, 0.7 sec 2 warning(s) issued 4 hint(s) issued 1 note(s) issued /bin/cp -fp Makefile.compiled lib/x86_64-linux/LazControls.compiled make[2]: Leaving directory `/home/mike/Code/lazarusSVN/components/lazcontrols' make[1]: Leaving directory `/home/mike/Code/lazarusSVN/components' make -C ide ide make[1]: Entering directory `/home/mike/Code/lazarusSVN/ide' make -C ../tools svn2revisioninc OS_TARGET=be CPU_TARGET=ppc386 OPT='' make[2]: Entering directory `/home/mike/Code/lazarusSVN/tools' Makefile:198: *** The Makefile doesn't support target ppc386-be, please run fpcmake first.  Stop. make[2]: Leaving directory `/home/mike/Code/lazarusSVN/tools' make[1]: *** [revisioninc] Error 2 make[1]: Leaving directory `/home/mike/Code/lazarusSVN/ide' make: *** [ide] Error 2 Does anyone have any idea where all the CPU_TARGET=ppc386 settings are coming from?  I've already tried running fpcmake -w -Tx64_84 in the tools folder...  I can't find where to make the correct change :-( ---------------------------------------------------------------------- Mike.Cornflake · 2011-08-10 13:16 Solved.   Turns out ppc386 is the name of the Portable Pascal Compiler - I assumed it was a code for the powerpc chipset :-(    There was a symbolic link to it in /usr/local/bin that was stale - from an older install of fpc - I must have accidently installed the 386 version sometime.  sudo rm'd the stale link, sudo ln'd a new link from my fpc directory, then bingo - make clean all worked a charm.    Heck of a way to spend the day :-) ---------------------------------------------------------------------- ss1d · 2011-08-12 11:39 This is my error ,please help :-( Quote/usr/bin/ld: warning: ./link.res contains output sections; did you forget -T? /usr/bin/ld: skipping incompatible /usr/lib/crti.o when searching for /usr/lib/crti.o /usr/bin/ld: skipping incompatible /usr/lib/crti.o when searching for /usr/lib/crti.o /usr/bin/ld: cannot find /usr/lib/crti.o svn2revisioninc.pas(603,1) Error: Error while linking svn2revisioninc.pas(603,1) Fatal: There were 1 errors compiling module, stopping Fatal: Compilation aborted make[2]: *** [svn2revisioninc] Error 1 make[2]: Leaving directory `/root/lazarus/tools' make[1]: *** [revisioninc] Error 2 make[1]: Leaving directory `/root/lazarus/ide' make: *** [ide] Error 2