From nobody@FreeBSD.org  Fri Oct  7 11:42:55 2011
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id B7CE2106564A
	for <freebsd-gnats-submit@FreeBSD.org>; Fri,  7 Oct 2011 11:42:55 +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 9D0FA8FC12
	for <freebsd-gnats-submit@FreeBSD.org>; Fri,  7 Oct 2011 11:42:55 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id p97Bgt7b085639
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 7 Oct 2011 11:42:55 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id p97BgtA0085638;
	Fri, 7 Oct 2011 11:42:55 GMT
	(envelope-from nobody)
Message-Id: <201110071142.p97BgtA0085638@red.freebsd.org>
Date: Fri, 7 Oct 2011 11:42:55 GMT
From: Oliver Hartmann <ohartman@zedat.fu-berlin.de>
To: freebsd-gnats-submit@FreeBSD.org
Subject: sysutils/cdrtools: CLANG: ==> GENERATING include file "../incs/amd64-freebsd-cc/avoffset.h"    LOOPS FOREVER!
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         161363
>Category:       ports
>Synopsis:       sysutils/cdrtools: CLANG: ==> GENERATING include file "../incs/amd64-freebsd-cc/avoffset.h"    LOOPS FOREVER!
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    marius
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Oct 07 11:50:07 UTC 2011
>Closed-Date:    Mon Oct 31 19:04:36 UTC 2011
>Last-Modified:  Mon Oct 31 19:04:36 UTC 2011
>Originator:     Oliver Hartmann
>Release:        FreeBSD 9.0-BETA3/amd64
>Organization:
FU Berlin
>Environment:
>Description:
As with changes to the CAM system recently, recompiling port sysutils/cdrtools with CLANG get stuck and loop forever at the following message/stage:


        ==> MAKING SYMLINKS in ./RULES/
sh conf/cc-config.sh cc cc incs/Dcc.amd64-freebsd
Trying to find cc
Found cc
Creating empty 'incs/Dcc.amd64-freebsd', using cc as default compiler
        ==> MAKING "all" ON SUBDIRECTORY "SRCROOT/conf"
gmake[1]: Entering directory `/usr/ports/sysutils/cdrtools/work/cdrtools-3.00/conf'
gmake[1]: Nothing to be done for `all'.
gmake[1]: Leaving directory `/usr/ports/sysutils/cdrtools/work/cdrtools-3.00/conf'
        ==> MAKING "all" ON SUBDIRECTORY "SRCROOT/inc"
gmake[1]: Entering directory `/usr/ports/sysutils/cdrtools/work/cdrtools-3.00/inc'
        ==> MAKING "all" ON SUBCOMPONENT "SRCROOT/inc/align_test.mk"
gmake[2]: Entering directory `/usr/ports/sysutils/cdrtools/work/cdrtools-3.00/inc'
        ==> MAKING DIRECTORY "OBJ/amd64-freebsd-cc"
clang -M -DSCHILY_BUILD -IOBJ/amd64-freebsd-cc -I../incs/amd64-freebsd-cc -I../include -I/usr/local/include  -I/usr/local/include    -D__OPRINTF__   align_test.c \
                | sed -e 's;^\(.*\)\.o[         ]*:;OBJ/amd64-freebsd-cc/\1.o \1.d:;' > OBJ/amd64-freebsd-cc/align_test.d
gmake[2]: Leaving directory `/usr/ports/sysutils/cdrtools/work/cdrtools-3.00/inc'
gmake[2]: Entering directory `/usr/ports/sysutils/cdrtools/work/cdrtools-3.00/inc'
clang -O3 -pipe -fno-strict-aliasing -march=native -DSCHILY_BUILD -IOBJ/amd64-freebsd-cc -I../incs/amd64-freebsd-cc -I../include -I/usr/local/include -I/usr/local/include -D__OPRINTF__ -c -o OBJ/amd64-freebsd-cc/align_test.o align_test.c  
clang -o OBJ/amd64-freebsd-cc/align_test OBJ/amd64-freebsd-cc/align_test.o       -L../libs/amd64-freebsd-cc -L../libs/amd64-freebsd-cc  -L/usr/local/lib -L/usr/local/lib   
        ==> GENERATING include file "../incs/amd64-freebsd-cc/align.h"
gmake[2]: Leaving directory `/usr/ports/sysutils/cdrtools/work/cdrtools-3.00/inc'
        ==> MAKING "all" ON SUBCOMPONENT "SRCROOT/inc/avoffset.mk"
gmake[2]: Entering directory `/usr/ports/sysutils/cdrtools/work/cdrtools-3.00/inc'
clang -M -DSCHILY_BUILD -IOBJ/amd64-freebsd-cc -I../incs/amd64-freebsd-cc -I../include -I/usr/local/include  -I/usr/local/include    -DUSE_SCANSTACK -D__OPRINTF__   avoffset.c \
                | sed -e 's;^\(.*\)\.o[         ]*:;OBJ/amd64-freebsd-cc/\1.o \1.d:;' > OBJ/amd64-freebsd-cc/avoffset.d
gmake[2]: Leaving directory `/usr/ports/sysutils/cdrtools/work/cdrtools-3.00/inc'
gmake[2]: Entering directory `/usr/ports/sysutils/cdrtools/work/cdrtools-3.00/inc'
clang -O3 -pipe -fno-strict-aliasing -march=native -DSCHILY_BUILD -IOBJ/amd64-freebsd-cc -I../incs/amd64-freebsd-cc -I../include -I/usr/local/include -I/usr/local/include -DUSE_SCANSTACK -D__OPRINTF__ -c -o OBJ/amd64-freebsd-cc/avoffset.o avoffset.c  
clang -o OBJ/amd64-freebsd-cc/avoffset OBJ/amd64-freebsd-cc/avoffset.o   -L../libs/amd64-freebsd-cc -L../libs/amd64-freebsd-cc  -L/usr/local/lib -L/usr/local/lib   
        ==> GENERATING include file "../incs/amd64-freebsd-cc/avoffset.h"
>How-To-Repeat:

>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->marius 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Fri Oct 7 11:50:18 UTC 2011 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=161363 
State-Changed-From-To: open->feedback 
State-Changed-By: marius 
State-Changed-When: Sat Oct 8 13:08:56 UTC 2011 
State-Changed-Why:  
feedback provided 

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

From: Marius Strobl <marius@alchemy.franken.de>
To: bug-followup@FreeBSD.org, ohartman@zedat.fu-berlin.de
Cc: freebsd-ports-bugs@FreeBSD.org
Subject: Re: ports/161363: sysutils/cdrtools: CLANG: ==> GENERATING include file "../incs/amd64-freebsd-cc/avoffset.h"    LOOPS FOREVER!
Date: Sat, 8 Oct 2011 15:08:44 +0200

 Could you please take this issue to the upstream author as it actually
 isn't FreeBSD-specific and also due to the licensing of cdrtools putting
 patches for it into the ports collection should be avoided as good as
 we can? Apparently there already is an attempt to address this there:
 http://rainbow-runner.nl/clang/patches/cdrtools-clang.diff
 but I can't tell whether that's the right approach to solve it.
 
 Marius
 

From: Nali Toja <nalitoja@gmail.com>
To: Oliver Hartmann <ohartman@zedat.fu-berlin.de>
Cc: bug-followup@FreeBSD.org
Subject: Re: ports/161363: sysutils/cdrtools: CLANG: ==> GENERATING include file "../incs/amd64-freebsd-cc/avoffset.h"    LOOPS FOREVER!
Date: Sat, 29 Oct 2011 02:36:14 +0000

 Can you try to reproduce with recent clang per /stable/9@226890 ?

From: "Hartmann, O." <ohartman@zedat.fu-berlin.de>
To: Nali Toja <nalitoja@gmail.com>
Cc: bug-followup@FreeBSD.org
Subject: Re: ports/161363: sysutils/cdrtools: CLANG: ==> GENERATING include
 file "../incs/amd64-freebsd-cc/avoffset.h"    LOOPS FOREVER!
Date: Sun, 30 Oct 2011 20:26:24 +0100

 Am 10/29/11 04:36, schrieb Nali Toja:
 > Can you try to reproduce with recent clang per /stable/9@226890 ?
 
 Compiles well on FreeBSD 9.0-RC1/amd64 (Core i5 set with -march=core2
 and CLANG, since CLANG produced on all > core2 CPUs faulty code both in
 ports and in OS).
 
 On FreeBSD 10.0-CURRENT/amd64, compiled with CLANG (-march=native on
 Dual Core Core2)) port compiled well and works as expected.
 
 
 Regards,
 Oliver
State-Changed-From-To: feedback->closed 
State-Changed-By: marius 
State-Changed-When: Mon Oct 31 19:03:06 UTC 2011 
State-Changed-Why:  
Close; originator confirms that this is no longer an issue with the current 
version of clang. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=161363 
>Unformatted:
