Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0005365OCamlOCaml generalpublic2011-09-30 01:172012-07-10 13:55
Reportermcandre 
Assigned Todoligez 
PrioritynormalSeverityminorReproducibilityalways
StatusresolvedResolutionno change required 
PlatformOSOS Version
Product Version3.12.0 
Target VersionFixed in Version 
Summary0005365: Spurious "PIE" warning in Mac OS X 10.7 Lion
DescriptionIn 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!
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
(0007216)
doligez (administrator)
2012-03-28 16:54

I cannot reproduce this problem with MacOS 10.7.3 and Xcode 4.3.2 with the current 4.00 branch.
Can you give us the output of the following commands?

  gcc --version
  ld -v
  env
(0007425)
raould (reporter)
2012-05-09 20:12

hello, i think i have seen something similar?? i was trying to build Haxe and saw this at the end:
> ocamlopt -o ../bin/haxe libs/extLib.cmxa libs/extc/extc.cmxa libs/swflib/swflib.cmxa libs/xml-light/xml-light.cmxa libs/neko/neko.cmxa unix.cmxa str.cmxa ast.cmx lexer.cmx t\
ype.cmx common.cmx parser.cmx typecore.cmx genxml.cmx optimizer.cmx typeload.cmx codegen.cmx gencommon.cmx genneko.cmx genas3.cmx genjs.cmx genswf8.cmx genswf9.cmx genswf.cmx \
genphp.cmx gencpp.cmx gencs.cmx genjava.cmx interp.cmx typer.cmx main.cmx
ld: warning: PIE disabled. Absolute addressing (perhaps -mdynamic-no-pic) not allowed in code signed PIE, but used in _caml_program from /var/folders/19/p8gbt95j12qdsqgddzzjzt\
b80000gn/T/camlstartup1190db.o. To fix this warning, don't compile with -mdynamic-no-pic or link with -Wl,-no_pie


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
llvm version 3.0svn, from Apple Clang 3.0 (build 211.10.1)
(0007450)
doligez (administrator)
2012-05-24 11:25
edited on: 2012-05-24 13:55

I have a slightly later version of gcc (LLVM build 2336.9.00) and a definitely later version of ld:
  @(#)PROGRAM:ld PROJECT:ld64-128.2
  llvm version 3.1svn, from Apple Clang 3.1 (build 318.0.58)
and I don't get any warning when I compile haxe (I've tried OCaml 3.12.0, 3.12.1, and 4.00.0+dev).

Which version of Xcode do you have? Do you have the possibility of trying with Xcode 4.3.2?

(0007458)
raould (reporter)
2012-05-24 19:37

the about box for xcode says Version 4.3 (4E71d).
(0007679)
doligez (administrator)
2012-07-10 13:55

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.

- Issue History
Date Modified Username Field Change
2011-09-30 01:17 mcandre New Issue
2012-03-26 15:22 xleroy Assigned To => doligez
2012-03-26 15:22 xleroy Status new => assigned
2012-03-28 16:54 doligez Note Added: 0007216
2012-03-28 16:54 doligez Status assigned => feedback
2012-05-09 20:12 raould Note Added: 0007425
2012-05-24 11:25 doligez Note Added: 0007450
2012-05-24 13:55 doligez Note Edited: 0007450 View Revisions
2012-05-24 19:37 raould Note Added: 0007458
2012-07-10 13:55 doligez Note Added: 0007679
2012-07-10 13:55 doligez Status feedback => resolved
2012-07-10 13:55 doligez Resolution open => no change required


Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker