Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp6447151imm; Mon, 23 Jul 2018 18:51:00 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfHcw59W0PJXen1dhtQ2JjLV/q+eHkDopmCPtPppaG/OTxZpsfEWFvz6DBGN+CYbLt/xpqK X-Received: by 2002:a17:902:9695:: with SMTP id n21-v6mr15214163plp.6.1532397060299; Mon, 23 Jul 2018 18:51:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532397060; cv=none; d=google.com; s=arc-20160816; b=s5FMbJomjVCHQTxwzua2Z4N2Xy8/SD/bxR5zqVxJDnW1denJK2WrLo0/iYoDYngb3e Ej6+QGzhHeakKQjYH8C6ow87dgbd9gsLKpyPtTELyqDYJkm54lFQAT6L2FREFjjsvPqc wGEtZgfS95PnBRIK1kv9htjBRVCpJwITBos3TWXM7+O+Hx7dJR6nrymyE8KibSvLaPHs s3g1mr5DvJ+4PyxGvt0e3hfZn47Ahk4bgnlRl5eKPskVWb3fXmd0f1WDjSyu6ZX3nubi 7q7Zbs9UoPF7Pczp9DcfGASr4Smgj1dowW3vSNZS+AS2c0k/u02+SQ7h+f93Yrh12imd k/uA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=AHOlqjUwQe+x+iuZPqfns3W3XrTgw4f19J323zjLOKU=; b=iP7r7Sg1hqXZntXGQKhHVhHDCYv7RiT5xDTAd86Y8guuH7U4h/7GG7QVDkCyJir61M I0OadFRzgKyNoXTS2hFyjR8Rg2wA6kCa+g/fAiJG0jBDgh5X7UgIvDG0hsee6tteSlbE RiyJBwVBPtDLL39E1ytc6LEN9rlCYmPl615Ad1Bz6Ecu1HXXVdfE2o7oIq/dZ92Fsrfr aySttZOp4FleS8d75QH8HZVTqkmTJL8UnWyMr/XpQUgizLxUIZXEUK6eZzWCSm898vk1 Rgbt63IWj8V2nvQ04/taiR0BkV/keF/hZlluWpq08i64VCxI2psJQyAiQNMjgYgNqnIQ S44Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=lWwA6p+T; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x10-v6si9303151plv.1.2018.07.23.18.50.45; Mon, 23 Jul 2018 18:51:00 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=lWwA6p+T; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388355AbeGXCxy (ORCPT + 99 others); Mon, 23 Jul 2018 22:53:54 -0400 Received: from merlin.infradead.org ([205.233.59.134]:49864 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388269AbeGXCxy (ORCPT ); Mon, 23 Jul 2018 22:53:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To:Subject:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=AHOlqjUwQe+x+iuZPqfns3W3XrTgw4f19J323zjLOKU=; b=lWwA6p+T7GJNO0kJMuHx/Wgoke p7t1aq0AQd9tRKpzH/iImuVQhdNrNHTiIYSF1kx/0GLdfbpT7BvrXWENxEZNfFNlOuhwgqAVGAHlJ 1ENBHVeV869Zi3gxBFMq2lsw0uczhePCW3OWkRJU2pXpGTyMISebCENARBk/wdvkD7sdJW1VHHnxb afSVVNo9k7qZc1e8BevJUuX7mqnt9jAfGmW0uvw3IxsExcXGqpuaRWKxdLFR1aeZXunZaSzk/uIy3 v/La28Yw9TR3i46dgaPn1mtRorq+MP7UIlVSPxtadGS7/AKbLH3hhJDVBEb8xXznTI9oMItySc0Ei gv1R1e2g==; Received: from static-50-53-52-16.bvtn.or.frontiernet.net ([50.53.52.16] helo=midway.dunlab) by merlin.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1fhmSW-0003nB-6d; Tue, 24 Jul 2018 01:49:52 +0000 Subject: Re: m68k allmodconfig build errors To: Finn Thain Cc: LKML , Geert Uytterhoeven , linux-m68k@lists.linux-m68k.org References: <28ebe45d-3dbd-2a82-f537-b0725f7a2bcf@infradead.org> From: Randy Dunlap Message-ID: <8991ac62-0239-ddfd-6378-95c4ec2fe42b@infradead.org> Date: Mon, 23 Jul 2018 18:49:49 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 07/19/2018 10:17 PM, Finn Thain wrote: > On Thu, 19 Jul 2018, Randy Dunlap wrote: > >> Hi Geert, >> >> I am seeing a few errors when cross-building m68k on x86_64, using the >> toolchain at https://mirrors.edge.kernel.org/pub/tools/crosstool/ >> (thanks, Arnd). (so this is gcc 8.1.0) >> >> block/partitions/ldm.o: In function `ldm_partition': >> ldm.c:(.text+0x1900): undefined reference to `strcmp' >> ldm.c:(.text+0x1964): undefined reference to `strcmp' >> drivers/rtc/rtc-proc.o: In function `is_rtc_hctosys': >> rtc-proc.c:(.text+0x290): undefined reference to `strcmp' >> drivers/watchdog/watchdog_pretimeout.o: In function `watchdog_register_governor': >> (.text+0x142): undefined reference to `strcmp' >> >> >> Adding #include does not help. >> >> Is this a toolchain problem or drivers or something else? >> > > This gcc build was apparently configured like so: > > /home/arnd/git/gcc/configure --target=m68k-linux --enable-targets=all > --prefix=/home/arnd/cross/x86_64/gcc-8.1.0-nolibc/m68k-linux > --enable-languages=c --without-headers --disable-bootstrap --disable-nls > --disable-threads --disable-shared --disable-libmudflap --disable-libssp > --disable-libgomp --disable-decimal-float --disable-libquadmath > --disable-libatomic --disable-libcc1 --disable-libmpx > --enable-checking=release > > In my own cross toolchain builds strcmp comes from glibc but this > toolchain has no libc at all. > >> help? >> > > Linux will use the strcmp in lib/string.c unless __HAVE_ARCH_STRCMP is > defined in the arch headers. Grep suggests that m68k, mips, x86, xtensa, > arc, sh, arm64, s390 all define that macro. But maybe you could just patch > out that definition for build testing. Sure, that works. Thanks. -- ~Randy