NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: lib/49990: libc++ fails to build with g++ 5.1 due to the following types of errors:



The following reply was made to PR lib/49990; it has been noted by GNATS.

From: Antti Kantee <pooka%iki.fi@localhost>
To: Martin Husemann <martin%duskware.de@localhost>
Cc: gnats-bugs%NetBSD.org@localhost
Subject: Re: lib/49990: libc++ fails to build with g++ 5.1 due to the following
 types of errors:
Date: Tue, 23 Jun 2015 13:02:49 +0000

 On 23/06/15 12:50, Martin Husemann wrote:
 > On Tue, Jun 23, 2015 at 12:38:58PM +0000, Antti Kantee wrote:
 >> I seriously wonder what you expected, was wrong with looking at the
 >> build output, and especially with "If there are some specific build
 >> options you're interested in, I can try to dig them out".
 >
 > The line numbers reported for the errors do not make any sense to me,
 > if I look at those lines in exception.cc.
 >
 > I find this forward declaration:
 >
 >      676 #if __GNUC__ > 3 && __GNUC_MINOR__ > 2
 >      677 extern "C" void *__cxa_begin_catch(void *e) throw();
 >      678 #else
 >      679 extern "C" void *__cxa_begin_catch(void *e);
 >      680 #endif
 >
 > and this definition:
 >
 >     1192 #if __GNUC__ > 3 && __GNUC_MINOR__ > 2
 >     1193 extern "C" void *__cxa_begin_catch(void *e) throw()
 >     1194 #else
 >     1195 extern "C" void *__cxa_begin_catch(void *e)
 >     1196 #endif
 >     1197 {
 >
 > which seem to be consistent to me. I also don't see any changes to the
 > predefined __GNUC__ or __GNUC_MINOR__ macros.
 >
 > So looking at this code (which is the only I have) and the error messages
 > given, something is strange, but I can not spot any error in our tree.
 
 So are you saying that it shouldn't produce an error for line 679 
 because g++ 5.1 should hit line 677 instead?   And that's why it 
 complains about the mismatch with the declaration on line 608 (which is 
 actually on line 1193 "because c++").
 
 Interesting.  I think I need to find a system with g++ 5.1.  Thanks!
 


Home | Main Index | Thread Index | Old Index