Date: Sun, 25 Jul 2021 10:42:15 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 257407] Cross compiling fails on kernel compilation on different stages Message-ID: <bug-257407-227@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D257407 Bug ID: 257407 Summary: Cross compiling fails on kernel compilation on different stages Product: Base System Version: CURRENT Hardware: i386 OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: misho@elwix.org When I try to cross-compile i386 and amd64 architecture under amd64 build h= ost. If I have a good chance to finish kernel compiling and linking then process fails on compiling of kernel modules. >From last update of CURRENT sources. Now I have different issue with compile procedure of kernel. cc -target i386-unknown-freebsd14.0 --sysroot=3D/usr/home/m/work/elwix/build/2.8_x86/obj/i386/usr/home/m/work/f= reebsd.src/i386.i386/tmp -B/usr/home/m/work/elwix/build/2.8_x86/obj/i386/usr/home/m/work/freebsd.src= /i386.i386/tmp/usr/bin -c -O2 -pipe -fno-strict-aliasing -g -nostdinc -I. -I/usr/home/m/work/freebsd.src/sys -I/usr/home/m/work/freebsd.src/sys/contrib/ck/include -I/usr/home/m/work/freebsd.src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -MD=20 -MF.depend.subr_prng.o -MTsubr_prng.o -fdebug-prefix-map=3D./machine=3D/usr/home/m/work/freebsd.src/sys/i386/incl= ude -fdebug-prefix-map=3D./x86=3D/usr/home/m/work/freebsd.src/sys/x86/include -= mno-mmx -mno-sse -msoft-float -ffreestanding -fwrapv -fstack-protector -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=3D__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error=3Dtautological-co= mpare -Wno-error=3Dempty-body -Wno-error=3Dparentheses-equality -Wno-error=3Dunused-function -Wno-error=3Dpointer-sign -Wno-error=3Dshift-negative-value -Wno-address-of-packed-member -Wno-format-zero-length -mno-aes -mno-avx -std=3Diso9899:1999 -Werror /usr/home/m/work/freebsd.src/sys/kern/subr_prng.c Assertion failed: ((EltVT.getSizeInBits() >=3D 64 || (uint64_t)((int64_t)Va= l >> EltVT.getSizeInBits()) + 1 < 2) && "getConstant with a uint64_t value that doesn't fit in the type!"), function getConstant, file /usr/src/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cp= p, line 1337. PLEASE submit a bug report to https://bugs.freebsd.org/submit/ and include = the crash backtrace, preprocessed source, and associated run script. Stack dump: 0. Program arguments: cc -target i386-unknown-freebsd14.0 --sysroot=3D/usr/home/m/work/elwix/build/2.8_x86/obj/i386/usr/home/m/work/f= reebsd.src/i386.i386/tmp -B/usr/home/m/work/elwix/build/2.8_x86/obj/i386/usr/home/m/work/freebsd.src= /i386.i386/tmp/usr/bin -c -O2 -pipe -fno-strict-aliasing -g -nostdinc -I. -I/usr/home/m/work/freebsd.src/sys -I/usr/home/m/work/freebsd.src/sys/contrib/ck/include -I/usr/home/m/work/freebsd.src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -MD -MF.depend.subr_prng.o -MTsubr_prng.o -fdebug-prefix-map=3D./machine=3D/usr/home/m/work/freebsd.src/sys/i386/incl= ude -fdebug-prefix-map=3D./x86=3D/usr/home/m/work/freebsd.src/sys/x86/include -= mno-mmx -mno-sse -msoft-float -ffreestanding -fwrapv -fstack-protector -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=3D__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error=3Dtautological-co= mpare -Wno-error=3Dempty-body -Wno-error=3Dparentheses-equality -Wno-error=3Dunused-function -Wno-error=3Dpointer-sign -Wno-error=3Dshift-negative-value -Wno-address-of-packed-member -Wno-format-zero-length -mno-aes -mno-avx -std=3Diso9899:1999 -Werror /usr/home/m/work/freebsd.src/sys/kern/subr_prng.c 1. <eof> parser at end of file 2. Code generation 3. Running pass 'Function Pass Manager' on module '/usr/home/m/work/freebsd.src/sys/kern/subr_prng.c'. 4. Running pass 'X86 DAG->DAG Instruction Selection' on function '@prn= g32' #0 0x0000000004716471 PrintStackTrace /usr/src/contrib/llvm-project/llvm/lib/Support/Unix/Signals.inc:565:13 #1 0x0000000004714645 RunSignalHandlers /usr/src/contrib/llvm-project/llvm/lib/Support/Signals.cpp:72:18 #2 0x00000000046ae23e HandleCrash /usr/src/contrib/llvm-project/llvm/lib/Support/CrashRecoveryContext.cpp:75:5 #3 0x00000000046ae3c3 CrashRecoverySignalHandler /usr/src/contrib/llvm-project/llvm/lib/Support/CrashRecoveryContext.cpp:0:51 #4 0x0000000805cf3dc0 handle_signal /usr/src/lib/libthr/thread/thr_sig.c:0:3 cc: error: clang frontend command failed with exit code 134 (use -v to see invocation) FreeBSD clang version 12.0.1 (git@github.com:llvm/llvm-project.git llvmorg-12.0.1-rc2-0-ge7dac564cd0e) Target: i386-unknown-freebsd14.0 Thread model: posix InstalledDir: /usr/bin cc: note: diagnostic msg:=20 ******************** PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT: Preprocessed source(s) and associated run script(s) are located at: cc: note: diagnostic msg: /tmp/subr_prng-3bfc0b.c cc: note: diagnostic msg: /tmp/subr_prng-3bfc0b.sh cc: note: diagnostic msg:=20 ******************** *** Error code 134 --=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-257407-227>