Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001023OCamlOCaml generalpublic2002-03-26 16:112002-04-24 13:19
Assigned To 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0001023: [ Bug#139427: ocamlc.opt fails when linking if passed "-thread"]
DescriptionHello, ...

I have reproduced this problem, but have not really the time to look more into
it right now.

That said:

$ nm -D /usr/lib/ocaml/ | grep extern_sp
         U extern_sp

So the symbol does exist in the file, and is a dyncamic symbol

and linking foo.cmo in custom mode works well even with ocamlc.opt.

Sorry if i cannot provide more complete information on this on, if need be i
will look at it more next week.


Sven Luther

----- Forwarded message from Tim Freeman <> -----

Return-Path: <>
Received: from ( [])
    by (8.9.3/8.9.3) with ESMTP id FAA29111
    for <>; Fri, 22 Mar 2002 05:34:05 +0100
Received: from ( [])
          by (8.12.2/jtpda-5.4) with ESMTP id g2M4XJXx013352
          for <>; Fri, 22 Mar 2002 05:33:20 +0100 (CET)
Received: from debbugs by with local (Exim 3.12 1 (Debian))
    id 16oGjf-0007L9-00; Thu, 21 Mar 2002 22:33:03 -0600
Subject: Bug#139427: ocamlc.opt fails when linking if passed "-thread"
Reply-To: Tim Freeman <>,
Resent-From: Tim Freeman <>
Resent-CC: Sven Luther <>,
Resent-Date: Fri, 22 Mar 2002 04:33:01 GMT
Resent-Message-ID: <>
X-Debian-PR-Message: report 139427
X-Debian-PR-Package: ocaml
Received: via spool by id=B.101677097925079
          (code B ref -1); Fri, 22 Mar 2002 04:33:01 GMT
From: Tim Freeman <>
To: Debian Bug Tracking System <>
X-Mailer: reportbug 1.48
Date: Thu, 21 Mar 2002 20:22:25 -0800
Message-Id: <>
Resent-Sender: Debian BTS <>
Status: RO
X-Status: A
Content-Length: 827
Lines: 26

Package: ocaml
Version: 3.04-9
Severity: normal

The subject line says it all. ocamlc without the ".opt" works fine,
so this is no big deal.

> cat
print_string "Hi\n";
> ocamlc -thread -c
> ocamlc -thread threads.cma foo.cmo -o foo
> ocamlc.opt -thread threads.cma foo.cmo -o foo
Error on dynamically loaded library: /usr/lib/ocaml/ undefined symbol: extern_sp

-- System Information
Debian Release: 3.0
Architecture: i386
Kernel: Linux lobus 2.4.17 0000003 Mon Mar 4 19:04:26 PST 2002 i686

Versions of packages ocaml depends on:
ii libc6 2.2.5-3 GNU C Library: Shared libraries an
ii libncurses5-dev 5.2.20020112a-5 Developer's libraries and docs for
ii ocaml-base 3.04-9 Runtime system for ocaml bytecode

----- End forwarded message -----

TagsNo tags attached.
Attached Files

- Relationships

-  Notes
administrator (administrator)
2002-04-24 13:19

Same bug as PR#643, fixed already.

- Issue History
Date Modified Username Field Change
2005-11-18 10:13 administrator New Issue

Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker