New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #32543 (closed defect: fixed)

Opened 18 months ago

Last modified 11 months ago

mldonkey build failure: invalid value '6' in '-O6'

Reported by: eduardo@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.0.3
Keywords: clang Cc:
Port: mldonkey

Description (last modified by macsforever2000@…) (diff)

:info:build make: *** [src/utils/lib/md4_cc.o] Error 2
:info:build make: *** Waiting for unfinished jobs....
:info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_mldonkey/mldonkey/work/mldonkey-3.0.7'
:info:build shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_mldonkey/mldonkey/work/mldonkey-3.0.7" && /usr/bin/make -j2 -w all " returned error 2
:error:build Target org.macports.build returned: shell command failed (see log for details)
:debug:build Backtrace: shell command failed (see log for details)
    while executing
"command_exec build"
    (procedure "portbuild::build_main" line 8)
    invoked from within
"$procedure $targetname"
:info:build Warning: the following items did not execute (for mldonkey): org.macports.activate org.macports.build org.macports.destroot org.macports.install
:notice:build Log for mldonkey is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_mldonkey/mldonkey/main.log

Attachments

main.log (122.4 KB) - added by eduardo@… 18 months ago.

Change History

Changed 18 months ago by eduardo@…

comment:1 Changed 18 months ago by macsforever2000@…

  • Keywords clang added; mldonkey removed
  • Priority changed from High to Normal
  • Description modified (diff)

comment:2 Changed 18 months ago by ryandesign@…

  • Summary changed from mldonkey @3.0.7 - build failure to mldonkey build failure: invalid value '6' in '-O6'

The actual error is:

error: invalid value '6' in '-O6'

In a previous report of this error for a different port, I found that anything above -O3 is no different than -O3, and that clang issues an error in that case. We should patch it to use -O3.

comment:3 Changed 16 months ago by gruber.mathias@…

I managed to compile mldonkey in Lion w/ Xcode 4.2.1 with the following commands:

sudo port install ocaml configure.compiler=llvm-gcc-4.2
sudo port install ocaml-findlib configure.compiler=llvm-gcc-4.2
sudo port install lablgtk2 +rsvg configure.compiler=llvm-gcc-4.2
sudo port install mldonkey configure.compiler=llvm-gcc-4.2

The problem seems to be with ocaml compile stage that uses clang with an unsupported command line option.

I thing it may also work by just adding the configure.compiler=llvm-gcc-4.2 option to the ocaml and ocaml-libfind builds, but I did not test it.

comment:4 Changed 11 months ago by jmr@…

  • Status changed from new to closed
  • Resolution set to fixed
Note: See TracTickets for help on using tickets.