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

Native code linking error on ppc with -pack #8476

Closed
vicuna opened this issue Feb 5, 2004 · 4 comments
Closed

Native code linking error on ppc with -pack #8476

vicuna opened this issue Feb 5, 2004 · 4 comments
Labels

Comments

@vicuna
Copy link

vicuna commented Feb 5, 2004

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.

@vicuna
Copy link
Author

vicuna commented Feb 9, 2004

Comment author: administrator

Full_Name: Matthieu Sozeau
Version: ocaml-3.07+2
OS: Linux
Submission from: f09v-8-92.d1.club-internet.fr (212.194.187.92)

sur powerpc (G4).

Merci pour votre rapport de bug.

Je pense que ce bug est repare dans la version CVS (a l'occasion d'un autre
changement), mais je n'ai pas facilement acces a un G4 sous linux pour
verifier.
Si vous pouviez essayer la version CVS et nous dire si elle marche, ca nous
serait tres utile.

-- Damien

@vicuna
Copy link
Author

vicuna commented Feb 9, 2004

Comment author: administrator

On Mon, Feb 09, 2004 at 11:34:15AM +0100, Damien Doligez wrote:

Full_Name: Matthieu Sozeau
Version: ocaml-3.07+2
OS: Linux
Submission from: f09v-8-92.d1.club-internet.fr (212.194.187.92)

sur powerpc (G4).

Merci pour votre rapport de bug.

Je pense que ce bug est repare dans la version CVS (a l'occasion d'un
autre changement), mais je n'ai pas facilement acces a un G4 sous
linux pour verifier. Si vous pouviez essayer la version CVS et nous
dire si elle marche, ca nous serait tres utile.

La version CVS ne fait qu'ajouter le prefix 'caml' aux noms des symboles
non resolus.

P.S: Je ne pense pas que j'utilise le meilleur moyen pour repondre, mais
je n'ai pas la permission de poster une suite au bug sur le site, est-ce
normal ?

@vicuna
Copy link
Author

vicuna commented Apr 1, 2004

Comment author: administrator

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Damien Doligez wrote:
|>Full_Name: Matthieu Sozeau
|>Version: ocaml-3.07+2
|>OS: Linux
|>Submission from: f09v-8-92.d1.club-internet.fr (212.194.187.92)
|
|
|> sur powerpc (G4).
|
|
| Merci pour votre rapport de bug.
|
| Je pense que ce bug est repare dans la version CVS (a l'occasion d'un
autre
| changement), mais je n'ai pas facilement acces a un G4 sous linux pour
| verifier.
| Si vous pouviez essayer la version CVS et nous dire si elle marche, ca
nous
| serait tres utile.

La version 0.70 d'ocamlgraph ne pose aucun problème (avec ocaml3.07+2).
Apparement le Makefile et les sources ont changé, mais je ne vois pas
trop ce qui a de l'importance pour le bug en question.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFAbKVsLp2DOi1vGpoRAkwUAJ4nffqd824VzdsjcMybd+W0nL4thwCeNr+v
A56cCXWWZKPIyZyNAu06D5I=
=gUB8
-----END PGP SIGNATURE-----

@vicuna
Copy link
Author

vicuna commented Apr 15, 2004

Comment author: administrator

Bug disappeared by itself... DD 2004-04-15

@vicuna vicuna closed this as completed Apr 15, 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