Sign in Join

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

Mailing lists / lazarus / 2012-02

fpcup: failure compiling Lazarus with FPC fixes_2.6 on OSX 10.7 x64, works with x86

2 messages · 1 person · –

Reply by email Subscribe to this list Your subscription

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

Reinier Olislagers

Hi list,

Working on my fpcup installer, I tried it on OSX.

We're trying to set up a Lazarus/FPC combo that's independent of any already installed fpc/Lazarus installs.

To ignore any existing system wide fpc.cfg, we use a proxy for fpc: cat /Users/reinier/fpc/bin/fpc.sh
#!/bin/sh
# This script starts the fpc compiler installed by fpcup # and ignores any system-wide fpc.cfg files
# Note: maintained by fpcup; do not edit directly, your edits will be lost. /Users/reinier/fpc/bin/fpc -n @/Users/reinier/fpc/bin/fpc.cfg -Xp/Users/reinier/fpc/compiler/ $*

The compiler is fixes_2.6, downloaded from SVN:
/Users/reinier/fpc/bin/fpc.sh -i
Free Pascal Compiler version 2.6.1

Compiler Date : 2012/02/14
Compiler CPU Target: x86_64

make all (and some other things):
make FPC=/Users/reinier/fpc/bin/fpc.sh
--directory=/Users/reinier/lazarus FPCDIR=/Users/reinier/fpc/ UPXPROG=echo COPYTREE=echo clean all
fails:
(full log attached)
...
Compiling ./objc/lobjc.pas
Assembling (pipe) ../../units/x86_64-darwin/carbon/lobjc.s ...
NSValue.inc(317,13) Error: Illegal type conversion: "Pobjc_object" to "Single"
NSValue.inc(327,13) Warning: Conversion between ordinals and pointers is not portable
foundation.pas(31) Fatal: There were 2 errors compiling module, stopping Fatal: Compilation aborted

I suspect it's an error compiling carbon which IIRC, could/is/may not be supported on 64 bit?!?

(running plain make, using system wide 32 bit fpc, does run, so it could very well the 64 bit compiler that's the problem here - or the way I'm abusing make and fpc in fpcup...)

Am I right? Should I switch off carbon compiling in some way? Or is it more likely the problem is in my downloader/installer program?

The wiki pages
http://wiki.lazarus.freepascal.org/Installing_Lazarus_on_MacOS_X suggests doing make should just work though...

Thanks,
Reinier
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed... Name: bla.txt
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20120214/b4e62520/attachment-0001.txt>

Reply by email

Reinier Olislagers
to Reinier Olislagers
Reinier Olislagers wrote
We're trying to set up a Lazarus/FPC combo that's independent of any already installed fpc/Lazarus installs.

<snip>

Show quoted text 32 lines
The compiler is fixes_2.6, downloaded from SVN: /Users/reinier/fpc/bin/fpc.sh -i Free Pascal Compiler version 2.6.1 Compiler Date : 2012/02/14 Compiler CPU Target: x86_64 make all (and some other things): make FPC=/Users/reinier/fpc/bin/fpc.sh --directory=/Users/reinier/lazarus FPCDIR=/Users/reinier/fpc/ UPXPROG=echo COPYTREE=echo clean all fails: (full log attached) ... Compiling ./objc/lobjc.pas Assembling (pipe) ../../units/x86_64-darwin/carbon/lobjc.s ... NSValue.inc(317,13) Error: Illegal type conversion: "Pobjc_object" to "Single" NSValue.inc(327,13) Warning: Conversion between ordinals and pointers is not portable foundation.pas(31) Fatal: There were 2 errors compiling module, stopping Fatal: Compilation aborted I suspect it's an error compiling carbon which IIRC, could/is/may not be supported on 64 bit?!? (running plain make, using system wide 32 bit fpc, does run, so it could very well the 64 bit compiler that's the problem here - or the way I'm abusing make and fpc in fpcup...)

FYI, on the forum,
http://lazarus.freepascal.org/index.php/topic,16084.0.html Jonas Maebe indicated compiling the cocoa widgetset apparently fails on x64 and suggested I use an i386 compiler to compile Lazarus/LCL.

Regards,
Reinier

Reply by email