Opened 13 years ago

Closed 13 years ago

Last modified 11 years ago

#33378 closed defect (fixed)

memcached compile fails with clang

Reported by: chimerafun@… Owned by: brett@…
Priority: Normal Milestone:
Component: ports Version: 2.0.3
Keywords: clang Cc: ryandesign (Ryan Carsten Schmidt), zsolt@…
Port: memcached

Description

When trying to install memcached with the command:

port install memcached

I'm getting a failure here is the appropriate part of the main.log:

:info:build testapp.c:1784:13: error: variable length array folded to constant array as an extension [-Werror,-pedantic]
:info:build     int fds[max];
:info:build             ^
:info:build 1 error generated.
:info:build make[2]: *** [testapp.o] Error 1
:info:build make[2]: *** Waiting for unfinished jobs....
:info:build mv -f .deps/util.Tpo .deps/util.Po
:info:build mv -f .deps/memcached-memcached.Tpo .deps/memcached-memcached.Po
:info:build mv -f .deps/memcached_debug-memcached.Tpo .deps/memcached_debug-memcached.Po
:info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_sysutils_memcached/memcached/work/memcached-1.4.10'
:info:build make[1]: *** [all-recursive] Error 1
:info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_sysutils_memcached/memcached/work/memcached-1.4.10'
:info:build make: *** [all] Error 2
:info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_sysutils_memcached/memcached/work/memcached-1.4.10'
:info:build shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_sysutils_memcached/memcached/work/memcached-1.4.10" && /usr/bin/make -j4 -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 memcached): org.macports.activate org.macports.build org.macports.destroot org.macports.install
:notice:build Log for memcached is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_sysutils_memcached/memcached/main.log

I have tried updating ports and I have cleaned the ports and reinstalled.

Attachments (1)

main.log (23.7 KB) - added by chimerafun@… 13 years ago.
main.log

Download all attachments as: .zip

Change History (12)

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

Owner: changed from macports-tickets@… to brett@…
Port: memcached added

Please attach the entire main.log.

Perhaps an issue related to clang; you could try working around it by using a different compiler.

Changed 13 years ago by chimerafun@…

Attachment: main.log added

main.log

comment:2 Changed 13 years ago by chimerafun@…

I attached the main.log

I'll look into using a different compiler

comment:3 Changed 13 years ago by chimerafun@…

I used:

llvm-gcc-4.2

and it worked great. Thank-you for the help.

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

Keywords: clang added
Summary: memcached compile failsmemcached compile fails with clang

comment:5 Changed 13 years ago by corycollier@…

I'm not up for using a different compiler here. Is there some update on getting this working again?

comment:6 in reply to:  5 Changed 13 years ago by chimerafun@…

Replying to corycollier@…:

I'm not up for using a different compiler here. Is there some update on getting this working again?

It's so easy just run the following commands, the first cleans out any of the failed junk and the second compiled it flawlessly on my computer.

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

comment:7 in reply to:  5 ; Changed 13 years ago by chimerafun@…

Replying to corycollier@…:

I'm not up for using a different compiler here. Is there some update on getting this working again?

I'm sorry the commands ran together

sudo port clean foo
sudo port install foo configure.compiler=llvm-gcc-4.2
Last edited 11 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:8 in reply to:  7 Changed 13 years ago by corycollier@…

Replying to chimerafun@…:

Replying to corycollier@…:

I'm not up for using a different compiler here. Is there some update on getting this working again?

I'm sorry the commands ran together

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

Chimerafun, You are the man.

Last edited 11 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

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

Cc: ryandesign@… added
Resolution: fixed
Status: newclosed

r90569 (maintainer timeout)

comment:10 Changed 11 years ago by zsolt@…

I had this exact same problem on Mavericks. I could get memcached to compile with installing gcc48 and using configure.compiler=macports-gcc-4.8.

comment:11 in reply to:  10 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: zsolt@… added

Replying to zsolt@…:

I had this exact same problem on Mavericks. I could get memcached to compile with installing gcc48 and using configure.compiler=macports-gcc-4.8.

Please do not compile with gcc48; the mixture of libc++ and libstdc++ will cause problems. Please file a new ticket about the problem you're experiencing so that we can investigate a proper solution. This ticket is closed.

Note: See TracTickets for help on using tickets.