Date: Sat, 26 Nov 2016 19:26:07 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 214855] head -r309179 TARGET_ARCH=powerpc64 clang 3.9.0 based cross build: powerpc.powerpc64/usr/src/tmp/usr/bin/ld: BFD 2.17.50 [FreeBSD] 2007-07-03 internal error Message-ID: <bug-214855-8@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D214855 Bug ID: 214855 Summary: head -r309179 TARGET_ARCH=3Dpowerpc64 clang 3.9.0 based cross build: powerpc.powerpc64/usr/src/tmp/usr/bin/ld: BFD 2.17.50 [FreeBSD] 2007-07-03 internal error Product: Base System Version: CURRENT Hardware: powerpc OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bin Assignee: freebsd-bugs@FreeBSD.org Reporter: markmi@dsl-only.net [From a report I made to the lists. . .] I updated to head -r309197 (with a work around for -r309144 breaking the build). This was on amd64, then used it to try to cross buildworld using clang 3.9.0 for TARGET_ARCH=3Dpowerpc64. It failed. I used: WITH_CROSS_COMPILER=3D WITHOUT_SYSTEM_COMPILER=3D # WITH_LIBCPLUSPLUS=3D WITH_BINUTILS_BOOTSTRAP=3D WITH_CLANG_BOOTSTRAP=3D WITH_CLANG=3D WITH_CLANG_IS_CC=3D . . . WITHOUT_ELFTOOLCHAIN_BOOTSTRAP=3D (Full material listed later.) The failure report was: --- as.full --- /usr/obj/powerpc64vtsc_clang_world/powerpc.powerpc64/usr/src/tmp/usr/bin/ld: BFD 2.17.50 [FreeBSD] 2007-07-03 internal error, aborting at /usr/src/gnu/usr.bin/binutils/libbfd/../../../../contrib/binutils/bfd/elf64= -ppc.c line 11029 in bfd_boolean ppc64_elf_relocate_section(bfd *, struct bfd_link_info *, bfd *, asection *, bfd_byte *, Elf_Internal_Rela *, Elf_Internal_Sym *, asection **) /usr/obj/powerpc64vtsc_clang_world/powerpc.powerpc64/usr/src/tmp/usr/bin/ld: Please report this bug. cc: error: linker command failed with exit code 1 (use -v to see invocation) *** [as.full] Error code 1 make[6]: stopped in /usr/src/gnu/usr.bin/binutils/as .ERROR_TARGET=3D'as.full' .ERROR_META_FILE=3D'/usr/obj/powerpc64vtsc_clang_world/powerpc.powerpc64/us= r/src/gnu/usr.bin/binutils/as/as.full.meta' .MAKE.LEVEL=3D'6' MAKEFILE=3D'' .MAKE.MODE=3D'meta missing-filemon=3Dyes missing-meta=3Dyes silent=3Dyes ve= rbose' .CURDIR=3D'/usr/src/gnu/usr.bin/binutils/as' .MAKE=3D'make' .OBJDIR=3D'/usr/obj/powerpc64vtsc_clang_world/powerpc.powerpc64/usr/src/gnu= /usr.bin/binutils/as' .TARGETS=3D'all' DESTDIR=3D'/usr/obj/powerpc64vtsc_clang_world/powerpc.powerpc64/usr/src/tmp' LD_LIBRARY_PATH=3D'' MACHINE=3D'powerpc' MACHINE_ARCH=3D'powerpc64' MAKEOBJDIRPREFIX=3D'/usr/obj/powerpc64vtsc_clang_world/powerpc.powerpc64' MAKESYSPATH=3D'/usr/src/share/mk' MAKE_VERSION=3D'20160818' PATH=3D'/usr/obj/powerpc64vtsc_clang_world/powerpc.powerpc64/usr/src/tmp/le= gacy/usr/sbin:/usr/obj/powerpc64vtsc_clang_world/powerpc.powerpc64/usr/src/= tmp/legacy/usr/bin:/usr/obj/powerpc64vtsc_clang_world/powerpc.powerpc64/usr= /src/tmp/legacy/bin:/usr/obj/powerpc64vtsc_clang_world/powerpc.powerpc64/us= r/src/tmp/usr/sbin:/usr/obj/powerpc64vtsc_clang_world/powerpc.powerpc64/usr= /src/tmp/usr/bin:/sbin:/bin:/usr/sbin:/usr/bin' SRCTOP=3D'/usr/src' OBJTOP=3D'/usr/obj/powerpc64vtsc_clang_world/powerpc.powerpc64/usr/src' .MAKE.MAKEFILES=3D'/usr/src/share/mk/sys.mk /usr/src/share/mk/local.sys.env= .mk /usr/src/share/mk/src.sys.env.mk /root/src.configs/src.conf.powerpc64-clang-bootstrap.amd64-host /usr/src/share/mk/bsd.mkopt.mk /usr/src/share/mk/bsd.suffixes.mk /root/src.configs/make.conf /usr/src/share/mk/local.sys.mk /usr/src/share/mk/src.sys.mk /dev/null /usr/src/gnu/usr.bin/binutils/as/Makefile /usr/src/gnu/usr.bin/binutils/as/../../Makefile.inc /usr/src/gnu/usr.bin/binutils/as/../../../Makefile.inc /usr/src/gnu/usr.bin/binutils/as/../Makefile.inc0 /usr/src/share/mk/src.opt= s.mk /usr/src/share/mk/bsd.own.mk /usr/src/share/mk/bsd.opts.mk /usr/src/share/mk/bsd.cpu.mk /usr/src/share/mk/bsd.compiler.mk /usr/src/share/mk/bsd.compiler.mk /usr/src/share/mk/bsd.prog.mk /usr/src/share/mk/bsd.init.mk /usr/src/share/mk/local.init.mk /usr/src/share/mk/src.init.mk /usr/src/gnu/usr.bin/binutils/as/../Makefile.= inc /usr/src/share/mk/bsd.libnames.mk /usr/src/share/mk/src.libnames.mk /usr/src/share/mk/bsd.nls.mk /usr/src /share/mk/bsd.confs.mk /usr/src/share/mk/bsd.files.mk /usr/src/share/mk/bsd.incs.mk /usr/src/share/mk/bsd.links.mk /usr/src/share/mk/bsd.man.mk /usr/src/share/mk/bsd.dep.mk /usr/src/share/mk/bsd.clang-analyze.mk /usr/src/share/mk/bsd.obj.mk /usr/src/share/mk/bsd.subdir.mk /usr/src/share/mk/bsd.sys.mk' .PATH=3D'. /usr/src/gnu/usr.bin/binutils/as /usr/src/gnu/usr.bin/binutils/as/../../../../contrib/binutils/gas /usr/src/gnu/usr.bin/binutils/as/../../../../contrib/binutils/gas/config' 1 error . . . # more /usr/obj/powerpc64vtsc_clang_world/powerpc.powerpc64/usr/src/gnu/usr.bin/bi= nutils/as/as.full.meta # Meta data file /usr/obj/powerpc64vtsc_clang_world/powerpc.powerpc64/usr/src/gnu/usr.bin/bi= nutils/as/as.full.meta CMD cc -target powerpc64-unknown-freebsd12.0 --sysroot=3D/usr/obj/powerpc64vtsc_clang_world/powerpc.powerpc64/usr/src/tmp -B/usr/obj/powerpc64vtsc_clang_world/powerpc.powerpc64/usr/src/tmp/usr/bin = -O2 -pipe -DBFD_DEFAULT_TARGET_SIZE=3D64 -I. -I/usr/src/gnu/usr.bin/binutils/as -I/usr/src/gnu/usr.bin/binutils/as/../libbfd -I/usr/obj/powerpc64vtsc_clang_world/powerpc.powerpc64/usr/src/gnu/usr.bin/= binutils/as/../libbfd -I/usr/src/gnu/usr.bin/binutils/as/../../../../contrib/binutils/include -DDEFAULT_ARCH=3D\"powerpc64\" -DTARGET_CPU=3D\"powerpc64\" -DTARGET_OS=3D\= "freebsd\" -DTARGET_CANONICAL=3D\"powerpc64-unknown-freebsd\" -DTARGET_ALIAS=3D\"powerpc64-unknown-freebsd\" -DVERSION=3D\""2.17.50 [Free= BSD] 2007-07-03"\" -D_GNU_SOURCE -I/usr/src/gnu/usr.bin/binutils/as/../../../../contrib/binutils/gas -I/usr/src/gnu/usr.bin/binutils/as/../../../../contrib/binutils/bfd -I/usr/src/gnu/usr.bin/binutils/as/../../../../contrib/binutils/gas/config -I/usr/src/gnu/usr.bin/binutils/as/../../../../contrib/binutils -I/ usr/src/gnu/usr.bin/binutils/as -I/usr/src/gnu/usr.bin/binutils/as/powerpc-freebsd -g -std=3Dgnu99 -fstack-protector-strong -Wsystem-headers -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-ar= ith -Wno-uninitialized -Wno-pointer-sign -Wno-empty-body -Wno-string-plus-int -Wno-unused-const-variable -Wno-tautological-compare -Wno-unused-value -Wno-parentheses-equality -Wno-unused-function -Wno-enum-conversion -Wno-unused-local-typedef -Qunused-arguments -static -o as.full app.o as.o atof-generic.o atof-ieee.o cond.o depend.o dw2gencfi.o dwarf2dbg.o ecoff.o ehopt.o expr.o flonum-copy.o flonum-konst.o flonum-mult.o frags.o hash.o input-file.o input-scrub.o listing.o literal.o macro.o messages.o obj-elf.o output-file.o read.o sb.o stabs.o subsegs.o symbols.o write.o tc-ppc.o=20 ../libbfd/libbfd.a ../libiberty/libiberty.a ../libopcodes/libopcodes.a CWD /usr/obj/powerpc64vtsc_clang_world/powerpc.powerpc64/usr/src/gnu/usr.bin/bi= nutils/as TARGET as.full -- command output -- /usr/obj/powerpc64vtsc_clang_world/powerpc.powerpc64/usr/src/tmp/usr/bin/ld: BFD 2.17.50 [FreeBSD] 2007-07-03 internal error, aborting at /usr/src/gnu/usr.bin/binutils/libbfd/../../../../contrib/binutils/bfd/elf64= -ppc.c line 11029 in bfd_boolean ppc64_elf_relocate_section(bfd *, struct bfd_link_info *, bfd *, asection *, bfd_byte *, Elf_Internal_Rela *, Elf_Internal_Sym *, asection **) /usr/obj/powerpc64vtsc_clang_world/powerpc.powerpc64/usr/src/tmp/usr/bin/ld: Please report this bug. cc: error: linker command failed with exit code 1 (use -v to see invocation) *** Error code 1 . . . Script started on Sat Nov 26 09:03:53 2016 Command: env __MAKE_CONF=3D/root/src.configs/make.conf SRCCONF=3D/dev/null SRC_ENV_CONF=3D/root/src.configs/src.conf.powerpc64-clang-bootstrap.amd64-h= ost WITH_META_MODE=3Dyes MAKEOBJDIRPREFIX=3D/usr/obj/powerpc64vtsc_clang_world = make -j 5 buildworld --- buildworld --- . . . # more ~/src.configs/src.conf.powerpc64-clang-bootstrap.amd64-host TO_TYPE=3Dpowerpc64 # KERNCONF=3DGENERIC64vtsc-NODBG TARGET=3Dpowerpc .if ${.MAKE.LEVEL} =3D=3D 0 TARGET_ARCH=3D${TO_TYPE} .export TARGET_ARCH .endif # WITH_CROSS_COMPILER=3D WITHOUT_SYSTEM_COMPILER=3D # WITH_LIBCPLUSPLUS=3D WITH_BINUTILS_BOOTSTRAP=3D WITH_CLANG_BOOTSTRAP=3D WITH_CLANG=3D WITH_CLANG_IS_CC=3D WITH_CLANG_FULL=3D WITH_CLANG_EXTRAS=3D WITH_LLDB=3D # WITH_BOOT=3D WITH_LIB32=3D # WITHOUT_ELFTOOLCHAIN_BOOTSTRAP=3D WITHOUT_GCC_BOOTSTRAP=3D WITHOUT_GCC=3D WITHOUT_GCC_IS_CC=3D WITHOUT_GNUCXX=3D # NO_WERROR=3D #WERROR=3D MALLOC_PRODUCTION=3D # WITH_DEBUG_FILES=3D # more ~/src.configs/make.conf=20 CFLAGS.gcc+=3D -v --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-214855-8>