From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 114379 invoked by alias); 9 Mar 2017 12:15:49 -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 113963 invoked by uid 89); 9 Mar 2017 12:15:20 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.7 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=3486, rpi, Hx-languages-length:1922 X-HELO: mx06.a.out.hosting.netstream.com Received: from mx06.a.out.hosting.netstream.com (HELO mx06.a.out.hosting.netstream.com) (80.238.249.7) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 09 Mar 2017 12:15:18 +0000 Received: from s8450.vdc.netstream.com (HELO smtp.business-exchange.ch) ([62.65.133.80]) by mx06.a.out.hosting.netstream.com with ESMTP; 09 Mar 2017 13:15:09 +0100 Received: from S0896.hosting.local (10.0.5.218) by s0851.hosting.local (10.0.5.221) with Microsoft SMTP Server (TLS) id 15.0.1130.7; Thu, 9 Mar 2017 13:15:07 +0100 Received: from S0896.hosting.local ([fe80::2424:b627:4f78:a457]) by s0896.hosting.local ([fe80::2424:b627:4f78:a457%19]) with mapi id 15.00.1130.005; Thu, 9 Mar 2017 13:15:07 +0100 From: Etan Kissling To: "crossgcc@sourceware.org" Subject: Building rpi armv6 toolchain on macOS Date: Thu, 09 Mar 2017 12:15:00 -0000 Message-ID: <70FD9E5B-E9D1-43CF-84FF-B64AC54FA6C7@oberon.ch> x-ms-exchange-messagesentrepresentingtype: 1 x-ms-exchange-transport-fromentityheader: Hosted Content-Type: text/plain; charset="us-ascii" Content-ID: <99EFFC96BA6FEE4A8FD1E571FBE96708@hosting.local> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-IsSubscribed: yes X-SW-Source: 2017-03/txt/msg00010.txt.bz2 Hi, I'm trying to build a toolchain that supports cross compilation for the Ras= pberry 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-linu= x-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-s= ensitive file systems CT_EXTRA_CFLAGS_FOR_HOST=3D"-fbracket-depth=3D512" 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=3Dn CT_CC_GCC_STATIC_LIBSTDCXX=3Dn 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/li= nux/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 -no= startfiles) 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