Skip to content
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

problem with gcc 3.2.1 #8308

Closed
vicuna opened this issue Sep 30, 2003 · 1 comment
Closed

problem with gcc 3.2.1 #8308

vicuna opened this issue Sep 30, 2003 · 1 comment
Labels

Comments

@vicuna
Copy link

vicuna commented Sep 30, 2003

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 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.

@vicuna
Copy link
Author

vicuna commented Feb 14, 2004

Comment author: administrator

Fixed by DD 2004-02-16 (don't use assert() in otherlibs/str/strstubs.c)

@vicuna vicuna closed this as completed Feb 14, 2004
@vicuna vicuna added the bug label Mar 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant