Solved 10.0 stable upgrade to 11.0 stable problem

I am trying to update FreeBSD 10.0 STABLE r267746 to FreeBSD 11.0-STABLE.

When I ran make buildworld I got a seg fault.
I assumed this was due to old clang.

clang -v
Code:
FreeBSD clang version 3.4.1 (tags/RELEASE_34/dot1-final 208032) 20140512
Target: x86_64-unknown-freebsd10.0
Thread model: posix
Selected GCC installation:
I installed llvm38 from ports.
pkg info | grep llvm
Code:
clang38-3.8_1                  C, Objective-C, and C++ compiler (use devel/llvm38)
llvm38-3.8.1_5                 LLVM and Clang
I changed the src.conf file:
cat /etc/src.conf
Code:
CC=/usr/local/bin/clang38
CXX=/usr/local/bin/clang++38
CPP=/usr/local/bin/clang-cpp38
No more seg fault, but new error.
make buildworld throws this error:
Code:
In file included from /usr/src/lib/libc/db/btree/bt_close.c:43:
/usr/src/lib/libc/../../include/stdio.h:63:9: error: unknown type name '__off64_t'; did you mean
      '__off_t'?
typedef __off64_t       off64_t;
        ^~~~~~~~~
 
Do you have something in your /etc/make.conf? I think that /etc/src.conf should be empty too. Clang 3.8 is automatically build when upgrading.
 
Update first to the latest stable/10, the newest revision at this moment is 307803. There is a known problem with the upgrade path to stable/11 that needs a newer clang first to be able to build stable/11 successfully.
 
Back
Top