Forum > macOS / Mac OS X

Fatal: Compilation aborted

(1/2) > >>

karl23:
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:
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:

--- Quote from: karl23 on June 02, 2018, 09:14:40 am ---Sorry, I am a newby with MAC. Is there something missing?

--- End quote ---

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:
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:

--- Quote from: karl23 on June 02, 2018, 06:08:17 pm ---XCode 4.2 already includes Command line tools,
terminal output:
gcc -version
i686-apple-darwin10-llvm-gcc-4.2: no input files

--- End quote ---

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.

Navigation

[0] Message Index

[#] Next page

Go to full version