From nobody@FreeBSD.org  Thu Sep 22 19:57:04 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 A8F70106564A
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 22 Sep 2011 19:57:04 +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 7E5358FC0C
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 22 Sep 2011 19:57:04 +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 p8MJv4r7000139
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 22 Sep 2011 19:57:04 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id p8MJv49T000138;
	Thu, 22 Sep 2011 19:57:04 GMT
	(envelope-from nobody)
Message-Id: <201109221957.p8MJv49T000138@red.freebsd.org>
Date: Thu, 22 Sep 2011 19:57:04 GMT
From: "Hartmann, O." <ohartman@zedat.fu-berlin.de>
To: freebsd-gnats-submit@FreeBSD.org
Subject: devel/libzvbi: CLANG: ./misc.h:59:5: error: invalid token at start of a preprocessor expression #if #cpu (i686)
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         160921
>Category:       ports
>Synopsis:       devel/libzvbi: CLANG: ./misc.h:59:5: error: invalid token at start of a preprocessor expression #if #cpu (i686)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    oliver
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Sep 22 20:00:20 UTC 2011
>Closed-Date:    Fri Dec 09 12:05:13 UTC 2011
>Last-Modified:  Fri Dec  9 12:10:11 UTC 2011
>Originator:     Hartmann, O.
>Release:        FreeBSD 9.0-BETA2/amd64 CLANG built
>Organization:
FU Berlin
>Environment:
>Description:
Compiling devel/libzvbi with CLANG fails with the follwoing error:


===>  Building for libzvbi-0.2.33_2
/usr/bin/make  all-recursive
Making all in m4
Making all in src
/usr/bin/make  all-recursive
Making all in dvb
if /bin/sh ../libtool --tag=CC --mode=compile clang -DHAVE_CONFIG_H  -I. -I. -I..  -I..  -I/usr/local/include  -D_REENTRANT  -D_GNU_SOURCE -I/usr/local/include   -O3 -fno-strict-aliasing -pipe -march=native -I/usr/local/include -MT bit_slicer.lo -MD -MP -MF ".deps/bit_slicer.Tpo" -c -o bit_slicer.lo bit_slicer.c;  then mv -f ".deps/bit_slicer.Tpo" ".deps/bit_slicer.Plo"; else rm -f ".deps/bit_slicer.Tpo"; exit 1; fi
mkdir .libs
 clang -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I/usr/local/include -D_REENTRANT -D_GNU_SOURCE -I/usr/local/include -O3 -fno-strict-aliasing -pipe -march=native -I/usr/local/include -MT bit_slicer.lo -MD -MP -MF .deps/bit_slicer.Tpo -c bit_slicer.c  -fPIC -DPIC -o .libs/bit_slicer.o
In file included from bit_slicer.c:28:
./misc.h:56:5: error: invalid token at start of a preprocessor expression
#if #cpu (i386)
    ^
./misc.h:59:5: error: invalid token at start of a preprocessor expression
#if #cpu (i686)
    ^
2 errors generated.
*** Error code 1

Stop in /usr/ports/devel/libzvbi/work/zvbi-0.2.33/src.
*** Error code 1

Stop in /usr/ports/devel/libzvbi/work/zvbi-0.2.33/src.
*** Error code 1

Stop in /usr/ports/devel/libzvbi/work/zvbi-0.2.33/src.
*** Error code 1

Stop in /usr/ports/devel/libzvbi/work/zvbi-0.2.33.
*** Error code 1

Stop in /usr/ports/devel/libzvbi/work/zvbi-0.2.33.
*** Error code 1

Stop in /usr/ports/devel/libzvbi.

===>>> make failed for devel/libzvbi
===>>> Aborting update

===>>> Update for devel/libzvbi failed
===>>> Aborting update

>How-To-Repeat:
Try building devel/libzvbi with CLANG
>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->oliver 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Thu Sep 22 20:00:38 UTC 2011 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=160921 
State-Changed-From-To: open->closed 
State-Changed-By: oliver 
State-Changed-When: Fri Dec 9 12:05:03 UTC 2011 
State-Changed-Why:  
Fixed, Thanks 

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

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/160921: commit references a PR
Date: Fri,  9 Dec 2011 12:04:58 +0000 (UTC)

 oliver      2011-12-09 12:04:44 UTC
 
   FreeBSD ports repository
 
   Modified files:
     devel/libzvbi        Makefile 
   Log:
   fix CLANG-build
   
   PR:             ports/160921
   Feature safe:   yes
   
   Revision  Changes    Path
   1.46      +2 -5      ports/devel/libzvbi/Makefile
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
>Unformatted:
