-
Notifications
You must be signed in to change notification settings - Fork 1.2k
static linking fails #7697
Description
Original bug ID: 7697
Reporter: korovin
Status: confirmed (set by @nojb on 2017-12-22T16:42:41Z)
Resolution: open
Priority: normal
Severity: minor
OS: Ubuntu
OS Version: 14.04.4
Version: 4.06.0
Category: platform support (windows, cross-compilation, etc)
Related to: #7562
Monitored by: @nojb @gasche
Bug description
Hello,
Could you please take a look at the following issue.
After switching from OCaml 4.05 to 4.06 my project fails to link statically (if I switch back to 4.05 it compiles and links statically fine).
ocamlopt -ccopt -static ...
The error message:
/usr/bin/ld: dynamic STT_GNU_IFUNC symbol floor' with pointer equality in /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/libm.a(s_floor.o)' cannot be used when making an executable; recompile with -fPIE and relink with -pie
collect2: error: ld returned 1 exit status
File "caml_startup", line 1:
Error: Error during linking
Many thanks,
Konstantin