#42220: py-netcdf4 @1.0.4_1: build failure when using ccache -------------------------+-------------------- Reporter: egall@… | Owner: sean@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: Port: py-netcdf4 | -------------------------+-------------------- Comment (by zanderpower@…): Oof! Now the build fails with the following: {{{ running build_ext building 'netCDF4._netCDF4' extension creating build/temp.macosx-10.5-ppc-2.7 creating build/temp.macosx-10.5-ppc-2.7/netCDF4 /mp2/local/bin/gcc-mp-4.7 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict- prototypes -arch ppc -I/mp2/local/include -I/mp2/local/include -I/mp2/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7 /site-packages/numpy/core/include -I/mp2/local/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c netCDF4/_netCDF4.c -o build/temp.macosx-10.5-ppc-2.7/netCDF4/_netCDF4.o gcc-mp-4.7: error: unrecognized option '-arch' error: command '/mp2/local/bin/gcc-mp-4.7' failed with exit status 1 Command failed: cd "/mp2/local/var/macports/build/_mp2_local_var_macports_sources_rsync.macports .org_release_tarballs_ports_python_py- netcdf4/py27-netcdf4/work/netCDF4-1.1.8" && /mp2/local/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7 setup.py --no-user-cfg build Exit code: 1 }}} I've dealt with this problem before. I think I need to change the flags which contain "-arch ppc" to "-mcpu 7450". However, I am not sure how to handle this in Python's build system. I am attaching the most recent build log. -- Ticket URL: <https://trac.macports.org/ticket/42220#comment:13> MacPorts <https://www.macports.org/> Ports system for OS X