[mips32] build is broken due to lack of .cfi-sections support in gcc 4.2.1

Michael Zhilin mizhka at gmail.com
Sat Nov 11 20:54:35 UTC 2017


Hi,

I've got compilation error for mips32 build by gcc 4.2.1
(freebsd-wifi-build):
[halloween:/repo/onion/src/libexec/rtld-elf]$ make
/repo/onion/src/libexec/rtld-elf/mips/rtld_start.S: Assembler messages:
/repo/onion/src/libexec/rtld-elf/mips/rtld_start.S:35: Error: unknown
pseudo-op: `.cfi_sections'
*** Error code 1

Stop.
make[2]: stopped in /repo/onion/src/libexec/rtld-elf
[halloween:/repo/onion/src/libexec/rtld-elf]$ cc -isystem
/repo/onion/obj/mipsel/repo/onion/src/mips.mipsel/tmp/usr/include
-L/repo/onion/obj/mipsel/repo/onion/src/mips.mipsel/tmp/usr/lib
-B/repo/onion/obj/mipsel/repo/onion/src/mips.mipsel/tmp/usr/lib
--sysroot=/repo/onion/obj/mipsel/repo/onion/src/mips.mipsel/tmp
-B/repo/onion/obj/mipsel/repo/onion/src/mips.mipsel/tmp/usr/bin -O -pipe
-G0 -EL -mabi=32 -msoft-float -march=mips32 -Wall -DFREEBSD_ELF -DIN_RTLD
-ffreestanding -I/repo/onion/src/lib/csu/common
-I/repo/onion/src/libexec/rtld-elf/mips -I/repo/onion/src/libexec/rtld-elf
-fpic -DPIC -g -MD -MF.depend.rtld_start.o -MTrtld_start.o -std=gnu99
-Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized
-Wno-pointer-sign -Wformat=2 -Wno-format-extra-args -Werror -c
/repo/onion/src/libexec/rtld-elf/mips/rtld_start.S -o rtld_start.o
/repo/onion/src/libexec/rtld-elf/mips/rtld_start.S: Assembler messages:
/repo/onion/src/libexec/rtld-elf/mips/rtld_start.S:35: Error: unknown
pseudo-op: `.cfi_sections'
[halloween:/repo/onion/src/libexec/rtld-elf]$ cc -v
Using built-in specs.
Target: mipsel-undermydesk-freebsd
Configured with: FreeBSD/mipsel system compiler
Thread model: posix
gcc version 4.2.1 20070831 patched [FreeBSD]

The section info for call frame information has been added in revision
325624 by jhb at . This impacts several MIPS32 builds by freebsd-wifi-build
(broadcom, may be atheros).

Is my gcc toolchain old? switch to clang?

Thanks!


More information about the freebsd-mips mailing list