Recent

Author Topic: Compile Error 'hello' on El Capitan  (Read 2512 times)

Dan3468298

  • Full Member
  • ***
  • Posts: 131
Compile Error 'hello' on El Capitan
« on: November 29, 2015, 05:17:57 pm »
Hi,

Newbie here using Mac OS X 10.11.1 El Capitan.  I installed all the needed Xocde per directions.   After 'make hello' when I compile with 'fpc hello' I get:

Code: Pascal  [Select][+][-]
  1. $ fpc hello
  2. Free Pascal Compiler version 3.0.0 [2015/11/14] for i386
  3. Copyright (c) 1993-2015 by Florian Klaempfl and others
  4. Target OS: Darwin for i386
  5. Compiling hello.pp
  6. Assembling (pipe) hello.s
  7. clang -cc1as: error: unable to open output file 'hello.o': 'Permission denied'
  8. hello.pp(20,3) Fatal: There were 1 errors compiling module, stopping
  9. Fatal: Compilation aborted
  10. Error: /usr/local/bin/ppc386 returned an error exitcode

So it looks like I have file permissions screwed up?  Please advise. 

Thanks,
Dan
MacOS 10.15.5/Lazarus 2.0.10 Build 2020-07-07

Jonas Maebe

  • Hero Member
  • *****
  • Posts: 1058
Re: Compile Error 'hello' on El Capitan
« Reply #1 on: November 29, 2015, 05:36:05 pm »
In which directory are you when you execute that command? Note that only root has permissions to write in the directories under /usr/local. Copy the files there to your home directory and compile them there if you wish to build them.

Dan3468298

  • Full Member
  • ***
  • Posts: 131
Re: Compile Error 'hello' on El Capitan
« Reply #2 on: November 29, 2015, 06:07:26 pm »
That was it, forgot to copy the source to home folder.  fpc works now fine.  Thanks.
MacOS 10.15.5/Lazarus 2.0.10 Build 2020-07-07

 

TinyPortal © 2005-2018