From nobody@FreeBSD.org  Tue Mar 12 23:13:25 2013
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1])
	by hub.freebsd.org (Postfix) with ESMTP id 55D07D8C
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 12 Mar 2013 23:13:25 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 24205F98
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 12 Mar 2013 23:13:25 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.5/8.14.5) with ESMTP id r2CNDO5p047569
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 12 Mar 2013 23:13:24 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.5/8.14.5/Submit) id r2CNDOx5047568;
	Tue, 12 Mar 2013 23:13:24 GMT
	(envelope-from nobody)
Message-Id: <201303122313.r2CNDOx5047568@red.freebsd.org>
Date: Tue, 12 Mar 2013 23:13:24 GMT
From: Christopher Dukes <chris.dukes.aix@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: graphics/nvidia-texture-tools fails to build with clang
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         176899
>Category:       ports
>Synopsis:       graphics/nvidia-texture-tools fails to build with clang
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    amdmi3
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Mar 12 23:20:00 UTC 2013
>Closed-Date:    Thu Mar 14 01:25:12 UTC 2013
>Last-Modified:  Thu Mar 14 01:30:00 UTC 2013
>Originator:     Christopher Dukes
>Release:        9.1
>Organization:
Squirrely Girl Produce
>Environment:
>Description:
Build of nvidia-texture-tools under poudriere with clang enabled fails as follows.

[  1%] Building CXX object src/nvcore/CMakeFiles/nvcore.dir/Memory.cpp.o
cd /wrkdirs/usr/ports/graphics/nvidia-texture-tools/work/nvidia-texture-tools/sr
c/nvcore && /usr/bin/clang++   -Dnvcore_EXPORTS -DNVCORE_EXPORTS -DNVCORE_SHARED
=1 -O2 -pipe -fPIC -I/usr/local/include/libpng15 -fno-strict-aliasing -fPIC -I/u
sr/local/include/libpng15 -O2 -pipe -fPIC -I/usr/local/include/libpng15 -fno-str
ict-aliasing -fPIC -I/usr/local/include/libpng15 -fPIC -I/wrkdirs/usr/ports/grap
hics/nvidia-texture-tools/work/nvidia-texture-tools/src -I/wrkdirs/usr/ports/gra
phics/nvidia-texture-tools/work/nvidia-texture-tools/src/nvcore -o CMakeFiles/nv
core.dir/Memory.cpp.o -c /wrkdirs/usr/ports/graphics/nvidia-texture-tools/work/n
vidia-texture-tools/src/nvcore/Memory.cpp
In file included from /wrkdirs/usr/ports/graphics/nvidia-texture-tools/work/nvidia-texture-tools/src/nvcore/Memory.cpp:2:
/wrkdirs/usr/ports/graphics/nvidia-texture-tools/work/nvidia-texture-tools/src/nvcore/Memory.h:31:15: error: exception specification in declaration does not match previous declaration
inline void * operator new (size_t size) throw()
              ^
/usr/include/c++/4.2/new:95:7: note: previous declaration is here
void* operator new(std::size_t) throw (std::bad_alloc);
      ^
In file included from /wrkdirs/usr/ports/graphics/nvidia-texture-tools/work/nvidia-texture-tools/src/nvcore/Memory.cpp:2:
/wrkdirs/usr/ports/graphics/nvidia-texture-tools/work/nvidia-texture-tools/src/nvcore/Memory.h:41:15: error: exception specification in declaration does not match previous declaration
inline void * operator new [] (size_t size) throw()
              ^
/usr/include/c++/4.2/new:96:7: note: previous declaration is here
void* operator new[](std::size_t) throw (std::bad_alloc);
      ^
2 errors generated.
*** [src/nvcore/CMakeFiles/nvcore.dir/Memory.cpp.o] Error code 1

>How-To-Repeat:

>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-ports-bugs 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Wed Mar 13 05:33:14 UTC 2013 
Responsible-Changed-Why:  
ports PR. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=176899 
Responsible-Changed-From-To: freebsd-ports-bugs->amdmi3 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Wed Mar 13 05:33:29 UTC 2013 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=176899 
State-Changed-From-To: open->closed 
State-Changed-By: amdmi3 
State-Changed-When: Thu Mar 14 01:25:11 UTC 2013 
State-Changed-Why:  
Committed. Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=176899 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/176899: commit references a PR
Date: Thu, 14 Mar 2013 01:25:19 +0000 (UTC)

 Author: amdmi3
 Date: Thu Mar 14 01:25:06 2013
 New Revision: 314125
 URL: http://svnweb.freebsd.org/changeset/ports/314125
 
 Log:
   - Fix build with clang
   
   PR:		176899
   Submitted by:	Christopher Dukes <chris.dukes.aix@gmail.com>
 
 Added:
   head/graphics/nvidia-texture-tools/files/patch-src-nvcore-Memory.h   (contents, props changed)
 
 Added: head/graphics/nvidia-texture-tools/files/patch-src-nvcore-Memory.h
 ==============================================================================
 --- /dev/null	00:00:00 1970	(empty, because file is newly added)
 +++ head/graphics/nvidia-texture-tools/files/patch-src-nvcore-Memory.h	Thu Mar 14 01:25:06 2013	(r314125)
 @@ -0,0 +1,20 @@
 +--- src/nvcore/Memory.h.orig	2010-05-14 21:59:28.000000000 +0400
 ++++ src/nvcore/Memory.h	2013-03-13 11:44:40.704932899 +0400
 +@@ -28,7 +28,7 @@
 + 
 + // Override new/delete
 + 
 +-inline void * operator new (size_t size) throw()
 ++inline void * operator new (size_t size) throw(std::bad_alloc)
 + {
 + 	return nv::mem::malloc(size); 
 + }
 +@@ -38,7 +38,7 @@
 + 	nv::mem::free(p); 
 + }
 + 
 +-inline void * operator new [] (size_t size) throw()
 ++inline void * operator new [] (size_t size) throw(std::bad_alloc)
 + {
 + 	return nv::mem::malloc(size);
 + }
 _______________________________________________
 svn-ports-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-ports-all
 To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
 
>Unformatted:
