Recent

Author Topic: Arch trying to install FPC from source  (Read 380 times)

dtpfl

  • Newbie
  • Posts: 5
Arch trying to install FPC from source
« on: December 20, 2022, 08:57:10 pm »
Hey,

im currently trying to install FPC on Arch from source (git).

  • Installed git + fpc (pacman)
  • Cloned from https://gitlab.com/freepascal.org/fpc/source
  • In source, i first run fpcmake once, then make install, also tried something like "sudo make install OS_TARGET=linux CPU_TARGET=x86_64 INSTALL_PREFIX=dtpfl


No errors.
But in this case generated folders like dtpfl/bin and dtpfl/lib in are all empty.

Am i missing something?

Thanks! :)

PascalDragon

  • Hero Member
  • *****
  • Posts: 5051
  • Compiler Developer
Re: Arch trying to install FPC from source
« Reply #1 on: December 20, 2022, 09:22:40 pm »
You don't need to run fpcmake.

And the usual approach is:

Code: [Select]
make all -j <N>
make install INSTALL_PREFIX=/absolute/path/to/target -j <N>

(where <N> is the number of processors cores)

You don't need to specify OS_TARGET and CPU_TARGET if your desired targets match the ones of your bootstrap compiler.

 

TinyPortal © 2005-2018