NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

port-arc/57055: Configuration -m arc -a mips64el does not cross-build from Linux amd64



>Number:         57055
>Category:       port-arc
>Synopsis:       Configuration -m arc -a mips64el does not cross-build from Linux amd64
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    port-arc-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Oct 13 12:25:01 +0000 2022
>Originator:     Jan-Benedict Glaw
>Release:        HEAD (github mirror, as of 3323ceb7822f98b3d2693aa26fd55c4ded6d8ba4)
>Organization:
>Environment:
Clean Debian "unstable" docker container:
Linux d37d8e3713f4 5.16.0-4-amd64 #1 SMP PREEMPT Debian 5.16.12-1 (2022-03-08) x86_64 GNU/Linux
>Description:
I'm doing mass-builds for several pieces of free software, among others for NetBSD.

Most of the NetBSD configurations build, but arc / mips64el has problems. Building `tools` works just fine, but afterwards, while building `release`, a wrong compiler is chosen while building (what seems like being) libgcc pieces. During `tools`, it had built the /var/lib/laminar/run/netbsd-arc-mips64el/2/NetBSD-src/obj/tooldir.Linux-5.16.0-4-amd64-x86_64/bin/mipsel--netbsd-gcc compiler, but at `release, it invokes `/var/lib/laminar/run/netbsd-arc-mips64el/2/NetBSD-src/obj/tooldir.Linux-5.16.0-4-amd64-x86_64/bin/mips64el--netbsd-gcc` (missing the "64" part.)
>How-To-Repeat:
./build.sh -P -U -m arc -a mips64el -E -D /var/lib/laminar/run/netbsd-arc-mips64el/2/dest-arc-mips64el -R /var/lib/laminar/run/netbsd-arc-mips64el/2/release-arc-mips64el tools

./build.sh -P -U -u -m arc -a mips64el -E -D /var/lib/laminar/run/netbsd-arc-mips64el/2/dest-arc-mips64el -R /var/lib/laminar/run/netbsd-arc-mips64el/2/release-arc-mips64el release

[...]

[bld rls 2022-10-13 01:53:43] make distribution started at:  Wed Oct 12 16:34:41 UTC 2022
[bld rls 2022-10-13 01:53:43] make distribution finished at: Thu Oct 13 01:53:43 UTC 2022
[bld rls 2022-10-13 01:53:44] release ===> etc  (with: DISTRIBUTION_DONE=1)
[bld rls 2022-10-13 01:53:44] cd /var/lib/laminar/run/netbsd-arc-mips64el/2/NetBSD-src/sys/arch/arc/conf && /var/lib/laminar/run/netbsd-arc-mips64el/2/NetBSD-src/obj/tooldir.Linux-5.16.0-4-am
d64-x86_64/bin/nbconfig  -s /var/lib/laminar/run/netbsd-arc-mips64el/2/NetBSD-src/sys    -b /var/lib/laminar/run/netbsd-arc-mips64el/2/NetBSD-src/sys/arch/arc/compile/obj/GENERIC GENERIC
[bld rls 2022-10-13 01:53:44] Build directory is /var/lib/laminar/run/netbsd-arc-mips64el/2/NetBSD-src/sys/arch/arc/compile/obj/GENERIC
[bld rls 2022-10-13 01:53:44] Don't forget to run "make depend"
[bld rls 2022-10-13 01:53:44] /var/lib/laminar/run/netbsd-arc-mips64el/2/NetBSD-src/obj/tooldir.Linux-5.16.0-4-amd64-x86_64/bin/nbmake -C /var/lib/laminar/run/netbsd-arc-mips64el/2/NetBSD-src
/sys/arch/arc/compile/obj/GENERIC depend &&  /var/lib/laminar/run/netbsd-arc-mips64el/2/NetBSD-src/obj/tooldir.Linux-5.16.0-4-amd64-x86_64/bin/nbmake -C /var/lib/laminar/run/netbsd-arc-mips64
el/2/NetBSD-src/sys/arch/arc/compile/obj/GENERIC &&  /var/lib/laminar/run/netbsd-arc-mips64el/2/NetBSD-src/obj/tooldir.Linux-5.16.0-4-amd64-x86_64/bin/nbmake -C /var/lib/laminar/run/netbsd-ar
c-mips64el/2/NetBSD-src/sys/arch/arc/compile/obj/GENERIC debuginstall
[bld rls 2022-10-13 01:53:44] depending the kern library objects
[bld rls 2022-10-13 01:53:45] #    create  kern/absvdi2.d
[bld rls 2022-10-13 01:53:45] CC=/var/lib/laminar/run/netbsd-arc-mips64el/2/NetBSD-src/obj/tooldir.Linux-5.16.0-4-amd64-x86_64/bin/mipsel--netbsd-gcc /var/lib/laminar/run/netbsd-arc-mips64el/
2/NetBSD-src/obj/tooldir.Linux-5.16.0-4-amd64-x86_64/bin/nbmkdep -f absvdi2.d.tmp  --   -std=gnu99 -Wstack-usage=3584 -Werror -Wall -Wno-main -Wno-format-zero-length -Wpointer-arith -Wmissing
-prototypes -Wstrict-prototypes -Wold-style-definition -Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wno-unreachable-code -Wno-pointer-sign -Wno-attributes -Wno-type-limits -Wno-sign-compare
 -Walloca -Wno-address-of-packed-member  --sysroot=/var/lib/laminar/run/netbsd-arc-mips64el/2/dest-arc-mips64el -I/var/lib/laminar/run/netbsd-arc-mips64el/2/NetBSD-src/sys/lib/libkern/arch/mi
ps --sysroot=/var/lib/laminar/run/netbsd-arc-mips64el/2/dest-arc-mips64el -Darc -I../../. -I/var/lib/laminar/run/netbsd-arc-mips64el/2/NetBSD-src/sys/external/bsd/libnv/dist -I/var/lib/laminar/run/netbsd-arc-mips64el/2/NetBSD-src/sys/external/bsd/acpica/dist -I/var/lib/laminar/run/netbsd-arc-mips64el/2/NetBSD-src/sys/../common/lib/libx86emu -I/var/lib/laminar/run/netbsd-arc-mips64el/2/NetBSD-src/sys/../common/lib/libc/misc -I/var/lib/laminar/run/netbsd-arc-mips64el/2/NetBSD-src/sys/../common/include -I/var/lib/laminar/run/netbsd-arc-mips64el/2/NetBSD-src/sys/arch -I/var/lib/laminar/run/netbsd-arc-mips64el/2/NetBSD-src/sys -nostdinc -DCOMPAT_UTILS -DMIPS3 -DMIPS3_ENABLE_CLOCK_INTR -DCOMPAT_44 -D_KERNEL -D_KERNEL_OPT -std=gnu99 -I/var/lib/laminar/run/netbsd-arc-mips64el/2/NetBSD-src/sys/lib/libkern/../../../common/lib/libc/quad -I/var/lib/laminar/run/netbsd-arc-mips64el/2/NetBSD-src/sys/lib/libkern/../../../common/lib/libc/string -I/var/lib/laminar/run/netbsd-arc-mips64el/2/NetBSD-src/
 sys/lib/libkern/../../../common/lib/libc/arch/mips/string -I/var/lib/laminar/run/netbsd-arc-mips64el/2/NetBSD-src/sys/lib/libkern/../../../common/lib/libc/arch/mips/atomic -I/var/lib/laminar/run/netbsd-arc-mips64el/2/NetBSD-src/sys/lib/libkern/../../../common/lib/libc/hash/sha3 -Wp,-fno-canonical-system-headers -I/var/lib/laminar/run/netbsd-arc-mips64el/2/NetBSD-src/sys/external/bsd/libnv/dist -D__HAVE_ASM_ATOMIC_CAS_UP -I/var/lib/laminar/run/netbsd-arc-mips64el/2/NetBSD-src/sys/lib/libkern/../../../common/lib/libc/quad -I/var/lib/laminar/run/netbsd-arc-mips64el/2/NetBSD-src/sys/lib/libkern/../../../common/lib/libc/string -I/var/lib/laminar/run/netbsd-arc-mips64el/2/NetBSD-src/sys/lib/libkern/../../../common/lib/libc/arch/mips/string -I/var/lib/laminar/run/netbsd-arc-mips64el/2/NetBSD-src/sys/lib/libkern/../../../common/lib/libc/arch/mips/atomic -I/var/lib/laminar/run/netbsd-arc-mips64el/2/NetBSD-src/sys/lib/libkern/../../../common/lib/libc/hash/sha3 -I/var/lib/laminar/run/netbsd-ar
 c-mips64el/2/NetBSD-src/sys/lib/libkern/../../../common/include -I/var/lib/laminar/run/netbsd-arc-mips64el/2/NetBSD-src/sys/lib/libkern/../../../common/libc/hash/sha3 -Wp,-fno-canonical-system-headers -Wno-missing-prototypes  -Wno-old-style-definition  -Wno-strict-prototypes  -Wno-uninitialized    /var/lib/laminar/run/netbsd-arc-mips64el/2/NetBSD-src/sys/external/bsd/compiler_rt/dist/lib/builtins/absvdi2.c &&  mv -f absvdi2.d.tmp absvdi2.d
[bld rls 2022-10-13 01:53:45] nbmkdep: /var/lib/laminar/run/netbsd-arc-mips64el/2/NetBSD-src/obj/tooldir.Linux-5.16.0-4-amd64-x86_64/bin/mipsel--netbsd-gcc: not found: No such file or directory
[bld rls 2022-10-13 01:53:45] 
[bld rls 2022-10-13 01:53:45] *** Failed target:  absvdi2.d

>Fix:
This is clearly a small configuration issue, loosing the "64" somewhere. I'm not (yet?) deep enough into NetBSD sources to point to an exact place...



Home | Main Index | Thread Index | Old Index