You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Original bug ID: 1861 Reporter: administrator Status: closed Resolution: fixed Priority: normal Severity: minor Category: ~DO NOT USE (was: OCaml general)
[This is not really a bug report, since the problem seems to be gcc's fault.
I am just posting it here to let others know of the solution I have found.]
On a solaris 7 with a gcc 3.2.1 (it is the only such system I have
available, so that I cannot vouch for the innocence of my sysadmin), the
build of ocaml 3.07 fails during the building of labltk. It happens that at
a time ocamlrun dlopens the previously built dllstr.so', and crashes because that dll lacks a function __eprintf'. This function is defined in
the static libgcc.a, but not in the dynamic libgcc_s.so' that dllstr.so'
depends on. I gather there is a problem in gcc with that respect.
A solution is to force gcc to include the __eprintf' defined in libgcc.a into ocamlrun', which can be achieved by passing a `-Wl,-u,__eprintf' to
the gcc that compiles ocamlrun (and then substituting this ocamlrun to
boot/ocamlrun). Well, I have not deeply tested that str works after that,
but at least it lets the whole distribution compile.
The text was updated successfully, but these errors were encountered:
Original bug ID: 1861
Reporter: administrator
Status: closed
Resolution: fixed
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)
Bug description
Full_Name: Luc Habert
Version: 3.07
OS: solaris 7
Submission from: drakkar.ens.fr (129.199.129.5)
[This is not really a bug report, since the problem seems to be gcc's fault.
I am just posting it here to let others know of the solution I have found.]
On a solaris 7 with a gcc 3.2.1 (it is the only such system I have
available, so that I cannot vouch for the innocence of my sysadmin), the
build of ocaml 3.07 fails during the building of labltk. It happens that at
a time ocamlrun dlopens the previously built
dllstr.so', and crashes because that dll lacks a function
__eprintf'. This function is defined inthe static libgcc.a, but not in the dynamic
libgcc_s.so' that
dllstr.so'depends on. I gather there is a problem in gcc with that respect.
A solution is to force gcc to include the
__eprintf' defined in libgcc.a into
ocamlrun', which can be achieved by passing a `-Wl,-u,__eprintf' tothe gcc that compiles ocamlrun (and then substituting this ocamlrun to
boot/ocamlrun). Well, I have not deeply tested that str works after that,
but at least it lets the whole distribution compile.
The text was updated successfully, but these errors were encountered: