Sign in Join

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

Mailing lists / lazarus / 2015-05

Lazarus trunk (r49079) does not compile on MAC

13 messages · 4 people ·

Reply by email Subscribe to this list Your subscription

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

Torsten Bonde Christiansen

With FPC 2.6.4 and Lazarus trunk (r49079), lazarus no longer compiles on MAC:

/Users/torsten/FreePascal/lazarus/components/lazutils/lazlistclasses.pas(1252,43) Hint: (4035) Mixing signed expressions and longwords gives a 64bit result /Users/torsten/FreePascal/lazarus/components/lazutils/lazlistclasses.pas(1281,21) Note: (5025) Local variable "m" not used
/Users/torsten/FreePascal/lazarus/components/lazutils/lazlistclasses.pas(1655,20) Hint: (4035) Mixing signed expressions and longwords gives a 64bit result /Users/torsten/FreePascal/lazarus/components/lazutils/lazlistclasses.pas(238,29) Hint: (5024) Parameter "ARequired" not used
(9009) Assembling lazlistclasses
lib/i386-darwin/lazlistclasses.s:12244:invalid character '_' in mnemonic lib/i386-darwin/lazlistclasses.s:12354:invalid character '_' in mnemonic lib/i386-darwin/lazlistclasses.s:12384:invalid character '_' in mnemonic lib/i386-darwin/lazlistclasses.s:12484:invalid character '_' in mnemonic lib/i386-darwin/lazlistclasses.s:12494:invalid character '_' in mnemonic lib/i386-darwin/lazlistclasses.s:12945:invalid character '_' in mnemonic lib/i386-darwin/lazlistclasses.s:12951:invalid character '_' in mnemonic /Users/torsten/FreePascal/lazarus/components/lazutils/lazlistclasses.pas(690,33) Error: (9007) Error while assembling exitcode 1
/Users/torsten/FreePascal/lazarus/components/lazutils/lazlistclasses.pas(690,33) Fatal: (10026) There were 2 errors compiling module, stopping Fatal: (1018) Compilation aborted
make[1]: *** [lazutils.ppu] Error 1
make: *** [lazutils] Error 2

Regards,
Torsten.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20150518/bf283f5f/attachment.html>

Reply by email

zeljko
to Torsten Bonde Christiansen
Torsten Bonde Christiansen wrote 26 lines
With FPC 2.6.4 and Lazarus trunk (r49079), lazarus no longer compiles on MAC: /Users/torsten/FreePascal/lazarus/components/lazutils/lazlistclasses.pas(1252,43) Hint: (4035) Mixing signed expressions and longwords gives a 64bit result /Users/torsten/FreePascal/lazarus/components/lazutils/lazlistclasses.pas(1281,21) Note: (5025) Local variable "m" not used /Users/torsten/FreePascal/lazarus/components/lazutils/lazlistclasses.pas(1655,20) Hint: (4035) Mixing signed expressions and longwords gives a 64bit result /Users/torsten/FreePascal/lazarus/components/lazutils/lazlistclasses.pas(238,29) Hint: (5024) Parameter "ARequired" not used (9009) Assembling lazlistclasses lib/i386-darwin/lazlistclasses.s:12244:invalid character '_' in mnemonic lib/i386-darwin/lazlistclasses.s:12354:invalid character '_' in mnemonic lib/i386-darwin/lazlistclasses.s:12384:invalid character '_' in mnemonic lib/i386-darwin/lazlistclasses.s:12484:invalid character '_' in mnemonic lib/i386-darwin/lazlistclasses.s:12494:invalid character '_' in mnemonic lib/i386-darwin/lazlistclasses.s:12945:invalid character '_' in mnemonic lib/i386-darwin/lazlistclasses.s:12951:invalid character '_' in mnemonic /Users/torsten/FreePascal/lazarus/components/lazutils/lazlistclasses.pas(690,33) Error: (9007) Error while assembling exitcode 1 /Users/torsten/FreePascal/lazarus/components/lazutils/lazlistclasses.pas(690,33) Fatal: (10026) There were 2 errors compiling module, stopping Fatal: (1018) Compilation aborted make[1]: *** [lazutils.ppu] Error 1 make: *** [lazutils] Error 2

It does not compile on linux too. Reason: r49054 and r49054 by Martin.

zeljko

Reply by email

Mattias Gaertner
to zeljko
Show quoted text 14 lines
On 05/18/2015 09:58 AM, Torsten Bonde Christiansen wrote: > With FPC 2.6.4 and Lazarus trunk (r49079), lazarus no longer compiles on > MAC: [...] > (9009) Assembling lazlistclasses > lib/i386-darwin/lazlistclasses.s:12244:invalid character '_' in mnemonic > lib/i386-darwin/lazlistclasses.s:12354:invalid character '_' in mnemonic > lib/i386-darwin/lazlistclasses.s:12384:invalid character '_' in mnemonic > lib/i386-darwin/lazlistclasses.s:12484:invalid character '_' in mnemonic > lib/i386-darwin/lazlistclasses.s:12494:invalid character '_' in mnemonic > lib/i386-darwin/lazlistclasses.s:12945:invalid character '_' in mnemonic > lib/i386-darwin/lazlistclasses.s:12951:invalid character '_' in mnemonic > /Users/torsten/FreePascal/lazarus/components/lazutils/lazlistclasses.pas(690,33) > Error: (9007) Error while assembling exitcode 1

Please post the compiler command line options.

Show quoted text 7 lines
> /Users/torsten/FreePascal/lazarus/components/lazutils/lazlistclasses.pas(690,33) > Fatal: (10026) There were 2 errors compiling module, stopping > Fatal: (1018) Compilation aborted > make[1]: *** [lazutils.ppu] Error 1 > make: *** [lazutils] Error 2 It does not compile on linux too. Reason: r49054 and r49054 by Martin.

It compiles here on Linux (fpc 2.6.4, x86_64).

Mattias

Reply by email

Torsten Bonde Christiansen
to Mattias Gaertner
Mattias Gaertner wrote 28 lines
On Mon, 18 May 2015 10:10:09 +0200 zeljko wrote: > On 05/18/2015 09:58 AM, Torsten Bonde Christiansen wrote: >> With FPC 2.6.4 and Lazarus trunk (r49079), lazarus no longer compiles on >> MAC: > [...] >> (9009) Assembling lazlistclasses >> lib/i386-darwin/lazlistclasses.s:12244:invalid character '_' in mnemonic >> lib/i386-darwin/lazlistclasses.s:12354:invalid character '_' in mnemonic >> lib/i386-darwin/lazlistclasses.s:12384:invalid character '_' in mnemonic >> lib/i386-darwin/lazlistclasses.s:12484:invalid character '_' in mnemonic >> lib/i386-darwin/lazlistclasses.s:12494:invalid character '_' in mnemonic >> lib/i386-darwin/lazlistclasses.s:12945:invalid character '_' in mnemonic >> lib/i386-darwin/lazlistclasses.s:12951:invalid character '_' in mnemonic >> /Users/torsten/FreePascal/lazarus/components/lazutils/lazlistclasses.pas(690,33) >> Error: (9007) Error while assembling exitcode 1 Please post the compiler command line options. >> /Users/torsten/FreePascal/lazarus/components/lazutils/lazlistclasses.pas(690,33) >> Fatal: (10026) There were 2 errors compiling module, stopping >> Fatal: (1018) Compilation aborted >> make[1]: *** [lazutils.ppu] Error 1 >> make: *** [lazutils] Error 2 > It does not compile on linux too. Reason: r49054 and r49054 by Martin. It compiles here on Linux (fpc 2.6.4, x86_64). Mattias

It looks like a compiler error related to i386 only, since I can compile x86_64-linuxwithout problems, but on
i386-linux I get the following error:

...
/home/torsten/FreePascal/lazarus/components/lazutils/lazlistclasses.pas(1655,20) Hint: (4035) Mixing signed expressions and longwords gives a 64bit result /home/torsten/FreePascal/lazarus/components/lazutils/lazlistclasses.pas(238,29) Hint: (5024) Parameter "ARequired" not used
/home/torsten/FreePascal/lazarus/components/lazutils/lazlistclasses.pas(1206,1) Fatal: Internal error 2005091810
Fatal: (1018) Compilation aborted
Makefile:2299: recipe for target 'lazutils.ppu' failed make[1]: *** [lazutils.ppu] Error 1
make[1]: Leaving directory
'/home/torsten/FreePascal/lazarus/components/lazutils' Makefile:3052: recipe for target 'lazutils' failed make: *** [lazutils] Error 2

-Torsten.

Reply by email

Martin Frb
to zeljko: It does not compile on linux too. Reason: r49054 and r49054 by Martin. zeljko
zeljko wrote 19 lines
On 05/18/2015 09:58 AM, Torsten Bonde Christiansen wrote: > lib/i386-darwin/lazlistclasses.s:12244:invalid character '_' in mnemonic > lib/i386-darwin/lazlistclasses.s:12354:invalid character '_' in mnemonic > lib/i386-darwin/lazlistclasses.s:12384:invalid character '_' in mnemonic > lib/i386-darwin/lazlistclasses.s:12484:invalid character '_' in mnemonic > lib/i386-darwin/lazlistclasses.s:12494:invalid character '_' in mnemonic > lib/i386-darwin/lazlistclasses.s:12945:invalid character '_' in mnemonic > lib/i386-darwin/lazlistclasses.s:12951:invalid character '_' in mnemonic > /Users/torsten/FreePascal/lazarus/components/lazutils/lazlistclasses.pas(690,33) > > Error: (9007) Error while assembling exitcode 1 > /Users/torsten/FreePascal/lazarus/components/lazutils/lazlistclasses.pas(690,33) > > Fatal: (10026) There were 2 errors compiling module, stopping > Fatal: (1018) Compilation aborted > make[1]: *** [lazutils.ppu] Error 1 > make: *** [lazutils] Error 2 It does not compile on linux too. Reason: r49054 and r49054 by Martin.

There is a (one) problem, if the "debug type" option in the package is set to "stabs" (or default). Try changing that. The above does not look like that though.

Reply by email

Martin Frb
to Torsten Bonde Christiansen: It looks like a compiler error related to i386 only, since I can compile…
Torsten Bonde Christiansen wrote 11 lines
It looks like a compiler error related to i386 only, since I can compile x86_64-linuxwithout problems, but on i386-linux I get the following error: ... /home/torsten/FreePascal/lazarus/components/lazutils/lazlistclasses.pas(1655,20) Hint: (4035) Mixing signed expressions and longwords gives a 64bit result /home/torsten/FreePascal/lazarus/components/lazutils/lazlistclasses.pas(238,29) Hint: (5024) Parameter "ARequired" not used /home/torsten/FreePascal/lazarus/components/lazutils/lazlistclasses.pas(1206,1) Fatal: Internal error 2005091810

That is in the stabs writer

Reply by email

zeljko
to Martin Frb: There is a (one) problem, if the "debug type" option in the package is set to "stabs" (or…
Martin Frb wrote 24 lines
On 18/05/2015 09:10, zeljko wrote: > On 05/18/2015 09:58 AM, Torsten Bonde Christiansen wrote: >> lib/i386-darwin/lazlistclasses.s:12244:invalid character '_' in mnemonic >> lib/i386-darwin/lazlistclasses.s:12354:invalid character '_' in mnemonic >> lib/i386-darwin/lazlistclasses.s:12384:invalid character '_' in mnemonic >> lib/i386-darwin/lazlistclasses.s:12484:invalid character '_' in mnemonic >> lib/i386-darwin/lazlistclasses.s:12494:invalid character '_' in mnemonic >> lib/i386-darwin/lazlistclasses.s:12945:invalid character '_' in mnemonic >> lib/i386-darwin/lazlistclasses.s:12951:invalid character '_' in mnemonic >> /Users/torsten/FreePascal/lazarus/components/lazutils/lazlistclasses.pas(690,33) >> >> Error: (9007) Error while assembling exitcode 1 >> /Users/torsten/FreePascal/lazarus/components/lazutils/lazlistclasses.pas(690,33) >> >> Fatal: (10026) There were 2 errors compiling module, stopping >> Fatal: (1018) Compilation aborted >> make[1]: *** [lazutils.ppu] Error 1 >> make: *** [lazutils] Error 2 > > It does not compile on linux too. Reason: r49054 and r49054 by Martin. There is a (one) problem, if the "debug type" option in the package is set to "stabs" (or default). Try changing that. The above does not look like that though.

I did this:
1.svn revert -R .
2.make clean
3.svn update
4.make bigide

fpc-2.6.4 i386

So everything is default.

zeljko

Reply by email

Torsten Bonde Christiansen
to zeljko
zeljko wrote 45 lines
On 05/18/2015 02:26 PM, Martin Frb wrote: > On 18/05/2015 09:10, zeljko wrote: >> On 05/18/2015 09:58 AM, Torsten Bonde Christiansen wrote: >>> lib/i386-darwin/lazlistclasses.s:12244:invalid character '_' in >>> mnemonic >>> lib/i386-darwin/lazlistclasses.s:12354:invalid character '_' in >>> mnemonic >>> lib/i386-darwin/lazlistclasses.s:12384:invalid character '_' in >>> mnemonic >>> lib/i386-darwin/lazlistclasses.s:12484:invalid character '_' in >>> mnemonic >>> lib/i386-darwin/lazlistclasses.s:12494:invalid character '_' in >>> mnemonic >>> lib/i386-darwin/lazlistclasses.s:12945:invalid character '_' in >>> mnemonic >>> lib/i386-darwin/lazlistclasses.s:12951:invalid character '_' in >>> mnemonic >>> /Users/torsten/FreePascal/lazarus/components/lazutils/lazlistclasses.pas(690,33) >>> >>> >>> Error: (9007) Error while assembling exitcode 1 >>> /Users/torsten/FreePascal/lazarus/components/lazutils/lazlistclasses.pas(690,33) >>> >>> >>> Fatal: (10026) There were 2 errors compiling module, stopping >>> Fatal: (1018) Compilation aborted >>> make[1]: *** [lazutils.ppu] Error 1 >>> make: *** [lazutils] Error 2 >> >> It does not compile on linux too. Reason: r49054 and r49054 by Martin. > > There is a (one) problem, if the "debug type" option in the package is > set to "stabs" (or default). Try changing that. The above does not look > like that though. I did this: 1.svn revert -R . 2.make clean 3.svn update 4.make bigide fpc-2.6.4 i386 So everything is default.

I think the Martin is right about the Stabs. I can compile with the following on my 64-bit linux:

make clean all CPU_TARGET=i386 OPT="-gw"

but not with

make clean all CPU_TARGET=i386

I guess that Lazarus defaults to stabs.

-Torsten.

Reply by email

Torsten Bonde Christiansen
to Torsten Bonde Christiansen
Torsten Bonde Christiansen wrote 51 lines
On 2015-05-18 14:39, zeljko wrote: > On 05/18/2015 02:26 PM, Martin Frb wrote: >> On 18/05/2015 09:10, zeljko wrote: >>> On 05/18/2015 09:58 AM, Torsten Bonde Christiansen wrote: >>>> lib/i386-darwin/lazlistclasses.s:12244:invalid character '_' in >>>> mnemonic >>>> lib/i386-darwin/lazlistclasses.s:12354:invalid character '_' in >>>> mnemonic >>>> lib/i386-darwin/lazlistclasses.s:12384:invalid character '_' in >>>> mnemonic >>>> lib/i386-darwin/lazlistclasses.s:12484:invalid character '_' in >>>> mnemonic >>>> lib/i386-darwin/lazlistclasses.s:12494:invalid character '_' in >>>> mnemonic >>>> lib/i386-darwin/lazlistclasses.s:12945:invalid character '_' in >>>> mnemonic >>>> lib/i386-darwin/lazlistclasses.s:12951:invalid character '_' in >>>> mnemonic >>>> /Users/torsten/FreePascal/lazarus/components/lazutils/lazlistclasses.pas(690,33) >>>> >>>> >>>> Error: (9007) Error while assembling exitcode 1 >>>> /Users/torsten/FreePascal/lazarus/components/lazutils/lazlistclasses.pas(690,33) >>>> >>>> >>>> Fatal: (10026) There were 2 errors compiling module, stopping >>>> Fatal: (1018) Compilation aborted >>>> make[1]: *** [lazutils.ppu] Error 1 >>>> make: *** [lazutils] Error 2 >>> >>> It does not compile on linux too. Reason: r49054 and r49054 by Martin. >> >> There is a (one) problem, if the "debug type" option in the package is >> set to "stabs" (or default). Try changing that. The above does not look >> like that though. > > I did this: > 1.svn revert -R . > 2.make clean > 3.svn update > 4.make bigide > > > fpc-2.6.4 i386 > > So everything is default. I think the Martin is right about the Stabs. I can compile with the following on my 64-bit linux: make clean all CPU_TARGET=i386 OPT="-gw"

Using the above to compile on MAC still produces the same error as stated above.

-Torsten.

Reply by email

zeljko
to Martin Frb: And default is stabs, and does not work. Well 1 minute ago, I worked out how to…
Martin Frb wrote 15 lines
On 18/05/2015 13:39, zeljko wrote: > > fpc-2.6.4 i386 > > So everything is default. > And default is stabs, and does not work. Well 1 minute ago, I worked out how to conditionally change it for order fpc, and committed this. This will only work if building from inside the IDE (tools menu). I do not know how to make this happen for the makefiles

Me neither, maybe Mattias can fix that. It does not build via Makefiles yet (make bigide).

zeljko

Reply by email

Mattias Gaertner
to Martin Frb: And default is stabs, and does not work. Well 1 minute ago, I worked out how to…
Show quoted text 11 lines
On 18/05/2015 13:39, zeljko wrote: > > fpc-2.6.4 i386 > > So everything is default. > And default is stabs, and does not work. Well 1 minute ago, I worked out how to conditionally change it for order fpc, and committed this.

You did it only for lazutils, so you are mixing different debug info types. Can this make trouble?

This will only work if building from inside the IDE (tools menu). I do not know how to make this happen for the makefiles

There is no simple way. To retrieve the FPC version you have to call the compiler with -iV and parse the output.

I fixed it via another approach.
Pascal tries to avoid anonymous types and the generics were implemented in the compiler with this idea in mind too. I replaced the anonymous specialization in
TLazPagedListMem = object(specialize

  TLazPagedListMemBase<Pointer, TLazListClassesVarItemSize>);

with

  TLazPagedListMemParent = specialize TLazPagedListMemBase<Pointer, TLazListClassesVarItemSize>;
  TLazPagedListMem = object(TLazPagedListMemParent)

Now it compiles.
I undid the -gw in the conditionals of lazutils.

Mattias

Reply by email