From: kernel test robot <lkp@intel.com>
To: Biancaa Ramesh <biancaa2210329@ssn.edu.in>, linux-kernel@vger.kernel.org
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
Biancaa Ramesh <biancaa2210329@ssn.edu.in>
Subject: Re: [PATCH] Kconfig:Uses glibc so strscpy has to be manually- added
Date: Wed, 22 Oct 2025 15:41:29 +0800 [thread overview]
Message-ID: <202510221515.tlpfL3lX-lkp@intel.com> (raw)
In-Reply-To: <20251021171446.46942-1-biancaa2210329@ssn.edu.in>
Hi Biancaa,
kernel test robot noticed the following build errors:
[auto build test ERROR on linus/master]
[also build test ERROR on v6.18-rc2 next-20251022]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Biancaa-Ramesh/Kconfig-Uses-glibc-so-strscpy-has-to-be-manually-added/20251022-011608
base: linus/master
patch link: https://lore.kernel.org/r/20251021171446.46942-1-biancaa2210329%40ssn.edu.in
patch subject: [PATCH] Kconfig:Uses glibc so strscpy has to be manually- added
config: x86_64-randconfig-002-20251022 (attached as .config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251022/202510221515.tlpfL3lX-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202510221515.tlpfL3lX-lkp@intel.com/
All errors (new ones prefixed by >>):
>> scripts/kconfig/confdata.c:157:2: error: call to undeclared function 'strscpy'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
157 | strscpy(depfile_path + depfile_prefix_len, name);
| ^
>> scripts/kconfig/util.c:70:2: error: call to undeclared function 'strscpy'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
70 | strscpy(gs.s, "\0");
| ^
scripts/kconfig/symbol.c1 error generated.
:812:2: error: call to undeclared function 'strscpy'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
812 | strscpy(val, newval);
| ^
make[3]: *** [scripts/Makefile.host:131: scripts/kconfig/util.o] Error 1 shuffle=3058352405
1 error generated.
make[3]: *** [scripts/Makefile.host:131: scripts/kconfig/confdata.o] Error 1 shuffle=3058352405
1 error generated.
make[3]: *** [scripts/Makefile.host:131: scripts/kconfig/symbol.o] Error 1 shuffle=3058352405
make[3]: Target 'oldconfig' not remade because of errors.
make[2]: *** [Makefile:742: oldconfig] Error 2 shuffle=3058352405
make[1]: *** [Makefile:248: __sub-make] Error 2 shuffle=3058352405
make[1]: Target 'oldconfig' not remade because of errors.
make: *** [Makefile:248: __sub-make] Error 2 shuffle=3058352405
make: Target 'oldconfig' not remade because of errors.
--
>> scripts/kconfig/symbol.c:812:2: error: call to undeclared function 'strscpy'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
812 | strscpy(val, newval);
| ^
>> scripts/kconfig/confdata.c:157:2: error: call to undeclared function 'strscpy'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
157 | strscpy(depfile_path + depfile_prefix_len, name);
| ^
>> scripts/kconfig/util.c:70:2: error: call to undeclared function 'strscpy'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
70 | strscpy(gs.s, "\0");
| ^
1 error generated.
1 error generated.
make[3]: *** [scripts/Makefile.host:131: scripts/kconfig/confdata.o] Error 1 shuffle=3058352405
make[3]: *** [scripts/Makefile.host:131: scripts/kconfig/util.o] Error 1 shuffle=3058352405
1 error generated.
make[3]: *** [scripts/Makefile.host:131: scripts/kconfig/symbol.o] Error 1 shuffle=3058352405
make[3]: Target 'olddefconfig' not remade because of errors.
make[2]: *** [Makefile:742: olddefconfig] Error 2 shuffle=3058352405
make[1]: *** [Makefile:248: __sub-make] Error 2 shuffle=3058352405
make[1]: Target 'olddefconfig' not remade because of errors.
make: *** [Makefile:248: __sub-make] Error 2 shuffle=3058352405
make: Target 'olddefconfig' not remade because of errors.
vim +/strscpy +157 scripts/kconfig/confdata.c
147
148 /* touch depfile for symbol 'name' */
149 static int conf_touch_dep(const char *name)
150 {
151 int fd;
152
153 /* check overflow: prefix + name + '\0' must fit in buffer. */
154 if (depfile_prefix_len + strlen(name) + 1 > sizeof(depfile_path))
155 return -1;
156
> 157 strscpy(depfile_path + depfile_prefix_len, name);
158
159 fd = open(depfile_path, O_WRONLY | O_CREAT | O_TRUNC, 0644);
160 if (fd == -1)
161 return -1;
162 close(fd);
163
164 return 0;
165 }
166
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
prev parent reply other threads:[~2025-10-22 7:42 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-21 17:14 Biancaa Ramesh
2025-10-21 19:28 ` Markus Elfring
2025-10-22 7:31 ` kernel test robot
2025-10-22 7:41 ` kernel test robot [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=202510221515.tlpfL3lX-lkp@intel.com \
--to=lkp@intel.com \
--cc=biancaa2210329@ssn.edu.in \
--cc=linux-kernel@vger.kernel.org \
--cc=llvm@lists.linux.dev \
--cc=oe-kbuild-all@lists.linux.dev \
/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
all inboxes | Powered by JetHome®