From owner-freebsd-questions@freebsd.org Sat Nov 18 15:26:41 2017 Return-Path: Delivered-To: freebsd-questions@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 31A0DDBD994 for ; Sat, 18 Nov 2017 15:26:41 +0000 (UTC) (envelope-from guyyur@gmail.com) Received: from mail-wm0-x231.google.com (mail-wm0-x231.google.com [IPv6:2a00:1450:400c:c09::231]) (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 BCE3D734DC; Sat, 18 Nov 2017 15:26:40 +0000 (UTC) (envelope-from guyyur@gmail.com) Received: by mail-wm0-x231.google.com with SMTP id v186so11341243wma.2; Sat, 18 Nov 2017 07:26:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=MGUTItbqVB3RHCFmHQQjctScHJi5bUPGfnMErK4l0LQ=; b=Z+8NgSaJhFW+/tQNuE1tLdmkcMQns9rvpHgdkTjrKopVXrY0Lt+yNhV+vktDK6ZxzA xwcBnvZv2buGP2kNP/afflnPhp56++bMc+UBtl9Sl6+IQq0bRG3f96jvuwuN1xgX/2kY s0vW1JzhMzxPnHkGVJieAfyBxjIDp4AXkT+IwXvzrD5/uHcc+Zd/sOnN/NxlCs4PxfWM Yj92NAh0JAlPQX+OBn+5d1Ivlmb5fUlT6LKREnsqLXZcElQ3JMusDAGvwrUOIaUHiXvM PcLlmQfS4GND3ccGyfM/Og0E5EXJT2ACFco6TzsUSMfQ7wlcaMGhbd35vWHQg1JayTWb d1Yg== 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=MGUTItbqVB3RHCFmHQQjctScHJi5bUPGfnMErK4l0LQ=; b=kIrQ0Djm1hmermQG7/x4Tx9vd/PBCyH/YJ3H74EMDYnji52EvRPDnR2hWeQP05Myvy LsNGzu09fDVh17F6/OVYT0AhhwEv2o8aVtHNyDkqM/gySPfM7fXbXgNHoVOdJZUeu4ug nM1m22CZixVlR9hZ1F6edth2yTRiDgydZAXiMFlVWq6kl26gFeBgJAr62S/ZN31QX+M2 Nv7LAX6y8jGtAFU3GY3t4pdZG0W5TMJ3jlBqO026guz959h/rRtiVbNQGB5k/rvc+MNU +GstVXR0VffT3ddYbljDXu7/jsFMbkSpYxdaZMc9mPDIdBzWNvg3Eu3t2iEl3JmKQODm cjCA== X-Gm-Message-State: AJaThX5Sk80XFMesr13JW8+MvpWiYIR4a/dn56QaXxBnb58u/vVGdbHt +VX+OIJUpr3DEnfieX0djPXA0kk/3fV6s4ekz1WvKw== X-Google-Smtp-Source: AGs4zMacBF4upICYrDvV9CdAyMrosprp7VlLTPMyjeymVvGXqxI9LDAqLe6cNGQXxijehH4v0MTqpDR2TUZMWGH/YN4= X-Received: by 10.28.137.80 with SMTP id l77mr6233379wmd.24.1511018798771; Sat, 18 Nov 2017 07:26:38 -0800 (PST) MIME-Version: 1.0 Received: by 10.28.197.67 with HTTP; Sat, 18 Nov 2017 07:26:38 -0800 (PST) From: Guy Yur Date: Sat, 18 Nov 2017 17:26:38 +0200 Message-ID: Subject: using native-xtools's make and MACHINE, MACHINE_ARCH values To: freebsd-questions@freebsd.org, Bryan Drewery Content-Type: text/plain; charset="UTF-8" X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 18 Nov 2017 15:26:41 -0000 Hi, I am trying to use native-xtools's make (amd64 targeting armv7) on an amd64 host in an armv7 chroot. (qemu-arm-static and binmiscctl used for the arm binaries.) Running /nxb-bin/usr/bin/make -V MACHINE and -V MACHINE_ARCH it reports amd64, amd64 not arm, armv7. (12.0-CURRENT r325963) Do I need to override MACHINE and MACHINE_ARCH explicitly when running nxb's make or should it report the target values? bmake is compiled with -DMAKE_NATIVE in usr.bin/bmake/Makefile so it uses uname, sysctl to get the values. If I add -UMAKE_NATIVE -DMAKE_MACHINE=\"${MACHINE}\" -DMACHINE_ARCH=\"${MACHINE_ARCH}\" to the nxb's make compilation it reports arm and armv7. Turning off MAKE_NATIVE also affects other things so it is probably not be the correct change to make. Thanks, Guy