From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 109484 invoked by alias); 9 Mar 2017 18:21:48 -0000 Mailing-List: contact crossgcc-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: crossgcc-owner@sourceware.org Received: (qmail 109463 invoked by uid 89); 9 Mar 2017 18:21:47 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.1 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 spammy= X-HELO: nm21-vm4.access.bullet.mail.bf1.yahoo.com Received: from nm21-vm4.access.bullet.mail.bf1.yahoo.com (HELO nm21-vm4.access.bullet.mail.bf1.yahoo.com) (216.109.115.131) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 09 Mar 2017 18:21:45 +0000 Received: from [66.196.81.164] by nm21.access.bullet.mail.bf1.yahoo.com with NNFMP; 09 Mar 2017 18:21:44 -0000 Received: from [98.138.104.100] by tm10.access.bullet.mail.bf1.yahoo.com with NNFMP; 09 Mar 2017 18:21:44 -0000 Received: from [127.0.0.1] by smtp120.sbc.mail.ne1.yahoo.com with NNFMP; 09 Mar 2017 18:21:44 -0000 X-Yahoo-SMTP: 0h0Q7euswBD_g.kcEqbzJWRFfrba801gq1M1 Subject: Re: Building rpi armv6 toolchain on macOS To: Etan Kissling , "crossgcc@sourceware.org" References: <70FD9E5B-E9D1-43CF-84FF-B64AC54FA6C7@oberon.ch> From: Alexey Neyman Message-ID: Date: Thu, 09 Mar 2017 18:21:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 MIME-Version: 1.0 In-Reply-To: <70FD9E5B-E9D1-43CF-84FF-B64AC54FA6C7@oberon.ch> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2017-03/txt/msg00013.txt.bz2 I have reproduced your issue on current master with the following changes to .config (extracted .config from your build.log with "ct-ng extractconfig < build.log > .config"): - set CT_OBSOLETE=y - ct-ng oldconfig - set GCC to 4.9.4 and kernel to 4.1.38 (latest on 4.9.x and 4.1.x branches) However, I noted that you have set "Patches origin" option to "none". This prohibits crosstool-ng from applying any patches it has for any packages. In your configuration, setting it to "bundled" makes the build succeed (on master). You can try to find out which of the patches fixes your issue. Likely it is one in patches/glibc/2.19, patches/binutils/2.25.1 or patches/gcc/4.9.4. As a side note, I'd recommend using master on macos rather than 1.22 - there has been a lot of macos fixes since. Regards, Alexey. On 03/09/2017 04:15 AM, Etan Kissling wrote: > Hi, > > I'm trying to build a toolchain that supports cross compilation for the Raspberry Pi Zero W. > This requires building for ARMv6 (same as for the old Raspberry Pi 1). > > The official repository contains a crosstool-ng config file here: > https://github.com/raspberrypi/tools/blob/master/configs/arm-rpi-4.9.3-linux-gnueabihf.config > Unfortunately, only Linux binaries are provided in the repo. So for macOS I need to start from this config. > > The changes I did to the config file so far are: > Undefine CT_CONFIGURE_has_xz > Set CT_LOCAL_TARBALLS_DIR / CT_WORK_DIR / CT_PREFIX_DIR to reside on case-sensitive file systems > CT_EXTRA_CFLAGS_FOR_HOST="-fbracket-depth=512" > This fixes "[ERROR] /tmp/ct-ng/fs/.build/src/gcc-4.9.3/gcc/config/arm/neon.md:3486:10917: fatal error: bracket nesting level exceeded maximum of 256". > CT_WANTS_STATIC_LINK=n > CT_CC_GCC_STATIC_LIBSTDCXX=n > These two fix errors during initial sanity checking. > I'm currently stuck at the step "Installing C library headers & start files" where I get these errors during assembly of ../ports/sysdeps/unix/sysv/linux/arm/libc-aeabi_read_tp.S: > ccL1wvil.s: Assembler messages: > ccL1wvil.s:70: Error: invalid constant (ae) after fixup > ccL1wvil.s:143: Error: invalid constant (ff) after fixup > > I tried with -mthumb (which leads to "conftest.c:14:1: sorry, unimplemented: Thumb-1 hard-float VFP ABI") > and with -nostartfiles (which lets assembly work for this file but doesn't work on the next one (../ports/sysdeps/unix/sysv/linux/arm/libc-do-syscall.S) > > The complete build logs can be found here: > https://scriptreactor.com/rpi1-fixup-error.build.log > https://scriptreactor.com/rpi1-fixup-error-nostartfiles.build.log (with -nostartfiles) > > Any idea on what could be tried next? > > Xcode version: 8.2.1 (8C1002) > maxOS version: 10.12.3 (16D32) > crosstool-ng installed via "brew install crosstool-ng --with-grep" > > Thanks for any input! > > Etan > > > >