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

From: Michael Zhilin <mizhka_at_gmail.com>
Date: Sat, 11 Nov 2017 23:54:32 +0300
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!
Received on Sat Nov 11 2017 - 19:54:34 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:13 UTC