Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 Jan 2019 15:53:03 +0100 (CET)
From:      =?ISO-8859-1?Q?Trond_Endrest=F8l?= <Trond.Endrestol@fagskolen.gjovik.no>
To:        FreeBSD Current <freebsd-current@freebsd.org>
Subject:   Re: r343111 breaks build
Message-ID:  <alpine.BSF.2.21.9999.1901171547170.25281@mail.fig.ol.no>
In-Reply-To: <20190117124908.GL1142@albert.catwhisker.org>
References:  <31f270cd-ea9b-d71b-8e0c-a3ec3386666c@FreeBSD.org> <20190117124908.GL1142@albert.catwhisker.org>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
On Thu, 17 Jan 2019 04:49-0800, David Wolfskill wrote:

> On Thu, Jan 17, 2019 at 03:37:16PM +0300, Lev Serebryakov wrote:
> > 
> >  I can not build CURRENT r343111 on r343022 world. Looks like r343111
> > itself cause problems (r343110 builds):
> > 
> > In file included from /data/src/contrib/libc++/src/algorithm.cpp:11:
> > In file included from /data/src/contrib/libc++/include/random:1646:
> > In file included from /data/src/contrib/libc++/include/istream:163:
> > In file included from /data/src/contrib/libc++/include/ostream:138:
> > In file included from /data/src/contrib/libc++/include/ios:216:
> > In file included from /data/src/contrib/libc++/include/__locale:18:
> > In file included from /data/src/contrib/libc++/include/mutex:191:
> > In file included from /data/src/contrib/libc++/include/__mutex_base:16:
> > In file included from /data/src/contrib/libc++/include/system_error:146:
> > In file included from /data/src/contrib/libc++/include/__errc:106:
> > In file included from /data/src/contrib/libc++/include/cerrno:27:
> > /data/src/contrib/libc++/include/errno.h:70:2: error: unterminated
> > conditional directive
> > #ifdef ELAST
> >  ^
> > /data/src/contrib/libc++/include/errno.h:63:2: error: unterminated
> > conditional directive
> > #ifdef ELAST
> >  ^
> > ...
> 
> Confirmed (though in my case, I'm building on r343088, and I did not try
> building r343110).  I did see the above failure on both my build machine
> and my laptop.

Try the attached patch, repeated here in case it gets munched by 
mailman:

Index: contrib/libc++/include/errno.h
===================================================================
--- contrib/libc++/include/errno.h	(revision 343111)
+++ contrib/libc++/include/errno.h	(working copy)
@@ -56,6 +56,7 @@
 #ifdef ELAST
 #undef ELAST
 #define ELAST EINTEGRITY
+#endif
 
 #elif !defined(EOWNERDEAD) && !defined(ENOTRECOVERABLE) && defined(EINTEGRITY)
 #define ENOTRECOVERABLE __elast1
@@ -63,6 +64,7 @@
 #ifdef ELAST
 #undef ELAST
 #define ELAST EOWNERDEAD
+#endif
 
 #elif !defined(EOWNERDEAD) && defined(ENOTRECOVERABLE) && !defined(EINTEGRITY)
 #define EOWNERDEAD __elast1
@@ -70,6 +72,7 @@
 #ifdef ELAST
 #undef ELAST
 #define ELAST EINTEGRITY
+#endif
 
 #elif !defined(EOWNERDEAD) && defined(ENOTRECOVERABLE) && defined(EINTEGRITY)
 #define EOWNERDEAD __elast1
@@ -76,6 +79,7 @@
 #ifdef ELAST
 #undef ELAST
 #define ELAST EOWNERDEAD
+#endif
 
 #elif defined(EOWNERDEAD) && !defined(ENOTRECOVERABLE) && !defined(EINTEGRITY)
 #define ENOTRECOVERABLE __elast1
@@ -83,6 +87,7 @@
 #ifdef ELAST
 #undef ELAST
 #define ELAST EINTEGRITY
+#endif
 
 #elif defined(EOWNERDEAD) && !defined(ENOTRECOVERABLE) && defined(EINTEGRITY)
 #define ENOTRECOVERABLE __elast1
@@ -89,6 +94,7 @@
 #ifdef ELAST
 #undef ELAST
 #define ELAST ENOTRECOVERABLE
+#endif
 
 #elif defined(EOWNERDEAD) && defined(ENOTRECOVERABLE) && !defined(EINTEGRITY)
 #define EINTEGRITY __elast1
@@ -95,6 +101,7 @@
 #ifdef ELAST
 #undef ELAST
 #define ELAST EINTEGRITY
+#endif
 
 #endif // !defined(OWNERDEAD) && !defined(NOTRECOVERABLE) && !defined(INTEGRITY)
 

-- 
Trond.
[-- Attachment #2 --]
Index: contrib/libc++/include/errno.h
===================================================================
--- contrib/libc++/include/errno.h	(revision 343111)
+++ contrib/libc++/include/errno.h	(working copy)
@@ -56,6 +56,7 @@
 #ifdef ELAST
 #undef ELAST
 #define ELAST EINTEGRITY
+#endif
 
 #elif !defined(EOWNERDEAD) && !defined(ENOTRECOVERABLE) && defined(EINTEGRITY)
 #define ENOTRECOVERABLE __elast1
@@ -63,6 +64,7 @@
 #ifdef ELAST
 #undef ELAST
 #define ELAST EOWNERDEAD
+#endif
 
 #elif !defined(EOWNERDEAD) && defined(ENOTRECOVERABLE) && !defined(EINTEGRITY)
 #define EOWNERDEAD __elast1
@@ -70,6 +72,7 @@
 #ifdef ELAST
 #undef ELAST
 #define ELAST EINTEGRITY
+#endif
 
 #elif !defined(EOWNERDEAD) && defined(ENOTRECOVERABLE) && defined(EINTEGRITY)
 #define EOWNERDEAD __elast1
@@ -76,6 +79,7 @@
 #ifdef ELAST
 #undef ELAST
 #define ELAST EOWNERDEAD
+#endif
 
 #elif defined(EOWNERDEAD) && !defined(ENOTRECOVERABLE) && !defined(EINTEGRITY)
 #define ENOTRECOVERABLE __elast1
@@ -83,6 +87,7 @@
 #ifdef ELAST
 #undef ELAST
 #define ELAST EINTEGRITY
+#endif
 
 #elif defined(EOWNERDEAD) && !defined(ENOTRECOVERABLE) && defined(EINTEGRITY)
 #define ENOTRECOVERABLE __elast1
@@ -89,6 +94,7 @@
 #ifdef ELAST
 #undef ELAST
 #define ELAST ENOTRECOVERABLE
+#endif
 
 #elif defined(EOWNERDEAD) && defined(ENOTRECOVERABLE) && !defined(EINTEGRITY)
 #define EINTEGRITY __elast1
@@ -95,6 +101,7 @@
 #ifdef ELAST
 #undef ELAST
 #define ELAST EINTEGRITY
+#endif
 
 #endif // !defined(OWNERDEAD) && !defined(NOTRECOVERABLE) && !defined(INTEGRITY)
 

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.21.9999.1901171547170.25281>