Ticket #24899 (closed defect: fixed)
mcpp: universal variant fails on Snow Leopard
| Reported by: | ryandesign@… | Owned by: | blair@… |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | ports | Version: | 1.8.2 |
| Keywords: | Cc: | ||
| Port: | mcpp |
Description
mcpp's universal variant fails on Snow Leopard:
DEBUG: Executing org.macports.build (mcpp) DEBUG: Environment: MACOSX_DEPLOYMENT_TARGET='10.6' DEBUG: Assembled command: 'cd "/opt/local/var/macports/build/_Users_rschmidt_macports_dports_devel_mcpp/work/mcpp-2.7.2" && /usr/bin/nice -n 10 /usr/bin/make -j1 all CFLAGS+='-isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -arch i386 -arch ppc'' Making all in src /usr/bin/make all-am /bin/sh ../libtool --tag=CC --mode=compile /usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I. -I/opt/local/include -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -arch i386 -arch ppc -c -o support.lo support.c /usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I. -I/opt/local/include -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -arch i386 -arch ppc -c support.c -fno-common -DPIC -o .libs/support.o In file included from support.c:306: /Developer/SDKs/MacOSX10.4u.sdk/usr/include/stdarg.h:4:25: error: stdarg.h: No such file or directory
Looking in the portfile, it's hardcoded to use the 10.4u SDK and the i386 and ppc architectures! This is not going to work on Snow Leopard. MacPorts provides a slew of variables pre-defined with all the values you need to build universal on the currently-running version of Mac OS X. Please use these instead of hardcoding.
Attachments
Change History
comment:3 Changed 3 years ago by blair@…
Thanks for the patch. Do I need to bump the revision number for this?
Note: See
TracTickets for help on using
tickets.


What changes do you suggest to make to the Portfile?