From owner-freebsd-hackers@freebsd.org Fri Jun 5 23:25:51 2020 Return-Path: Delivered-To: freebsd-hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id C924B33ADFE for ; Fri, 5 Jun 2020 23:25:51 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from outbound5a.ore.mailhop.org (outbound5a.ore.mailhop.org [44.233.67.66]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 49dzKW0gtrz48SJ for ; Fri, 5 Jun 2020 23:25:50 +0000 (UTC) (envelope-from ian@freebsd.org) ARC-Seal: i=1; a=rsa-sha256; t=1591399543; cv=none; d=outbound.mailhop.org; s=arc-outbound20181012; b=ByP/oiPxK6p47YG19zfxJIQqZ19lgiGA/Ldj+3MQmxYxLTZsa9pI1FC7H8pn16stsHmqB0g+byBy1 3mu2xEyw2WpsXgDOqoyGJ9rDhVcnXxAcBoZePfQSpUvgm2uy1h5HuAFjC7WGQ1Lq7R/iB1nItWY0yh sKlypa2cdxXO+LBHaujI9ze65HSfAZLk4kuHx8u5KYDOxCo5VLWWIkM5AHzV2dTSmFJK/0iX5FT7pk KqsR/oMarq48j7GcI6A2sm0mldVaKD0dxcu+iDCmv6qkX6h2Xn7swuqVd9R3abKlEXvZ2o1KiR8XY9 SFMcIWcrwJEOD2vJKfPmqJWLPDG4lNg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=outbound.mailhop.org; s=arc-outbound20181012; h=content-transfer-encoding:mime-version:content-type:references:in-reply-to: date:to:from:subject:message-id:dkim-signature:from; bh=7OCBYxu89hogFCDlhsAwyCd0SpZKFGIAPEZhqZ0kEFM=; b=Vk8klETB5Eo0jB/sBmgfCFN1j8aIE+zEfALSynfEbIhM70vyjecbxRBqDztJqbSvMAz84vS5Du0Dn C8iGcOrHiIwb2HkLS+/m/vLkfXPq3JfJ1LcMben4WyEPQSW2CbBt7G9XP9UzQADToIEzUEvk47ELCN JH8YVqmaAZVIIgLEyg5ghERFTih8ucCc5wpNU07GmLvrUHs6iye+geo3RWIJhq0CWn4zSdYqXfYDl/ uh1W4XYDNYspKc+HaDPMUUZJa1iuwmh/cFtSIdj9TjKbdTXXDBqs68nnwqu2ZhWBlFVwS2sybovKw2 kIX+r8pEz5tGnSm1Q8T2CFX37VtDJ8Q== ARC-Authentication-Results: i=1; outbound3.ore.mailhop.org; spf=softfail smtp.mailfrom=freebsd.org smtp.remote-ip=67.177.211.60; dmarc=none header.from=freebsd.org; arc=none header.oldest-pass=0; DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outbound.mailhop.org; s=dkim-high; h=content-transfer-encoding:mime-version:content-type:references:in-reply-to: date:to:from:subject:message-id:from; bh=7OCBYxu89hogFCDlhsAwyCd0SpZKFGIAPEZhqZ0kEFM=; b=CxfkvM6T4Ga1NurJ2LPf3eU/9zQKuyVPWx8lWNsCWAvBGtCVLcY45MJB96PguiuqvKEef8v/tNlcl jBi6X3UVG7UQli0ADxily0H5TfjHapj8enfOlJ+9qVL6sBzdCNYcw6mRjEmuAUq7tBOsQPR8jRsDqo pJB2Gqmt5DYNiisl26SYh3D5N+/M2c5A4fAb84g2aufCN3hNlr284oajl/iwIY+UyFUKDOUGox7wMv yoKFn4WnXiRqezaRxX0ewEEhUepSq7nPSs9T4RVIHXOUY1yH1SJpVvwHg4QD3IxHMYU7QjzVWy86Xt Vpisz5kF5XlDk9XAJrxIcQn1KnMOYww== X-MHO-RoutePath: aGlwcGll X-MHO-User: decc106c-a783-11ea-b10c-b5956a7dd1a1 X-Report-Abuse-To: https://support.duocircle.com/support/solutions/articles/5000540958-duocircle-standard-smtp-abuse-information X-Originating-IP: 67.177.211.60 X-Mail-Handler: DuoCircle Outbound SMTP Received: from ilsoft.org (c-67-177-211-60.hsd1.co.comcast.net [67.177.211.60]) by outbound3.ore.mailhop.org (Halon) with ESMTPSA id decc106c-a783-11ea-b10c-b5956a7dd1a1; Fri, 05 Jun 2020 23:25:41 +0000 (UTC) Received: from rev (rev [172.22.42.240]) by ilsoft.org (8.15.2/8.15.2) with ESMTP id 055NPenD079452; Fri, 5 Jun 2020 17:25:40 -0600 (MDT) (envelope-from ian@freebsd.org) Message-ID: <2e91deb9835aaaadd6dceec95395b81f5257f15b.camel@freebsd.org> Subject: Re: Cross compile FreeBSD on amd64 for arm64 failes via compile determination error From: Ian Lepore To: Gordon Bergling , freebsd-hackers@freebsd.org Date: Fri, 05 Jun 2020 17:25:40 -0600 In-Reply-To: <20200605183002.GA2973@lion.0xfce3.net> References: <20200605183002.GA2973@lion.0xfce3.net> Content-Type: text/plain; charset="ASCII" X-Mailer: Evolution 3.28.5 FreeBSD GNOME Team Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 49dzKW0gtrz48SJ X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [0.00 / 15.00]; ASN(0.00)[asn:16509, ipnet:44.224.0.0/11, country:US]; local_wl_from(0.00)[freebsd.org] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Jun 2020 23:25:51 -0000 On Fri, 2020-06-05 at 20:30 +0200, Gordon Bergling via freebsd-hackers wrote: > Hi, > > I usualy use a pretty straight forward technique to update some > development systems to -CURRENNT. On amd64 -> amd64 everything > went well, but on arm64 (Rasperry PI 4b) I get the following > error messages, while I try to update the system via a NFS share. > > sh: cc: Exec format error > make[2]: "/boiler/nfs/src/share/mk/bsd.compiler.mk" line 178: Unable > to determine compiler type for CC=cc -target aarch64-unknown- > freebsd13.0 -- > sysroot=/boiler/nfs/obj/boiler/nfs/src/arm64.aarch64/tmp > -B/boiler/nfs/obj/boiler/nfs/src/arm64.aarch64/tmp/usr/bin. Consider > setting COMPILER_TYPE. > > The command that produces the error is the following, which > was executed on the arm64 system, so no TARGET directive is set. > > # env MAKEOBJDIRPREFIX=/boiler/nfs/obj make KERNCONF=GENERIC-TCP > SRCCONF=/boiler/nfs/conf/src.conf installkernel > > Has anyone an idea what the problem is in this step of the > installation? > > Any help is much appreciated. > > Kind regards, > > Gordon > You cannot do that. The installworld process uses a path that points into the obj tree that got built (so that new binaries are used to do the install work), and those binaries are compiled for the arch that did the build. -- Ian