Opened 12 years ago

Closed 12 years ago

#32543 closed defect (fixed)

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 mf2k (Frank Schima))

: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 (1)

main.log (122.4 KB) - added by eduardo@… 12 years ago.

Download all attachments as: .zip

Change History (5)

Changed 12 years ago by eduardo@…

Attachment: main.log added

comment:1 Changed 12 years ago by mf2k (Frank Schima)

Description: modified (diff)
Keywords: clang added; mldonkey removed
Priority: HighNormal

comment:2 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Summary: mldonkey @3.0.7 - build failuremldonkey 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 12 years 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 12 years ago by jmroot (Joshua Root)

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.