Date: Fri, 11 Jan 2019 02:10:36 GMT From: pkg-fallout@FreeBSD.org To: pkg-fallout@FreeBSD.org Subject: [package - 120powerpc64-quarterly][devel/llvm50] Failed for llvm50-5.0.2_2 in build Message-ID: <201901110210.x0B2AapI032726@pylon.nyi.freebsd.org>
next in thread | raw e-mail | index | archive | help
You are receiving this mail as a port that you maintain is failing to build on the FreeBSD package build server. Please investigate the failure and submit a PR to fix build. Maintainer: brooks@FreeBSD.org Last committer: tcberner@FreeBSD.org Ident: $FreeBSD: branches/2019Q1/devel/llvm50/Makefile 488341 2018-12-25 20:25:39Z tcberner $ Log URL: http://pylon.nyi.freebsd.org/data/120powerpc64-quarterly/489830/logs/llvm50-5.0.2_2.log Build URL: http://pylon.nyi.freebsd.org/build.html?mastername=120powerpc64-quarterly&build=489830 Log: =>> Building devel/llvm50 build started at Fri Jan 11 01:23:46 UTC 2019 port directory: /usr/ports/devel/llvm50 package name: llvm50-5.0.2_2 building for: FreeBSD 120powerpc64-quarterly-job-15 12.0-RELEASE-p2 FreeBSD 12.0-RELEASE-p2 1200086 powerpc maintained by: brooks@FreeBSD.org Makefile ident: $FreeBSD: branches/2019Q1/devel/llvm50/Makefile 488341 2018-12-25 20:25:39Z tcberner $ Poudriere version: 3.2.8 Host OSVERSION: 1300008 Jail OSVERSION: 1200086 Job Id: 15 ---Begin Environment--- SHELL=/bin/csh OSVERSION=1200086 UNAME_v=FreeBSD 12.0-RELEASE-p2 1200086 UNAME_r=12.0-RELEASE-p2 BLOCKSIZE=K MAIL=/var/mail/root STATUS=1 HOME=/root PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin LOCALBASE=/usr/local USER=root LIBEXECPREFIX=/usr/local/libexec/poudriere POUDRIERE_VERSION=3.2.8 MASTERMNT=/usr/local/poudriere/data/.m/120powerpc64-quarterly/ref POUDRIERE_BUILD_TYPE=bulk PACKAGE_BUILDING=yes SAVED_TERM=xterm-256color PWD=/usr/local/poudriere/data/.m/120powerpc64-quarterly/ref/.p/pool P_PORTS_FEATURES=FLAVORS SELECTED_OPTIONS MASTERNAME=120powerpc64-quarterly SCRIPTPREFIX=/usr/local/share/poudriere OLDPWD=/usr/local/poudriere/data/.m/120powerpc64-quarterly/ref/.p SCRIPTPATH=/usr/local/share/poudriere/bulk.sh POUDRIEREPATH=/usr/local/bin/poudriere ---End Environment--- ---Begin Poudriere Port Flags/Env--- PORT_FLAGS= PKGENV= FLAVOR= DEPENDS_ARGS= MAKE_ARGS= ---End Poudriere Port Flags/Env--- ---Begin OPTIONS List--- ===> The following configuration options are available for llvm50-5.0.2_2: CLANG=on: Build clang DOCS=on: Build and/or install documentation EXTRAS=on: Extra clang tools LIT=on: Install lit and FileCheck test tools LLD=on: Install lld, the LLVM linker LLDB=on: Install lldb, the LLVM debugger ===> Use 'make config' to modify these settings ---End OPTIONS List--- --MAINTAINER-- brooks@FreeBSD.org --End MAINTAINER-- --CONFIGURE_ARGS-- --End CONFIGURE_ARGS-- --CONFIGURE_ENV-- ac_cv_path_PERL=/usr/local/bin/perl ac_cv_path_PERL_PATH=/usr/local/bin/perl PERL_USE_UNSAFE_INC=1 PYTHON="/usr/local/bin/python2.7" XDG_DATA_HOME=/wrkdirs/usr/ports/devel/llvm50/work XDG_CONFIG_HOME=/wrkdirs/usr/ports/devel/llvm50/work HOME=/wrkdirs/usr/ports/devel/llvm50/work TMPDIR="/tmp" PATH=/wrkdirs/usr/ports/devel/llvm50/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin SHELL=/bin/sh CONFIG_SHELL=/bin/sh CMAKE_PREFIX_PATH="/usr/local" LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 --End CONFIGURE_ENV-- --MAKE_ENV-- PERL_USE_UNSAFE_INC=1 XDG_DATA_HOME=/wrkdirs/usr/ports/devel/llvm50/work XDG_CONFIG_HOME=/wrkdirs/usr/ports/devel/llvm50/work HOME=/wrkdirs/usr/ports/devel/llvm50/work TMPDIR="/tmp" PATH=/wrkdirs/usr/ports/devel/llvm50/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin NO_PIE=yes MK_DEBUG_FILES=no MK_KERNEL_SYMBOLS=no SHELL=/bin/sh NO_LINT=YES ADDR2LINE="/usr/local/bin/addr2line" AR="/usr/local/bin/ar" AS="/usr/local/bin/as" CPPFILT="/usr/local/bin/c++filt" GPROF="/usr/local/bin/gprof" LD="/usr/local/bin/ld" NM="/usr/local/bin/nm" OBJCOPY="/usr/local/bin/objcopy" OBJDUMP="/usr/local/bin/objdump" RANLIB="/usr/local/bin/ranlib" READELF="/usr/local/bin/readelf" SIZE="/usr/local/bin/size" STRINGS="/usr/local/bin/strings" DESTDIR=/wrkdirs/usr/ports/devel/llvm50/work/stage LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 PREFIX=/usr/local LOCALBASE=/usr/local CC="gcc8" CFLAGS="-O2 -pipe -Wl,-rpath=/usr/local/lib/gcc8 -isystem /usr/local/include -fno-strict-aliasing " CPP="cpp8" CPPFLAGS="-isystem /usr/local/include" LDFLAGS=" -Wl,-rpath=/usr/local/lib/gcc8 -L/usr/local/lib/gcc8 " LIBS="libclangApplyReplacements libclangChangeNamespace libclangDaemon libclangIncludeFixer libclangMove libclangQuery libclangRename libclangReorderFields libclangTidy libclangTidyGoogleModule libclangTidyLLVMModule libclangTidyMiscModule libclangTidyReadabilityModule libclangTidyUtils libfindAllSymbols libmodernizeCore -L/usr/local/lib" CXX="g++8" CXXFLAGS="-O2 -pipe -Wl,-rpath=/usr/local/lib/gcc8 -D_GLIBCXX_USE_C99 -Wl,-rpath=/usr/local/lib/gcc8 -isystem /usr/local/include " MANPREFIX="/usr/local" BSD_INSTALL_PROGRAM="install -s -m 555" BSD_INSTALL_LIB="install -s -m 0644" BSD_INSTALL_SCRIPT="install -m 555" BSD_INSTALL_DATA="install -m 0644" BSD_INSTALL_MAN="install -m 444" --End MAKE_ENV-- --PLIST_SUB-- LLVM_LIB_VER=50 LLVM_MAJOR=5.0 LLVM_RELEASE=5.0.2 LLVM_SUFFIX=50 PORTDOCS="" CLANG="" NO_CLANG="@comment " DOCS="" NO_DOCS="@comment " EXTRAS="" NO_EXTRAS="@comment " LIT="" NO_LIT="@comment " LLD="" NO_LLD="@comment " LLDB="" NO_LLDB="@comment " COMPILER_RT="@comment " GOLD="@comment " OPENMP="@comment " CMAKE_BUILD_TYPE="release" PYTHON_INCLUDEDIR=include/python2.7 PYTHON_LIBDIR=lib/python2.7 PYTHON_PLATFORM=freebsd12 PYTHON_PYOEXTENSION=pyo PYTHON_SITELIBDIR=lib/python2.7/site-packages PYTHON_SUFFIX=27 PYTHON_VER=2.7 PYTHON_VERSION=python2.7 PYTHON2="" PYTHON3="@comment " GTK2_VERSION="2.10.0" GTK3_VERSION="3.0.0" OSREL=12.0 PREFIX=%D LOCALBASE=/usr/local RESETPREFIX=/usr/local LIB32DIR=lib PERL_VERSION=5.28.1 PERL_VER=5.28 PERL5_MAN1=lib/perl5/site_perl/man/man1 PERL5_MAN3=lib/perl5/site_perl/man/man3 SITE_PERL=lib/perl5/site_perl SITE_ARCH=lib/perl5/site_perl/mach/5.28 DOCSDIR="share/doc/llvm50" EXAMPLESDIR="share/examples/llvm" DATADIR="share/llvm50" WWWDIR= "www/llvm" ETCDIR="etc/llvm" --End PLIST_SUB-- --SUB_LIST-- LLVM_PREFIX="/usr/local/llvm50" LLVM_SUFFIX="50" CLANG="" NO_CLANG="@comment " DOCS="" NO_DOCS="@comment " EXTRAS="" NO_EXTRAS="@comment " LIT="" NO_LIT="@comment " LLD="" NO_LLD="@comment " LLDB="" NO_LLDB="@comment " PREFIX=/usr/local LOCALBASE=/usr/local DATADIR=/usr/local/share/llvm50 DOCSDIR=/usr/local/share/doc/llvm50 EXAMPLESDIR=/usr/local/share/examples/llvm WWWDIR=/usr/local/www/llvm ETCDIR=/usr/local/etc/llvm --End SUB_LIST-- ---Begin make.conf--- USE_PACKAGE_DEPENDS=yes BATCH=yes WRKDIRPREFIX=/wrkdirs PORTSDIR=/usr/ports PACKAGES=/packages DISTDIR=/distfiles PACKAGE_BUILDING=yes PACKAGE_BUILDING_FLAVORS=yes #### /usr/local/etc/poudriere.d/make.conf #### # XXX: We really need this but cannot use it while 'make checksum' does not # try the next mirror on checksum failure. It currently retries the same # failed mirror and then fails rather then trying another. It *does* # try the next if the size is mismatched though. #MASTER_SITE_FREEBSD=yes # Build ALLOW_MAKE_JOBS_PACKAGES with 2 jobs MAKE_JOBS_NUMBER=2 # stable/10 includes src.conf too late but make.conf is in sys.mk .if ${.CURDIR:M/poudriere/jails/10*/usr/src/usr.bin/xlint*} # Disable build of llib now that head no longer has lint(1) LINT= true .endif #### /usr/ports/Mk/Scripts/ports_env.sh #### _CCVERSION_921dbbb2=cc (GCC) 4.2.1 20070831 patched [FreeBSD] Copyright (C) 2007 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. _ALTCCVERSION_921dbbb2=none _CXXINTERNAL_acaad9ca=Using built-in specs. Target: powerpc64-undermydesk-freebsd Configured with: FreeBSD/powerpc64 system compiler Thread model: posix gcc version 4.2.1 20070831 patched [FreeBSD] "/usr/bin/ld" "--eh-frame-hdr" "-Qy" "-melf64ppc_fbsd" "--enable-new-dtags" "-dynamic-linker" "/libexec/ld-elf.so.1" "/usr/lib/crt1.o" "/usr/lib/crti.o" "/usr/lib/crtbegin.o" "-L/usr/lib" "-L/usr/lib" "/dev/null" "-lstdc++" "-lm" "-lgcc_s" "-lgcc" "-lc" "-lgcc_s" "-lgcc" "/usr/lib/crtsavres.o" "/usr/lib/crtend.o" "/usr/lib/crtn.o" CC_OUTPUT_921dbbb2_58173849=yes CC_OUTPUT_921dbbb2_9bdba57c=yes CC_OUTPUT_921dbbb2_6a4fe7f5=cc1: error: unrecognized command line option "-std=c11" CC_OUTPUT_921dbbb2_6bcac02b=yes CC_OUTPUT_921dbbb2_67d20829=yes CC_OUTPUT_921dbbb2_bfa62e83=cc1: error: unrecognized command line option "-std=gnu11" CC_OUTPUT_921dbbb2_f0b4d593=yes CC_OUTPUT_921dbbb2_308abb44=cc1plus: error: unrecognized command line option "-std=c++0x" CC_OUTPUT_921dbbb2_f00456e5=cc1plus: error: unrecognized command line option "-std=c++11" CC_OUTPUT_921dbbb2_65ad290d=cc1plus: error: unrecognized command line option "-std=c++14" CC_OUTPUT_921dbbb2_f2776b26=cc1plus: error: unrecognized command line option "-std=c++17" CC_OUTPUT_921dbbb2_b2657cc3=yes CC_OUTPUT_921dbbb2_380987f7=cc1plus: error: unrecognized command line option "-std=gnu++11" CC_OUTPUT_921dbbb2_160933ec=cc1plus: error: unrecognized command line option "-std=gnu++14" CC_OUTPUT_921dbbb2_fb62803b=cc1plus: error: unrecognized command line option "-std=gnu++17" _OBJC_CCVERSION_921dbbb2=cc (GCC) 4.2.1 20070831 patched [FreeBSD] Copyright (C) 2007 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. _OBJC_ALTCCVERSION_921dbbb2=none ARCH=powerpc64 OPSYS=FreeBSD _OSRELEASE=12.0-RELEASE-p2 OSREL=12.0 OSVERSION=1200086 PYTHONBASE=/usr/local CONFIGURE_MAX_CMD_LEN=262144 HAVE_PORTS_ENV=1 #### Misc Poudriere #### GID=0 UID=0 DISABLE_MAKE_JOBS=poudriere ---End make.conf--- --Resource limits-- cpu time (seconds, -t) unlimited file size (512-blocks, -f) unlimited data seg size (kbytes, -d) 33554432 stack size (kbytes, -s) 524288 core file size (512-blocks, -c) unlimited max memory size (kbytes, -m) unlimited locked memory (kbytes, -l) unlimited max user processes (-u) 89999 open files (-n) 1024 virtual mem size (kbytes, -v) unlimited swap limit (kbytes, -w) unlimited socket buffer size (bytes, -b) unlimited pseudo-terminals (-p) unlimited kqueues (-k) unlimited umtx shared locks (-o) unlimited --End resource limits-- =======================<phase: check-sanity >============================ ===> License LLVM accepted by the user =========================================================================== =======================<phase: pkg-depends >============================ ===> llvm50-5.0.2_2 depends on file: /usr/local/sbin/pkg - not found ===> Installing existing package /packages/All/pkg-1.10.5_5.txz [120powerpc64-quarterly-job-15] Installing pkg-1.10.5_5... [120powerpc64-quarterly-job-15] Extracting pkg-1.10.5_5: .......... done ===> llvm50-5.0.2_2 depends on file: /usr/local/sbin/pkg - found ===> Returning to build of llvm50-5.0.2_2 =========================================================================== =======================<phase: fetch-depends >============================ =========================================================================== =======================<phase: fetch >============================ ===> License LLVM accepted by the user ===> Fetching all distfiles required by llvm50-5.0.2_2 for building =========================================================================== =======================<phase: checksum >============================ ===> License LLVM accepted by the user ===> Fetching all distfiles required by llvm50-5.0.2_2 for building => SHA256 Checksum OK for llvm-5.0.2.src.tar.xz. => SHA256 Checksum OK for cfe-5.0.2.src.tar.xz. => SHA256 Checksum OK for clang-tools-extra-5.0.2.src.tar.xz. => SHA256 Checksum OK for lld-5.0.2.src.tar.xz. => SHA256 Checksum OK for lldb-5.0.2.src.tar.xz. =========================================================================== =======================<phase: extract-depends>============================ =========================================================================== =======================<phase: extract >============================ ===> License LLVM accepted by the user ===> Fetching all distfiles required by llvm50-5.0.2_2 for building ===> Extracting for llvm50-5.0.2_2 => SHA256 Checksum OK for llvm-5.0.2.src.tar.xz. => SHA256 Checksum OK for cfe-5.0.2.src.tar.xz. => SHA256 Checksum OK for clang-tools-extra-5.0.2.src.tar.xz. => SHA256 Checksum OK for lld-5.0.2.src.tar.xz. => SHA256 Checksum OK for lldb-5.0.2.src.tar.xz. /bin/mv /wrkdirs/usr/ports/devel/llvm50/work/cfe-5.0.2.src /wrkdirs/usr/ports/devel/llvm50/work/llvm-5.0.2.src/tools/clang /bin/mv /wrkdirs/usr/ports/devel/llvm50/work/clang-tools-extra-5.0.2.src /wrkdirs/usr/ports/devel/llvm50/work/llvm-5.0.2.src/tools/clang/tools/extra /bin/mv /wrkdirs/usr/ports/devel/llvm50/work/lld-5.0.2.src /wrkdirs/usr/ports/devel/llvm50/work/llvm-5.0.2.src/tools/lld /bin/mv /wrkdirs/usr/ports/devel/llvm50/work/lldb-5.0.2.src /wrkdirs/usr/ports/devel/llvm50/work/llvm-5.0.2.src/tools/lldb =========================================================================== =======================<phase: patch-depends >============================ <snip> /wrkdirs/usr/ports/devel/llvm50/work/llvm-5.0.2.src/include/llvm/Support/Allocator.h:247:33: required from 'void* llvm::BumpPtrAllocatorImpl<AllocatorT, SlabSize, SizeThreshold>::Allocate(size_t, size_t) [with AllocatorT = llvm::MallocAllocator; long unsigned int SlabSize = 4096; long unsigned int SizeThreshold = 4096; size_t = long unsigned int]' /wrkdirs/usr/ports/devel/llvm50/work/llvm-5.0.2.src/include/llvm/Support/YAMLParser.h:130:42: required from here /wrkdirs/usr/ports/devel/llvm50/work/llvm-5.0.2.src/include/llvm/ADT/SmallVector.h:309:11: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'struct std::pair<void*, long unsigned int>' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy(this->end(), &Elt, sizeof(T)); ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/local/lib/gcc8/include/c++/utility:70, from /usr/local/lib/gcc8/include/c++/algorithm:60, from /wrkdirs/usr/ports/devel/llvm50/work/llvm-5.0.2.src/include/llvm/ADT/STLExtras.h:20, from /wrkdirs/usr/ports/devel/llvm50/work/llvm-5.0.2.src/include/llvm/ADT/StringRef.h:13, from /wrkdirs/usr/ports/devel/llvm50/work/llvm-5.0.2.src/include/llvm/ADT/StringMap.h:17, from /wrkdirs/usr/ports/devel/llvm50/work/llvm-5.0.2.src/include/llvm/Support/Host.h:17, from /wrkdirs/usr/ports/devel/llvm50/work/llvm-5.0.2.src/include/llvm/ADT/Hashing.h:49, from /wrkdirs/usr/ports/devel/llvm50/work/llvm-5.0.2.src/tools/lld/include/lld/Core/LLVM.h:20, from /wrkdirs/usr/ports/devel/llvm50/work/llvm-5.0.2.src/tools/lld/ELF/LTO.h:24, from /wrkdirs/usr/ports/devel/llvm50/work/llvm-5.0.2.src/tools/lld/ELF/LTO.cpp:10: /usr/local/lib/gcc8/include/c++/bits/stl_pair.h:198:12: note: 'struct std::pair<void*, long unsigned int>' declared here struct pair ^~~~ [236/4300] /usr/local/bin/g++8 -DLLVM_BUILD_GLOBAL_ISEL -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -Itools/lld/ELF -I/wrkdirs/usr/ports/devel/llvm50/work/llvm-5.0.2.src/tools/lld/ELF -I/wrkdirs/usr/ports/devel/llvm50/work/llvm-5.0.2.src/tools/lld/include -Itools/lld/include -Iinclude -I/wrkdirs/usr/ports/devel/llvm50/work/llvm-5.0.2.src/include -I/usr/local/include -O2 -pipe -Wl,-rpath=/usr/local/lib/gcc8 -D_GLIBCXX_USE_C99 -Wl,-rpath=/usr/local/lib/gcc8 -isystem /usr/local/include -fPIC -fvisibility-inlines-hidden -Werror=date-time -std=c++11 -Wall -W -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wno-maybe-uninitialized -Wdelete-non-virtual-dtor -Wno-comment -ffunction-sections -fdata-sections -O2 -pipe -Wl,-rpath=/usr/local/lib/gcc8 -D_GLIBCXX_USE_C99 -Wl,-rpath=/usr/local/lib/gcc8 -isystem /usr/local/include -fno-exceptions -MD -MT tools/lld/ELF/CMakeFiles/lldELF.dir/LinkerScript.cpp.o -MF tools/lld/ELF/CMakeFiles/lldELF.dir/LinkerScript.cpp.o.d -o tools/lld/ELF/CMakeFiles/lldELF.dir/LinkerScript.cpp.o -c /wrkdirs/usr/ports/devel/llvm50/work/llvm-5.0.2.src/tools/lld/ELF/LinkerScript.cpp FAILED: tools/lld/ELF/CMakeFiles/lldELF.dir/LinkerScript.cpp.o /usr/local/bin/g++8 -DLLVM_BUILD_GLOBAL_ISEL -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -Itools/lld/ELF -I/wrkdirs/usr/ports/devel/llvm50/work/llvm-5.0.2.src/tools/lld/ELF -I/wrkdirs/usr/ports/devel/llvm50/work/llvm-5.0.2.src/tools/lld/include -Itools/lld/include -Iinclude -I/wrkdirs/usr/ports/devel/llvm50/work/llvm-5.0.2.src/include -I/usr/local/include -O2 -pipe -Wl,-rpath=/usr/local/lib/gcc8 -D_GLIBCXX_USE_C99 -Wl,-rpath=/usr/local/lib/gcc8 -isystem /usr/local/include -fPIC -fvisibility-inlines-hidden -Werror=date-time -std=c++11 -Wall -W -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wno-maybe-uninitialized -Wdelete-non-virtual-dtor -Wno-comment -ffunction-sections -fdata-sections -O2 -pipe -Wl,-rpath=/usr/local/lib/gcc8 -D_GLIBCXX_USE_C99 -Wl,-rpath=/usr/local/lib/gcc8 -isystem /usr/local/include -fno-exceptions -MD -MT tools/lld/ELF/CMakeFiles/lldELF.dir/LinkerScript.cpp.o -MF tools/ lld/ELF/CMakeFiles/lldELF.dir/LinkerScript.cpp.o.d -o tools/lld/ELF/CMakeFiles/lldELF.dir/LinkerScript.cpp.o -c /wrkdirs/usr/ports/devel/llvm50/work/llvm-5.0.2.src/tools/lld/ELF/LinkerScript.cpp /wrkdirs/usr/ports/devel/llvm50/work/llvm-5.0.2.src/tools/lld/ELF/LinkerScript.cpp: In instantiation of 'void lld::elf::OutputSectionCommand::writeTo(uint8_t*) [with ELFT = llvm::object::ELFType<(llvm::support::endianness)1, false>; uint8_t = unsigned char]': /wrkdirs/usr/ports/devel/llvm50/work/llvm-5.0.2.src/tools/lld/ELF/LinkerScript.cpp:1242:66: required from here /wrkdirs/usr/ports/devel/llvm50/work/llvm-5.0.2.src/tools/lld/ELF/LinkerScript.cpp:1175:19: error: passing 'const std::vector<lld::elf::InputSection*>' as 'this' argument discards qualifiers [-fpermissive] InputSection *IS = Sections[I]; ^~ In file included from /usr/local/lib/gcc8/include/c++/vector:64, from /wrkdirs/usr/ports/devel/llvm50/work/llvm-5.0.2.src/include/llvm/ADT/ArrayRef.h:26, from /wrkdirs/usr/ports/devel/llvm50/work/llvm-5.0.2.src/include/llvm/ADT/DenseMapInfo.h:17, from /wrkdirs/usr/ports/devel/llvm50/work/llvm-5.0.2.src/include/llvm/ADT/DenseMap.h:17, from /wrkdirs/usr/ports/devel/llvm50/work/llvm-5.0.2.src/include/llvm/ADT/MapVector.h:20, from /wrkdirs/usr/ports/devel/llvm50/work/llvm-5.0.2.src/tools/lld/ELF/Config.h:13, from /wrkdirs/usr/ports/devel/llvm50/work/llvm-5.0.2.src/tools/lld/ELF/LinkerScript.h:13, from /wrkdirs/usr/ports/devel/llvm50/work/llvm-5.0.2.src/tools/lld/ELF/LinkerScript.cpp:14: /usr/local/lib/gcc8/include/c++/bits/stl_vector.h:930:7: note: in call to 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::operator[](std::vector<_Tp, _Alloc>::size_type) [with _Tp = lld::elf::InputSection*; _Alloc = std::allocator<lld::elf::InputSection*>; std::vector<_Tp, _Alloc>::reference = lld::elf::InputSection*&; std::vector<_Tp, _Alloc>::size_type = long unsigned int]' operator[](size_type __n) _GLIBCXX_NOEXCEPT ^~~~~~~~ /wrkdirs/usr/ports/devel/llvm50/work/llvm-5.0.2.src/tools/lld/ELF/LinkerScript.cpp:1185:38: error: passing 'const std::vector<lld::elf::InputSection*>' as 'this' argument discards qualifiers [-fpermissive] End = Buf + Sections[I + 1]->OutSecOff; In file included from /usr/local/lib/gcc8/include/c++/vector:64, from /wrkdirs/usr/ports/devel/llvm50/work/llvm-5.0.2.src/include/llvm/ADT/ArrayRef.h:26, from /wrkdirs/usr/ports/devel/llvm50/work/llvm-5.0.2.src/include/llvm/ADT/DenseMapInfo.h:17, from /wrkdirs/usr/ports/devel/llvm50/work/llvm-5.0.2.src/include/llvm/ADT/DenseMap.h:17, from /wrkdirs/usr/ports/devel/llvm50/work/llvm-5.0.2.src/include/llvm/ADT/MapVector.h:20, from /wrkdirs/usr/ports/devel/llvm50/work/llvm-5.0.2.src/tools/lld/ELF/Config.h:13, from /wrkdirs/usr/ports/devel/llvm50/work/llvm-5.0.2.src/tools/lld/ELF/LinkerScript.h:13, from /wrkdirs/usr/ports/devel/llvm50/work/llvm-5.0.2.src/tools/lld/ELF/LinkerScript.cpp:14: /usr/local/lib/gcc8/include/c++/bits/stl_vector.h:930:7: note: in call to 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::operator[](std::vector<_Tp, _Alloc>::size_type) [with _Tp = lld::elf::InputSection*; _Alloc = std::allocator<lld::elf::InputSection*>; std::vector<_Tp, _Alloc>::reference = lld::elf::InputSection*&; std::vector<_Tp, _Alloc>::size_type = long unsigned int]' operator[](size_type __n) _GLIBCXX_NOEXCEPT ^~~~~~~~ /wrkdirs/usr/ports/devel/llvm50/work/llvm-5.0.2.src/tools/lld/ELF/LinkerScript.cpp: In instantiation of 'void lld::elf::OutputSectionCommand::writeTo(uint8_t*) [with ELFT = llvm::object::ELFType<(llvm::support::endianness)0, false>; uint8_t = unsigned char]': /wrkdirs/usr/ports/devel/llvm50/work/llvm-5.0.2.src/tools/lld/ELF/LinkerScript.cpp:1243:66: required from here /wrkdirs/usr/ports/devel/llvm50/work/llvm-5.0.2.src/tools/lld/ELF/LinkerScript.cpp:1175:19: error: passing 'const std::vector<lld::elf::InputSection*>' as 'this' argument discards qualifiers [-fpermissive] InputSection *IS = Sections[I]; ^~ In file included from /usr/local/lib/gcc8/include/c++/vector:64, from /wrkdirs/usr/ports/devel/llvm50/work/llvm-5.0.2.src/include/llvm/ADT/ArrayRef.h:26, from /wrkdirs/usr/ports/devel/llvm50/work/llvm-5.0.2.src/include/llvm/ADT/DenseMapInfo.h:17, from /wrkdirs/usr/ports/devel/llvm50/work/llvm-5.0.2.src/include/llvm/ADT/DenseMap.h:17, from /wrkdirs/usr/ports/devel/llvm50/work/llvm-5.0.2.src/include/llvm/ADT/MapVector.h:20, from /wrkdirs/usr/ports/devel/llvm50/work/llvm-5.0.2.src/tools/lld/ELF/Config.h:13, from /wrkdirs/usr/ports/devel/llvm50/work/llvm-5.0.2.src/tools/lld/ELF/LinkerScript.h:13, from /wrkdirs/usr/ports/devel/llvm50/work/llvm-5.0.2.src/tools/lld/ELF/LinkerScript.cpp:14: /usr/local/lib/gcc8/include/c++/bits/stl_vector.h:930:7: note: in call to 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::operator[](std::vector<_Tp, _Alloc>::size_type) [with _Tp = lld::elf::InputSection*; _Alloc = std::allocator<lld::elf::InputSection*>; std::vector<_Tp, _Alloc>::reference = lld::elf::InputSection*&; std::vector<_Tp, _Alloc>::size_type = long unsigned int]' operator[](size_type __n) _GLIBCXX_NOEXCEPT ^~~~~~~~ /wrkdirs/usr/ports/devel/llvm50/work/llvm-5.0.2.src/tools/lld/ELF/LinkerScript.cpp:1185:38: error: passing 'const std::vector<lld::elf::InputSection*>' as 'this' argument discards qualifiers [-fpermissive] End = Buf + Sections[I + 1]->OutSecOff; In file included from /usr/local/lib/gcc8/include/c++/vector:64, from /wrkdirs/usr/ports/devel/llvm50/work/llvm-5.0.2.src/include/llvm/ADT/ArrayRef.h:26, from /wrkdirs/usr/ports/devel/llvm50/work/llvm-5.0.2.src/include/llvm/ADT/DenseMapInfo.h:17, from /wrkdirs/usr/ports/devel/llvm50/work/llvm-5.0.2.src/include/llvm/ADT/DenseMap.h:17, from /wrkdirs/usr/ports/devel/llvm50/work/llvm-5.0.2.src/include/llvm/ADT/MapVector.h:20, from /wrkdirs/usr/ports/devel/llvm50/work/llvm-5.0.2.src/tools/lld/ELF/Config.h:13, from /wrkdirs/usr/ports/devel/llvm50/work/llvm-5.0.2.src/tools/lld/ELF/LinkerScript.h:13, from /wrkdirs/usr/ports/devel/llvm50/work/llvm-5.0.2.src/tools/lld/ELF/LinkerScript.cpp:14: /usr/local/lib/gcc8/include/c++/bits/stl_vector.h:930:7: note: in call to 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::operator[](std::vector<_Tp, _Alloc>::size_type) [with _Tp = lld::elf::InputSection*; _Alloc = std::allocator<lld::elf::InputSection*>; std::vector<_Tp, _Alloc>::reference = lld::elf::InputSection*&; std::vector<_Tp, _Alloc>::size_type = long unsigned int]' operator[](size_type __n) _GLIBCXX_NOEXCEPT ^~~~~~~~ /wrkdirs/usr/ports/devel/llvm50/work/llvm-5.0.2.src/tools/lld/ELF/LinkerScript.cpp: In instantiation of 'void lld::elf::OutputSectionCommand::writeTo(uint8_t*) [with ELFT = llvm::object::ELFType<(llvm::support::endianness)1, true>; uint8_t = unsigned char]': /wrkdirs/usr/ports/devel/llvm50/work/llvm-5.0.2.src/tools/lld/ELF/LinkerScript.cpp:1244:66: required from here /wrkdirs/usr/ports/devel/llvm50/work/llvm-5.0.2.src/tools/lld/ELF/LinkerScript.cpp:1175:19: error: passing 'const std::vector<lld::elf::InputSection*>' as 'this' argument discards qualifiers [-fpermissive] InputSection *IS = Sections[I]; ^~ In file included from /usr/local/lib/gcc8/include/c++/vector:64, from /wrkdirs/usr/ports/devel/llvm50/work/llvm-5.0.2.src/include/llvm/ADT/ArrayRef.h:26, from /wrkdirs/usr/ports/devel/llvm50/work/llvm-5.0.2.src/include/llvm/ADT/DenseMapInfo.h:17, from /wrkdirs/usr/ports/devel/llvm50/work/llvm-5.0.2.src/include/llvm/ADT/DenseMap.h:17, from /wrkdirs/usr/ports/devel/llvm50/work/llvm-5.0.2.src/include/llvm/ADT/MapVector.h:20, from /wrkdirs/usr/ports/devel/llvm50/work/llvm-5.0.2.src/tools/lld/ELF/Config.h:13, from /wrkdirs/usr/ports/devel/llvm50/work/llvm-5.0.2.src/tools/lld/ELF/LinkerScript.h:13, from /wrkdirs/usr/ports/devel/llvm50/work/llvm-5.0.2.src/tools/lld/ELF/LinkerScript.cpp:14: /usr/local/lib/gcc8/include/c++/bits/stl_vector.h:930:7: note: in call to 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::operator[](std::vector<_Tp, _Alloc>::size_type) [with _Tp = lld::elf::InputSection*; _Alloc = std::allocator<lld::elf::InputSection*>; std::vector<_Tp, _Alloc>::reference = lld::elf::InputSection*&; std::vector<_Tp, _Alloc>::size_type = long unsigned int]' operator[](size_type __n) _GLIBCXX_NOEXCEPT ^~~~~~~~ /wrkdirs/usr/ports/devel/llvm50/work/llvm-5.0.2.src/tools/lld/ELF/LinkerScript.cpp:1185:38: error: passing 'const std::vector<lld::elf::InputSection*>' as 'this' argument discards qualifiers [-fpermissive] End = Buf + Sections[I + 1]->OutSecOff; In file included from /usr/local/lib/gcc8/include/c++/vector:64, from /wrkdirs/usr/ports/devel/llvm50/work/llvm-5.0.2.src/include/llvm/ADT/ArrayRef.h:26, from /wrkdirs/usr/ports/devel/llvm50/work/llvm-5.0.2.src/include/llvm/ADT/DenseMapInfo.h:17, from /wrkdirs/usr/ports/devel/llvm50/work/llvm-5.0.2.src/include/llvm/ADT/DenseMap.h:17, from /wrkdirs/usr/ports/devel/llvm50/work/llvm-5.0.2.src/include/llvm/ADT/MapVector.h:20, from /wrkdirs/usr/ports/devel/llvm50/work/llvm-5.0.2.src/tools/lld/ELF/Config.h:13, from /wrkdirs/usr/ports/devel/llvm50/work/llvm-5.0.2.src/tools/lld/ELF/LinkerScript.h:13, from /wrkdirs/usr/ports/devel/llvm50/work/llvm-5.0.2.src/tools/lld/ELF/LinkerScript.cpp:14: /usr/local/lib/gcc8/include/c++/bits/stl_vector.h:930:7: note: in call to 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::operator[](std::vector<_Tp, _Alloc>::size_type) [with _Tp = lld::elf::InputSection*; _Alloc = std::allocator<lld::elf::InputSection*>; std::vector<_Tp, _Alloc>::reference = lld::elf::InputSection*&; std::vector<_Tp, _Alloc>::size_type = long unsigned int]' operator[](size_type __n) _GLIBCXX_NOEXCEPT ^~~~~~~~ /wrkdirs/usr/ports/devel/llvm50/work/llvm-5.0.2.src/tools/lld/ELF/LinkerScript.cpp: In instantiation of 'void lld::elf::OutputSectionCommand::writeTo(uint8_t*) [with ELFT = llvm::object::ELFType<(llvm::support::endianness)0, true>; uint8_t = unsigned char]': /wrkdirs/usr/ports/devel/llvm50/work/llvm-5.0.2.src/tools/lld/ELF/LinkerScript.cpp:1245:66: required from here /wrkdirs/usr/ports/devel/llvm50/work/llvm-5.0.2.src/tools/lld/ELF/LinkerScript.cpp:1175:19: error: passing 'const std::vector<lld::elf::InputSection*>' as 'this' argument discards qualifiers [-fpermissive] InputSection *IS = Sections[I]; ^~ In file included from /usr/local/lib/gcc8/include/c++/vector:64, from /wrkdirs/usr/ports/devel/llvm50/work/llvm-5.0.2.src/include/llvm/ADT/ArrayRef.h:26, from /wrkdirs/usr/ports/devel/llvm50/work/llvm-5.0.2.src/include/llvm/ADT/DenseMapInfo.h:17, from /wrkdirs/usr/ports/devel/llvm50/work/llvm-5.0.2.src/include/llvm/ADT/DenseMap.h:17, from /wrkdirs/usr/ports/devel/llvm50/work/llvm-5.0.2.src/include/llvm/ADT/MapVector.h:20, from /wrkdirs/usr/ports/devel/llvm50/work/llvm-5.0.2.src/tools/lld/ELF/Config.h:13, from /wrkdirs/usr/ports/devel/llvm50/work/llvm-5.0.2.src/tools/lld/ELF/LinkerScript.h:13, from /wrkdirs/usr/ports/devel/llvm50/work/llvm-5.0.2.src/tools/lld/ELF/LinkerScript.cpp:14: /usr/local/lib/gcc8/include/c++/bits/stl_vector.h:930:7: note: in call to 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::operator[](std::vector<_Tp, _Alloc>::size_type) [with _Tp = lld::elf::InputSection*; _Alloc = std::allocator<lld::elf::InputSection*>; std::vector<_Tp, _Alloc>::reference = lld::elf::InputSection*&; std::vector<_Tp, _Alloc>::size_type = long unsigned int]' operator[](size_type __n) _GLIBCXX_NOEXCEPT ^~~~~~~~ /wrkdirs/usr/ports/devel/llvm50/work/llvm-5.0.2.src/tools/lld/ELF/LinkerScript.cpp:1185:38: error: passing 'const std::vector<lld::elf::InputSection*>' as 'this' argument discards qualifiers [-fpermissive] End = Buf + Sections[I + 1]->OutSecOff; In file included from /usr/local/lib/gcc8/include/c++/vector:64, from /wrkdirs/usr/ports/devel/llvm50/work/llvm-5.0.2.src/include/llvm/ADT/ArrayRef.h:26, from /wrkdirs/usr/ports/devel/llvm50/work/llvm-5.0.2.src/include/llvm/ADT/DenseMapInfo.h:17, from /wrkdirs/usr/ports/devel/llvm50/work/llvm-5.0.2.src/include/llvm/ADT/DenseMap.h:17, from /wrkdirs/usr/ports/devel/llvm50/work/llvm-5.0.2.src/include/llvm/ADT/MapVector.h:20, from /wrkdirs/usr/ports/devel/llvm50/work/llvm-5.0.2.src/tools/lld/ELF/Config.h:13, from /wrkdirs/usr/ports/devel/llvm50/work/llvm-5.0.2.src/tools/lld/ELF/LinkerScript.h:13, from /wrkdirs/usr/ports/devel/llvm50/work/llvm-5.0.2.src/tools/lld/ELF/LinkerScript.cpp:14: /usr/local/lib/gcc8/include/c++/bits/stl_vector.h:930:7: note: in call to 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::operator[](std::vector<_Tp, _Alloc>::size_type) [with _Tp = lld::elf::InputSection*; _Alloc = std::allocator<lld::elf::InputSection*>; std::vector<_Tp, _Alloc>::reference = lld::elf::InputSection*&; std::vector<_Tp, _Alloc>::size_type = long unsigned int]' operator[](size_type __n) _GLIBCXX_NOEXCEPT ^~~~~~~~ In file included from /wrkdirs/usr/ports/devel/llvm50/work/llvm-5.0.2.src/include/llvm/ADT/STLExtras.h:32, from /wrkdirs/usr/ports/devel/llvm50/work/llvm-5.0.2.src/include/llvm/ADT/StringRef.h:13, from /wrkdirs/usr/ports/devel/llvm50/work/llvm-5.0.2.src/include/llvm/ADT/StringMap.h:17, from /wrkdirs/usr/ports/devel/llvm50/work/llvm-5.0.2.src/include/llvm/Support/Host.h:17, from /wrkdirs/usr/ports/devel/llvm50/work/llvm-5.0.2.src/include/llvm/ADT/Hashing.h:49, from /wrkdirs/usr/ports/devel/llvm50/work/llvm-5.0.2.src/include/llvm/ADT/ArrayRef.h:13, from /wrkdirs/usr/ports/devel/llvm50/work/llvm-5.0.2.src/include/llvm/ADT/DenseMapInfo.h:17, from /wrkdirs/usr/ports/devel/llvm50/work/llvm-5.0.2.src/include/llvm/ADT/DenseMap.h:17, from /wrkdirs/usr/ports/devel/llvm50/work/llvm-5.0.2.src/include/llvm/ADT/MapVector.h:20, from /wrkdirs/usr/ports/devel/llvm50/work/llvm-5.0.2.src/tools/lld/ELF/Config.h:13, from /wrkdirs/usr/ports/devel/llvm50/work/llvm-5.0.2.src/tools/lld/ELF/LinkerScript.h:13, from /wrkdirs/usr/ports/devel/llvm50/work/llvm-5.0.2.src/tools/lld/ELF/LinkerScript.cpp:14: /wrkdirs/usr/ports/devel/llvm50/work/llvm-5.0.2.src/include/llvm/ADT/SmallVector.h: In instantiation of 'void llvm::SmallVectorTemplateBase<T, true>::push_back(const T&) [with T = std::pair<void*, long unsigned int>]': /wrkdirs/usr/ports/devel/llvm50/work/llvm-5.0.2.src/include/llvm/Support/Allocator.h:247:33: required from 'void* llvm::BumpPtrAllocatorImpl<AllocatorT, SlabSize, SizeThreshold>::Allocate(size_t, size_t) [with AllocatorT = llvm::MallocAllocator; long unsigned int SlabSize = 4096; long unsigned int SizeThreshold = 4096; size_t = long unsigned int]' /wrkdirs/usr/ports/devel/llvm50/work/llvm-5.0.2.src/include/llvm/Support/Allocator.h:57:67: required from 'void* llvm::AllocatorBase<DerivedT>::Allocate(size_t, size_t) [with DerivedT = llvm::BumpPtrAllocatorImpl<>; size_t = long unsigned int]' /wrkdirs/usr/ports/devel/llvm50/work/llvm-5.0.2.src/include/llvm/Support/Allocator.h:79:12: required from 'T* llvm::AllocatorBase<DerivedT>::Allocate(size_t) [with T = lld::elf::OutputSectionCommand; DerivedT = llvm::BumpPtrAllocatorImpl<>; size_t = long unsigned int]' /wrkdirs/usr/ports/devel/llvm50/work/llvm-5.0.2.src/include/llvm/Support/Allocator.h:431:65: required from 'T* llvm::SpecificBumpPtrAllocator<T>::Allocate(size_t) [with T = lld::elf::OutputSectionCommand; size_t = long unsigned int]' /wrkdirs/usr/ports/devel/llvm50/work/llvm-5.0.2.src/tools/lld/ELF/Memory.h:56:10: required from 'T* lld::elf::make(U&& ...) [with T = lld::elf::OutputSectionCommand; U = {llvm::StringRef&}]' /wrkdirs/usr/ports/devel/llvm50/work/llvm-5.0.2.src/tools/lld/ELF/LinkerScript.cpp:96:42: required from here /wrkdirs/usr/ports/devel/llvm50/work/llvm-5.0.2.src/include/llvm/ADT/SmallVector.h:309:11: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'struct std::pair<void*, long unsigned int>' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy(this->end(), &Elt, sizeof(T)); ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/local/lib/gcc8/include/c++/utility:70, from /usr/local/lib/gcc8/include/c++/algorithm:60, from /wrkdirs/usr/ports/devel/llvm50/work/llvm-5.0.2.src/include/llvm/ADT/STLExtras.h:20, from /wrkdirs/usr/ports/devel/llvm50/work/llvm-5.0.2.src/include/llvm/ADT/StringRef.h:13, from /wrkdirs/usr/ports/devel/llvm50/work/llvm-5.0.2.src/include/llvm/ADT/StringMap.h:17, from /wrkdirs/usr/ports/devel/llvm50/work/llvm-5.0.2.src/include/llvm/Support/Host.h:17, from /wrkdirs/usr/ports/devel/llvm50/work/llvm-5.0.2.src/include/llvm/ADT/Hashing.h:49, from /wrkdirs/usr/ports/devel/llvm50/work/llvm-5.0.2.src/include/llvm/ADT/ArrayRef.h:13, from /wrkdirs/usr/ports/devel/llvm50/work/llvm-5.0.2.src/include/llvm/ADT/DenseMapInfo.h:17, from /wrkdirs/usr/ports/devel/llvm50/work/llvm-5.0.2.src/include/llvm/ADT/DenseMap.h:17, from /wrkdirs/usr/ports/devel/llvm50/work/llvm-5.0.2.src/include/llvm/ADT/MapVector.h:20, from /wrkdirs/usr/ports/devel/llvm50/work/llvm-5.0.2.src/tools/lld/ELF/Config.h:13, from /wrkdirs/usr/ports/devel/llvm50/work/llvm-5.0.2.src/tools/lld/ELF/LinkerScript.h:13, from /wrkdirs/usr/ports/devel/llvm50/work/llvm-5.0.2.src/tools/lld/ELF/LinkerScript.cpp:14: /usr/local/lib/gcc8/include/c++/bits/stl_pair.h:198:12: note: 'struct std::pair<void*, long unsigned int>' declared here struct pair ^~~~ In file included from /usr/local/lib/gcc8/include/c++/functional:59, from /wrkdirs/usr/ports/devel/llvm50/work/llvm-5.0.2.src/include/llvm/ADT/STLExtras.h:24, from /wrkdirs/usr/ports/devel/llvm50/work/llvm-5.0.2.src/include/llvm/ADT/StringRef.h:13, from /wrkdirs/usr/ports/devel/llvm50/work/llvm-5.0.2.src/include/llvm/ADT/StringMap.h:17, from /wrkdirs/usr/ports/devel/llvm50/work/llvm-5.0.2.src/include/llvm/Support/Host.h:17, from /wrkdirs/usr/ports/devel/llvm50/work/llvm-5.0.2.src/include/llvm/ADT/Hashing.h:49, from /wrkdirs/usr/ports/devel/llvm50/work/llvm-5.0.2.src/include/llvm/ADT/ArrayRef.h:13, from /wrkdirs/usr/ports/devel/llvm50/work/llvm-5.0.2.src/include/llvm/ADT/DenseMapInfo.h:17, from /wrkdirs/usr/ports/devel/llvm50/work/llvm-5.0.2.src/include/llvm/ADT/DenseMap.h:17, from /wrkdirs/usr/ports/devel/llvm50/work/llvm-5.0.2.src/include/llvm/ADT/MapVector.h:20, from /wrkdirs/usr/ports/devel/llvm50/work/llvm-5.0.2.src/tools/lld/ELF/Config.h:13, from /wrkdirs/usr/ports/devel/llvm50/work/llvm-5.0.2.src/tools/lld/ELF/LinkerScript.h:13, from /wrkdirs/usr/ports/devel/llvm50/work/llvm-5.0.2.src/tools/lld/ELF/LinkerScript.cpp:14: /usr/local/lib/gcc8/include/c++/bits/std_function.h:666:7: error: 'std::function<_Res(_ArgTypes ...)>::function(_Functor) [with _Functor = lld::elf::OutputSectionCommand::writeTo(uint8_t*) [with ELFT = llvm::object::ELFType<(llvm::support::endianness)1, false>; uint8_t = unsigned char]::<lambda(size_t)>; <template-parameter-2-2> = void; <template-parameter-2-3> = void; _Res = void; _ArgTypes = {long unsigned int}]', declared using local type 'lld::elf::OutputSectionCommand::writeTo(uint8_t*) [with ELFT = llvm::object::ELFType<(llvm::support::endianness)1, false>; uint8_t = unsigned char]::<lambda(size_t)>', is used but never defined [-fpermissive] function<_Res(_ArgTypes...)>:: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/lib/gcc8/include/c++/bits/std_function.h:666:7: error: 'std::function<_Res(_ArgTypes ...)>::function(_Functor) [with _Functor = lld::elf::OutputSectionCommand::writeTo(uint8_t*) [with ELFT = llvm::object::ELFType<(llvm::support::endianness)0, false>; uint8_t = unsigned char]::<lambda(size_t)>; <template-parameter-2-2> = void; <template-parameter-2-3> = void; _Res = void; _ArgTypes = {long unsigned int}]', declared using local type 'lld::elf::OutputSectionCommand::writeTo(uint8_t*) [with ELFT = llvm::object::ELFType<(llvm::support::endianness)0, false>; uint8_t = unsigned char]::<lambda(size_t)>', is used but never defined [-fpermissive] /usr/local/lib/gcc8/include/c++/bits/std_function.h:666:7: error: 'std::function<_Res(_ArgTypes ...)>::function(_Functor) [with _Functor = lld::elf::OutputSectionCommand::writeTo(uint8_t*) [with ELFT = llvm::object::ELFType<(llvm::support::endianness)1, true>; uint8_t = unsigned char]::<lambda(size_t)>; <template-parameter-2-2> = void; <template-parameter-2-3> = void; _Res = void; _ArgTypes = {long unsigned int}]', declared using local type 'lld::elf::OutputSectionCommand::writeTo(uint8_t*) [with ELFT = llvm::object::ELFType<(llvm::support::endianness)1, true>; uint8_t = unsigned char]::<lambda(size_t)>', is used but never defined [-fpermissive] /usr/local/lib/gcc8/include/c++/bits/std_function.h:666:7: error: 'std::function<_Res(_ArgTypes ...)>::function(_Functor) [with _Functor = lld::elf::OutputSectionCommand::writeTo(uint8_t*) [with ELFT = llvm::object::ELFType<(llvm::support::endianness)0, true>; uint8_t = unsigned char]::<lambda(size_t)>; <template-parameter-2-2> = void; <template-parameter-2-3> = void; _Res = void; _ArgTypes = {long unsigned int}]', declared using local type 'lld::elf::OutputSectionCommand::writeTo(uint8_t*) [with ELFT = llvm::object::ELFType<(llvm::support::endianness)0, true>; uint8_t = unsigned char]::<lambda(size_t)>', is used but never defined [-fpermissive] ninja: build stopped: subcommand failed. *** Error code 1 Stop. make: stopped in /usr/ports/devel/llvm50
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201901110210.x0B2AapI032726>