* * *

Author Topic: [SOLVED] Error on update Lazarus instalation 0.9.30 to 1.6  (Read 3680 times)

Odacir

  • New member
  • *
  • Posts: 27
Hi,

I have a old version of Lazarus (0.9.30.2), and i tryed update to 1.6, but no sucess.

The IDE start, no problem, but on try to compile anything, the message:
Compile package LCLBase 1.6.0.4: Exit code 256, Errors: 1
Fatal: Compilation aborted


I have instaled:
- fpc-3.0.0.intel-macosx.dmg
- fpcsrc-3.0.0-20151207-macosx.dmg
- lazarus-1.6-i686-macosx.dmg


My OS X is a 10.7.5.

Any help is welcome.

Thanks!

« Last Edit: May 06, 2016, 11:04:23 pm by Odacir »

GetMem

  • Hero Member
  • *****
  • Posts: 2411
Re: Error on update Lazarus instalation 0.9.30 to 1.6
« Reply #1 on: May 03, 2016, 06:43:50 pm »
You should completely uninstall the old Lazarus/FPC first: http://wiki.lazarus.freepascal.org/Installing_Lazarus_on_MacOS_X#Uninstalling_Lazarus_and_Free_Pascal
Then reinstall fpc/fpc source/lazarus.

Odacir

  • New member
  • *
  • Posts: 27
Re: Error on update Lazarus instalation 0.9.30 to 1.6
« Reply #2 on: May 03, 2016, 07:06:42 pm »
Hi GetMen,

Thanks. I tryed, but on reinstall, the same problem. See Attachment.

GetMem

  • Hero Member
  • *****
  • Posts: 2411
Re: Error on update Lazarus instalation 0.9.30 to 1.6
« Reply #3 on: May 03, 2016, 07:14:17 pm »
Right click on the message window, you should see an option to copy all compiler messages. Paste it here.

Odacir

  • New member
  • *
  • Posts: 27
Re: Error on update Lazarus instalation 0.9.30 to 1.6
« Reply #4 on: May 03, 2016, 07:30:35 pm »
Free Pascal Compiler version 3.0.0 [2015/11/14] for i386
Copyright (c) 1993-2015 by Florian Klaempfl and others
(1002) Target OS: Darwin for i386
(3104) Compiling alllclunits.pp
(3104) Compiling lclproc.pas
<stdin>:4284:2: error: invalid instruction mnemonic 'fistpq'
        fistpq  -12(%ebp)
        ^~~~~~
<stdin>:4303:2: error: invalid instruction mnemonic 'fistpq'
        fistpq  -12(%ebp)
        ^~~~~~
<stdin>:4326:2: error: invalid instruction mnemonic 'fistpq'
        fistpq  -16(%ebp)
        ^~~~~~
<stdin>:4350:2: error: invalid instruction mnemonic 'fistpq'
        fistpq  -16(%ebp)
        ^~~~~~
(9001) Assembling (pipe) /Developer/lazarus/lcl/units/i386-darwin/lclproc.s
lclproc.pas(3221) Fatal: (10026) There were 1 errors compiling module, stopping
Fatal: (1018) Compilation aborted

GetMem

  • Hero Member
  • *****
  • Posts: 2411

Odacir

  • New member
  • *
  • Posts: 27
Re: Error on update Lazarus instalation 0.9.30 to 1.6
« Reply #6 on: May 03, 2016, 07:48:08 pm »
Thanks for the try GetMen, but not work here :-(

I will try and older version of Lazarus to test.


jwdietrich

  • Hero Member
  • *****
  • Posts: 935
    • formatio reticularis
Re: Error on update Lazarus instalation 0.9.30 to 1.6
« Reply #7 on: May 03, 2016, 07:56:03 pm »
Did you rescan the FPC source directory? And did you read all questions and answers in the Mac Installation FAQ?
function GetRandomNumber: integer; // xkcd.com
begin
  GetRandomNumber := 4; // chosen by fair dice roll. Guaranteed to be random.
end;

Lazarus 1.6.4 | FPC 3.0.2 | PPC, Intel, ARM | macOS, Windows, Linux

GetMem

  • Hero Member
  • *****
  • Posts: 2411
Re: Error on update Lazarus instalation 0.9.30 to 1.6
« Reply #8 on: May 03, 2016, 08:12:12 pm »
@jwdietrich
I don't think a rescan would help in this particular case!

Odacir

  • New member
  • *
  • Posts: 27
Re: Error on update Lazarus instalation 0.9.30 to 1.6
« Reply #9 on: May 03, 2016, 10:10:32 pm »
News on the problem!

Reinstalled and updated X-Code and problem changed.....

Its possible compile simple programs, but if use other packages, i have error.
On try Tools -> Configure "Build Lazarus", a lot of erros on compile (none of manual components installed).

See the part of log of first package with error:
Hint: (11030) Start of reading config file /etc/fpc.cfg
Hint: (11031) End of reading config file /etc/fpc.cfg
Free Pascal Compiler version 3.0.0 [2015/11/14] for i386
Copyright (c) 1993-2015 by Florian Klaempfl and others
(1002) Target OS: Darwin for i386
(3104) Compiling cairocanvas_pkg.pas
(3104) Compiling cairocanvas.pas
/Developer/lazarus/components/cairocanvas/cairocanvas.pas(67,29) Hint: (5024) Parameter "x" not used
/Developer/lazarus/components/cairocanvas/cairocanvas.pas(67,37) Hint: (5024) Parameter "y" not used
/Developer/lazarus/components/cairocanvas/cairocanvas.pas(337,23) Hint: (4055) Conversion between ordinals and pointers is not portable
/Developer/lazarus/components/cairocanvas/cairocanvas.pas(343,14) Hint: (4055) Conversion between ordinals and pointers is not portable
/Developer/lazarus/components/cairocanvas/cairocanvas.pas(1353,18) Hint: (5058) Variable "M" does not seem to be initialized
/Developer/lazarus/components/cairocanvas/cairocanvas.pas(95,61) Hint: (5024) Parameter "Winding" not used
/Developer/lazarus/components/cairocanvas/cairocanvas.pas(1476,18) Hint: (4055) Conversion between ordinals and pointers is not portable
/Developer/lazarus/components/cairocanvas/cairocanvas.pas(1534,18) Hint: (4055) Conversion between ordinals and pointers is not portable
/Developer/lazarus/components/cairocanvas/cairocanvas.pas(1553,18) Hint: (4055) Conversion between ordinals and pointers is not portable
<stdin>:993:2: error: invalid instruction mnemonic 'fistpq'
        fistpq  -48(%ebp)
        ^~~~~~
<stdin>:1002:2: error: invalid instruction mnemonic 'fistpq'
        fistpq  -48(%ebp)
        ^~~~~~
<stdin>:1011:2: error: invalid instruction mnemonic 'fistpq'
        fistpq  -48(%ebp)
        ^~~~~~
<stdin>:1020:2: error: invalid instruction mnemonic 'fistpq'
        fistpq  -48(%ebp)
        ^~~~~~
<stdin>:4679:2: error: invalid instruction mnemonic 'fistpq'
        fistpq  -100(%ebp)
        ^~~~~~
<stdin>:5330:2: error: invalid instruction mnemonic 'fistpq'
        fistpq  -312(%ebp)
        ^~~~~~
<stdin>:5712:2: error: invalid instruction mnemonic 'fistpq'
        fistpq  -88(%ebp)
        ^~~~~~
<stdin>:5724:2: error: invalid instruction mnemonic 'fistpq'
        fistpq  -88(%ebp)
        ^~~~~~
<stdin>:5775:2: error: invalid instruction mnemonic 'fistpq'
        fistpq  -60(%ebp)
        ^~~~~~
<stdin>:5784:2: error: invalid instruction mnemonic 'fistpq'
        fistpq  -60(%ebp)
        ^~~~~~
<stdin>:5793:2: error: invalid instruction mnemonic 'fistpq'
        fistpq  -60(%ebp)
        ^~~~~~
/Developer/lazarus/components/cairocanvas/cairocanvas.pas(1572,18) Hint: (4055) Conversion between ordinals and pointers is not portable
(9001) Assembling (pipe) /Developer/lazarus/components/cairocanvas/lib/i386-darwin/carbon/cairocanvas.s
cairocanvas.pas(1583) Fatal: (10026) There were 1 errors compiling module, stopping
Fatal: (1018) Compilation aborted
Free Pascal Compiler version 3.0.0 [2015/11/14] for i386
Copyright (c) 1993-2015 by Florian Klaempfl and others
(1002) Target OS: Darwin for i386
(3104) Compiling pascalscript.pas
(3104) Compiling PascalScript_Core_Reg.pas
(3104) Compiling uPSR_menus.pas
(9001) Assembling (pipe) /Developer/lazarus/components/PascalScript/Source/lib/i386-darwin/uPSR_menus.s
(3104) Compiling uPSC_graphics.pas
(9001) Assembling (pipe) /Developer/lazarus/components/PascalScript/Source/lib/i386-darwin/uPSC_graphics.s
(3104) Compiling uPSR_graphics.pas
/Developer/lazarus/components/PascalScript/Source/uPSR_graphics.pas(31,70) Warning: (5066) Symbol "Handle" is deprecated: "use Reference.Handle instead"
/Developer/lazarus/components/PascalScript/Source/uPSR_graphics.pas(32,61) Warning: (5066) Symbol "Handle" is deprecated: "use Reference.Handle instead"
(9001) Assembling (pipe) /Developer/lazarus/components/PascalScript/Source/lib/i386-darwin/uPSR_graphics.s
(3104) Compiling uPSR_controls.pas
(9001) Assembling (pipe) /Developer/laza
Hint: (11030) Start of reading config file /etc/fpc.cfg
Hint: (11031) End of reading config file /etc/fpc.cfg
Free Pascal Compiler version 3.0.0 [2015/11/14] for i386
Copyright (c) 1993-2015 by Florian Klaempfl and others
(1002) Target OS: Darwin for i386
(3104) Compiling sdflaz.pas
(3104) Compiling registersdf.pas
(9001) Assembling (pipe) /Developer/lazarus/components/sdf/lib/i386-darwin/carbon/registersdf.s
/Developer/lazarus/components/sdf/sdflaz.pas(10,16) Hint: (5023) Unit "SdfData" not used in SDFLaz
(9001) Assembling (pipe) /Developer/lazarus/components/sdf/lib/i386-darwin/carbon/sdflaz.s
(1008) 58 lines compiled, 0.4 sec
(1022) 3 hint(s) issued
Hint: (11030) Start of reading config file /etc/fpc.cfg
Hint: (11031) End of reading config file /etc/fpc.cfg
Free Pascal Compiler version 3.0.0 [2015/11/14] for i386
Copyright (c) 1993-2015 by Florian Klaempfl and others
(1002) Target OS: Darwin for i386
(3104) Compiling allsynedit.pas
(3104) Compiling synbeautifier.pas
(3104) Compiling syneditmiscclasses.pp
(3104) Compiling synedithighlighter.pp
(3104) Compiling synedittextbase.pas
(3104) Compiling syneditmiscprocs.pp
(9001) Assembling (pipe) /Developer/lazarus/components/synedit/units/i386-darwin/carbon/syneditmiscprocs.s
(3104) Compiling syneditkeycmds.pp
(9001) Assembling (pipe) /Developer/lazarus/components/synedit/units/i386-darwin/carbon/syneditkeycmds.s
(9001) Assembling (pipe) /Developer/lazarus/co
Hint: (11030) Start of reading config file /etc/fpc.cfg
Hint: (11031) End of reading config file /etc/fpc.cfg
Free Pascal Compiler version 3.0.0 [2015/11/14] for i386
Copyright (c) 1993-2015 by Florian Klaempfl and others
(1002) Target OS: Darwin for i386



Odacir

  • New member
  • *
  • Posts: 27
Re: Error on update Lazarus instalation 0.9.30 to 1.6
« Reply #10 on: May 03, 2016, 11:06:10 pm »
The last version of X-Code to OX 10.7.5, is the 4.6.3. Is possible this is the problem?


Odacir

  • New member
  • *
  • Posts: 27
Re: Error on update Lazarus instalation 0.9.30 to 1.6
« Reply #11 on: May 04, 2016, 07:52:57 pm »
Problem solved!!!!

On update X-code, the command line tool is not instaled/enabled.

Only enable command line on X-code and all compile. The function "Build Lazarus", end whitout problem.

Thanks a lot for all help here.

:-)




GetMem

  • Hero Member
  • *****
  • Posts: 2411
Re: Error on update Lazarus instalation 0.9.30 to 1.6
« Reply #12 on: May 04, 2016, 07:59:57 pm »
Quote
@Odacir
On update X-code, the command line tool is not instaled/enabled.
Only enable command line on X-code and all compile. The function "Build Lazarus", end whitout problem.
Thanks for the feedback!

jwdietrich

  • Hero Member
  • *****
  • Posts: 935
    • formatio reticularis
Re: Error on update Lazarus instalation 0.9.30 to 1.6
« Reply #13 on: May 04, 2016, 08:44:32 pm »
Thanks. I have added your solution to the Mac Installation FAQ.
function GetRandomNumber: integer; // xkcd.com
begin
  GetRandomNumber := 4; // chosen by fair dice roll. Guaranteed to be random.
end;

Lazarus 1.6.4 | FPC 3.0.2 | PPC, Intel, ARM | macOS, Windows, Linux

Wosi

  • New member
  • *
  • Posts: 21
Re: [SOLVED] Error on update Lazarus instalation 0.9.30 to 1.6
« Reply #14 on: May 14, 2017, 10:29:14 pm »
I had a similar error on a Mac using the latest Lazarus release today.
None of the solutions here worked.
It turned out I had to rename a method because its name was too long.
On Windows it's working well but on Mac it seems to be a problem.

The compilation only failed when the long named method was used to implement an interface.

 

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus