broken source upgrade 9.3-STABLE to 10.3-STABLE

2016-12-13 Thread Eugene Grosbein
Hi!

I've got legacy FreeBSD server running 8.4-STABLE and I'm trying to upgrade it.
Source upgrade for 8.4 to 9.3-STABLE r310015 went flawlessly.
After reboot, I checked out stable/10 r310043 sources and ran buildworld again.
It fails:

===> lib/clang/libllvmanalysis (all)
c++  -O2 -pipe 
-I/usr/src/lib/clang/libllvmanalysis/../../../contrib/llvm/include 
-I/usr/src/lib/clang/libllvmanalysis/../../../contrib/llvm/tools/clang/include 
-I/usr/src/lib/clang/libllvmanalysis/../../../contrib/llvm/lib/Analysis -I. 
-I/usr/src/lib/clang/libllvmanalysis/../../../contrib/llvm/../../lib/clang/include
 -DLLVM_ON_UNIX -DLLVM_ON_FREEBSD -D__STDC_LIMIT_MACROS 
-D__STDC_CONSTANT_MACROS -DNDEBUG -fno-strict-aliasing 
-DLLVM_DEFAULT_TARGET_TRIPLE=\"x86_64-unknown-freebsd10.3\" 
-DLLVM_HOST_TRIPLE=\"x86_64-unknown-freebsd10.3\" 
-DDEFAULT_SYSROOT=\"/usr/obj/usr/src/tmp\" 
-I/usr/obj/usr/src/tmp/legacy/usr/include  -fno-exceptions -fno-rtti -c 
/usr/src/lib/clang/libllvmanalysis/../../../contrib/llvm/lib/Analysis/LazyValueInfo.cpp
 -o LazyValueInfo.o
/usr/src/lib/clang/libllvmanalysis/../../../contrib/llvm/lib/Analysis/LazyValueInfo.cpp:
 In member function 'llvm::Constant* 
llvm::LazyValueInfo::getConstant(llvm::Value*, llvm::BasicBlock*)':
/usr/src/lib/clang/libllvmanalysis/../../../contrib/llvm/lib/Analysis/LazyValueInfo.cpp:1054:
 error: 'nullptr' was not declared in this scope
*** Error code 1

Does it mean that FreeBSD clang version 3.4.1 (tags/RELEASE_34/dot1-final 
208032) 20140512
is unable to build more recent clang version?
___
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


broken source upgrade 9.3-STABLE to 10.3-STABLE

2016-12-13 Thread Eugene Grosbein
Hi!

I've got legacy FreeBSD server running 8.4-STABLE and I'm trying to upgrade it.
Source upgrade for 8.4 to 9.3-STABLE r310015 went flawlessly.
After reboot, I checked out stable/10 r310043 sources and ran buildworld again.
It fails:

===> lib/clang/libllvmanalysis (all)
c++  -O2 -pipe 
-I/usr/src/lib/clang/libllvmanalysis/../../../contrib/llvm/include 
-I/usr/src/lib/clang/libllvmanalysis/../../../contrib/llvm/tools/clang/include 
-I/usr/src/lib/clang/libllvmanalysis/../../../contrib/llvm/lib/Analysis -I. 
-I/usr/src/lib/clang/libllvmanalysis/../../../contrib/llvm/../../lib/clang/include
 -DLLVM_ON_UNIX -DLLVM_ON_FREEBSD -D__STDC_LIMIT_MACROS 
-D__STDC_CONSTANT_MACROS -DNDEBUG -fno-strict-aliasing 
-DLLVM_DEFAULT_TARGET_TRIPLE=\"x86_64-unknown-freebsd10.3\" 
-DLLVM_HOST_TRIPLE=\"x86_64-unknown-freebsd10.3\" 
-DDEFAULT_SYSROOT=\"/usr/obj/usr/src/tmp\" 
-I/usr/obj/usr/src/tmp/legacy/usr/include  -fno-exceptions -fno-rtti -c 
/usr/src/lib/clang/libllvmanalysis/../../../contrib/llvm/lib/Analysis/LazyValueInfo.cpp
 -o LazyValueInfo.o
/usr/src/lib/clang/libllvmanalysis/../../../contrib/llvm/lib/Analysis/LazyValueInfo.cpp:
 In member function 'llvm::Constant* 
llvm::LazyValueInfo::getConstant(llvm::Value*, llvm::BasicBlock*)':
/usr/src/lib/clang/libllvmanalysis/../../../contrib/llvm/lib/Analysis/LazyValueInfo.cpp:1054:
 error: 'nullptr' was not declared in this scope
*** Error code 1

Does it mean that FreeBSD clang version 3.4.1 (tags/RELEASE_34/dot1-final 
208032) 20140512
is unable to build more recent clang version?
___
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: broken source upgrade 9.3-STABLE to 10.3-STABLE

2016-12-14 Thread Eugene Grosbein
CC'ing Dimitry Andric 

On 14.12.2016 14:27, Eugene Grosbein wrote:

> I've got legacy FreeBSD server running 8.4-STABLE and I'm trying to upgrade 
> it.
> Source upgrade for 8.4 to 9.3-STABLE r310015 went flawlessly.
> After reboot, I checked out stable/10 r310043 sources and ran buildworld 
> again.
> It fails:
> 
> ===> lib/clang/libllvmanalysis (all)
> c++  -O2 -pipe 
> -I/usr/src/lib/clang/libllvmanalysis/../../../contrib/llvm/include 
> -I/usr/src/lib/clang/libllvmanalysis/../../../contrib/llvm/tools/clang/include
>  -I/usr/src/lib/clang/libllvmanalysis/../../../contrib/llvm/lib/Analysis -I. 
> -I/usr/src/lib/clang/libllvmanalysis/../../../contrib/llvm/../../lib/clang/include
>  -DLLVM_ON_UNIX -DLLVM_ON_FREEBSD -D__STDC_LIMIT_MACROS 
> -D__STDC_CONSTANT_MACROS -DNDEBUG -fno-strict-aliasing 
> -DLLVM_DEFAULT_TARGET_TRIPLE=\"x86_64-unknown-freebsd10.3\" 
> -DLLVM_HOST_TRIPLE=\"x86_64-unknown-freebsd10.3\" 
> -DDEFAULT_SYSROOT=\"/usr/obj/usr/src/tmp\" 
> -I/usr/obj/usr/src/tmp/legacy/usr/include  -fno-exceptions -fno-rtti -c 
> /usr/src/lib/clang/libllvmanalysis/../../../contrib/llvm/lib/Analysis/LazyValueInfo.cpp
>  -o LazyValueInfo.o
> /usr/src/lib/clang/libllvmanalysis/../../../contrib/llvm/lib/Analysis/LazyValueInfo.cpp:
>  In member function 'llvm::Constant* 
> llvm::LazyValueInfo::getConstant(llvm::Value*, llvm::BasicBlock*)':
> /usr/src/lib/clang/libllvmanalysis/../../../contrib/llvm/lib/Analysis/LazyValueInfo.cpp:1054:
>  error: 'nullptr' was not declared in this scope
> *** Error code 1
> 
> Does it mean that FreeBSD clang version 3.4.1 (tags/RELEASE_34/dot1-final 
> 208032) 20140512
> is unable to build more recent clang version?

There was r309722:

> Pull in r281586 from upstream llvm trunk (by Wei Mi):
> Add some shortcuts in LazyValueInfo to reduce compile time of Correlated 
> Value Propagation.

And there was MFC for r309722 to stable/9,10,11 (r309857) that broke things.
And there was a fix r309860 committed to stable/9 but not to stable/10:

--- stable/9/contrib/llvm/lib/Analysis/LazyValueInfo.cpp2016/12/11 
23:36:11 309859
+++ stable/9/contrib/llvm/lib/Analysis/LazyValueInfo.cpp2016/12/12 
00:09:08 309860
@@ -1051,7 +1051,7 @@
 Constant *LazyValueInfo::getConstant(Value *V, BasicBlock *BB) {
   // Bail out early if V is known not to be a Constant.
   if (isKnownNonConstant(V))
-return nullptr;
+return 0;
 
   LVILatticeVal Result = getCache(PImpl).getValueInBlock(V, BB);
 

Please unbreak source upgrade from 9.3-STABLE to 10.3-STABLE.

___
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: broken source upgrade 9.3-STABLE to 10.3-STABLE

2016-12-14 Thread Kurt Jaeger
Hi!

> I've got legacy FreeBSD server running 8.4-STABLE and I'm trying to upgrade 
> it.
> Source upgrade for 8.4 to 9.3-STABLE r310015 went flawlessly.
> After reboot, I checked out stable/10 r310043 sources and ran buildworld 
> again.
> It fails:

I suggest two different approaches (have not tried that, but...)

1) sidegrade (with build-from-source) to 9.3-RELEASE, then use
   freebsd-update to 10.x

2) don't upgrade to 10-STABLE, but surce-upgrade to 10.0 or 10.1-RELEASE

-- 
p...@opsec.eu+49 171 3101372 4 years to go !
___
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: broken source upgrade 9.3-STABLE to 10.3-STABLE

2016-12-14 Thread Eugene Grosbein
On 14.12.2016 16:07, Kurt Jaeger wrote:
> Hi!
> 
>> I've got legacy FreeBSD server running 8.4-STABLE and I'm trying to upgrade 
>> it.
>> Source upgrade for 8.4 to 9.3-STABLE r310015 went flawlessly.
>> After reboot, I checked out stable/10 r310043 sources and ran buildworld 
>> again.
>> It fails:
> 
> I suggest two different approaches (have not tried that, but...)
> 
> 1) sidegrade (with build-from-source) to 9.3-RELEASE, then use
>freebsd-update to 10.x
> 
> 2) don't upgrade to 10-STABLE, but surce-upgrade to 10.0 or 10.1-RELEASE
> 

I've manually applied single-line change r309860 to stable/10 tree
and that fixed the problem, now build continues.

___
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: broken source upgrade 9.3-STABLE to 10.3-STABLE

2016-12-14 Thread Dimitry Andric
On 14 Dec 2016, at 10:14, Eugene Grosbein  wrote:
> 
> On 14.12.2016 16:07, Kurt Jaeger wrote:
>> Hi!
>> 
>>> I've got legacy FreeBSD server running 8.4-STABLE and I'm trying to upgrade 
>>> it.
>>> Source upgrade for 8.4 to 9.3-STABLE r310015 went flawlessly.
>>> After reboot, I checked out stable/10 r310043 sources and ran buildworld 
>>> again.
>>> It fails:
>> 
>> I suggest two different approaches (have not tried that, but...)
>> 
>> 1) sidegrade (with build-from-source) to 9.3-RELEASE, then use
>>   freebsd-update to 10.x
>> 
>> 2) don't upgrade to 10-STABLE, but surce-upgrade to 10.0 or 10.1-RELEASE
>> 
> 
> I've manually applied single-line change r309860 to stable/10 tree
> and that fixed the problem, now build continues.

Hi Eugene,

This was a mistake on my part, sorry about that.  Obviously, the version
of clang in 10.x should support compiling with gcc 4.2.1, since that is
the easiest way of upgrading from previous releases.  I applied the same
fix to stable/10 in r310082.

-Dimitry



signature.asc
Description: Message signed with OpenPGP using GPGMail


Re: broken source upgrade 9.3-STABLE to 10.3-STABLE

2016-12-15 Thread Ronald Klop
On Wed, 14 Dec 2016 08:27:13 +0100, Eugene Grosbein   
wrote:



Hi!

I've got legacy FreeBSD server running 8.4-STABLE and I'm trying to  
upgrade it.

Source upgrade for 8.4 to 9.3-STABLE r310015 went flawlessly.
After reboot, I checked out stable/10 r310043 sources and ran buildworld  
again.

It fails:

===> lib/clang/libllvmanalysis (all)
c++  -O2 -pipe  
-I/usr/src/lib/clang/libllvmanalysis/../../../contrib/llvm/include  
-I/usr/src/lib/clang/libllvmanalysis/../../../contrib/llvm/tools/clang/include  
-I/usr/src/lib/clang/libllvmanalysis/../../../contrib/llvm/lib/Analysis  
-I.  
-I/usr/src/lib/clang/libllvmanalysis/../../../contrib/llvm/../../lib/clang/include  
-DLLVM_ON_UNIX -DLLVM_ON_FREEBSD -D__STDC_LIMIT_MACROS  
-D__STDC_CONSTANT_MACROS -DNDEBUG -fno-strict-aliasing  
-DLLVM_DEFAULT_TARGET_TRIPLE=\"x86_64-unknown-freebsd10.3\"  
-DLLVM_HOST_TRIPLE=\"x86_64-unknown-freebsd10.3\"  
-DDEFAULT_SYSROOT=\"/usr/obj/usr/src/tmp\"  
-I/usr/obj/usr/src/tmp/legacy/usr/include  -fno-exceptions -fno-rtti -c  
/usr/src/lib/clang/libllvmanalysis/../../../contrib/llvm/lib/Analysis/LazyValueInfo.cpp  
-o LazyValueInfo.o
/usr/src/lib/clang/libllvmanalysis/../../../contrib/llvm/lib/Analysis/LazyValueInfo.cpp:  
In member function 'llvm::Constant*  
llvm::LazyValueInfo::getConstant(llvm::Value*, llvm::BasicBlock*)':
/usr/src/lib/clang/libllvmanalysis/../../../contrib/llvm/lib/Analysis/LazyValueInfo.cpp:1054:  
error: 'nullptr' was not declared in this scope

*** Error code 1

Does it mean that FreeBSD clang version 3.4.1  
(tags/RELEASE_34/dot1-final 208032) 20140512

is unable to build more recent clang version?



Check /usr/src/UPDATING:
20141231:
Clang, llvm and lldb have been upgraded to 3.5.0 release.

As of this release, a prerequisite for building clang, llvm and  
lldb is
a C++11 capable compiler and C++11 standard library.  This means  
that to
be able to successfully build the cross-tools stage of buildworld,  
with
clang as the bootstrap compiler, your system compiler or cross  
compiler

should either be clang 3.3 or later, or gcc 4.8 or later, and your
system C++ library should be libc++, or libdstdc++ from gcc 4.8 or
later.

On any standard FreeBSD 10.x or 11.x installation, where clang and
libc++ are on by default (that is, on x86 or arm), this should  
work out

of the box.

On 9.x installations where clang is enabled by default, e.g. on  
x86 and

powerpc, libc++ will not be enabled by default, so libc++ should be
built (with clang) and installed first.  If both clang and libc++  
are

missing, build clang first, then use it to build libc++.

On 8.x and earlier installations, upgrade to 9.x first, and then  
follow

the instructions for 9.x above.


Regards,
Ronald.
___
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"