From owner-freebsd-arm@FreeBSD.ORG Mon Dec 29 22:43:38 2014 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 754B05D5 for ; Mon, 29 Dec 2014 22:43:38 +0000 (UTC) Received: from mail-la0-f48.google.com (mail-la0-f48.google.com [209.85.215.48]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id F30843165 for ; Mon, 29 Dec 2014 22:43:37 +0000 (UTC) Received: by mail-la0-f48.google.com with SMTP id gf13so12092946lab.35 for ; Mon, 29 Dec 2014 14:43:30 -0800 (PST) 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 :content-type; bh=rygjCBL2mqNjo1HouDmk9F1626eArpuZ0yAHsn+ntqc=; b=E78d+uOL9ewRkGcgwH+zyVpo2FRhJCJ/zv0j1SPYxy6Wpydxe5/hoY3ISHdcsU0uNL h3NWdGI2Uz+Zt2J1k3tnEzEaX9qydaTrMlEYw7p/v3feGcsbVTY4LOBpLU68nOnJkQvG ukJHOkjpc0C/u9qNEycjwD7+Q6bDLbzuvfm7VYuRBPYrHYqdyLy8kvPb/iZBk0YWP/W1 w83jCIUxndItbhTr9nCfdyOPeqnHL83qmxvzc0iPK35myLPyqnm4dJ6Tpm3NQ5guG/ov VscTx0BWE4SuNI0ZBp7QOoDJx76bb6TYKXOUGQKVXU7qeahp8riWA2DPaVHH2ZMeZ/K8 yZ9Q== X-Gm-Message-State: ALoCoQlN/Z5lkj3+j0gEhiPMXIXZhlLwMzrLI7HNFewZZfeuosaPFIHAFI3SbvtfYUokJBDi+5sC X-Received: by 10.152.22.67 with SMTP id b3mr60088294laf.82.1419892589598; Mon, 29 Dec 2014 14:36:29 -0800 (PST) MIME-Version: 1.0 Received: by 10.112.142.198 with HTTP; Mon, 29 Dec 2014 14:35:49 -0800 (PST) X-Originating-IP: [74.60.193.70] From: Jeremy Brown Date: Mon, 29 Dec 2014 17:35:49 -0500 Message-ID: Subject: Cross-Compiling RPi Ports From amd64 Using Native Toolchain To: freebsd-arm@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Dec 2014 22:43:38 -0000 I'm trying to write a script that will create a custom FreeBSD image for a Raspberry Pi that includes a precompiled set of ports. I'm using Crochet for the heavy lifting and it's mostly finished except for the compiling the ports on the image. I managed to get it working using full-emulation with qemu but it's ridiculously slow, and now I'm trying to use the native toolchain to speed up the build. This is where everything's gotten difficult. I've been beating my head for the past week or so and I can't even get make to proceed past the configure stage. Right now I have two issues: 1) cpp fails the sanity check with a syntax error around the headers; I don't know why, as I've replaced the toolchain's include directory with a symlink to the system's directory. 2) I get the error ELF interpreter /libexec/elf-ldconfig.so.1 cannot be found, more or less. I've tried symlinking the system's file in to replace the toolchain's one, but I didn't suppose that didn't help since they were for different architectures. Can anyone help me solve these, or point me to a location where they've been solved already? I've tried following the qemu howto but it doesn't work for me. -Jeremy