#35111: mesa build failure due to using /usr/X11 ------------------------------------+--------------------------------------- Reporter: dougmencken@… | Owner: jeremyhu@… Type: defect | Status: reopened Priority: Normal | Milestone: Component: ports | Version: 2.1.1 Resolution: | Keywords: Port: mesa | ------------------------------------+--------------------------------------- Comment(by jeremyhu@…): There's no need for your hostility. jmr's right that -I/opt/local/include is explicitly deleted from CPPFLAGS, so my observation of your build command was in error. The '-I/opt/local/include' should be coming from INSTALL_DIR=/opt/local {{{ ... INSTALL_DIR = /usr/X11 X11_DIR = $(INSTALL_DIR) # Compiler and flags CC = $(shell xcrun -find cc) CXX = $(shell xcrun -find c++) ... INCLUDE_FLAGS = -I$(INSTALL_DIR)/include -I$(X11_DIR)/include OPT_FLAGS = -g3 -gdwarf-2 -Os -ffast-math -fno-strict-aliasing WARN_FLAGS = -Wall -Wmissing-prototypes CFLAGS = -std=c99 -fvisibility=hidden \ $(OPT_FLAGS) $(WARN_FLAGS) $(INCLUDE_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(ASM_FLAGS) $(DEFINES) $(EXTRA_CFLAGS) CXXFLAGS = -fvisibility=hidden \ $(OPT_FLAGS) $(WARN_FLAGS) $(INCLUDE_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(ASM_FLAGS) $(DEFINES) $(EXTRA_CFLAGS) }}} So the CC, CXX, and INSTALL_DIR specified on the build command line is *not* being honored: {{{ :info:build Command failed: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_x11_mesa/mesa/work/Mesa-8.0.3" && /usr/bin/make -j2 -w darwin INSTALL_DIR=/opt/local RC_CFLAGS="-arch ppc" PYTHON2="/opt/local/bin/python2.7" CC="/usr/bin/gcc-4.2 " CXX="/usr/bin/g++-4.2 " }}} What version of make is at /usr/bin/make? What version of Xcode do you have installed? The only thing I can think of is that you have a buggy /usr/bin/make ... I have XCode 3.1.4 on my Leopard/intel box, and it builds mesa fine... -- Ticket URL: <https://trac.macports.org/ticket/35111#comment:8> MacPorts <http://www.macports.org/> Ports system for Mac OS