From owner-freebsd-mips@freebsd.org Tue Aug 27 16:59:55 2019 Return-Path: Delivered-To: freebsd-mips@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id AB4F8DA44F for ; Tue, 27 Aug 2019 16:59:55 +0000 (UTC) (envelope-from kevans@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46Hw8q40zbz45P1; Tue, 27 Aug 2019 16:59:55 +0000 (UTC) (envelope-from kevans@freebsd.org) Received: from mail-wr1-f47.google.com (mail-wr1-f47.google.com [209.85.221.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) (Authenticated sender: kevans) by smtp.freebsd.org (Postfix) with ESMTPSA id 3FDD67323; Tue, 27 Aug 2019 16:59:55 +0000 (UTC) (envelope-from kevans@freebsd.org) Received: by mail-wr1-f47.google.com with SMTP id j16so19532420wrr.8; Tue, 27 Aug 2019 09:59:55 -0700 (PDT) X-Gm-Message-State: APjAAAXaIr+phbt8m6O5PzK0F0lDNr3fVnFFZ7fQ+wfQwwrlpcFYhi6W i4VlNiwi2VkYyVa2XazZKUEgWJCfFX6GibIciQ8= X-Google-Smtp-Source: APXvYqx6xWDFBzawqjZEkHB+eENN3013G22i+D83YnGHfRv/wcMTEyrCnYB3w21nauJbp8wnG8ddw6ldBNpY7tkYNGg= X-Received: by 2002:a5d:4b8b:: with SMTP id b11mr31562261wrt.294.1566925194182; Tue, 27 Aug 2019 09:59:54 -0700 (PDT) MIME-Version: 1.0 References: <441318706.278852.1566618835359.JavaMail.yahoo.ref@jws705006.mail.kks.yahoo.co.jp> <441318706.278852.1566618835359.JavaMail.yahoo@jws705006.mail.kks.yahoo.co.jp> In-Reply-To: From: Kyle Evans Date: Tue, 27 Aug 2019 11:59:42 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: gcc 4.2.1 will delete To: Warner Losh Cc: Mori Hiroki , freebsd-mips@freebsd.org, Ed Maste Content-Type: text/plain; charset="UTF-8" X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Aug 2019 16:59:55 -0000 (CC'ing emaste@ as well, because this is a bit of a status report) On Fri, Aug 23, 2019 at 11:01 PM Warner Losh wrote: > > On Fri, Aug 23, 2019, 9:54 PM Mori Hiroki wrote: > > > Hi > > > > gcc 4.2.1 will delete. > > > > How about go mips architecture ? > > > > https://reviews.freebsd.org/rS351429 > > > There is good support for an external toolchain today. Clang has some > support, but it works a lot better in llvm 9.0, which is due in about a > month. > > Warner > I have the following open work for mips32 w/ in-tree llvm (and llvm90 has the same issues for some of them): - https://reviews.freebsd.org/D21435 (_mcount needs to be explicitly placed in .text; clang will emit ".section .mdebug.abi32" before everything else so _mcount ends up in it -- I don't think we can really blame clang, we probably should've specified) - https://people.freebsd.org/~kevans/mips-llvm.diff (.eh_frame ends up with some relocations we can't have in non-writable section; dirty dirty hack to make .eh_frame writable in clang and making sure the synthetic section that lld produces is also writable [this part's even dirtier than the first]) - https://people.freebsd.org/~kevans/mips-opts.diff (fusefs tests currently hang and I haven't had time to figure out why or try and reproduce it against llvm90; the rest of the diff is simply enabling full LLVM/LLD world) With these three I can make build and install a world w/ MALTA kernel, all otherwise modified, and things generally work except kldxref: Building /boot/kernel/linker.hints kldxref: /boot/kernel/kernel: too many segments root@:~ # uname -a FreeBSD 13.0-CURRENT FreeBSD 13.0-CURRENT #0 b101f7f4b1d-c262228(mips-llvm)-dirty: Tue Aug 27 09:42:00 CDT 2019 root@viper.audeuro.com:/usr/obj/usr/src/mips-llvm/sys/MALTA mips Next step, I'll fudge this into freebsd-wifi-build and test it on the hardware in my test lab... Thanks, Kyle Evans