Date: Sun, 12 May 2013 23:04:45 +0400 From: awarecons <awarecons@gmail.com> To: ports-bugs@freebsd.org, gahr@FreeBSD.org Subject: graphics/libosmesa ISSUE 'builtin_inverse' was not declared in this scope Message-ID: <CACGq7x1keHijdb7YsGTk0mNmqqfMWy2hAUF8uFqikSi7XPK4Ng@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
# Created by: gahr # $FreeBSD: ports/graphics/libosmesa/Makefile,v 1.24 2013/01/24 11:50:18 svnexp Exp $ PORTNAME= libosmesa PORTVERSION= 9.0.2 build/freebsd-x86/glsl/builtin_function.cpp:13519: error: 'builtin_inverse' was not declared in this scope scons: *** [build/freebsd-x86/glsl/builtin_function.os] Error 1 scons: building terminated because of errors. *** Error code 2 gcc 4.2.1 you need to update your Makefile like that https://github.com/freebsd/freebsd-ports/blob/master/emulators/fceux/Makefile SCONS_BUILDENV= CC="${CC}" CXX="${CXX}" \ CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}" \ CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include" \ LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib" ... .include <bsd.port.pre.mk> # Go find a better compiler, base cc does not support mm3dnow.h, # breaking the build: # # In file included from src/drivers/videolog/rgbtorgb.cpp:14: # src/drivers/videolog/simd.h:13:56: error: mm3dnow.h: No such file or directory # # Use clang if in /usr/bin, else set USE_GCC: # .if (empty(CC:T:Mgcc4*) && empty(CC:T:Mclang*)) || (empty(CXX:T:Mg??4*) && empty(CXX:T:Mclang++*)) .if (${OSVERSION} >= 900014) && (exists(/usr/bin/clang++) && exists(/usr/bin/clang)) CC= /usr/bin/clang CXX= /usr/bin/clang++ CPP= /usr/bin/clang-cpp .else USE_GCC= 4.6+ .endif .endif post-patch: ... Thank you. ;777 to chose either clang or gcc4.6+
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CACGq7x1keHijdb7YsGTk0mNmqqfMWy2hAUF8uFqikSi7XPK4Ng>