Lazarus
Free Pascal => Beginners => Topic started by: Middlecope on October 09, 2014, 04:07:15 pm
-
Is there a article that tells me how to compile the fpc source?
All things are done in my home directory
The fpc source is downloaded by SVN and placed in a directory named fpc.
The fpc-2.6.4 is installed with ./install.sh without problem.
How can I compile the fpc compiler and how to replace the old fpc-2.6.4 with the new one?
export PP=/home/user/fpc-2.6.4/bin/ppcx64
make all
A lot of output but it is stuck at:
make[7] Entering directory /home/user/fpc/rtl/linux
as --64 -o /home/user/fpc/rtl/units/x86_64-linux/prtO.o x86_64/prtO.as
make[7] as: Command not found
Machine openSUSE 13.1
Thanks for your attention!
-
Try command:
$ fpc -iV
If you have properly installed FPC, it should prompt
2.6.4
Go to directory where you downloaded FPC.
Write:
$ svn update
$ make distclean
$ make all
$ su
***password***
make install
If everything went w/o errors, go to
/usr/local/bin
and change the symlink ppcx64 to path:
/usr/local/lib/fpc/2.7.1/ppcx64
Now try again:
$ fpc -iV
It should prompt
2.7.1
-
fpc -iTO
fpc -iTP
show resp. the default OS and CPU of the compiler. Useful if you want to see if the correct compiler is chosen set as default.
-
Thanks
I am working in my home directory so I skipped the "su" command
All the files in ~/fpc_2.6.4/bin were placed in home/usr/bin
fpc -iV gives 2.6.4 fpc -iTO gives linux fpc -iTP gives x86_64
"make distclean" goes without error
Unfortunately the "make all" gives the error mentioned in my first post
Any more ideas?
-
AS is part of the binutils package. In general, the requirements assume you have a general "build-essentials" or similar package installed that contains binutils-gdb-gcc-make-(g)libc.
-
Yes binutils was missing. Thanks you very much for the hint
Now it is compiling like a dream. Thanks.
A very small problem with "make install"
How can I instruct make "install" to place everything in my home directory?
/usr/local/lib/fpc cannot be created it should be /home/teunis/local/lib/fpc etc.
Thanks in advance. Teunis
-
Hi
On Linux, you need SU to install anything! (root account). Security ;D
Regards Benny
-
How can I instruct make "install" to place everything in my home directory?
make <additional options or commands or targets> INSTALL_PREFIX=/home/yourusername/fpc/or/anywhere/you/want
-
There is also the buildfaq: http://www.stack.nl/~marcov/buildfaq.pdf
-
Yes thank you that did the trick
Everybody thank you for RESOLVING my problem/question