From owner-freebsd-ports-bugs@FreeBSD.ORG Sun May 12 19:04:46 2013 Return-Path: Delivered-To: ports-bugs@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 3A5FE901; Sun, 12 May 2013 19:04:46 +0000 (UTC) (envelope-from awarecons@gmail.com) Received: from mail-ie0-x236.google.com (mail-ie0-x236.google.com [IPv6:2607:f8b0:4001:c03::236]) by mx1.freebsd.org (Postfix) with ESMTP id 0C0699F5; Sun, 12 May 2013 19:04:46 +0000 (UTC) Received: by mail-ie0-f182.google.com with SMTP id a14so11028054iee.13 for ; Sun, 12 May 2013 12:04:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:date:message-id:subject:from:to :content-type; bh=OjgdtBVxsCe4eETtTNXm+YbFNnoCDOkKEV9tU9+eWi4=; b=0Fn5qjOQXEAsX/+MJFbwn0zgQ5Mcue5maPJAKpqyHAvndbOOv152QmqIPSSPorKmuW GAeyjtFUJiJYYv1wLCC8nn8ayoYjIZSAmS7XLfc/423KIJPWmwc2nkvLgHbkKUoQ7cZa gf6nUw9vITLtEXtGwBHw8VI+QOS7Cyny3ZKdFhloS6J1xSm1fwYyD0pU5oz4qb9NOuxJ elthZP6qNvdBCeaN44FQON7voAV/wCNJcsP1tmj15wUYxbhQQxBxSeXy/DVsi1GIoyrc D/iOCR7Dtj/lp3+qF67LPD9Z0MTftxDcujhFfGQHHSbqPtPywYY/thkHqZd75TabFiFo +0IA== MIME-Version: 1.0 X-Received: by 10.50.2.71 with SMTP id 7mr8180134igs.2.1368385485743; Sun, 12 May 2013 12:04:45 -0700 (PDT) Received: by 10.64.34.225 with HTTP; Sun, 12 May 2013 12:04:45 -0700 (PDT) Date: Sun, 12 May 2013 23:04:45 +0400 Message-ID: Subject: graphics/libosmesa ISSUE 'builtin_inverse' was not declared in this scope From: awarecons To: ports-bugs@freebsd.org, gahr@FreeBSD.org Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 May 2013 19:04:46 -0000 # 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 # 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+