Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Sep 2014 15:24:44 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 193598] devel/gdb fails to build with clang
Message-ID:  <bug-193598-13-YUHMsJopxD@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-193598-13@https.bugs.freebsd.org/bugzilla/>
References:  <bug-193598-13@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=193598

--- Comment #4 from luca.pizzamiglio@gmail.com ---
It seems that something in the preprocessing phase of your build gets wrong,
but I still cannot reproduce your error (I cannot revers my CURRENT)
The macro ATTRIBUTE_RETURNS_NONNULL should be defined as an empty string.
You could find that definition in include/ansidecl.h

I suggest:
* clang-cpp'ing this http://paste.kde.org/p02trki1d
* update the CURRENT to r271779 (llvm/clang receives again some love)
* MAKE_JOBS_UNSAFE=yes (I don't expect any luck, only if you have time)

The first point is the most important one. It tests the clang-cpp (the clang
preprocessor) against the GCC_VERSION macro.

The macro ATTRIBUTE_RETURNS_NONNULL has to be an empty string. On my system I
get:

warning: ATTRIBUTE_RETURNS_NONNULL not defined
warning: GCC_VERSION smaller than 4009

as expected.

-- 
You are receiving this mail because:
You are the assignee for the bug.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-193598-13-YUHMsJopxD>