Re: x11-servers/xorg-server, clang as system compiler

2012-07-29 Thread Kimmo Paasiala
On Sun, Jul 29, 2012 at 8:54 AM, Kimmo Paasiala kpaas...@gmail.com wrote:
 On Sat, Jul 28, 2012 at 9:26 PM, Boris Samorodov b...@passap.ru wrote:
 Hi All,

 I use clang as default system compiler (WITH_CLANG_IS_CC=YES
 at /etc/make.conf). The system is i386-current as of yesterday,
 fresh ports as of yesterday.

 I get this configure error while building x11-servers/xorg-server:
 -
 [...]
 checking for cpp... /usr/bin/cpp
 checking if /usr/bin/cpp requires -undef... yes
 checking if /usr/bin/cpp requires -traditional... configure: error:
 /usr/bin/cpp does not preserve whitespace with or without -traditional.  I
 don't know what to do.
 ===  Script configure failed unexpectedly.
 -

 What should I do? Thanks!
 --
 WBR, Boris Samorodov (bsam)
 FreeBSD Committer, http://www.FreeBSD.org The Power To Serve
 ___
 freebsd-ports@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-ports
 To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org

 Hi,

 Take a look a bug report
 http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/166373.

While at it, could someone with commit rights find some time to see if
any of the fixes proposed at the PR comments could be committed? It
would be one less nuisance for those who have WITH_CLANG_IS_CC=YES.

This one works for me but I haven't tested it on a system where cpp is
the gcc4.2.1 one:

Index: Makefile
===
--- Makefile(revision 301674)
+++ Makefile(working copy)
@@ -25,11 +25,12 @@
 CONFIGURE_ARGS+=   --datadir=${PREFIX}/lib \
--without-xmlto \
--disable-specs
-CONFIGURE_ENV+=ac_cv_path_PS2PDF=
+CONFIGURE_ENV+= ac_cv_path=${CPP} ac_cv_path_PS2PDF=

 .include ${.CURDIR}/manpages

 post-patch:
+   @${REINPLACE_CMD} 's/test.*-traditional.*;/true;/' ${WRKSRC}/configure
@${REINPLACE_CMD} '/^install-data-am:/,/^$$/ \
s/install-specDATA//' ${WRKSRC}/nls/Makefile.in



Regards,
Kimmo Paasiala
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


Re: x11-servers/xorg-server, clang as system compiler

2012-07-29 Thread Niclas Zeising
On 2012-07-29 09:47, Kimmo Paasiala wrote:
 On Sun, Jul 29, 2012 at 8:54 AM, Kimmo Paasiala kpaas...@gmail.com wrote:
 On Sat, Jul 28, 2012 at 9:26 PM, Boris Samorodov b...@passap.ru wrote:
 Hi All,

 I use clang as default system compiler (WITH_CLANG_IS_CC=YES
 at /etc/make.conf). The system is i386-current as of yesterday,
 fresh ports as of yesterday.

 I get this configure error while building x11-servers/xorg-server:
 -
 [...]
 checking for cpp... /usr/bin/cpp
 checking if /usr/bin/cpp requires -undef... yes
 checking if /usr/bin/cpp requires -traditional... configure: error:
 /usr/bin/cpp does not preserve whitespace with or without -traditional.  I
 don't know what to do.
 ===  Script configure failed unexpectedly.
 -

 What should I do? Thanks!
 --
 WBR, Boris Samorodov (bsam)
 FreeBSD Committer, http://www.FreeBSD.org The Power To Serve
 ___
 freebsd-ports@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-ports
 To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org

 Hi,

 Take a look a bug report
 http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/166373.
 
 While at it, could someone with commit rights find some time to see if
 any of the fixes proposed at the PR comments could be committed? It
 would be one less nuisance for those who have WITH_CLANG_IS_CC=YES.
 
 This one works for me but I haven't tested it on a system where cpp is
 the gcc4.2.1 one:
 
Check out the experimental xorg tree.  There is a fix for this issue
there, but more testing would be nice.
See http://wiki.freebsd.org/Xorg for details.
Regards!
-- 
Niclas Zeising
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


x11-servers/xorg-server, clang as system compiler

2012-07-28 Thread Boris Samorodov

Hi All,

I use clang as default system compiler (WITH_CLANG_IS_CC=YES
at /etc/make.conf). The system is i386-current as of yesterday,
fresh ports as of yesterday.

I get this configure error while building x11-servers/xorg-server:
-
[...]
checking for cpp... /usr/bin/cpp
checking if /usr/bin/cpp requires -undef... yes
checking if /usr/bin/cpp requires -traditional... configure: error: 
/usr/bin/cpp does not preserve whitespace with or without -traditional. 
 I don't know what to do.

===  Script configure failed unexpectedly.
-

What should I do? Thanks!
--
WBR, Boris Samorodov (bsam)
FreeBSD Committer, http://www.FreeBSD.org The Power To Serve
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


Re: x11-servers/xorg-server, clang as system compiler

2012-07-28 Thread Martin Wilke
On Sat, 28 Jul 2012 22:26:59 +0400
Boris Samorodov b...@passap.ru wrote:

 Hi All,
 
 I use clang as default system compiler (WITH_CLANG_IS_CC=YES
 at /etc/make.conf). The system is i386-current as of yesterday,
 fresh ports as of yesterday.
 
 I get this configure error while building x11-servers/xorg-server:
 -
 [...]
 checking for cpp... /usr/bin/cpp
 checking if /usr/bin/cpp requires -undef... yes
 checking if /usr/bin/cpp requires -traditional... configure: error: 
 /usr/bin/cpp does not preserve whitespace with or without
 -traditional. I don't know what to do.
 ===  Script configure failed unexpectedly.  
 -
 
 What should I do? Thanks!

Check x11@ history this topic is old. Best solution don't use clang for
X.

- Martin 

-- 
+--oOO--(_)--OOo+

Facebook:   miwi1
Twitter:miwi_

With best Regards,
Martin Wilke (miwi_(at)_FreeBSD.org)
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


Re: x11-servers/xorg-server, clang as system compiler

2012-07-28 Thread Kimmo Paasiala
On Sat, Jul 28, 2012 at 9:26 PM, Boris Samorodov b...@passap.ru wrote:
 Hi All,

 I use clang as default system compiler (WITH_CLANG_IS_CC=YES
 at /etc/make.conf). The system is i386-current as of yesterday,
 fresh ports as of yesterday.

 I get this configure error while building x11-servers/xorg-server:
 -
 [...]
 checking for cpp... /usr/bin/cpp
 checking if /usr/bin/cpp requires -undef... yes
 checking if /usr/bin/cpp requires -traditional... configure: error:
 /usr/bin/cpp does not preserve whitespace with or without -traditional.  I
 don't know what to do.
 ===  Script configure failed unexpectedly.
 -

 What should I do? Thanks!
 --
 WBR, Boris Samorodov (bsam)
 FreeBSD Committer, http://www.FreeBSD.org The Power To Serve
 ___
 freebsd-ports@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-ports
 To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org

Hi,

Take a look a bug report
http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/166373.
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org