In (some) OSX environments, 32-bit compiler is evoked by default, instead of 64-bit
Original Reporter info from Mantis: sideshowbarker
-
Reporter name: Michael[tm] Smith
Original Reporter info from Mantis: sideshowbarker
- Reporter name: Michael[tm] Smith
Description:
In my OSX 10.10.5 environment on a x86-64 MacBook, and Free Pascal 3.0.0rc1 installed, when I try to compile some particular code,fpc
fails with a fatal Data element too large
error that cites a line containing array[0..MaxInt]
.
But if I manually feed the -Px86_64
flag to fpc
, the error goes away and the code builds successfully.
So it seems that in my OSX 10.10.5 x86-64 MacBook environment, Free Pascal is trying to use the 32-bit compiler by default, rather then the 64-bit compiler.
Steps to reproduce:
-
Download ftp://freepascal.stack.nl/pub/fpc/beta/3.0.0-rc1/i386-macosx/fpc-3.0.0rc1.intel-macosx.dmg and run the installer.
-
Try to compile some code that's known not the be 32-bit safe.
Additional information:
See http://stackoverflow.com/questions/32281815/data-element-too-large-error-when-compilingassembling-with-fpc-on-osx for a related Stackoverflow question I posted.
The code I'm actually trying to build is at https://github.com/whatwg/wattsi
Mantis conversion info:
- Mantis ID: 28588
- OS: OSX
- OS Build: 10.10.5
- Build: 3.0.0rc1
- Platform: x86-64
- Version: 3.0.1