From owner-freebsd-arm@freebsd.org Sat Dec 5 05:32:19 2015 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 34AD6A41578 for ; Sat, 5 Dec 2015 05:32:19 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-qg0-x235.google.com (mail-qg0-x235.google.com [IPv6:2607:f8b0:400d:c04::235]) (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 DA65D1538 for ; Sat, 5 Dec 2015 05:32:18 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by qgea14 with SMTP id a14so106576038qge.0 for ; Fri, 04 Dec 2015 21:32:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=N774fAu1CighCXEbwD9e+S0seduhePKBlQZGFlncILY=; b=rDkrgyi7XHAnKNEmnpIiNHVMMlv8oSIm9YOMz1OD8ow2GYlzCXtIrjMeo/ndG8S0ik NAtWtlnV4jIKuOMyCKiwdBK+RheOhyVH1h0yKrHdDmNyRTtpFDhVUCHXxOO0xY4mzkOX oaOe1W00vyWctLWvGMBPEodhqVW6kQ4heD46I9mUPU+qTEVjvIGfhz3vEkoVA4xAR+qz FHhKsIwxncmE5pelO6YyUzadMEFLcYyTgwG9VsB8d43gZNHNsD2FXunpd+TZvUAX90oz H2Qmr3jrdg+mqL+26uo15eSrrzI58WFV9L+V0yKal+sR9dYWyQ2nv4/1jAYp8Hmji+H9 mx4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=N774fAu1CighCXEbwD9e+S0seduhePKBlQZGFlncILY=; b=GINchIfozXGOEUvqE8bmaT3RNRYZvkZ3JREZagVPNDdCa/BNPV+gD915Sqd7FbGtZj u+BBbo6Dxjp9mhAnguWuE3reReClIpdC2AGXbLES3dro7RTfqngLAz+y9Enwg0BQBK2o Oj3kPsYyADv3VwpOdooH2rKo8R9LH94+AqD2YDi5HraGoi53lcknTh9kzWPC0ZbT+faQ EXSQhEdOlY29Y5oq/8gQJg1a4ozLvt7r9AzhJKGSx09V9I8q5FXjUvXq6Zz4ckHP8Pyz xBFzy62WOkM7YhoyjWd/wTXY7wBjlhAD8e1GknKm2X+7Jczj/5jekO8CE8tsXnu2D/9L h7rA== X-Gm-Message-State: ALoCoQn9wp7ZiTLpP1k02cm4ooR+Gajn7Y5Jx8wXOLTHIOKWm2G7B3cs5c6xK7tUx4Dab1i1cvIb MIME-Version: 1.0 X-Received: by 10.140.29.195 with SMTP id b61mr23468057qgb.50.1449293537946; Fri, 04 Dec 2015 21:32:17 -0800 (PST) Sender: wlosh@bsdimp.com Received: by 10.140.27.181 with HTTP; Fri, 4 Dec 2015 21:32:17 -0800 (PST) X-Originating-IP: [50.253.99.174] In-Reply-To: References: <4E33BE7E-5443-438A-A45C-04B4B90528F9@cs.huji.ac.il> Date: Fri, 4 Dec 2015 22:32:17 -0700 X-Google-Sender-Auth: 81NQRFr42TUgblYSp5lowAoY97w Message-ID: Subject: Re: cross compiling From: Warner Losh To: Daniel Braniss Cc: freebsd-arm , "freebsd-hackers@freebsd.org" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Dec 2015 05:32:19 -0000 On Fri, Dec 4, 2015 at 10:39 AM, Daniel Braniss wrote= : > > On 4 Dec 2015, at 6:33 PM, Warner Losh wrote: > > > On Dec 4, 2015, at 9:31 AM, Daniel Braniss wrote: > > Hi, > I can cross compile for armv6 (raspberry Pi B), and I do get a working > version, and till about July, I was > able to cross compile a module doing something like this: > $ cd $SRC > $ make kernel-toolchain TARGET_ARCH=3Darmv6 > $ make buildenv TARGET_ARCH=3Darmv6 BUILDENV_SHELL=3D/usr/local/bin/shell > $ cd > $ make > > but today, after a fresh svn update of current, I get: > > Warning: Object directory not changed from original > /a/fr-05/vol/home/system/danny/src/FreeBSD/ARM/elc/sys/modules/mfrc > cc -O -pipe -mfloat-abi=3Dsoftfp -DMFRC_DEBUG=3D8 -Werror -D_KERNEL > -DKLD_MODULE -nostdinc > -I/a/fr-05/vol/home/system/danny/src/FreeBSD/ARM/elc/sys/modules/mfrc/..= /.. > -I. -I@ -I@/contrib/altq -fno-common -ffreestanding -c > /a/fr-05/vol/home/system/danny/src/FreeBSD/ARM/elc/sys/modules/mfrc/../..= /dev/mfrc/mfrc.c > -o mfrc.o > cc: error: argument unused during compilation: '-mfloat-abi=3Dsoftfp' > *** Error code 1 > > so, what magic am I missing? > > > What does which cc say? > > the host I use to cross compile is running 10.1, > > /usr/bin/cc > > but I also tried CC=3Dclang > there is another error, which appeared before, and I solve it by setting > MK_FORMAT_EXTENSIONS=3Dno > (which out it complains =E2=80=A6 malformed conditional (${MK_FORMAT_EXTE= NSIONS) > =3D=3D =E2=80=9Cno=E2=80=9D) > > If which cc returns /usr/bin/cc, then you haven't built the toolchain. Warner