Opened 14 years ago

Closed 14 years ago

#22246 closed defect (fixed)

libmemcached and -Wno-attributes

Reported by: gtaylor@… Owned by: brett@…
Priority: Normal Milestone:
Component: ports Version: 1.8.1
Keywords: Cc: erks@…, conradwt (Conrad Taylor), ryandesign (Ryan Carsten Schmidt), mailsforabhinav@…
Port: libmemcached

Description

After recently doing a port upgrade, I found that the latest versions of libmemcached seem to be broken using the standard gcc4.0 included with Leopard 10.5.8.

apache1:~ admin$ sudo port install libmemcached
--->  Computing dependencies for libmemcached
--->  Fetching libmemcached
--->  Attempting to fetch libmemcached-0.34.tar.gz from http://distfiles.macports.org/libmemcached
--->  Verifying checksum(s) for libmemcached
--->  Extracting libmemcached
--->  Configuring libmemcached
--->  Building libmemcached
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_libmemcached/work/libmemcached-0.34" && /usr/bin/make -j1 all " returned error 2
Command output:   CC     memcat.o
  CCLD   memcat
  CC     memdump.o
  CCLD   memdump
  CC     memcp.o
  CCLD   memcp
  CC     memstat.o
  CCLD   memstat
  CC     memrm.o
  CCLD   memrm
  CC     memflush.o
  CCLD   memflush
  CC     memslap-memslap.o
  CCLD   memslap
  CC     memerror.o
  CCLD   memerror
  CC     memcapable.o
  CCLD   memcapable
Making all in tests
  CC     server.lo
  CCLD   libserver.la
  CC     test.lo
  CCLD   libtest.la
  CC     testapp-function.o
  CCLD   testapp
  CXX    plus.o
cc1plus: error: unrecognized command line option "-Wno-attributes"
make[2]: *** [plus.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Error: Status 1 encountered during processing.

I suspect this may have been introduced upstream, but am not sure. I don't see that flag specified in the port file, but figured I'd report it here just in case.

Change History (11)

comment:1 Changed 14 years ago by gtaylor@…

Cc: gtaylor@… added

Cc Me!

comment:2 Changed 14 years ago by mf2k (Frank Schima)

Cc: gtaylor@… removed
Owner: changed from macports-tickets@… to brett@…

comment:3 Changed 14 years ago by gtaylor@…

I manually went in and removed -Wno-attributes on the Makefile from upstream and this compiled without an issue. I don't know how to do this "correctly" for MacPorts, but figured I'd mention it.

comment:4 Changed 14 years ago by brett@…

Status: newassigned

I can't reproduce this. Can you provide more information about your environment?

comment:5 Changed 14 years ago by gtaylor@…

Mac OS 10.5.8 Server
gcc4.0 and 4.2 (Apple)
memcached and py26-memcached installed before the upgrade breakage
Latest stable macports

comment:6 Changed 14 years ago by erks@…

Cc: erks@… added

Cc Me!

comment:7 Changed 14 years ago by erks@…

same thing also happening on 10.4.11.

comment:8 Changed 14 years ago by mailsforabhinav@…

Same happening for me. Here is the summary:

./configure CC="gcc -arch x86_64 -g -Os -pipe -no-cpp-precomp" CXX="g++ -arch x86_64 -g -Os -pipe -no-cpp-precomp" CCFLAGS="-arch x86_64 -g -Os -pipe" CXXFLAGS="-arch x86_64 -g -Os -pipe" LDFLAGS="-arch x86_64 -bind_at_load" CPP="gcc -E" CXXCPP="g++ -E"
---
Configuration summary for libmemcached version 0.35

   * Installation prefix:       /usr/local
   * System type:               apple-darwin9.8.0
   * Host CPU:                  i386
   * C Compiler:                i686-apple-darwin9-gcc-4.0.1 (GCC) 4.0.1 (Apple Inc. build 5493)
   * Assertions enabled:        yes
   * Debug enabled:             no
   * Warnings as failure:       no

---

make
cc1plus: error: unrecognized command line option "-Wno-attributes"
make[2]: *** [plus.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Any solution to this?

comment:9 Changed 14 years ago by mailsforabhinav@…

Tried again with these options:

./configure CC="gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64" CXX="g++ -arch i386 -arch x86_64 -arch ppc -arch ppc64" CPP="gcc -E" CXXCPP="g++ -E"
---
Configuration summary for libmemcached version 0.35

   * Installation prefix:       /usr/local
   * System type:               apple-darwin9.8.0
   * Host CPU:                  i386
   * C Compiler:                
   * Assertions enabled:        yes
   * Debug enabled:             no
   * Warnings as failure:       no

---

make

cc1plus: error: unrecognized command line option "-Wno-attributes"
cc1plus: error: unrecognized command line option "-Wno-attributes"
cc1plus: error: unrecognized command line option "-Wno-attributes"
cc1plus: error: unrecognized command line option "-Wno-attributes"
lipo: can't open input file: /var/folders/BY/BY-hv8mhFuia5mkQCMTdoU+++TM/-Tmp-//ccClqqb3.out (No such file or directory)
make[2]: *** [plus.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

comment:10 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: conradwt@… added

Has duplicate #23283.

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

Cc: ryandesign@… mailsforabhinav@… added
Resolution: fixed
Status: assignedclosed

I don't see this problem after updating libmemcached to 0.38 in r64110.

Note: See TracTickets for help on using tickets.