From owner-freebsd-toolchain@freebsd.org Sat Aug 11 17:52:08 2018 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 77DD210755D0 for ; Sat, 11 Aug 2018 17:52:08 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-io0-x236.google.com (mail-io0-x236.google.com [IPv6:2607:f8b0:4001:c06::236]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 0A8ED8B167 for ; Sat, 11 Aug 2018 17:52:08 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-io0-x236.google.com with SMTP id l7-v6so6734974iok.6 for ; Sat, 11 Aug 2018 10:52:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=yGJAJsi4q1XGE/7h/OZT43TNUG94ugFtf7K5ZZcTdz0=; b=QGoVKlcGMQs7W0ow6jMkSL+Y+lQHT8usBFJK5HN5oCLJv7PEn5KcqI7XJ+8vQTkFa9 JYr2qPagWNsm0bm9WsRcPj3xP1IDKI5POArevQZxJxfLduXPYThz8aLEufDAU/K7juLq CUhfsZoeSTPSb9SIYLwSOxhdIHvaJ/VMwE8C23HbpGKYWPABB/4O0M4rLeoPm0OYAqtR daKeetl6Y4i7iM4Ym1eOFab/7aH1L0R0zOi5qK/sslaZb5i0iuCPkq/CAxPbpsneqQy4 reQC71cgFN6JlabKJeu8VfWNNz6419AHRXkOlxOtxAoaGe08w9sHkzhlWcsx9ZASs9x4 S7sQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=yGJAJsi4q1XGE/7h/OZT43TNUG94ugFtf7K5ZZcTdz0=; b=i9Pw5I1p0U9JUY7RiWX/wX8ELdm1rXFBosISZwTvv1s/Ogkrv+0Pb5yCGoxN+QaUrH axMf9T2a0fJNTZkAYq5qA8wQKdKsIXXFK+v4Pp/jDVHmn4ZdjFe06HHP9IKsivPj5+9O 2OUxpkndTPQ0+jKGlfqKE5e7pOVXVMq8q3nOwCzsBv5oYA+NZenqSubZEjglD31WgYt/ t+g0B+wc88FXzjxg4ZTqsc0sNhYSEk527OqV3HM/tm4dM8ZFNGjCDP7jcrVmK8EA3Fq4 uL6Yqhc1B5k+bByadJrbpCW8JxlieqSzHOvhRvNFcAdpMrV+WHc9Jbj97U56VgZvqRYq 5lcQ== X-Gm-Message-State: AOUpUlFs1ZT3Y00qIMfmy797pEPmyl/cBe0n2aHaoQ7rFDIfF5iOxvQa 5KmOApyLPCY8pf7AOXY04H6hl+ON+HjKAEZCS5RwnQ== X-Google-Smtp-Source: AA+uWPwdEdKfJs3Foa5y+DFfGx73ZioumRbt0qZFToqfXEaaGH/MoqeGHbb/MobMUgXfg00P26YsA1icXdwO81/WmhU= X-Received: by 2002:a6b:d004:: with SMTP id x4-v6mr9150655ioa.299.1534009927280; Sat, 11 Aug 2018 10:52:07 -0700 (PDT) MIME-Version: 1.0 References: <1880880F-9D9D-47E0-A7A4-5369A3770F89@FreeBSD.org> In-Reply-To: <1880880F-9D9D-47E0-A7A4-5369A3770F89@FreeBSD.org> From: Warner Losh Date: Sat, 11 Aug 2018 11:31:17 -0600 Message-ID: Subject: Re: Broken arm support in clang now? To: Dimitry Andric Cc: "freebsd-toolchain@FreeBSD.org" , Ed Maste Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.27 X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 Aug 2018 17:52:08 -0000 On Sat, Aug 11, 2018, 10:20 AM Dimitry Andric wrote: > On 11 Aug 2018, at 16:55, Warner Losh wrote: > > > > It looks like armv5 clang bogusly uses lld: > > > > From a 'make buildkernel' of the RT1310 kernel config: > > > > cc -target arm-gnueabi-freebsd12.0 > > --sysroot=/usr/home/imp/obj/usr/home/imp/git/head/arm.arm/tmp > > -B/usr/home/imp/obj/usr/home/imp/git/head/arm.arm/tmp/usr/bin -c -O -pipe > > -g -nostdinc -I. -I/usr/home/imp/git/head/sys > > -I/usr/home/imp/git/head/sys/contrib/ck/include > > -I/usr/home/imp/git/head/sys/contrib/libfdt > > -I/usr/home/imp/git/head/sys/gnu/dts/include -D_KERNEL > > -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -march=armv5te > > -funwind-tables -ffreestanding -fwrapv -gdwarf-2 -Wall -Wredundant-decls > > -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith > > -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ > > -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas > > -Wno-error-tautological-compare -Wno-error-empty-body > > -Wno-error-parentheses-equality -Wno-error-unused-function > > -Wno-error-pointer-sign -Wno-error-shift-negative-value > > -Wno-address-of-packed-member -mfpu=none -std=iso9899:1999 -Werror > vers.c > > linking kernel.full > > ld: warning: lld uses extended branch encoding, no object with > architecture > > supporting feature detected. > > ld: warning: lld may use movt/movw, no object with architecture > supporting > > feature detected. > > text data bss dec hex filename > > 3448944 176776 655360 4281080 0x4152f8 kernel.full > > > > Any clues on how I can track this down? > > What does /usr/bin/ld -v output? As far as I can see, MK_LLD_BOOTSTRAP > and MK_LLD_IS_LD are only enabled by default for aarch64 and amd64. So > do you have any of those settings in your src.conf or environment? > Host is amd64. Target is arm. No src.conf. Did a full buildworld TARGET=arm a few days ago. /usr/bin/ld is lld. Warner >