macos make 3.1.1 fails

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

macos make 3.1.1 fails

Mattias Gaertner
Hi,

Trying to compile fpc 3.1.1 i386 on Mac High Sierra 10.13.5:

make CPU_TARGET=i386 PP=/usr/local/lib/fpc/3.0.4/ppc386 all

The CPU_TARGET seems to be ignored:

/Applications/Xcode.app/Contents/Developer/usr/bin/make compiler_cycle RELEASE=1
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C compiler cycle
/Applications/Xcode.app/Contents/Developer/usr/bin/make OS_TARGET=darwin CPU_TARGET=x86_64 CROSSBINDIR= BINUTILSPREFIX= CROSSCYCLEBOOTSTRAP=1 rtlclean rtl CYCLELEVEL=1
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C /Users/mattias/pascal/3.1.1/fpc/rtl clean
/bin/rm -f fpcmade.x86_64-darwin Package.fpc ./ppas.sh script.res link.res  
...


GNU Make 3.81

Same error happens when trying to compile fpc 3.0.4 for i386.

The same command works with the Lazarus Makefiles. What is the fpc
Makefile doing wrong?

Mattias
_______________________________________________
fpc-pascal maillist  -  [hidden email]
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Reply | Threaded
Open this post in threaded view
|

Re: macos make 3.1.1 fails

Anthony Walter-3
I don't believe i386 is supported by the newer OSX dev tools. Use x86_64 instead.

_______________________________________________
fpc-pascal maillist  -  [hidden email]
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Reply | Threaded
Open this post in threaded view
|

Re: macos make 3.1.1 fails

C Western-2
On 26/06/18 03:35, Anthony Walter wrote:
> I don't believe i386 is supported by the newer OSX dev tools. Use x86_64
> instead.
>
>
> _______________________________________________
> fpc-pascal maillist  -  [hidden email]
> http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
>
Carbon is i386 only, so i386 is still needed. I haven't figured out all
the options, but the command line that works for me is:

FPC=/usr/local/lib/fpc/3.0.4/ppc386 make distclean install PREFIX=~/usr
CPU_SOURCE=i386

(All on one line) Note the specification of CPU_SOURCE

Colin
_______________________________________________
fpc-pascal maillist  -  [hidden email]
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Reply | Threaded
Open this post in threaded view
|

Re: macos make 3.1.1 fails

Mattias Gaertner
On Tue, 26 Jun 2018 09:07:00 +0100
C Western <[hidden email]> wrote:

>[...]
> Carbon is i386 only, so i386 is still needed. I haven't figured out all
> the options, but the command line that works for me is:
>
> FPC=/usr/local/lib/fpc/3.0.4/ppc386 make distclean install PREFIX=~/usr
> CPU_SOURCE=i386
>
> (All on one line) Note the specification of CPU_SOURCE

Yes! CPU_SOURCE it is.

This works here:
make clean all CPU_SOURCE=i386

I can't find that in the buildfaq. Only in some forum entries.

Mattias
_______________________________________________
fpc-pascal maillist  -  [hidden email]
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal