Opened 13 years ago

Closed 12 years ago

#31790 closed defect (fixed)

libmemcached: clang: error: cannot specify -o when generating multiple output files

Reported by: and@… Owned by: brett@…
Priority: Normal Milestone:
Component: ports Version: 2.0.3
Keywords: lion clang Cc: jmaclabs@…, ryandesign (Ryan Carsten Schmidt)
Port: libmemcached

Description

occurs with last Mac OS Lion macports version

--->  Extracting libmemcached
--->  Configuring libmemcached
--->  Building libmemcached
Error: Target org.macports.build returned: shell command failed (see log for details)
Log for libmemcached is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_libmemcached/libmemcached/main.log
Error: Status 1 encountered during processing.

log:

lang: warning: argument unused during compilation: '-std=gnu99'
  CXXLD  tests/testplus
  CCLD   tests/testudp
clang: warning: argument unused during compilation: '-std=gnu99'
clang: warning: argument unused during compilation: '-std=gnu++98'
clang: error: cannot specify -o when generating multiple output files
make[2]: *** [tests/testapp] Error 1
make[2]: *** Waiting for unfinished jobs....
clang: warning: argument unused during compilation: '-std=gnu99'
make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_libmemcached/libmemcached/work/libmemcached-0.43'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_libmemcached/libmemcached/work/libmemcached-0.43'
make: *** [all] Error 2
make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_libmemcached/libmemcached/work/libmemcached-0.43'
shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_libmemcached/libmemcached/work/libmemcached-0.43" && /usr/bin/make -j4 -w all " returned error 2
Error: Target org.macports.build returned: shell command failed (see log for details)
Warning: the following items did not execute (for libmemcached): org.macports.activate org.macports.build org.macports.destroot org.macports.install
Log for libmemcached is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_libmemcached/libmemcached/main.log
Error: Status 1 encountered during processing.

Change History (4)

comment:1 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Owner: changed from macports-tickets@… to brett@…

Does updating libmemcached (#29350) help?

Does building with llvm-gcc-4.2 instead of clang help:

sudo port clean libmemcached
sudo port install libmemcached configure.compiler=llvm-gcc-4.2

comment:2 Changed 13 years ago by and@…

Building with llvm-gcc-4.2 helps. Thank you!

comment:3 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: jmaclabs@… ryandesign@… added
Keywords: clang added
Summary: Failed building libmemcached on lionlibmemcached: clang: error: cannot specify -o when generating multiple output files

Has duplicate #32093.

It would be really helpful if we could get the port to produce verbose make output, instead of the abbreviated output that doesn't show the actual commands it's running.

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

Resolution: fixed
Status: newclosed

This was resolved by r88092 which updated the port to 1.0.2.

Disabled silent rules in r93697.

Note: See TracTickets for help on using tickets.