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
Native code linking error on ppc with -pack #8476
Comments
Comment author: administrator
Merci pour votre rapport de bug. Je pense que ce bug est repare dans la version CVS (a l'occasion d'un autre -- Damien |
Comment author: administrator On Mon, Feb 09, 2004 at 11:34:15AM +0100, Damien Doligez wrote:
La version CVS ne fait qu'ajouter le prefix 'caml' aux noms des symboles P.S: Je ne pense pas que j'utilise le meilleur moyen pour repondre, mais |
Comment author: administrator -----BEGIN PGP SIGNED MESSAGE----- Damien Doligez wrote: La version 0.70 d'ocamlgraph ne pose aucun problème (avec ocaml3.07+2). iD8DBQFAbKVsLp2DOi1vGpoRAkwUAJ4nffqd824VzdsjcMybd+W0nL4thwCeNr+v |
Comment author: administrator Bug disappeared by itself... DD 2004-04-15 |
Original bug ID: 2172
Reporter: administrator
Status: closed
Resolution: not a bug
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)
Bug description
Full_Name: Matthieu Sozeau
Version: ocaml-3.07+2
OS: Linux
Submission from: f09v-8-92.d1.club-internet.fr (212.194.187.92)
J'ai rencontré une erreur en compilant ocamlgraph
(http://www.lri.fr/~filliatr/ftp/ocamlgraph/ocamlgraph-0.5.tar.gz)
sur powerpc (G4).
La compilation de demo.opt produit une erreur à la phase de liaison, cela
provient apparement
du fait que tout les symboles ne sont pas bien renommés dans graph.o.
J'ai trouvé une solution en faisant ceci:
make
ocamlopt.opt -pack -o graph.cmx sig.cmx sig_pack.cmx util.cmx unionfind.cmx
heap.cmx per_imp.cmx persistent.cmx bitv.cmx ierative.cmx path.cmx graphviz.cmx
traverse.cmx components.cmx flow.cmx builder.cmx classic.cmx rand.cmx oper.cmx
kruskal.c topological.cmx pack.cmx
ocamlopt.opt -o demo.opt graph.cmx demo.ml
/tmp/camlstartup0d32c7.o(.data+0x76c): undefined reference to
Graph__Sig__frametable' /tmp/camlstartup0d32c7.o(.data+0x770): undefined reference to
Graph__Sig_pack__frametable'/tmp/camlstartup0d32c7.o(.data+0x774): undefined reference to
Graph__Util__frametable' /tmp/camlstartup0d32c7.o(.data+0x778): undefined reference to
Graph__Unionfind__frametable'/tmp/camlstartup0d32c7.o(.data+0x77c): undefined reference to
`Graph__Heap__frametable'
...
collect2: ld a retourné 1 code d'état d'exécution
Error during linking
make: *** [demo.opt] Erreur 2
nm *.o | grep frametable | cut -d' ' -f3 | sort | uniq | grep -e "[^Graph]"
|awk '{ p
rint $1 " Graph__"$1 }' > renamings
objcopy --redefine-syms=renamings graph.o
make
ocamlopt.opt -o demo.opt graph.cmx demo.ml
Tout fonctionne ensuite.
J'utilise objcopy 2.14.90.0.6 20030820 (binutils-2.14.90.0.6) et gcc-3.2.3.
The text was updated successfully, but these errors were encountered: