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 #3320

Closed
vicuna opened this issue Nov 30, 2004 · 5 comments
Closed

Native code linking error on ppc with -pack #3320

vicuna opened this issue Nov 30, 2004 · 5 comments

Comments

@vicuna
Copy link

vicuna commented Nov 30, 2004

Original bug ID: 3320
Reporter: administrator
Status: closed
Resolution: fixed
Priority: normal
Severity: feature
Category: ~DO NOT USE (was: OCaml general)

Bug description

Native code linking error on ppc with -pack
Native code linking error on ppc with -pack
Native code linking error on ppc with -pack
Native code linking error on ppc with -pack
Native code linking error on ppc with -pack
Native code linking error on ppc with -pack
Native code linking error on ppc with -pack
Native code linking error on ppc with -pack

Full_Name: frédéric BESSON
Version: 3.08.2
OS: MacOS X
Submission from: zarquon.irisa.fr (131.254.10.195)

Salut,

I am the witness of the reincarnation of bug 2172 (for MacOS)
When compiling ocamlgraph-0.81, I get a linking error.
ocamlopt.opt -pack -o graph.cmx ...
/usr/libexec/binutils/objcopy: graph.o: Invalid operation
Error during partial linking
make: *** [graph.cmx] Error 2

/usr/libexec/binutils/objcopy -V

GNU objcopy 2.13.90 20030128

--
Frédéric

@vicuna
Copy link
Author

vicuna commented Nov 30, 2004

Comment author: administrator

Full_Name: frédéric BESSON
Version: 3.08.2
OS: MacOS X

I am the witness of the reincarnation of bug 2172 (for MacOS)
When compiling ocamlgraph-0.81, I get a linking error.
ocamlopt.opt -pack -o graph.cmx ...
/usr/libexec/binutils/objcopy: graph.o: Invalid operation
Error during partial linking
make: *** [graph.cmx] Error 2

The message you should have is:

ocamlopt -pack is not supported on this platform.
Reason: the GNU `binutils' tools are not available

ocamlopt -pack is not supported on Mac OS X because the objcopy provided
by Apple doesn't implement the features we need. As far as I can tell, it
doesn't implement any feature whatsoever. In fact, it is not even present on
my brand new MacOS X 10.3.6.

/usr/libexec/binutils/objcopy -V

GNU objcopy 2.13.90 20030128

If this is Apple's version of objcopy, it's completely useless.

We are looking for a way to implement -pack without using objcopy, but it's
not clear whether we will find it.

-- Damien

@vicuna
Copy link
Author

vicuna commented Dec 1, 2004

Comment author: administrator

ocamlopt -pack is not supported on this platform.
Reason: the GNU `binutils' tools are not available
D'accord.

because the objcopy provided
by Apple doesn't implement the features we need. As far as I can
tell, it
doesn't implement any feature whatsoever. In fact, it is not even
present on
my brand new MacOS X 10.3.6.

/usr/libexec/binutils/objcopy -V

GNU objcopy 2.13.90 20030128
Moi aussi, mon Mac est tout nouveau: livré il y a 2 jours...

If this is Apple's version of objcopy, it's completely useless.
Ça a le mérite d'être clair...

We are looking for a way to implement -pack without using objcopy, but
it's
not clear whether we will find it.
Ok. merci beaucoup pour ta prompte réponse.

--
Frédéric

@vicuna
Copy link
Author

vicuna commented Jan 25, 2005

Comment author: administrator

see also #2634
feature wish: ocamlopt -pack on Mac OS X
Implemented using ld instead of objcopy. DD 2005-01-25

@vicuna
Copy link
Author

vicuna commented Jan 27, 2005

Comment author: administrator

Bonjour,

(reponse a un vieux rapport de bug)

I am the witness of the reincarnation of bug 2172 (for MacOS)
When compiling ocamlgraph-0.81, I get a linking error.
ocamlopt.opt -pack -o graph.cmx ...
/usr/libexec/binutils/objcopy: graph.o: Invalid operation
Error during partial linking

J'ai implemente ocamlopt -pack sur Mac OS X, en utilisant ld a la
place d'objcopy. Le changement est fait dans la version CVS (dans
les deux branches). Si vous en avez encore besoin, vous pouvez le
tester en utilisant la version CVS.

-- Damien

@vicuna vicuna closed this as completed Jan 27, 2005
@vicuna
Copy link
Author

vicuna commented Feb 22, 2005

Comment author: administrator

J'ai implemente ocamlopt -pack sur Mac OS X, en utilisant ld a la
place d'objcopy. Le changement est fait dans la version CVS (dans
les deux branches). Si vous en avez encore besoin, vous pouvez le
tester en utilisant la version CVS.

Bonjour,

Merci pour l'info.
Je viens de charger la version CVS: ocamlopt -pack marche.

Bien joué.

--
Frédéric

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant