Opened 11 years ago

Closed 11 years ago

#41169 closed defect (invalid)

memcached fails to build on Mavericks

Reported by: zsolt@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.2.1
Keywords: mavericks Cc: ryandesign (Ryan Carsten Schmidt)
Port: memcached

Description

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)

Attachments (1)

main.log (26.5 KB) - added by zsolt@… 11 years ago.

Download all attachments as: .zip

Change History (6)

Changed 11 years ago by zsolt@…

Attachment: main.log added

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

Keywords: mavericks added
Port: memcached added

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.

comment:2 in reply to:  1 Changed 11 years ago by zsolt@…

Replying to 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?

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

Cc: ryandesign@… added

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?

comment:4 in reply to:  3 Changed 11 years ago by zsolt@…

Replying to 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.

comment:5 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: invalid
Status: newclosed

Both Xcode and the command line tools are required for MacPorts.

Note: See TracTickets for help on using tickets.