From owner-freebsd-mips@freebsd.org Sat Nov 11 23:30:45 2017 Return-Path: Delivered-To: freebsd-mips@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id DF4B1E4F4EA; Sat, 11 Nov 2017 23:30:45 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-wr0-x22a.google.com (mail-wr0-x22a.google.com [IPv6:2a00:1450:400c:c0c::22a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 865487299E; Sat, 11 Nov 2017 23:30:45 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by mail-wr0-x22a.google.com with SMTP id y9so11449511wrb.2; Sat, 11 Nov 2017 15:30:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=t35QspESH/3Y0N8Sh7b/Mjngf+FQPo+ujctddS9NhRk=; b=f2ofUJqNv1zv4TH4qCbQBnCiFyBB1NNlA4CaZlTvEXiWMzsvpdVsG+6/nYZQhyZONE fvAY6Eoesq5GbC3AdpWrewXpJerR6U2VrS0SI80MrXgL0cZMRYCILvr1fR6xutL2QXop oeCVOr+9nmtQPCUgKcAdOGC594GgqO2DkRHoe0VPJ7vagej9Etyd39J/xMq+8fLNfUUo IlxKuYX2z5ISQ/wNw+MDWG/bl1IEKkd9aP4+zWjHmNjzQcaDQXHJmqQ3WWACBH8BU7Bm 7ujJ0cqDTSaMkhcv4uIm3fd4wPQDt/+57POh82cH+0GAQGfCotBbtE4V5/els8Y9YgGD ming== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=t35QspESH/3Y0N8Sh7b/Mjngf+FQPo+ujctddS9NhRk=; b=Pr5NbJ9YI/nGWV6gLdu1NWjlO5Uq/7yAjKTerxoOf3qZ7U6fNsH5FCZJXK0aPI7z3H NW0Wk4LuHf5tgQ0nCuj+IEzt4VtT1vbmHnUPFfHQ4C5yP9sDfEPQ1NuE+FpJrBsC3T1j AMjfSzLPYaiX9bQT7OXutn0RB72ADNRRInPSO2/Dk1qDcHT9FVwQvlDNRmg77hRRjDW/ P7RoLlqLHuy1HeSVcdIAUiHFXFWXUGO8FWwqmXr1O1DStKibpjMRWn+z4e4MD77GIQru xqoI2mJJeG1RmAxl2O7Q2NfsBr9pXP6dxKbZKhndFDIFhM6rpkJfT+yHRZCDLd9KFn4v sQ/Q== X-Gm-Message-State: AJaThX6mbsdSOAF1Oli1iTRw6mTEnWBeSpHCI4E/vK3oIH+p5nrY70Pb uKG8xQVTN/aA6EW6CZkH1NwSwNoORKquqrFOJo8DhA== X-Google-Smtp-Source: AGs4zMZOGh2apV49Afbe6zT8gzbPhIEwjWgacgWlAHtscQTSfUw/zdZwrjKPK08RtmUonW/sOtonf+j5q4sOX6iBobI= X-Received: by 10.223.190.18 with SMTP id n18mr3668098wrh.44.1510443043714; Sat, 11 Nov 2017 15:30:43 -0800 (PST) MIME-Version: 1.0 Sender: adrian.chadd@gmail.com Received: by 10.28.46.209 with HTTP; Sat, 11 Nov 2017 15:30:42 -0800 (PST) In-Reply-To: References: From: Adrian Chadd Date: Sat, 11 Nov 2017 15:30:42 -0800 X-Google-Sender-Auth: xgUU7FK3NyZ7KurqH3L4-fCJRm0 Message-ID: Subject: Re: [mips32] build is broken due to lack of .cfi-sections support in gcc 4.2.1 To: Michael Zhilin Cc: freebsd-current Current , "freebsd-mips@freebsd.org" , John Baldwin Content-Type: text/plain; charset="UTF-8" X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 Nov 2017 23:30:46 -0000 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 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!