Date: Sat, 11 Nov 2017 15:30:42 -0800 From: Adrian Chadd <adrian@freebsd.org> To: Michael Zhilin <mizhka@gmail.com> Cc: freebsd-current Current <freebsd-current@freebsd.org>, "freebsd-mips@freebsd.org" <freebsd-mips@freebsd.org>, John Baldwin <jhb@freebsd.org> Subject: Re: [mips32] build is broken due to lack of .cfi-sections support in gcc 4.2.1 Message-ID: <CAJ-Vmo=p=_TOo90JhoiVnySHUqq0HkbkmFpjXMzHpr3REQ2p_Q@mail.gmail.com> In-Reply-To: <CAF19XBJdC4Lq=LWuWAOKXDz-GXWW%2BBiTt=Me1CARzSygPw9PvA@mail.gmail.com> References: <CAF19XBJdC4Lq=LWuWAOKXDz-GXWW%2BBiTt=Me1CARzSygPw9PvA@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi, Have a look at what the atheros ports now do. They've been building using the external toolchain gcc for a while now. I think we need to kick over to that. -adrian On 11 November 2017 at 12:54, Michael Zhilin <mizhka@gmail.com> wrote: > 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@. This impacts several MIPS32 builds by freebsd-wifi-build > (broadcom, may be atheros). > > Is my gcc toolchain old? switch to clang? > > Thanks!
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJ-Vmo=p=_TOo90JhoiVnySHUqq0HkbkmFpjXMzHpr3REQ2p_Q>