Recent

Author Topic: Lazarus 1.4.2 fresh install "Fatal: Compilation aborted"  (Read 7897 times)

phaserescu

  • New member
  • *
  • Posts: 7
Lazarus 1.4.2 fresh install "Fatal: Compilation aborted"
« on: September 23, 2015, 02:50:05 pm »
Hi

I've installed Lazarus 1.4.2, started it and hit run and got "Fatal: Compilation aborted".

Attached you can see the full log from FPC.

OS: OSX Yosemite Version 10.10.5
Xcode: Version 7.0 (7A220)

I've also installed 1.4.0 and got the same results.
I've used the steps from http://wiki.freepascal.org/Installing_Lazarus_on_MacOS_X#Uninstalling_Lazarus_and_Free_Pascal to uninstall the previous version. Then installed fpc, fpc-src and lazarus in this order.

Thanks!

Jonas Maebe

  • Hero Member
  • *****
  • Posts: 1059
Re: Lazarus 1.4.2 fresh install "Fatal: Compilation aborted"
« Reply #1 on: September 23, 2015, 02:59:08 pm »
That log file only seems to contain debug output from the compiler to get information about your configuration (see the last line of the log saying "NOTE: The compilertest.pas is empty, so compilation fails. This is what we want." -- I missed that in the other thread).

This does not seem to the output from the compiler when actually trying to build your project.

phaserescu

  • New member
  • *
  • Posts: 7
Re: Lazarus 1.4.2 fresh install "Fatal: Compilation aborted"
« Reply #2 on: September 23, 2015, 03:10:30 pm »
Ok got more info. So the command line that is run.

Code: [Select]
Compile Project, Target: project1

Compile Reason: Source file "/Users/cristi/tmp/project1.lpr" of Project outdated:
  Source age=09/23/15 04:02:06 PM
  State file age=09/23/15 03:45:14 PM
  State file=/Users/cristi/tmp/project1.compiled


Executable:
/usr/local/bin/ppc386

CurrentDirectory:
/Users/cristi/tmp/

Parameters:
-MObjFPC
-Scghi
-O1
-g
-gl
-k-framework
-kCarbon
-k-framework
-kOpenGL
-k-dylib_file
-k/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib
-l
-vewnhibq
-Filib/i386-darwin
-Fu/Developer/lazarus/lcl/units/i386-darwin/carbon
-Fu/Developer/lazarus/lcl/units/i386-darwin
-Fu/Developer/lazarus/components/lazutils/lib/i386-darwin
-Fu/Developer/lazarus/packager/units/i386-darwin
-FUlib/i386-darwin/
-dLCL
-dLCLcarbon
/Users/cristi/tmp/project1.lpr

Command Line:
/usr/local/bin/ppc386 -MObjFPC -Scghi -O1 -g -gl -k-framework -kCarbon -k-framework -kOpenGL -k-dylib_file -k/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib -l -vewnhibq -Filib/i386-darwin -Fu/Developer/lazarus/lcl/units/i386-darwin/carbon -Fu/Developer/lazarus/lcl/units/i386-darwin -Fu/Developer/lazarus/components/lazutils/lib/i386-darwin -Fu/Developer/lazarus/packager/units/i386-darwin -FUlib/i386-darwin/ -dLCL -dLCLcarbon /Users/cristi/tmp/project1.lpr

ProcessID:
19570

ExitStatus:
1

Error: Exit code 1

If I go to that location and run the command manually I get a lot of cryptic errors. I've attached a file!

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2770
    • havefunsoft.com
Re: Lazarus 1.4.2 fresh install "Fatal: Compilation aborted"
« Reply #3 on: September 23, 2015, 03:12:47 pm »
try to switch your debugging type from "Automatic" to "Dwarf2"

phaserescu

  • New member
  • *
  • Posts: 7
Re: Lazarus 1.4.2 fresh install "Fatal: Compilation aborted"
« Reply #4 on: September 23, 2015, 03:18:13 pm »
try to switch your debugging type from "Automatic" to "Dwarf2"

Thanks man! That did the trick. Now it compiles fine!

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2770
    • havefunsoft.com
Re: Lazarus 1.4.2 fresh install "Fatal: Compilation aborted"
« Reply #5 on: September 23, 2015, 03:26:22 pm »
Good. Are you working for King.com? I'm wondering if the game industry pays some attention to FPC :)
« Last Edit: September 23, 2015, 03:32:12 pm by skalogryz »

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2770
    • havefunsoft.com
Re: Lazarus 1.4.2 fresh install "Fatal: Compilation aborted"
« Reply #6 on: September 23, 2015, 03:31:43 pm »

phaserescu

  • New member
  • *
  • Posts: 7
Re: Lazarus 1.4.2 fresh install "Fatal: Compilation aborted"
« Reply #7 on: September 25, 2015, 05:24:01 pm »
Good. Are you working for King.com? I'm wondering if the game industry pays some attention to FPC :)

Yes! :) King doesn't pay any attention to FPC. Pascal was my first programming language and I used to write a lot of Delphi code 10 years ago, so I'm checking out Lazarus from time to time.

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2770
    • havefunsoft.com
Re: Lazarus 1.4.2 fresh install "Fatal: Compilation aborted"
« Reply #8 on: September 25, 2015, 05:37:24 pm »
Yes! :) King doesn't pay any attention to FPC. Pascal was my first programming language and I used to write a lot of Delphi code 10 years ago, so I'm checking out Lazarus from time to time.
Ah... I see, personal preferences. You had just a bad luck to check it with Xcode 7 update :D

Blue_Painted

  • New Member
  • *
  • Posts: 17
Re: Lazarus 1.4.2 fresh install "Fatal: Compilation aborted"
« Reply #9 on: October 03, 2015, 08:16:41 am »
I'm getting the same/similar error "Compiling package LCL 1.0.1: Exit code 1, Errors 1" followed by "Compilation aborted"

I've tried setting the debugging type to "Dwarf2" and then tried turning it off entirely but I still get the same error.

Where did you find the output log you posted?

MTIA

Ed

Jonas Maebe

  • Hero Member
  • *****
  • Posts: 1059
Re: Lazarus 1.4.2 fresh install "Fatal: Compilation aborted"
« Reply #10 on: October 05, 2015, 03:20:58 pm »
I'm getting the same/similar error "Compiling package LCL 1.0.1: Exit code 1, Errors 1" followed by "Compilation aborted"

I've tried setting the debugging type to "Dwarf2" and then tried turning it off entirely but I still get the same error.

Try these instructions (from Mattias Gaertner on a mailing list):
Quote
Project / Project Options / Compiler Options / Additions and Overrides
Click on the 'Add' button above the matrix.

http://wiki.lazarus.freepascal.org/IDE_Window:_Compiler_Options#Add_a_flag_to_project_and_all_packages

Instead of '-dSomeFlag' use '-gw'.
Then click on the button with the green arrow-up to move the option to "Stored in IDE".

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2770
    • havefunsoft.com
Re: Lazarus 1.4.2 fresh install "Fatal: Compilation aborted"
« Reply #11 on: October 05, 2015, 03:45:01 pm »
Try these instructions (from Mattias Gaertner on a mailing list):
updated

mac-pascal archives are available for registered users only. Not very public/useful for reference.
« Last Edit: October 05, 2015, 03:50:31 pm by skalogryz »

saml

  • New Member
  • *
  • Posts: 20
  • Developer, Biotech Engineer, PhD Student
    • Bionics IT
Re: Lazarus 1.4.2 fresh install "Fatal: Compilation aborted"
« Reply #12 on: February 09, 2016, 02:33:11 pm »
Try these instructions (from Mattias Gaertner on a mailing list):
Quote
Project / Project Options / Compiler Options / Additions and Overrides
Click on the 'Add' button above the matrix.

http://wiki.lazarus.freepascal.org/IDE_Window:_Compiler_Options#Add_a_flag_to_project_and_all_packages

Instead of '-dSomeFlag' use '-gw'.
Then click on the button with the green arrow-up to move the option to "Stored in IDE".

Just solved the problem for me! Thanks!

 

TinyPortal © 2005-2018