Current-Users archive

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

Re: Fix for kern/51772 breaks linking multi-config kernels?



Dear John,

On 2017-01-04, John D. Baker wrote:
> Since this commit:
> 
>   http://mail-index.netbsd.org/source-changes/2017/01/04/msg080495.html
> 
> My custom kernel with multiple "config" statments:
> 
> include         "arch/evbmips/conf/LOONGSON"
> [...]
> no config       netbsd
> config          netbsd_nfs      root on ? type nfs dumps on wd0j
> config          netbsd_sd0      root on sd0a type ffs dumps on wd0j
> config          netbsd_sd1      root on sd1a type ffs
> [...]
> 
> fails linking with:
> 
> [...]
> #      link  YEELOONG/netbsd_nfs
> /d0/build/current/tools/amd64/bin/mips64el--netbsd-ld -Map netbsd_nfs.map --cref -m elf64ltsmip -T netbsd_nfs.ldscript -Ttext 0xFFFFFFFF80200000 -e start -G 0 -X -o netbsd_nfs ${SYSTEM_OBJ:N*swap*netbsd_nfs*} ${EXTRA_OBJ} vers.o swapnetbsd_nfs.o
> swapnetbsd_sd1.o:(.data+0x0): multiple definition of `rootfstype'
> swapnetbsd_sd0.o:(.data+0x0): first defined here
> swapnetbsd_sd1.o:(.data+0x8): multiple definition of `dumpdev'
> swapnetbsd_sd0.o:(.data+0x8): first defined here
> swapnetbsd_sd1.o:(.data+0x10): multiple definition of `dumpspec'
> swapnetbsd_sd0.o:(.data+0x10): first defined here
> swapnetbsd_sd1.o:(.data+0x18): multiple definition of `rootdev'
> swapnetbsd_sd0.o:(.data+0x18): first defined here
> swapnetbsd_sd1.o:(.data+0x20): multiple definition of `rootspec'
> swapnetbsd_sd0.o:(.data+0x20): first defined here
> swapnetbsd_nfs.o:(.data+0x0): multiple definition of `rootfstype'
> swapnetbsd_sd0.o:(.data+0x0): first defined here
> swapnetbsd_nfs.o:(.data+0x8): multiple definition of `dumpdev'
> swapnetbsd_sd0.o:(.data+0x8): first defined here
> swapnetbsd_nfs.o:(.data+0x10): multiple definition of `dumpspec'
> swapnetbsd_sd0.o:(.data+0x10): first defined here
> swapnetbsd_nfs.o:(.data+0x18): multiple definition of `rootdev'
> swapnetbsd_sd0.o:(.data+0x18): first defined here
> swapnetbsd_nfs.o:(.data+0x20): multiple definition of `rootspec'
> swapnetbsd_sd0.o:(.data+0x20): first defined here
> /d0/build/current/tools/amd64/bin/mips64el--netbsd-ld: Warning: netbsd_nfs uses -msoft-float (set by locore.o), mips_fpu.o uses -mhard-float
> /d0/build/current/tools/amd64/bin/mips64el--netbsd-ld: Warning: netbsd_nfs uses -msoft-float (set by locore.o), fp.o uses -mhard-float
> *** [netbsd_nfs] Error code 1
> 
> nbmake: stopped in /d0/build/current/obj/mips64el/sys/arch/evbmips/compile/YEELOONG
> 1 error
> 
> nbmake: stopped in /d0/build/current/obj/mips64el/sys/arch/evbmips/compile/YEELOONG
> 
> ERROR: Failed to make all in "/d0/build/current/obj/mips64el/sys/arch/evbmips/compile/YEELOONG"
> *** BUILD ABORTED ***
> 
> 
> Perhaps this is an update-build issue?  I'll wipe my ".../compile"
> directory and try again.

Apologies, my "fix" broke your build. I wonder why it worked before,
probably becuase you have "netbsd" as part of your kernel name?

Maybe the change should be reverted until the correct solution is found.

-- 
Kind regards,

Yorick Hardy


Home | Main Index | Thread Index | Old Index