Date: Mon, 20 Apr 2020 19:11:45 +0000 (UTC) From: Piotr Kubaj <pkubaj@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r532218 - head/net-p2p/libtorrent-rasterbar Message-ID: <202004201911.03KJBjoc083599@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: pkubaj Date: Mon Apr 20 19:11:45 2020 New Revision: 532218 URL: https://svnweb.freebsd.org/changeset/ports/532218 Log: net-p2p/libtorrent-rasterbar: switch to ports GCC on powerpc64 elfv1 and base clang on elfv2 Clang doesn't support elfv1: : && /usr/local/bin/clang90 -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -L/usr/local/lib -liconv -fstack-protector-strong CMakeFiles/cmTC_dc41f.dir/testCCompiler.c.o -o cmTC_dc41f && : ld: error: /usr/src/lib/csu/common/ignore_init.c:136:(.text+0x32): relocation R_PPC64_TOC16_DS out of range: -32944 is not in [-32768, 32767] ld: error: /usr/src/lib/csu/common/ignore_init.c:139:(.text+0x5A): relocation R_PPC64_TOC16_DS out of range: -32936 is not in [-32768, 32767] So just use GCC on elfv1 and base Clang on elfv2. Modified: head/net-p2p/libtorrent-rasterbar/Makefile Modified: head/net-p2p/libtorrent-rasterbar/Makefile ============================================================================== --- head/net-p2p/libtorrent-rasterbar/Makefile Mon Apr 20 19:05:45 2020 (r532217) +++ head/net-p2p/libtorrent-rasterbar/Makefile Mon Apr 20 19:11:45 2020 (r532218) @@ -42,9 +42,10 @@ LOGGING_CMAKE_BOOL= logging .include <bsd.port.options.mk> -.if ${ARCH} != powerpc +.if ${ARCH} != powerpc && ${ARCH} != powerpc64 # workaroud for the clang-10 compiler failure: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=244830 # on powerpc, llvm 9 crashes with segfault, while 10 works https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=243958 +# on powerpc64 elfv1, clang doesn't work at all (no support for elfv1), on elfv2 clang from base works ok LLVM_VER= 90 BUILD_DEPENDS+= clang${LLVM_VER}:devel/llvm${LLVM_VER} CPP= clang-cpp${LLVM_VER}
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202004201911.03KJBjoc083599>