linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Rong Chen <rong.a.chen@intel.com>
To: Geert Uytterhoeven <geert@linux-m68k.org>,
	kbuild test robot <lkp@intel.com>
Cc: Olof Johansson <olof@lixom.net>,
	kbuild-all@01.org,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: [kbuild-all] proc.c:undefined reference to `strcmp'
Date: Thu, 24 Jan 2019 17:55:42 +0800	[thread overview]
Message-ID: <37a97697-f812-7db4-f48b-47fbccbc160b@intel.com> (raw)
In-Reply-To: <CAMuHMdXmMM8xgGn23YkVHbrYe5108yqfM1Rrx8PJ9RmFNjOqTg@mail.gmail.com>


On 1/22/19 7:44 PM, Geert Uytterhoeven wrote:
> On Tue, Jan 22, 2019 at 11:11 AM kbuild test robot <lkp@intel.com> wrote:
>> It's probably a bug fix that unveils the link errors.
>>
>> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
>> head:   47bfa6d9dc8c060bf56554a465c9031e286d2f80
>> commit: 35004f2e55807a1a1491db24ab512dd2f770a130 lib/genalloc.c: include vmalloc.h
>> date:   2 weeks ago
>> config: m68k-allmodconfig (attached as .config)
>> compiler: m68k-linux-gnu-gcc (Debian 8.2.0-11) 8.2.0
>> reproduce:
>>          wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
>>          chmod +x ~/bin/make.cross
>>          git checkout 35004f2e55807a1a1491db24ab512dd2f770a130
>>          # save the attached .config to linux build tree
>>          GCC_VERSION=8.2.0 make.cross ARCH=m68k
>>
>> All errors (new ones prefixed by >>):
>>
>>     m68k-linux-gnu-ld: block/partitions/ldm.o: in function `ldm_partition':
>>     ldm.c:(.text+0x1900): undefined reference to `strcmp'
>>     m68k-linux-gnu-ld: ldm.c:(.text+0x1964): undefined reference to `strcmp'
>>     m68k-linux-gnu-ld: drivers/rtc/proc.o: in function `is_rtc_hctosys':
>>>> proc.c:(.text+0x18c): undefined reference to `strcmp'
>>     m68k-linux-gnu-ld: drivers/watchdog/watchdog_pretimeout.o: in function `watchdog_register_governor':
>>     watchdog_pretimeout.c:(.text+0x142): undefined reference to `strcmp'
>>     m68k-linux-gnu-ld: drivers/devfreq/devfreq.o: in function `try_then_request_governor':
>>     devfreq.c:(.text+0x9c6): undefined reference to `strcmp'
> I guess this bisection is a false positive. Have you just upgraded to gcc 8?

yes, we upgraded to gcc 8 recently.


> Gcc 8 replaces the strncmp() in is_rtc_hctosys() to strcmp().
> Will be fixed in v5.1 by
> https://git.kernel.org/pub/scm/linux/kernel/git/geert/linux-m68k.git/commit/?h=for-v5.1&id=28713169d879b67be2ef2f84dcf54905de238294

Thanks for your explanation. we'll blacklist it.

Best Regards,
Rong Chen


>
> Gr{oetje,eeting}s,
>
>                          Geert
>

      reply	other threads:[~2019-01-24  9:55 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-01-22 10:08 proc.c:undefined reference to `strcmp' kbuild test robot
2019-01-22 11:44 ` Geert Uytterhoeven
2019-01-24  9:55   ` Rong Chen [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=37a97697-f812-7db4-f48b-47fbccbc160b@intel.com \
    --to=rong.a.chen@intel.com \
    --cc=geert@linux-m68k.org \
    --cc=kbuild-all@01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lkp@intel.com \
    --cc=olof@lixom.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).