Recent

Author Topic: Location of Compiler on Ubuntu  (Read 5260 times)

cov

  • Full Member
  • ***
  • Posts: 241
Location of Compiler on Ubuntu
« on: November 21, 2014, 02:45:33 pm »
I tried to run Lazarus for the first time in a long time and the IDE couldn't find the fcp compiler.

Code: [Select]
dave@Threepwood:~$ ls /usr/bin/fp
fp-2.6.0            fpcmake-2.6.0       fpdoc-2.6.2
fp-2.6.2            fpcmake-2.6.2       fppkg
fpc-2.6.2           fpcmkcfg-2.6.2      fppkg-2.6.0
fpc-depends         fpcres-2.6.2        fppkg-2.6.2
fpc-depends-2.6.2   fpcsubst            fprcp
fpclasschart        fpcsubst-2.6.0      fprcp-2.6.0
fpclasschart-2.6.0  fpcsubst-2.6.2      fprcp-2.6.2
fpclasschart-2.6.2  fpdoc               
fpcmake             fpdoc-2.6.0         

I'm not sure which one to use.

I'm getting an error message that says:
Quote
Compiler "/usr/bin/fpc-2.6.2" does not support target x86_64-linux

Leledumbo

  • Hero Member
  • *****
  • Posts: 8746
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Location of Compiler on Ubuntu
« Reply #1 on: November 22, 2014, 02:56:06 pm »
Looks like Ubuntu does a mess with its fpc package. The real compiler is ppc[ross]XXX where XXX being the target architecture and ross infix being an indicator of a cross compiler, fpc itself is just a "driver" that selects the correct ppc[ross]XXX based on -P parameter (defaults to architecture where fpc itself is compiled for). It should be a symlink in the /usr/bin to the same ppc[ross]XXX binary in fpc directory, which normally installs as /usr/lib/fpc/$fpcversion. Please check that. Check also your fpc.cfg to ensure the paths are valid.

cov

  • Full Member
  • ***
  • Posts: 241
Re: Location of Compiler on Ubuntu
« Reply #2 on: November 24, 2014, 10:54:17 am »
My installation seems to be full of broken links.

I have a lnked file in /usr/bin/ppcx64 -> /etc/alternatives/ppcx64/etc/alternatives/ppcx64 -> /usr/lib/fpc/2.6.2/ppcx64,  but /usr/lib/fpc/2.6.2/ppcx64 doesn't exist.


:(

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11382
  • FPC developer.
Re: Location of Compiler on Ubuntu
« Reply #3 on: November 24, 2014, 11:04:28 am »
Maybe you installed the 32-bit instead of the 64-bit version?

Leledumbo

  • Hero Member
  • *****
  • Posts: 8746
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Location of Compiler on Ubuntu
« Reply #4 on: November 24, 2014, 11:47:23 am »
My installation seems to be full of broken links.

I have a lnked file in /usr/bin/ppcx64 -> /etc/alternatives/ppcx64/etc/alternatives/ppcx64 -> /usr/lib/fpc/2.6.2/ppcx64,  but /usr/lib/fpc/2.6.2/ppcx64 doesn't exist.


:(
Using your current package manager (probably synaptics), you should be able to list installed files from a package. In ubuntu, the compiler package is fp-compiler if I'm not mistaken. If it's installed but the file is missing, try reinstalling. Ohterwise, you can use distro neutral version here.

cov

  • Full Member
  • ***
  • Posts: 241
Re: Location of Compiler on Ubuntu
« Reply #5 on: November 25, 2014, 03:39:58 pm »
Synaptic tells me that the compiler is here: /usr/lib/fpc/2.6.2/ppcx64

which it's not:
~$ ls -l /usr/lib/fpc/2.6.2/
total 24
-rw-r--r-- 1 root root   71 Aug 19 15:50 fpc-cross.cfg
drwxr-xr-x 3 root root 4096 Aug 19 15:03 ide
drwxr-xr-x 2 root root 4096 Aug 19 15:50 lexyacc
drwxr-xr-x 2 root root 4096 Aug 19 15:04 msg
-rwxr-xr-x 1 root root 2785 Jan 22  2014 samplecfg
drwxr-xr-x 3 root root 4096 Mar 20  2014 units

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11382
  • FPC developer.
Re: Location of Compiler on Ubuntu
« Reply #6 on: November 25, 2014, 03:47:30 pm »
Remove and reinstall. If then still missing, I think it is time for a bugreport to the Linux distribution's bug tracker.

 

TinyPortal © 2005-2018