[MacPorts] #41169: memcached fails to build on Mavericks
#41169: memcached fails to build on Mavericks ---------------------+-------------------------------- Reporter: zsolt@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Keywords: | Port: ---------------------+-------------------------------- relevant logs: {{{ :debug:configure Environment: CPATH='/opt/local/include' CFLAGS='-pipe -Os -m64' CPPFLAGS='-I/opt/local/include' CXXFLAGS='-pipe -Os -m64' LIBRARY_PATH='/opt/local/lib' MACOSX_DEPLOYMENT_TARGET='10.9' CXX='/usr/bin/c++' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_sysutils_memcached/memcached/work/.CC_PRINT_OPTIONS' F90FLAGS='-pipe -Os -m64' LDFLAGS='-L/opt/local/lib -Wl,-headerpad_max_install_names' FCFLAGS='-pipe -Os -m64' OBJC='/usr/bin/cc' OBJCXX='/usr/bin/c++' INSTALL='/usr/bin/install -c' OBJCFLAGS='-pipe -Os -m64' OBJCXXFLAGS='-pipe -Os -m64' FFLAGS='-pipe -Os -m64' CC_PRINT_OPTIONS='YES' CC='/usr/bin/cc' :info:build testapp.c:1788:13: error: variable length array folded to constant array as an extension [-Werror,-Wpedantic] :info:build int fds[max]; :info:build ^~~ :info:build 1 error generated. :info:build make[2]: *** [testapp.o] Error 1 }}} /usr/bin/cc is Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn) -- Ticket URL: <https://trac.macports.org/ticket/41169> MacPorts <http://www.macports.org/> Ports system for OS X
#41169: memcached fails to build on Mavericks ------------------------+-------------------------------- Reporter: zsolt@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: mavericks Port: memcached | ------------------------+-------------------------------- Changes (by ryandesign@…): * keywords: => mavericks * port: => memcached Comment: Why does the log say {{{ :debug:configure Using compiler 'System cc' }}} ? It should say it's using clang. When the compiler is clang, the portfile removes the `-Werror` flag that's causing your build failure. -- Ticket URL: <https://trac.macports.org/ticket/41169#comment:1> MacPorts <http://www.macports.org/> Ports system for OS X
#41169: memcached fails to build on Mavericks ------------------------+-------------------------------- Reporter: zsolt@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: mavericks Port: memcached | ------------------------+-------------------------------- Comment (by zsolt@…): Replying to [comment:1 ryandesign@…]:
Why does the log say {{{ :debug:configure Using compiler 'System cc' }}} ? It should say it's using clang. When the compiler is clang, the portfile removes the `-Werror` flag that's causing your build failure. I have no idea, I didn't pass any options to install, so this is all default.
Anything else I can do to help? -- Ticket URL: <https://trac.macports.org/ticket/41169#comment:2> MacPorts <http://www.macports.org/> Ports system for OS X
#41169: memcached fails to build on Mavericks ------------------------+-------------------------------- Reporter: zsolt@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: mavericks Port: memcached | ------------------------+-------------------------------- Changes (by ryandesign@…): * cc: ryandesign@… (added) Comment: I've worked around the problem in r112927 but we still need to understand why your compiler isn't being set to the correct default value. Have you installed Xcode 5.0.1, and installed the command line tools by running `xcode-select --install`? -- Ticket URL: <https://trac.macports.org/ticket/41169#comment:3> MacPorts <http://www.macports.org/> Ports system for OS X
#41169: memcached fails to build on Mavericks ------------------------+-------------------------------- Reporter: zsolt@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: mavericks Port: memcached | ------------------------+-------------------------------- Comment (by zsolt@…): Replying to [comment:3 ryandesign@…]:
I've worked around the problem in r112927 but we still need to understand why your compiler isn't being set to the correct default value.
Have you installed Xcode 5.0.1, and installed the command line tools by running `xcode-select --install`?
I've tried it on another machine and I could build 1.4.14. This machine has Xcode installed. The other non-working has only Xcode Cli Tools installed. -- Ticket URL: <https://trac.macports.org/ticket/41169#comment:4> MacPorts <http://www.macports.org/> Ports system for OS X
#41169: memcached fails to build on Mavericks ------------------------+-------------------------------- Reporter: zsolt@… | Owner: macports-tickets@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: invalid | Keywords: mavericks Port: memcached | ------------------------+-------------------------------- Changes (by ryandesign@…): * status: new => closed * resolution: => invalid Comment: Both Xcode and the command line tools are required for MacPorts. -- Ticket URL: <https://trac.macports.org/ticket/41169#comment:5> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts