From owner-freebsd-arm@freebsd.org Tue Apr 18 07:09:09 2017 Return-Path: Delivered-To: freebsd-arm@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 ADE77D433BE for ; Tue, 18 Apr 2017 07:09:09 +0000 (UTC) (envelope-from jonc@chen.org.nz) Received: from mail-qt0-x22d.google.com (mail-qt0-x22d.google.com [IPv6:2607:f8b0:400d:c0d::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 6EE40FA for ; Tue, 18 Apr 2017 07:09:09 +0000 (UTC) (envelope-from jonc@chen.org.nz) Received: by mail-qt0-x22d.google.com with SMTP id c45so117952135qtb.1 for ; Tue, 18 Apr 2017 00:09:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chen-org-nz.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:to; bh=2a7mzCZFabP5p/PvGCA54rEMLZO4ZgqMs5jkitBCVLU=; b=15+Ydr3ofPPeA1AMu/hGHjoLApHJppgkEZRKhmUfDQz3AIc11yvaEHQf8uQ5e7m7Y7 0UTyDZbnClO/Yh++4U34mS1IL1n9x5lhdnd4X5lGyGVbDa1BguJLjiY47Efe7OU1HVCh yL1DlwyFKrCiJhiZ4ozp6amVQUk0tjD5/nBfK17wS9uF6HCyVl9cg4Cy+8dKgcwrHwPe xbqAvM2Y5HWo3ipVUYvKrJ+luIf/+bV8i771mrr92rINz++Impmdc+hmmHUhprxY8swJ 0iJTdGwdcZPUPkUeieJ17EdS6AqACfm1grW2I3iq2RvC/Eo8SFlJCElsBcnO4Ucf51HE o9ZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=2a7mzCZFabP5p/PvGCA54rEMLZO4ZgqMs5jkitBCVLU=; b=QNLXZcKRikALFZuX3Pm6dpOZNSTYsRwEyeu9DN3rWpe9+es4s9+8gTtpwEDDU8In2K uP5KwKYqV++aTRg1XbFg9UEzndq2lVKBXhUSx9RXykUaU8yzKO1wXpuNQUigNM61x0or LjUtFqRk0pN3R6vjlgqFa66tqGrcdlxIJfAXEm2/x8MlZ8Aqo1+pmYfyqYUs/fAIY7lP oREP5AN2ZU1nN5P9joll9OY+pVh/L6oozJytYTXIQaKgN3Ab8J13EKxVMJXWFerQgl1F 2hQQ/50VhwTuLJuAnEIOwf1JsDjfvFJ87R5ECtc4B5KgjMxyubhpO3s+2xz3MNTvjn7x XESA== X-Gm-Message-State: AN3rC/6gseSQhA4NW0JkVQTsSqEM7nRmJMILS2QBp7l+CWpSV0nLV9WM SUovS2IPuBYHF0zi+USNCBejwoJ5mEiy X-Received: by 10.237.62.253 with SMTP id o58mr11870207qtf.152.1492499348565; Tue, 18 Apr 2017 00:09:08 -0700 (PDT) MIME-Version: 1.0 Received: by 10.140.108.102 with HTTP; Tue, 18 Apr 2017 00:09:08 -0700 (PDT) X-Originating-IP: [101.53.200.223] From: Jonathan Chen Date: Tue, 18 Apr 2017 19:09:08 +1200 Message-ID: Subject: Crossbuilding for armv6 To: freebsd-arm@freebsd.org Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Apr 2017 07:09:09 -0000 Hi, I'm using https://wiki.freebsd.org/QemuUserModeHowTo to help me crossbuild some ports for my RPI2 on my amd64, with moderate success. I've managed to build the ports using pure-emulation, but attempts to use host cross-compilation to improve build times currently fail; partly because I believe the instructions are out of date. The instructions on "Cross Building Using the Host Cross Compiler (and other toolchain friends)" has a section on setting up the environment: # export CC=/usr/obj/usr/src/tmp/usr/bin/cc # export CPP=/usr/obj/usr/src/tmp/usr/bin/cpp # export CXX=/usr/obj/usr/src/tmp/usr/bin/c++ ... However, on STABLE-11/amd64, these binaries are not present. Does anyone here know what the correct entries should be? Cheers. -- Jonathan Chen