Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 13 May 2017 20:04:35 -0700
From:      Adrian Chadd <adrian@freebsd.org>
To:        "freebsd-mips@freebsd.org" <freebsd-mips@freebsd.org>
Subject:   mips32: -head doesn't build with gcc-6.2 ?
Message-ID:  <CAJ-VmonyW1PKeYaMpTAmEHFuyo11mkLxpQs1M_eMUGdev-xO8Q@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
hiya,

I get this when building freebsd-head for carambola2 on a freshly
updated -head box.

MK_AUTO_OBJ=no MK_TESTS=no  UPDATE_DEPENDFILE=no  _RECURSING_CRUNCH=1
CC="/usr/local/bin/mips-unknown-freebsd12.0-gcc -isystem
/home/adrian/work/freebsd/head-embedded/src/../obj/mips_ap//mips.mips/usr/home/adrian/work/freebsd/head-embedded/src/tmp/usr/include
-L/home/adrian/work/freebsd/head-embedded/src/../obj/mips_ap//mips.mips/usr/home/adrian/work/freebsd/head-embedded/src/tmp/usr/lib
-B/home/adrian/work/freebsd/head-embedded/src/../obj/mips_ap//mips.mips/usr/home/adrian/work/freebsd/head-embedded/src/tmp/usr/lib
--sysroot=/home/adrian/work/freebsd/head-embedded/src/../obj/mips_ap//mips.mips/usr/home/adrian/work/freebsd/head-embedded/src/tmp
-B/usr/local/mips-freebsd/bin/ -O -pipe -G0 -EB -mabi=32 -msoft-float
-march=mips32  -std=gnu99 -Wno-error=address -Wno-error=array-bounds
-Wno-error=attributes -Wno-error=bool-compare -Wno-error=cast-align
-Wno-error=clobbered -Wno-error=enum-compare -Wno-error=extra
-Wno-error=inline -Wno-error=logical-not-parentheses
-Wno-error=strict-aliasing -Wno-error=uninitialized
-Wno-error=unused-but-set-variable -Wno-error=unused-function
-Wno-error=unused-value -Wno-error=strict-overflow
-Wno-error=misleading-indentation -Wno-error=nonnull-compare
-Wno-error=shift-negative-value -Wno-error=tautological-compare
-Wno-error=unused-const-variable      -EB -mabi=32"
CXX="/usr/local/bin/mips-unknown-freebsd12.0-g++ -isystem
/home/adrian/work/freebsd/head-embedded/src/../obj/mips_ap//mips.mips/usr/home/adrian/work/freebsd/head-embedded/src/tmp/usr/include/c++/v1
-std=c++11  -nostdinc++ -isystem
/home/adrian/work/freebsd/head-embedded/src/../obj/mips_ap//mips.mips/usr/home/adrian/work/freebsd/head-embedded/src/tmp/usr/include
-L/home/adrian/work/freebsd/head-embedded/src/../obj/mips_ap//mips.mips/usr/home/adrian/work/freebsd/head-embedded/src/tmp/usr/lib
-B/home/adrian/work/freebsd/head-embedded/src/../obj/mips_ap//mips.mips/usr/home/adrian/work/freebsd/head-embedded/src/tmp/usr/lib
--sysroot=/home/adrian/work/freebsd/head-embedded/src/../obj/mips_ap//mips.mips/usr/home/adrian/work/freebsd/head-embedded/src/tmp
-B/usr/local/mips-freebsd/bin/ -O -pipe -G0 -EB -mabi=32 -msoft-float
-march=mips32 -Wno-error=address -Wno-error=array-bounds
-Wno-error=attributes -Wno-error=bool-compare -Wno-error=cast-align
-Wno-error=clobbered -Wno-error=enum-compare -Wno-error=extra
-Wno-error=inline -Wno-error=logical-not-parentheses
-Wno-error=strict-aliasing -Wno-error=uninitialized
-Wno-error=unused-but-set-variable -Wno-error=unused-function
-Wno-error=unused-value -Wno-error=strict-overflow
-Wno-error=misleading-indentation -Wno-error=nonnull-compare
-Wno-error=shift-negative-value -Wno-error=tautological-compare
-Wno-error=unused-const-variable     -EB -mabi=32"  make
.MAKE.MODE="normal curdirOk=yes"  .MAKE.META.IGNORE_PATHS=""  -f
rescue.mk exe
/usr/local/bin/mips-unknown-freebsd12.0-gcc -isystem
/home/adrian/work/freebsd/head-embedded/src/../obj/mips_ap//mips.mips/usr/home/adrian/work/freebsd/head-embedded/src/tmp/usr/include
-L/home/adrian/work/freebsd/head-embedded/src/../obj/mips_ap//mips.mips/usr/home/adrian/work/freebsd/head-embedded/src/tmp/usr/lib
-B/home/adrian/work/freebsd/head-embedded/src/../obj/mips_ap//mips.mips/usr/home/adrian/work/freebsd/head-embedded/src/tmp/usr/lib
--sysroot=/home/adrian/work/freebsd/head-embedded/src/../obj/mips_ap//mips.mips/usr/home/adrian/work/freebsd/head-embedded/src/tmp
-B/usr/local/mips-freebsd/bin/ -O -pipe -G0 -EB -mabi=32 -msoft-float
-march=mips32  -std=gnu99 -Wno-error=address -Wno-error=array-bounds
-Wno-error=attributes -Wno-error=bool-compare -Wno-error=cast-align
-Wno-error=clobbered -Wno-error=enum-compare -Wno-error=extra
-Wno-error=inline -Wno-error=logical-not-parentheses
-Wno-error=strict-aliasing -Wno-error=uninitialized
-Wno-error=unused-but-set-variable -Wno-error=unused-function
-Wno-error=unused-value -Wno-error=strict-overflow
-Wno-error=misleading-indentation -Wno-error=nonnull-compare
-Wno-error=shift-negative-value -Wno-error=tautological-compare
-Wno-error=unused-const-variable      -EB -mabi=32 -static -o rescue
rescue.o cat.lo chflags.lo chio.lo chmod.lo cp.lo date.lo dd.lo df.lo
echo.lo ed.lo expr.lo getfacl.lo hostname.lo kenv.lo kill.lo ln.lo
ls.lo mkdir.lo mv.lo pkill.lo ps.lo pwd.lo realpath.lo rm.lo rmdir.lo
setfacl.lo sh.lo sleep.lo stty.lo sync.lo test.lo rcp.lo csh.lo
badsect.lo camcontrol.lo clri.lo devfs.lo dmesg.lo dump.lo dumpfs.lo
dumpon.lo fsck.lo fsck_ffs.lo fsck_msdosfs.lo fsdb.lo fsirand.lo
gbde.lo geom.lo ifconfig.lo init.lo kldconfig.lo kldload.lo kldstat.lo
kldunload.lo ldconfig.lo md5.lo mdconfig.lo mdmfs.lo mknod.lo mount.lo
mount_cd9660.lo mount_msdosfs.lo mount_nfs.lo mount_nullfs.lo
mount_udf.lo mount_unionfs.lo newfs.lo newfs_msdos.lo nos-tun.lo
ping.lo reboot.lo restore.lo rcorder.lo route.lo savecore.lo
shutdown.lo spppcontrol.lo swapon.lo sysctl.lo tunefs.lo umount.lo
ccdconfig.lo ping6.lo rtsol.lo ipf.lo routed.lo rtquery.lo zfs.lo
zpool.lo dhclient.lo head.lo mt.lo sed.lo tail.lo tee.lo gzip.lo
bzip2.lo less.lo xz.lo zstd.lo tar.lo nc.lo vi.lo id.lo iscsictl.lo
zdb.lo chroot.lo chown.lo iscsid.lo
/home/adrian/work/freebsd/head-embedded/src/../obj/mips_ap//mips.mips/usr/home/adrian/work/freebsd/head-embedded/src/rescue/rescue/../librescue/exec.o
/home/adrian/work/freebsd/head-embedded/src/../obj/mips_ap//mips.mips/usr/home/adrian/work/freebsd/head-embedded/src/rescue/rescue/../librescue/getusershell.o
/home/adrian/work/freebsd/head-embedded/src/../obj/mips_ap//mips.mips/usr/home/adrian/work/freebsd/head-embedded/src/rescue/rescue/../librescue/login_class.o
/home/adrian/work/freebsd/head-embedded/src/../obj/mips_ap//mips.mips/usr/home/adrian/work/freebsd/head-embedded/src/rescue/rescue/../librescue/popen.o
/home/adrian/work/freebsd/head-embedded/src/../obj/mips_ap//mips.mips/usr/home/adrian/work/freebsd/head-embedded/src/rescue/rescue/../librescue/rcmdsh.o
/home/adrian/work/freebsd/head-embedded/src/../obj/mips_ap//mips.mips/usr/home/adrian/work/freebsd/head-embedded/src/rescue/rescue/../librescue/sysctl.o
/home/adrian/work/freebsd/head-embedded/src/../obj/mips_ap//mips.mips/usr/home/adrian/work/freebsd/head-embedded/src/rescue/rescue/../librescue/system.o
-lcrypt -ledit -ljail -lkvm -lelf -ll -ltermcapw -lutil -lxo -l80211
-lalias -lcam -lncursesw -ldevstat -lipsec -llzma -lavl -lzpool
-lzfs_core -lzfs -lnvpair -lpthread -luutil -lumem -lgeom -lbsdxml
-lkiconv -lmt -lsbuf -lufs -lz -lbz2 -lprivatezstd -larchive -lcrypto
-lmd -lm
nc.lo: In function `_$$hide$$ nc.lo main':
(.text+0x2ab8): warning: warning: mktemp() possibly used unsafely;
consider using mkstemp()
zstd.lo: In function `_$$hide$$ zstd.lo FIO_decompressSrcFile':
_$$hide$$ zstd.lo fileio.c:(.text+0x8e64): undefined reference to `__bswapsi2'
/home/adrian/work/freebsd/head-embedded/src/../obj/mips_ap//mips.mips/usr/home/adrian/work/freebsd/head-embedded/src/tmp/usr/lib/libprivatezstd.a(cover.o):
In function `COVER_cmp8':
cover.c:(.text+0x324): undefined reference to `__bswapdi2'
cover.c:(.text+0x354): undefined reference to `__bswapdi2'
/home/adrian/work/freebsd/head-embedded/src/../obj/mips_ap//mips.mips/usr/home/adrian/work/freebsd/head-embedded/src/tmp/usr/lib/libprivatezstd.a(zstd_decompress.o):
In function `ZSTD_loadEntropy':
zstd_decompress.c:(.text+0x630): undefined reference to `__bswapsi2'
/home/adrian/work/freebsd/head-embedded/src/../obj/mips_ap//mips.mips/usr/home/adrian/work/freebsd/head-embedded/src/tmp/usr/lib/libprivatezstd.a(zstd_decompress.o):
In function `ZSTD_isFrame':
zstd_decompress.c:(.text+0x948): undefined reference to `__bswapsi2'
/home/adrian/work/freebsd/head-embedded/src/../obj/mips_ap//mips.mips/usr/home/adrian/work/freebsd/head-embedded/src/tmp/usr/lib/libprivatezstd.a(zstd_decompress.o):
In function `ZSTD_getFrameParams':
zstd_decompress.c:(.text+0xa08): undefined reference to `__bswapsi2'
zstd_decompress.c:(.text+0xa98): undefined reference to `__bswapsi2'
zstd_decompress.c:(.text+0xbd0): undefined reference to `__bswapsi2'
/home/adrian/work/freebsd/head-embedded/src/../obj/mips_ap//mips.mips/usr/home/adrian/work/freebsd/head-embedded/src/tmp/usr/lib/libprivatezstd.a(zstd_decompress.o):zstd_decompress.c:(.text+0xc38):
more undefined references to `__bswapsi2' follow
/home/adrian/work/freebsd/head-embedded/src/../obj/mips_ap//mips.mips/usr/home/adrian/work/freebsd/head-embedded/src/tmp/usr/lib/libprivatezstd.a(zstd_decompress.o):
In function `ZSTD_getFrameParams':
zstd_decompress.c:(.text+0xc60): undefined reference to `__bswapdi2'
/home/adrian/work/freebsd/head-embedded/src/../obj/mips_ap//mips.mips/usr/home/adrian/work/freebsd/head-embedded/src/tmp/usr/lib/libprivatezstd.a(zstd_decompress.o):
In function `ZSTD_decodeLiteralsBlock':
zstd_decompress.c:(.text+0xf50): undefined reference to `__bswapsi2'
/home/adrian/work/freebsd/head-embedded/src/../obj/mips_ap//mips.mips/usr/home/adrian/work/freebsd/head-embedded/src/tmp/usr/lib/libprivatezstd.a(zstd_decompress.o):
In function `ZSTD_decompressBlock_internal':
zstd_decompress.c:(.text+0x1684): undefined reference to `__bswapsi2'
zstd_decompress.c:(.text+0x18c4): undefined reference to `__bswapsi2'
zstd_decompress.c:(.text+0x18f8): undefined reference to `__bswapsi2'
zstd_decompress.c:(.text+0x1954): undefined reference to `__bswapsi2'
/home/adrian/work/freebsd/head-embedded/src/../obj/mips_ap//mips.mips/usr/home/adrian/work/freebsd/head-embedded/src/tmp/usr/lib/libprivatezstd.a(zstd_decompress.o):zstd_decompress.c:(.text+0x1988):
more undefined references to `__bswapsi2' follow
/home/adrian/work/freebsd/head-embedded/src/../obj/mips_ap//mips.mips/usr/home/adrian/work/freebsd/head-embedded/src/tmp/usr/lib/libprivatezstd.a(zstd_compress.o):
In function `ZSTD_hashPtr':
zstd_compress.c:(.text+0x994): undefined reference to `__bswapdi2'
zstd_compress.c:(.text+0xa24): undefined reference to `__bswapdi2'
zstd_compress.c:(.text+0xad0): undefined reference to `__bswapdi2'
/home/adrian/work/freebsd/head-embedded/src/../obj/mips_ap//mips.mips/usr/home/adrian/work/freebsd/head-embedded/src/tmp/usr/lib/libprivatezstd.a(zstd_compress.o):
In function `ZSTD_writeFrameHeader':
zstd_compress.c:(.text+0x4d38): undefined reference to `__bswapsi2'
zstd_compress.c:(.text+0x4d80): undefined reference to `__bswapsi2'
zstd_compress.c:(.text+0x4da8): undefined reference to `__bswapdi2'
/home/adrian/work/freebsd/head-embedded/src/../obj/mips_ap//mips.mips/usr/home/adrian/work/freebsd/head-embedded/src/tmp/usr/lib/libprivatezstd.a(zstd_compress.o):
In function `ZSTD_noCompressLiterals':
zstd_compress.c:(.text+0x4ea0): undefined reference to `__bswapsi2'
/home/adrian/work/freebsd/head-embedded/src/../obj/mips_ap//mips.mips/usr/home/adrian/work/freebsd/head-embedded/src/tmp/usr/lib/libprivatezstd.a(zstd_compress.o):
In function `FSE_flushCState':
zstd_compress.c:(.text+0x4f78): undefined reference to `__bswapsi2'
/home/adrian/work/freebsd/head-embedded/src/../obj/mips_ap//mips.mips/usr/home/adrian/work/freebsd/head-embedded/src/tmp/usr/lib/libprivatezstd.a(zstd_compress.o):
In function `ZSTD_insertBtAndGetAllMatches':
zstd_compress.c:(.text+0xf0c4): undefined reference to `__bswapsi2'
zstd_compress.c:(.text+0xf110): undefined reference to `__bswapsi2'
/home/adrian/work/freebsd/head-embedded/src/../obj/mips_ap//mips.mips/usr/home/adrian/work/freebsd/head-embedded/src/tmp/usr/lib/libprivatezstd.a(zstd_compress.o):
In function `ZSTD_loadZstdDictionary':
zstd_compress.c:(.text+0x18f40): undefined reference to `__bswapsi2'
/home/adrian/work/freebsd/head-embedded/src/../obj/mips_ap//mips.mips/usr/home/adrian/work/freebsd/head-embedded/src/tmp/usr/lib/libprivatezstd.a(zstd_compress.o):zstd_compress.c:(.text+0x19204):
more undefined references to `__bswapsi2' follow
/home/adrian/work/freebsd/head-embedded/src/../obj/mips_ap//mips.mips/usr/home/adrian/work/freebsd/head-embedded/src/tmp/usr/lib/libprivatezstd.a(xxhash.o):
In function `ZSTD_XXH64':
xxhash.c:(.text+0x798): undefined reference to `__bswapdi2'
xxhash.c:(.text+0x818): undefined reference to `__bswapdi2'
xxhash.c:(.text+0x898): undefined reference to `__bswapdi2'
xxhash.c:(.text+0x918): undefined reference to `__bswapdi2'
xxhash.c:(.text+0x9b8): undefined reference to `__bswapdi2'
/home/adrian/work/freebsd/head-embedded/src/../obj/mips_ap//mips.mips/usr/home/adrian/work/freebsd/head-embedded/src/tmp/usr/lib/libprivatezstd.a(xxhash.o):xxhash.c:(.text+0xcdc):
more undefined references to `__bswapdi2' follow
/home/adrian/work/freebsd/head-embedded/src/../obj/mips_ap//mips.mips/usr/home/adrian/work/freebsd/head-embedded/src/tmp/usr/lib/libprivatezstd.a(xxhash.o):
In function `ZSTD_XXH64':
xxhash.c:(.text+0xddc): undefined reference to `__bswapsi2'
xxhash.c:(.text+0x10c8): undefined reference to `__bswapdi2'
xxhash.c:(.text+0x115c): undefined reference to `__bswapdi2'
xxhash.c:(.text+0x11f0): undefined reference to `__bswapdi2'
xxhash.c:(.text+0x1284): undefined reference to `__bswapdi2'
xxhash.c:(.text+0x1674): undefined reference to `__bswapdi2'
xxhash.c:(.text+0x18b0): undefined reference to `__bswapsi2'
/home/adrian/work/freebsd/head-embedded/src/../obj/mips_ap//mips.mips/usr/home/adrian/work/freebsd/head-embedded/src/tmp/usr/lib/libprivatezstd.a(xxhash.o):
In function `ZSTD_XXH32_update':
xxhash.c:(.text+0x1d24): undefined reference to `__bswapsi2'
xxhash.c:(.text+0x1d64): undefined reference to `__bswapsi2'
xxhash.c:(.text+0x1da4): undefined reference to `__bswapsi2'
xxhash.c:(.text+0x1de4): undefined reference to `__bswapsi2'
/home/adrian/work/freebsd/head-embedded/src/../obj/mips_ap//mips.mips/usr/home/adrian/work/freebsd/head-embedded/src/tmp/usr/lib/libprivatezstd.a(xxhash.o):xxhash.c:(.text+0x1f04):
more undefined references to `__bswapsi2' follow
/home/adrian/work/freebsd/head-embedded/src/../obj/mips_ap//mips.mips/usr/home/adrian/work/freebsd/head-embedded/src/tmp/usr/lib/libprivatezstd.a(xxhash.o):
In function `ZSTD_XXH64_update':
xxhash.c:(.text+0x2368): undefined reference to `__bswapdi2'
xxhash.c:(.text+0x23fc): undefined reference to `__bswapdi2'
xxhash.c:(.text+0x2490): undefined reference to `__bswapdi2'
xxhash.c:(.text+0x2524): undefined reference to `__bswapdi2'
xxhash.c:(.text+0x26e0): undefined reference to `__bswapdi2'
/home/adrian/work/freebsd/head-embedded/src/../obj/mips_ap//mips.mips/usr/home/adrian/work/freebsd/head-embedded/src/tmp/usr/lib/libprivatezstd.a(xxhash.o):xxhash.c:(.text+0x27a0):
more undefined references to `__bswapdi2' follow
/home/adrian/work/freebsd/head-embedded/src/../obj/mips_ap//mips.mips/usr/home/adrian/work/freebsd/head-embedded/src/tmp/usr/lib/libprivatezstd.a(xxhash.o):
In function `ZSTD_XXH64_digest':
xxhash.c:(.text+0x2fd8): undefined reference to `__bswapsi2'
/home/adrian/work/freebsd/head-embedded/src/../obj/mips_ap//mips.mips/usr/home/adrian/work/freebsd/head-embedded/src/tmp/usr/lib/libprivatezstd.a(fse_decompress.o):
In function `FSE_decompress_usingDTable':
fse_decompress.c:(.text+0x38c): undefined reference to `__bswapsi2'
fse_decompress.c:(.text+0x568): undefined reference to `__bswapsi2'
fse_decompress.c:(.text+0x59c): undefined reference to `__bswapsi2'
fse_decompress.c:(.text+0x5d0): undefined reference to `__bswapsi2'
/home/adrian/work/freebsd/head-embedded/src/../obj/mips_ap//mips.mips/usr/home/adrian/work/freebsd/head-embedded/src/tmp/usr/lib/libprivatezstd.a(fse_decompress.o):fse_decompress.c:(.text+0x630):
more undefined references to `__bswapsi2' follow
collect2: error: ld returned 1 exit status
*** Error code 1


.. the rest of the tree builds/links fine; this is "just" rescue at the end.

Does anyone have any idea why we'd get inlined versions of the above
in everything but for rescue?


-a



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJ-VmonyW1PKeYaMpTAmEHFuyo11mkLxpQs1M_eMUGdev-xO8Q>