New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Spurious "PIE" warning in Mac OS X 10.7 Lion #5365
Comments
Comment author: @damiendoligez I cannot reproduce this problem with MacOS 10.7.3 and Xcode 4.3.2 with the current 4.00 branch. gcc --version |
Comment author: raould hello, i think i have seen something similar?? i was trying to build Haxe and saw this at the end:
Mac OS X 10.7.3 gcc --version i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.1.00) ld -v @(#)PROGRAM:ld PROJECT:ld64-127.2 |
Comment author: @damiendoligez I have a slightly later version of gcc (LLVM build 2336.9.00) and a definitely later version of ld: Which version of Xcode do you have? Do you have the possibility of trying with Xcode 4.3.2? |
Comment author: raould the about box for xcode says Version 4.3 (4E71d). |
Comment author: @damiendoligez The warning has disappeared in later versions of XCode, so I'm suspending this PR. Please reopen if this is a real problem for you. |
Original bug ID: 5365
Reporter: mcandre
Assigned to: @damiendoligez
Status: closed (set by @xavierleroy on 2015-12-11T18:07:09Z)
Resolution: not a bug
Priority: normal
Severity: minor
Version: 3.12.0
Category: ~DO NOT USE (was: OCaml general)
Monitored by: tgazagna @damiendoligez
Bug description
In Mac OS X 10.7 Lion, there's a spurious warning when ocamlscript is compiled, and whenever ocamlscript itself runs. This weird "PIE" warning is specific to Lion, but it appears across languages, in Haskell as well.
$ cat hello.ml
#!/usr/bin/env ocamlscript -o hello
print_endline "Hello World!"
$ ./hello.ml
ld: warning: PIE disabled. Absolute addressing (perhaps -mdynamic-no-pic) not allowed in code signed PIE, but used in _caml_program from /var/folders/ch/_lv6l5q936n1xv03j5qp28y40000gn/T/camlstartup2188ff.o. To fix this warning, don't compile with -mdynamic-no-pic or link with -Wl,-no_pie
Hello World!
The text was updated successfully, but these errors were encountered: