From owner-freebsd-toolchain@freebsd.org Sat Aug 11 14:55:37 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 52449106F8C1 for ; Sat, 11 Aug 2018 14:55:37 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-it0-x236.google.com (mail-it0-x236.google.com [IPv6:2607:f8b0:4001:c0b::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 DB2A082691 for ; Sat, 11 Aug 2018 14:55:36 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-it0-x236.google.com with SMTP id s7-v6so6618303itb.4 for ; Sat, 11 Aug 2018 07:55:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:sender:from:date:message-id:subject:to; bh=K3BOwPng+NViKpRh6rn/jOXdZ2Oz3z9nMJpD4Ks8RCA=; b=Al8T/YwbJkQHB+//SwcrUBiQBMYk3wgcWDykSRqaHFIfwOiVr4SJaDzBPUMKqAqQ/S sfhqx/TlKp41ZIUe6pdN7+sqLlAXeqw/TD15doFTHEhVsPSve0goBXxu9DISZv4qB73W nwGMCTLZmf3HZd1SOjQ+fqCMH1tQWSLvMkQjzcb+JzD06H+Lc0Efqg6ezc6IDO2P+3sE npMXbawbWCXlPUuVZBqpWpCdoIHPX/BmRUNbQFnkgj/6yMepQBzw3mBu0vTTOud4hWMa 8vEeVvcqF2Vs4RK4uD2wW9MUAc0tPd0q64Yhi8NvkrEgAiUSryDV5ZJm/x7XWGL4CuLq nzvg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:from:date:message-id:subject :to; bh=K3BOwPng+NViKpRh6rn/jOXdZ2Oz3z9nMJpD4Ks8RCA=; b=D6oqnc2B0fS+eR+QrWMJKZ97LHdYSwFebSvXusWb+D1UxDpgD2ZBZb48nOYvXBlxC+ MVPA5//5pX/ruorITnQHItYteM6V5bl7IoM4snvdjcm5CMw8kdQEx0EaddwxWmgP72QS c8pEfwJQjYQAhgMz9aywe7tO1g6lml73pnMJKym575z2+WCknQw5S7kX1MI4Fy/7dlLs niaKV78wLbdX6Oxny/bMD6P/hD92cCeW1fHBucBo02MUkRsKHPfKy+KjXqMPyTH187V2 +Q9OLvYwHaSPqEX9iljujr/S6Nf3ygx1H/bXtuPZZ45h9zFgWZ/wf7tYwzXP5m168/Z4 dg8g== X-Gm-Message-State: AOUpUlE+WEgTUfQurVwzRWHf38RQ1OX46xTw2mmQwsy8N56OrkOpoQgd n8PFOCq6PBqiENRom9WQob5JJobGS4398s60uoSw29jgSIr6KA== X-Google-Smtp-Source: AA+uWPwDZ3RbyT2gjyn+uQP7rOFvDoO3Ni/nHPwtTgrYIjXX3UX1dsq0ReGLah1zBDhc7y9vo1xhs0/c9Kl6A4dK8DU= X-Received: by 2002:a24:b211:: with SMTP id u17-v6mr5476818ite.1.1533999336006; Sat, 11 Aug 2018 07:55:36 -0700 (PDT) MIME-Version: 1.0 Sender: wlosh@bsdimp.com Received: by 2002:a4f:381a:0:0:0:0:0 with HTTP; Sat, 11 Aug 2018 07:55:35 -0700 (PDT) X-Originating-IP: [2603:300b:6:5100:1052:acc7:f9de:2b6d] From: Warner Losh Date: Sat, 11 Aug 2018 08:55:35 -0600 X-Google-Sender-Auth: 4mJ46Ld6KmBFvKPdX4CieCbqi8c Message-ID: Subject: Broken arm support in clang now? To: "freebsd-toolchain@FreeBSD.org" , Ed Maste , Dimitry Andric 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 14:55:37 -0000 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? Warner