Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2015-09

Build of Lazarus fails on Mac with STABS error (perhaps because of MacOSX 10.11??)

6 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Michael Ring

Two or three weeks ago I switched my main computer to OSX 10.11, now I tried to re-compile Lazarus but compilation failed. I compile Lazarus quite regulary, so my guess is that this is perhaps related to OSX 10.11 as this problem is new to me and I have not seen others talking about an error like this in the forum (besides a thread in may, but this seems at least partially unrelated as I was able to compile lazarus during the whole summer.

I was able to make the main compile work again by adding -gw explicitly to OPT:

make clean all CPU_TARGET=i386 LCL_PLATFORM=carbon OPT="-k'-framework' -k'ApplicationServices' -gw"

So far, so good but when I run lazbuild the build fails:

lazbuild --build-ide= --ws=carbon --cpu=i386 --compiler=/usr/local/bin/fpc

Free Pascal Compiler version 2.6.4 [2014/02/26] for i386 Copyright (c) 1993-2014 by Florian Klaempfl and others (1002) Target OS: Darwin for i386
(3104) Compiling debuggerintf.pas
(3104) Compiling dbgintfbasetypes.pas
<stdin>:4:9: error: unsupported directive '.stabs' .stabs
"/usr/local/share/lazarus/components/debuggerintf/",100,0,0,Lf1 ^
<stdin>:5:9: error: unsupported directive '.stabs' .stabs "dbgintfbasetypes.pas",100,0,0,Lf1
^
<stdin>:44:9: error: unsupported directive '.stabs' .stabs ":t1=-32;",128,0,0,0

The problem seems to be that with lazbuild the Makefile defaults are taken, this means for some modules that they are compiled with only -g which means with Stabs debug info and this perhaps is not valid anymore on Mac.

grep "\-g" /usr/local/share/lazarus/components/debuggerintf/Makefile ....
override COMPILER_OPTIONS+=-MObjFPC -Scghi -O1 -g -gl -l -vw- -vh- -venibq -vm4046
....

Any ideas how to solve this?

Michael

Reply by email

Sven Barth
to Michael Ring
"Michael Ring" wrote
grep "\-g" /usr/local/share/lazarus/components/debuggerintf/Makefile .... override COMPILER_OPTIONS+=-MObjFPC -Scghi -O1 -g -gl -l -vw- -vh-

-venibq -vm4046

Show quoted text 5 lines
.... Any ideas how to solve this?

You should try to pass -gw here as well. AFAIK there was some change regarding stabs support and trunk even completely removed it for Mac OS X.

Regards,
Sven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20150930/34ab274e/attachment.html>

Reply by email

Michael Ring
to Sven Barth

I am not sure if I understand correctly what you mean.

Is there a way to pass -gw with the help of lazbuild? I checked, but did not find anything obious.

The only other option would be to fix all Makefiles with a sed script (there is quite a number of -g in the Makefiles) this works of course but it would be better to have this solved in a another way.

Do you know if Stabs for Mac is only removed on trunk or also removed in 3.0?

3.0 will some day get officially supported compiler for building lazarus, but not trunk.

Michael

Sven Barth wrote 26 lines
Am 30.09.2015 15:22 schrieb "Michael Ring" < <mailto:>>: > grep "\-g" /usr/local/share/lazarus/components/debuggerintf/Makefile > .... > override COMPILER_OPTIONS+=-MObjFPC -Scghi -O1 -g -gl -l -vw- -vh- -venibq -vm4046 > .... > > > Any ideas how to solve this? > You should try to pass -gw here as well. AFAIK there was some change regarding stabs support and trunk even completely removed it for Mac OS X. Regards, Sven -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20150930/4fa69980/attachment.html>

Reply by email

Sven Barth
to Michael Ring
"Michael Ring" wrote
Is there a way to pass -gw with the help of lazbuild? I checked, but did

not find anything obious.

I don't know either, that is something the Lazarus devs will need to answer.

Do you know if Stabs for Mac is only removed on trunk or also removed in

3.0?

One of the reasons the release of 3.0.0 is delayed is this problem. We're lucky that it happened now and not shortly after release... :/

3.0 will some day get officially supported compiler for building lazarus,

but not trunk.

Even then it would become part of 3.0.2 as it's a too important fix...

Regards,
Sven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20150930/5ecb88cd/attachment.html>

Reply by email

Mattias Gaertner
to Michael Ring: Two or three weeks ago I switched my main computer to OSX 10.11, now I tried to…
Show quoted text 15 lines
Two or three weeks ago I switched my main computer to OSX 10.11, now I tried to re-compile Lazarus but compilation failed. I compile Lazarus quite regulary, so my guess is that this is perhaps related to OSX 10.11 as this problem is new to me and I have not seen others talking about an error like this in the forum (besides a thread in may, but this seems at least partially unrelated as I was able to compile lazarus during the whole summer. I was able to make the main compile work again by adding -gw explicitly to OPT: [...] <stdin>:5:9: error: unsupported directive '.stabs' .stabs "dbgintfbasetypes.pas",100,0,0,Lf1 [...] ^ Any ideas how to solve this?

I changed the makefiles, IDE and lazbuild to use -gw instead of -g on darwin.

Please test.

Mattias

Reply by email

Michael Ring
to Mattias Gaertner

I did a full rebuild based on fpc 2.6.4, worked perfectly on my Mac, both via the normal make and also via lazbuild.

Thank you very much, Mattias!

Michael

Mattias Gaertner wrote 30 lines
On Wed, 30 Sep 2015 15:22:31 +0200 Michael Ring wrote: > Two or three weeks ago I switched my main computer to OSX 10.11, now I > tried to re-compile Lazarus but compilation failed. I compile Lazarus > quite regulary, so my guess is that this is perhaps related to OSX 10.11 > as this problem is new to me and I have not seen others talking about an > error like this in the forum (besides a thread in may, but this seems at > least partially unrelated as I was able to compile lazarus during the > whole summer. > > I was able to make the main compile work again by adding -gw explicitly > to OPT: > [...] > <stdin>:5:9: error: unsupported directive '.stabs' > .stabs "dbgintfbasetypes.pas",100,0,0,Lf1 > [...] ^ > Any ideas how to solve this? I changed the makefiles, IDE and lazbuild to use -gw instead of -g on darwin. Please test. Mattias -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email