Recent

Author Topic: Fatal: Compilation aborted  (Read 6553 times)

karl23

  • Newbie
  • Posts: 5
Fatal: Compilation aborted
« on: June 02, 2018, 09:14:40 am »
Hi,
I have installed Lazarus 1.8.4 on MAC OS 10.6 Snow Leopard.
XCode Version is 4.2

When I start compiling an empty form I get this error:

Kompiliere Package FCL 1.0.1: Erfolg
Kompiliere Package LazUtils 1.0: Erfolg
Kompiliere Package LCLBase 1.8.4: Exit code 256, Fehler: 1
lclproc.pas(3215,0) Verbose: There were 1 errors compiling module, stopping
Fatal: Compilation aborted

Sorry, I am a newby with MAC. Is there something missing?

karl23

  • Newbie
  • Posts: 5
Re: Fatal: Compilation aborted
« Reply #1 on: June 02, 2018, 09:56:40 am »
I tried to compile from examples folder the "canvas test program":

Kompiliere Package FCL 1.0.1: Erfolg
Kompiliere Package LazUtils 1.0: Exit code 256, Fehler: 1, Hinweise: 11
lazutf8.pas(509,44) Hint: Mixing signed expressions and longwords gives a 64bit result
lazutf8.pas(519,53) Hint: Mixing signed expressions and longwords gives a 64bit result
lazutf8.pas(524,33) Hint: Mixing signed expressions and longwords gives a 64bit result
lazutf8.pas(530,44) Hint: Mixing signed expressions and longwords gives a 64bit result
dynhasharray.pp(439,26) Hint: Conversion between ordinals and pointers is not portable
dynhasharray.pp(439,40) Hint: Conversion between ordinals and pointers is not portable
dynhasharray.pp(504,20) Hint: Conversion between ordinals and pointers is not portable
dynhasharray.pp(505,13) Hint: Conversion between ordinals and pointers is not portable
dynhasharray.pp(505,36) Hint: Conversion between ordinals and pointers is not portable
dynhasharray.pp(506,13) Hint: Conversion between ordinals and pointers is not portable
dynhasharray.pp(121,40) Verbose: Parameter "Sender" not used
dynqueue.pas(459,34) Hint: Conversion between ordinals and pointers is not portable
ttcalc.pas(249,0) Verbose: There were 1 errors compiling module, stopping
Fatal: Compilation aborted


Phil

  • Hero Member
  • *****
  • Posts: 2737
Re: Fatal: Compilation aborted
« Reply #2 on: June 02, 2018, 02:05:55 pm »
Sorry, I am a newby with MAC. Is there something missing?

Make sure you have the Xcode command line tools (for Xcode 4.2) installed. The Xcode IDE is not enough.

Then try compiling a small test app from the Terminal command line to make sure the FPC compiler is working.

Once you have that solved, I would look into upgrading to a more recent OS X.

karl23

  • Newbie
  • Posts: 5
Re: Fatal: Compilation aborted
« Reply #3 on: June 02, 2018, 06:08:17 pm »
Hi Phil,

thank you for answering.

XCode 4.2 already includes Command line tools,
terminal output:
gcc -version
i686-apple-darwin10-llvm-gcc-4.2: no input files

Writing a "simple program" in Lazarus:
program hello;
begin
  writeln('Hello, world!');
end.
compiles without errors.

with "Project/FPCUnit Test Application" I get:
Compile package FCL 1.0.1: Success
Compile package LazUtils 1.0: Exit code 256, Errors:1
ttcalc.pas(249,0) Verbose: there were 1 errors compiling module, stopping
Fatal: Compilation aborted

Phil

  • Hero Member
  • *****
  • Posts: 2737
Re: Fatal: Compilation aborted
« Reply #4 on: June 02, 2018, 06:40:10 pm »
XCode 4.2 already includes Command line tools,
terminal output:
gcc -version
i686-apple-darwin10-llvm-gcc-4.2: no input files

Note that FPC does not use gcc. It does use Apple's linker and assembler included with Xcode command line tools.

In any case, it looks like FPC has what it needs, so it's probably a Lazarus issue.

In Lazarus Tools | Options, make sure the test projects directory is set to something writable, like /tmp/  .

You could also just try saving the project's files before you run it.

karl23

  • Newbie
  • Posts: 5
Re: Fatal: Compilation aborted
« Reply #5 on: June 04, 2018, 07:00:05 am »
if a simple test application aborts because it is a Lazarus issue, then Lazarus does not work on MacBookPro? Are there other users with Mac problems? or am I the only one?

Karl

karl23

  • Newbie
  • Posts: 5
Re: Fatal: Compilation aborted
« Reply #6 on: June 06, 2018, 07:36:10 am »
ok I found a solution!

My aged MacBookPro (2008) with Snow Leopard and XCode 4.2 was not able to compile whatever I tried.

Finally I installed  High Sierra with patch for MacBookPro4,1 and XCode 9 with CommandLineTools. Now compiler works fine!

 

TinyPortal © 2005-2018