I am at revision 45341, and I am getting a build failure on Leopard involving an unknown option to the ocaml compiler: llvm[3]: Compiling optimized llvm.ml for Debug build /opt/fink/bin/ocamlopt: unknown option `-g'. Usage: ocamlopt <options> <files> ... My ocaml binaries are compiled from source using fink: (kremenek at tedbook:llvm)$ which ocamlopt /opt/fink/bin/ocamlopt (kremenek at tedbook:llvm)$ ocamlopt -version 3.09.3
Gordon Henriksen
2007-Dec-25 08:41 UTC
[LLVMdev] build failure: ocamlopt: unknown option `-g'
DOn 2007-12-24, at 01:29, Ted Kremenek wrote:> I am at revision 45341, and I am getting a build failure on Leopard > involving an unknown option to the ocaml compiler: > > llvm[3]: Compiling optimized llvm.ml for Debug build > /opt/fink/bin/ocamlopt: unknown option `-g'. > Usage: ocamlopt <options> <files> > ... > > > My ocaml binaries are compiled from source using fink: > > (kremenek at tedbook:llvm)$ which ocamlopt > /opt/fink/bin/ocamlopt > (kremenek at tedbook:llvm)$ ocamlopt -version > 3.09.3Ah, -g to ocamlopt this looks like a new flag for 3.10. I usually cross-check with 3.06 on a spare machine, but minitowers don't travel so well. :) Fixed here: http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20071224/056594.html Happy holidays, Gordon
On Dec 25, 2007, at 12:41 AM, Gordon Henriksen wrote:>> My ocaml binaries are compiled from source using fink: >> >> (kremenek at tedbook:llvm)$ which ocamlopt >> /opt/fink/bin/ocamlopt >> (kremenek at tedbook:llvm)$ ocamlopt -version >> 3.09.3 > > Ah, -g to ocamlopt this looks like a new flag for 3.10. I usually > cross-check with 3.06 on a spare machine, but minitowers don't travel > so well. :) Fixed here: > > http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20071224/056594.html > > Happy holidays, > GordonThanks so much Gordon! The build works now. If adding the -g flag is useful, perhaps we should investigate (in the future) adding some autoconf magic to the configure script to add -g when the ocaml compiler supports to it. Currently my autoconf foo is pretty minimal, but I wouldn't mind looking into adding such support myself in the future if there is a need. Ted -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20071225/ca0238e0/attachment.html>
Seemingly Similar Threads
- [LLVMdev] build failure: ocamlopt: unknown option `-g'
- [LLVMdev] uninitialized value warnings: LLVMParser.cpp
- [LLVMdev] Some enhancements to ImmutableSet and FoldingSet
- [LLVMdev] Some enhancements to ImmutableSet and FoldingSet
- problem with machine "freezing" for short periods