NetBSD-Bugs archive

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

port-evbmips/57464: stand/sbmips bootstrap programs hardcoded -mips64 conflicts with user's CPUFLAGS



>Number:         57464
>Category:       port-evbmips
>Synopsis:       stand/sbmips bootstrap programs hardcoded -mips64 conflicts with user's CPUFLAGS
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    port-evbmips-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jun 11 10:15:00 +0000 2023
>Originator:     Daniel Hartwig
>Release:        NetBSD-current
>Organization:
>Environment:
>Description:
I have -current sources extracted from tarballs downloaded today. I am building evbmips userland with CPUFLAGS=-mips32r2:

$ ./build.sh -U -u -m evbmips -a mipsel -V CPUFLAGS="-march=mips32r2" release


Build fails in src/sys/arch/evbmips/stand/sbmips:

#   compile  bootxx_cd9660/start.o
/home/daniel/src/NetBSD/src/obj/tooldir.Linux-6.1.0-5-amd64-x86_64/bin/mipsel--netbsd-gcc  -DASSEMBLER -D_LOCORE -mno-abicalls -mips64 -msoft-float -march=mips32r2   -DLIBSA_SINGLE_FILESYSTEM=cd9660  -DBOOTXX_FS_NAME='"ISO 9660"'  -DNO_GETCHAR -DPRIMARY_BOOTBLOCK  -DSECONDARY_LOAD_ADDRESS="0x20004000"  -DSECONDARY_MAX_LOAD="114688"  -DHEAP_LIMIT="(0x20000000 + 262144)"  -DHEAP_START="(0x20004000 + 114688)"  -DLIBSA_FS_SINGLECOMPONENT -DLIBSA_NO_FS_WRITE  -DLIBSA_NO_FS_CLOSE -DLIBSA_NO_FS_SEEK  -DLIBSA_SINGLE_DEVICE=blkdev  -D"blkdevioctl(x,y,z)=EINVAL" -D"blkdevclose(f)=0"  -DLIBSA_NO_TWIDDLE  -DLIBSA_NO_FD_CHECKING  -DLIBSA_NO_RAW_ACCESS  -DLIBSA_NO_DISKLABEL_MSGS --sysroot=/home/daniel/src/NetBSD/src/obj/destdir.evbmips -nostdinc -I/home/daniel/src/NetBSD/src/sys/arch/evbmips/stand/sbmips/bootxx_cd9660/obj -D_STANDALONE -I/home/daniel/src/NetBSD/src/sys/arch/evbmips/stand/sbmips/bootxx_cd9660/../../../../.. -DNETBSD_VERS='"10.0_BETA"' -I/home/daniel/src/NetBSD/src/sys/arch/evbmips/
 stand/sbmips/bootxx_cd9660/../../..  -I/home/daniel/src/NetBSD/src/sys/arch/evbmips/stand/sbmips/bootxx_cd9660/../../../../../lib/libkern/../../../common/lib/libc/quad -I/home/daniel/src/NetBSD/src/sys/arch/evbmips/stand/sbmips/bootxx_cd9660/../../../../../lib/libkern/../../../common/lib/libc/string -I/home/daniel/src/NetBSD/src/sys/arch/evbmips/stand/sbmips/bootxx_cd9660/../../../../../lib/libkern/../../../common/lib/libc/arch/mips/string -I/home/daniel/src/NetBSD/src/sys/arch/evbmips/stand/sbmips/bootxx_cd9660/../../../../../lib/libkern/../../../common/lib/libc/arch/mips/atomic -I/home/daniel/src/NetBSD/src/sys/arch/evbmips/stand/sbmips/bootxx_cd9660/../../../../../lib/libkern/../../../common/lib/libc/hash/sha3 -x assembler-with-cpp -c    /home/daniel/src/NetBSD/src/sys/arch/evbmips/stand/sbmips/bootxx_cd9660/../common/start.S -o start.o
cc1: error: '-mips64' conflicts with the other architecture options, which specify a mips32r2 processor


The conflicting flags come from src/sys/arch/evbmips/stand/sbmips/Makefile.bootprogs.  I am not trying to build for a Broadcom board so I think these programs are unnecessary.
>How-To-Repeat:
$ cd /usr/src
$ ./build.sh -U -u -m evbmips -a mipsel -V CPUFLAGS="-march=mips32r2" release

>Fix:
Removing the -mips64 flags from stand/sbmips/Makefile.bootprogs worked for me.  I don't know if these sbmips bootprogs still work like this since I am not using that particular platform.



Home | Main Index | Thread Index | Old Index