Summary: | net/zerotier: fails to build with libc++ 7 | ||||||
---|---|---|---|---|---|---|---|
Product: | Ports & Packages | Reporter: | Jan Beich <jbeich> | ||||
Component: | Individual Port(s) | Assignee: | Dave Cottlehuber <dch> | ||||
Status: | Closed FIXED | ||||||
Severity: | Affects Only Me | Keywords: | needs-patch | ||||
Priority: | --- | Flags: | bugzilla:
maintainer-feedback?
(dch) |
||||
Version: | Latest | ||||||
Hardware: | Any | ||||||
OS: | Any | ||||||
See Also: |
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=230630 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=230631 |
||||||
Bug Depends on: | |||||||
Bug Blocks: | 230355 | ||||||
Attachments: |
|
Description
Jan Beich
2018-08-14 21:10:12 UTC
Regressed by https://reviews.llvm.org/rL336132 and fixed by https://github.com/nlohmann/json/commit/8165707990e4. ZeroTierOne-1.2.10 bundles json-3.0.1, so you'll need to backport. Or maybe unbundle json, see ports r477206. see https://reviews.freebsd.org/D16880 for patch. jbeich: the json patch fails to build on 10.4R i386 without the newer libc++ & clang versions, can you re-test your clang update branch with my patch and see if you have those failures? thanks! Stack dump: 0. Program arguments: /usr/bin/clang++ -cc1 -triple i386-unknown-freebsd10.4 -emit-obj -disable-free -disable-llvm-verifier -main-file-name OSUtils.cpp -mrelocation-model pic -pic-level 2 -pie-level 2 -mdisable-fp-elim -relaxed-aliasing -masm-verbose -mconstructor-aliases -target-cpu i486 -gdwarf-2 -coverage-file /tmp/usr/ports/net/zerotier/work/ZeroTierOne-1.2.10/osdep/OSUtils.o -resource-dir /usr/bin/../lib/clang/3.4.1 -D NDEBUG -D ZT_BUILD_PLATFORM=7 -D ZT_BUILD_ARCHITECTURE=1 -D ZT_SOFTWARE_UPDATE_DEFAULT="disable" -D NDEBUG -D ZT_BUILD_PLATFORM=7 -D ZT_BUILD_ARCHITECTURE=1 -D ZT_SOFTWARE_UPDATE_DEFAULT="disable" -D ZT_TRACE -D ZT_BUILD_PLATFORM=7 -D ZT_BUILD_ARCHITECTURE=1 -D ZT_SOFTWARE_UPDATE_DEFAULT="disable" -internal-isystem /usr/include/c++/v1 -O2 -Wall -Wall -Wall -Werror -std=c++11 -fdeprecated-macro -fdebug-compilation-dir /tmp/usr/ports/net/zerotier/work/ZeroTierOne-1.2.10 -ferror-limit 19 -fmessage-length 0 -fvisibility hidden -pthread -stack-protector 1 -mstackrealign -fno-rtti -fobjc-runtime=gnustep -fcxx-exceptions -fexceptions -fdiagnostics-show-option -vectorize-loops -vectorize-slp -o osdep/OSUtils.o -x c++ osdep/OSUtils.cpp 1. osdep/../ext/json/json.hpp:18807:52: current parser token 'value' 2. osdep/../ext/json/json.hpp:18798:1: parsing namespace 'std' clang++: error: unable to execute command: Segmentation fault (core dumped) clang++: error: clang frontend command failed due to signal (use -v to see invocation) FreeBSD clang version 3.4.1 (tags/RELEASE_34/dot1-final 208032) 20140512 Target: i386-unknown-freebsd10.4 Thread model: posix clang++: note: diagnostic msg: PLEASE submit a bug report to https://bugs.freebsd.org/submit/ and include the crash backtrace, preprocessed source, and associated run script. clang++: note: diagnostic msg: ******************** PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT: Preprocessed source(s) and associated run script(s) are located at: clang++: note: diagnostic msg: /tmp/OSUtils-fb8083.cpp clang++: note: diagnostic msg: /tmp/OSUtils-fb8083.sh clang++: note: diagnostic msg: ******************** review D16880 builds fine with libc++ 7 (https://ptpb.pw/NQY4) and 10.4 i386 (https://ptpb.pw/oswu). 10.4 amd64 crashes (https://ptpb.pw/xHmd) due to -fPIE and can be worked around via USES=compiler:c++14-lang but the port doesn't respect CXX. https://www.freebsd.org/doc/en/books/porters-handbook/dads-cc.html Don't forget to drop BROKEN_powerpc64 after fixing ${CXX} issue as the port builds fine with USE_GCC (tested on amd64). Created attachment 196495 [details]
minimal fix
If you don't want to update json try this patch instead.
Comment on attachment 196495 [details]
minimal fix
Nevermind. 10.4 amd64 hangs trying to compile service/OneService.cpp.
A commit references this bug: Author: dch Date: Fri Aug 24 19:12:40 UTC 2018 New revision: 477979 URL: https://svnweb.freebsd.org/changeset/ports/477979 Log: net/zerotier: update 1.2.10 to 1.2.12 also: - compile against libc++7 reported broken in PR230629 - correct combined LICENSEs to match source code PR: 230629 Reported by: jbeich Approved by: jrm Differential Revision: https://reviews.freebsd.org/D16880 Changes: head/net/zerotier/Makefile head/net/zerotier/distinfo head/net/zerotier/files/patch-ext_json_json.hpp head/net/zerotier/files/patch-node_Packet.cpp NB now marked as BROKEN for 10.4_i386 which only has ~ 2 months of official support anyway. |