Bug 160921 - devel/libzvbi: CLANG: ./misc.h:59:5: error: invalid token at start of a preprocessor expression #if #cpu (i686)
Summary: devel/libzvbi: CLANG: ./misc.h:59:5: error: invalid token at start of a prepr...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Oliver Lehmann
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-22 21:00 UTC by O. Hartmann
Modified: 2011-12-09 12:10 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description O. Hartmann 2011-09-22 21:00:20 UTC
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
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2011-09-22 21:00:38 UTC
Responsible Changed
From-To: freebsd-ports-bugs->oliver

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 dfilter service freebsd_committer freebsd_triage 2011-12-09 12:04:58 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"
Comment 3 Oliver Lehmann freebsd_committer freebsd_triage 2011-12-09 12:05:03 UTC
State Changed
From-To: open->closed

Fixed, Thanks