Recent

Author Topic: Failed to execute "ppc386"  (Read 22469 times)

mbohn

  • Full Member
  • ***
  • Posts: 120
Failed to execute "ppc386"
« on: January 06, 2010, 07:44:17 pm »
Follow the getlaz instructions in the Wiki and Lazarus should be up and running with no fuss and no muss.
I followed the getlaz instructions and it seemed to go ok.  When I try to compile my source I get the following:
Code: [Select]
Error: ppc386 can't be executed, error message: Failed to execute "ppc386", error code: 127
Laz 0.9.28.0-0
fpc 2.2.4

(This thread started on the OSX forum but now belongs in the Linux forum.)

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2770
    • havefunsoft.com
Re: Failed to execute "ppc386"
« Reply #1 on: January 06, 2010, 08:29:15 pm »
can you compile
Code: [Select]
begin writeln('hello world'); end.
from terminal (via ppc386 or fpc)?

mbohn

  • Full Member
  • ***
  • Posts: 120
Re: Failed to execute "ppc386"
« Reply #2 on: January 06, 2010, 10:13:24 pm »
can you compile
Code: [Select]
begin writeln('hello world'); end.
from terminal (via ppc386 or fpc)?
No.  Here is what happened:

Code: [Select]
$ fpc unit1.pas
Error: ppc386 can't be executed, error message: Failed to execute "ppc386", error code: 127

and

Code: [Select]
$ ppc unit1.pas
The program 'ppc' is currently not installed.  You can install it by typing:
sudo apt-get install pearpc
ppc: command not found

I followed the instructions to get pearpc, then this is what happens:

Code: [Select]
$ ppc unit1.pasThis program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License version 2 as published by
the Free Software Foundation.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111 USA

GenuineIntel
 CMOV MMX SSE SSE2
[Display/SDL]: Making new window 800 x 600
[IO/IDE] <Error> test/imgs/linux.img: could not open file (No such file or directory)


and

Code: [Select]
$ fpc unit1.pasError: ppc386 can't be executed, error message: Failed to execute "ppc386", error code: 127
The last error is what I started with.


skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2770
    • havefunsoft.com
Re: Failed to execute "ppc386"
« Reply #3 on: January 07, 2010, 01:49:32 am »
please note that "ppc" (pearpc emulator) is not "ppc386" ( FPC compiler for i386 processors),
so calling "ppc unit1.pas" is not correct.

it seems like you have a similar problem: http://forum.lazarus.freepascal.org/index.php?topic=6096.0

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11452
  • FPC developer.
Re: Failed to execute "ppc386"
« Reply #4 on: January 07, 2010, 09:22:41 pm »

type

which fpc

and

which ppc386

and

which ppcppc

and report the input here.

mbohn

  • Full Member
  • ***
  • Posts: 120
Re: Failed to execute "ppc386"
« Reply #5 on: January 08, 2010, 02:37:10 am »
mark@mark-laptopXP:~$ which fpc
/usr/bin/fpc
mark@mark-laptopXP:~$ which ppc386
mark@mark-laptopXP:~$ which ppcppc
mark@mark-laptopXP:~$


No response from the last two.

mbohn

  • Full Member
  • ***
  • Posts: 120
Re: Failed to execute "ppc386"
« Reply #6 on: January 08, 2010, 06:41:39 pm »
please note that "ppc" (pearpc emulator) is not "ppc386" ( FPC compiler for i386 processors),
so calling "ppc unit1.pas" is not correct.

it seems like you have a similar problem: http://forum.lazarus.freepascal.org/index.php?topic=6096.0
I tried the symlink suggested in that discussion.  Wasn't sure but I changed 2.3.1 to 2.2.4 since that is my fpc version.  Anyway, it didn't help.  That is probably related to
Code: [Select]
which ppc386 not giving any results which I tried again after making the symlink.  Nor does Lazarus execute ppc386.

mbohn

  • Full Member
  • ***
  • Posts: 120
Re: Failed to execute "ppc386"
« Reply #7 on: January 08, 2010, 06:55:39 pm »
 I have found ppc386 in the following places:
 link to executable: ~/fpc-2.2.4/bin
             executable ~/fpc-2.2.4/lib/fpc/2.2.4
              executable /usr/lib/fpc/2.2.4

Should I make a symlink to one of those from /bin/ppc386 ?

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2770
    • havefunsoft.com
Re: Failed to execute "ppc386"
« Reply #8 on: January 08, 2010, 08:25:18 pm »
yes. btw, i'd suggest to use 2.4.0 version

mbohn

  • Full Member
  • ***
  • Posts: 120
Re: Failed to execute "ppc386"
« Reply #9 on: January 08, 2010, 10:50:10 pm »
yes. btw, i'd suggest to use 2.4.0 version

That worked. :)  I pointed to /usr/lib/fpc/2.2.4/ppc386

/bin/ppc386 was originally a link to a non-existing file.  Was that left over from previous failed clean/install attempts and not written over by the getlaz script?
 
Anyway, thanks for everyone's help. And patience.

 

TinyPortal © 2005-2018