[MacPorts] #33378: memcached compile fails
#33378: memcached compile fails ----------------------------------+----------------------------------------- Reporter: chimerafun@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: | Port: ----------------------------------+----------------------------------------- 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. -- Ticket URL: <https://trac.macports.org/ticket/33378> MacPorts <http://www.macports.org/> Ports system for Mac OS
#33378: memcached compile fails ----------------------------------+----------------------------------------- Reporter: chimerafun@… | Owner: brett@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: | Port: memcached ----------------------------------+----------------------------------------- Changes (by ryandesign@…): * owner: macports-tickets@… => brett@… * port: => memcached Comment: Please attach the entire main.log. Perhaps an issue related to clang; you could try working around it by [wiki:ProblemHotlist#compiler using a different compiler]. -- Ticket URL: <https://trac.macports.org/ticket/33378#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#33378: memcached compile fails ----------------------------------+----------------------------------------- Reporter: chimerafun@… | Owner: brett@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: | Port: memcached ----------------------------------+----------------------------------------- Comment(by chimerafun@…): I attached the main.log I'll look into using a different compiler -- Ticket URL: <https://trac.macports.org/ticket/33378#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#33378: memcached compile fails ----------------------------------+----------------------------------------- Reporter: chimerafun@… | Owner: brett@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: | Port: memcached ----------------------------------+----------------------------------------- Comment(by chimerafun@…): I used: llvm-gcc-4.2 and it worked great. Thank-you for the help. -- Ticket URL: <https://trac.macports.org/ticket/33378#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#33378: memcached compile fails with clang ----------------------------------+----------------------------------------- Reporter: chimerafun@… | Owner: brett@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: clang | Port: memcached ----------------------------------+----------------------------------------- Changes (by ryandesign@…): * keywords: => clang -- Ticket URL: <https://trac.macports.org/ticket/33378#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#33378: memcached compile fails with clang ----------------------------------+----------------------------------------- Reporter: chimerafun@… | Owner: brett@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: clang | Port: memcached ----------------------------------+----------------------------------------- Comment(by corycollier@…): I'm not up for using a different compiler here. Is there some update on getting this working again? -- Ticket URL: <https://trac.macports.org/ticket/33378#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#33378: memcached compile fails with clang ----------------------------------+----------------------------------------- Reporter: chimerafun@… | Owner: brett@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: clang | Port: memcached ----------------------------------+----------------------------------------- Comment(by chimerafun@…): Replying to [comment:5 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 -- Ticket URL: <https://trac.macports.org/ticket/33378#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#33378: memcached compile fails with clang ----------------------------------+----------------------------------------- Reporter: chimerafun@… | Owner: brett@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: clang | Port: memcached ----------------------------------+----------------------------------------- Comment(by chimerafun@…): Replying to [comment:5 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 -- Ticket URL: <https://trac.macports.org/ticket/33378#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
#33378: memcached compile fails with clang ----------------------------------+----------------------------------------- Reporter: chimerafun@… | Owner: brett@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: clang | Port: memcached ----------------------------------+----------------------------------------- Comment(by corycollier@…): Replying to [comment:7 chimerafun@…]:
Replying to [comment:5 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. -- Ticket URL: <https://trac.macports.org/ticket/33378#comment:8> MacPorts <http://www.macports.org/> Ports system for Mac OS
#33378: memcached compile fails with clang -----------------------------------+---------------------------------------- Reporter: chimerafun@… | Owner: brett@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Resolution: fixed | Keywords: clang Port: memcached | -----------------------------------+---------------------------------------- Changes (by ryandesign@…): * cc: ryandesign@… (added) * status: new => closed * resolution: => fixed Comment: r90569 (maintainer timeout) -- Ticket URL: <https://trac.macports.org/ticket/33378#comment:9> MacPorts <http://www.macports.org/> Ports system for Mac OS
#33378: memcached compile fails with clang ---------------------------+--------------------- Reporter: chimerafun@… | Owner: brett@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Resolution: fixed | Keywords: clang Port: memcached | ---------------------------+--------------------- Comment (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. -- Ticket URL: <https://trac.macports.org/ticket/33378#comment:10> MacPorts <http://www.macports.org/> Ports system for OS X
#33378: memcached compile fails with clang ---------------------------+--------------------- Reporter: chimerafun@… | Owner: brett@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Resolution: fixed | Keywords: clang Port: memcached | ---------------------------+--------------------- Changes (by ryandesign@…): * cc: zsolt@… (added) Comment: Replying to [comment:10 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. -- Ticket URL: <https://trac.macports.org/ticket/33378#comment:11> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts