Summary: | dev-lang/ocaml-3.10.2 arguments passed to linker in wrong order | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Christopher Head <bugs> |
Component: | [OLD] Development | Assignee: | Gentoo Team for the ML programming language family <ml> |
Status: | VERIFIED FIXED | ||
Severity: | major | ||
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 129413 | ||
Attachments: |
The main OCaml driver
The C wrapper The OCamlBuild plugin |
Description
Christopher Head
2010-08-06 00:41:50 UTC
Created attachment 241583 [details]
The main OCaml driver
Created attachment 241585 [details]
The C wrapper
Created attachment 241587 [details]
The OCamlBuild plugin
can you check if the same happens with 3.12.0 ? the problem is probably in ocamlbuild to pass the -cclib option before the .o file if this is still an issue with newer versions, you may want to report this upstream because having ocamlbuild call ocamlopt with -cclib always at the end of the command line will probably not hurt and fix this Yes, 3.12.0 still has the problem. Also, changing the constructor from "A" (atom) to "P" (pathname) also doesn't help—using only flag still doesn't treat it as a dependency, using only dep puts the filename in the wrong place (after -lz), and using both gives multiple definition errors. Finally, using the new flag_and_dep command also gives multiple definition errors. fixed with the patch I just added to ocaml-3.12.0, no revbump since its masked and is an as-needed problem |