From owner-freebsd-sparc64@freebsd.org Wed Nov 9 16:21:22 2016 Return-Path: Delivered-To: freebsd-sparc64@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 8815EC37D36 for ; Wed, 9 Nov 2016 16:21:22 +0000 (UTC) (envelope-from instructionset@gmail.com) Received: from mail-yw0-x22d.google.com (mail-yw0-x22d.google.com [IPv6:2607:f8b0:4002:c05::22d]) (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 496AB320 for ; Wed, 9 Nov 2016 16:21:22 +0000 (UTC) (envelope-from instructionset@gmail.com) Received: by mail-yw0-x22d.google.com with SMTP id l124so207780289ywb.3 for ; Wed, 09 Nov 2016 08:21:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=LAdLzbClGmMXxns/sTg5A7VW0PpXXosbdHXkhZHZToU=; b=KdlRmHJ3BNDHYe4hkPBL0GA3NxjkCoaSf7DPdQU1uaa+fbMbt4rwbpZe344q/MP0w6 tIklThjK6MAtuuXTsAfZcSJwcfZ5wD/IkyV6vUEs0ja8dXQ4mpBdqLtBcj+gS2Za5PdB IuQ8Td5lFFOBel26DCGeZ7ow1kzWV7Q2A+70k8gtYkmyzUEyQJ+41RQjB9NEC6dDu1WW Sdtby6sn84FbL5xarGoaSu6VJwFfNgtnHPpvqC9UoKYXJ7+/9yAA3gMWmUv6ALjMM3ph 4JcBVAw8ySlw77LJ37XQGmsAogUT+XPxsCmq48wK//CNCyanewmemPMCHBA/9XfKp7VT ZXNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=LAdLzbClGmMXxns/sTg5A7VW0PpXXosbdHXkhZHZToU=; b=B1lC+e4dZSbVkJCvZ7Vm4vOn2Mxav8D3ol8oVCnxyhEMo6j4fVYTYRiuQsEnSgqq8I 3SELeZJX69HDFdOdPYwQ3mK2y6pDwuDef1gV9qWqRwuldTzHW9PYUDVZlbSicuvBdZdW 6blcD5nOdSkBjodvrWYEnzcNM3OBc6hZLIlCbwpn0JWlRau3fQp/Wa4x5E0OUjgtA+/d FSMMWTpcJ/CQ4vM/F4I6MQY9FXLoZVE0Zh545aGEX3xuh8dhjI+3jkPeHpBrQLvBEi8Q MUEdWfG2CB6eJCtFTZemfx7MVeIqaW+YNLcq7qY9lb7euNCmvX+evOKgGa7Dv4DEMey1 fLNQ== X-Gm-Message-State: ABUngvfKQUKdSVqKmmfk95Bx69af0e8gEnOP+TGK+sISr2PtscpH/sRwxuV4BHb4Qiwr1KplZjKvW/YVhSSMBA== X-Received: by 10.129.56.10 with SMTP id f10mr408900ywa.45.1478708481303; Wed, 09 Nov 2016 08:21:21 -0800 (PST) MIME-Version: 1.0 Received: by 10.13.241.193 with HTTP; Wed, 9 Nov 2016 08:21:20 -0800 (PST) From: Bill Sorenson Date: Wed, 9 Nov 2016 10:21:20 -0600 Message-ID: Subject: GCC Bootstrap FreeBSD 11.0 To: freebsd-sparc64@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Nov 2016 16:21:22 -0000 I just want to report on my experience bootstrapping GCC 6.2.0 on a Sunfire V245 running 11.0 I was unable to do a direct full bootstrap with the system compiler which I sort of expected. What I had to do was build gcc47 from ports (not doing a full bootstrap) and then build gcc6 with that, again not a full bootstrap. Finally I rebuilt gcc6 with itself again. Any time I did a full bootstrap I got stage 2 to 3 comparison errors. I'm not quite sure why, I have never had that problem on sparc64 before. I was also unable to cleanly bootstrap anything newer than gcc47 with the system compiler (something else I don't recall previously having issues with). So far with gcc 6.2.0 I have had no issues of note. I am using the line LDFLAGS=-Wl,-rpath=/usr/local/lib/gcc6 in my make.conf in the block that specifies using gcc6 in ports. This may not be a good idea, I'm not sure but it has worked for me thus far. There were some ABI changes in GCC on sparc64 some time ago so I figured best to use gcc6 libs on anything built by gcc6. If anyone has any better advice on this I'd love to hear it. -Bill