[robh:for-next 57/57] clang-11: error: assembler command failed with exit code 1 (use -v to see invocation)

332 views
Skip to first unread message

kbuild test robot

unread,
Mar 16, 2020, 8:32:09 AM3/16/20
to Rob Herring, kbuil...@lists.01.org, clang-bu...@googlegroups.com
tree: https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git for-next
head: d047cd8a2760f58d17b8ade21d2f15b818575abc
commit: d047cd8a2760f58d17b8ade21d2f15b818575abc [57/57] scripts/dtc: Update to upstream version v1.6.0-2-g87a656ae5ff9
config: powerpc-defconfig (attached as .config)
compiler: clang version 11.0.0 (git://gitmirror/llvm_project 14a1b80e044aac1947c891525cf30521be0a79b7)
reproduce:
# FIXME the reproduce steps for clang is not ready yet

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <l...@intel.com>

All errors (new ones prefixed by >>):

/usr/bin/as: unrecognized option '-mpower4'
>> clang-11: error: assembler command failed with exit code 1 (use -v to see invocation)
make[2]: *** [scripts/Makefile.build:268: scripts/mod/empty.o] Error 1
make[2]: Target '__build' not remade because of errors.
make[1]: *** [Makefile:1111: prepare0] Error 2
make[1]: Target 'prepare' not remade because of errors.
make: *** [Makefile:179: sub-make] Error 2
16 real 4 user 8 sys 76.44% cpu make prepare

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuil...@lists.01.org
.config.gz

Nick Desaulniers

unread,
Mar 16, 2020, 1:59:07 PM3/16/20
to kbuild test robot, Rob Herring, kbuil...@lists.01.org, clang-built-linux
Nevermind this report, it is a known issue on our side:
https://github.com/ClangBuiltLinux/linux/issues/672
> --
> You received this message because you are subscribed to the Google Groups "Clang Built Linux" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to clang-built-li...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/clang-built-linux/202003162059.ZCND6O04%25lkp%40intel.com.



--
Thanks,
~Nick Desaulniers

kbuild test robot

unread,
Mar 19, 2020, 7:18:40 AM3/19/20
to Dirk Mueller, kbuil...@lists.01.org, clang-bu...@googlegroups.com, Rob Herring, David Gibson
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: aff7e57f8266549245eb4a272ce149b752dfce77
commit: 35595372d95c0d10784bce1aec8cc144a39eb66d [8215/10346] Remove redundant YYLOC global declaration
config: powerpc-defconfig (attached as .config)
compiler: clang version 11.0.0 (git://gitmirror/llvm_project 14a1b80e044aac1947c891525cf30521be0a79b7)
reproduce:
# FIXME the reproduce steps for clang is not ready yet

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <l...@intel.com>

All errors (new ones prefixed by >>):

In file included from scripts/mod/devicetable-offsets.c:3:
In file included from include/linux/mod_devicetable.h:13:
In file included from include/linux/uuid.h:12:
In file included from include/linux/string.h:20:
arch/powerpc/include/asm/string.h:21:15: warning: incompatible redeclaration of library function 'strncpy' [-Wincompatible-library-redeclaration]
extern char * strncpy(char *,const char *, __kernel_size_t);
^
arch/powerpc/include/asm/string.h:21:15: note: 'strncpy' is a builtin with type 'char *(char *, const char *, unsigned long)'
arch/powerpc/include/asm/string.h:22:24: warning: incompatible redeclaration of library function 'strlen' [-Wincompatible-library-redeclaration]
extern __kernel_size_t strlen(const char *);
^
arch/powerpc/include/asm/string.h:22:24: note: 'strlen' is a builtin with type 'unsigned long (const char *)'
arch/powerpc/include/asm/string.h:24:12: warning: incompatible redeclaration of library function 'strncmp' [-Wincompatible-library-redeclaration]
extern int strncmp(const char *, const char *, __kernel_size_t);
^
arch/powerpc/include/asm/string.h:24:12: note: 'strncmp' is a builtin with type 'int (const char *, const char *, unsigned long)'
arch/powerpc/include/asm/string.h:26:15: warning: incompatible redeclaration of library function 'memset' [-Wincompatible-library-redeclaration]
extern void * memset(void *,int,__kernel_size_t);
^
arch/powerpc/include/asm/string.h:26:15: note: 'memset' is a builtin with type 'void *(void *, int, unsigned long)'
arch/powerpc/include/asm/string.h:27:15: warning: incompatible redeclaration of library function 'memcpy' [-Wincompatible-library-redeclaration]
extern void * memcpy(void *,const void *,__kernel_size_t);
^
arch/powerpc/include/asm/string.h:27:15: note: 'memcpy' is a builtin with type 'void *(void *, const void *, unsigned long)'
arch/powerpc/include/asm/string.h:28:15: warning: incompatible redeclaration of library function 'memmove' [-Wincompatible-library-redeclaration]
extern void * memmove(void *,const void *,__kernel_size_t);
^
arch/powerpc/include/asm/string.h:28:15: note: 'memmove' is a builtin with type 'void *(void *, const void *, unsigned long)'
arch/powerpc/include/asm/string.h:29:12: warning: incompatible redeclaration of library function 'memcmp' [-Wincompatible-library-redeclaration]
extern int memcmp(const void *,const void *,__kernel_size_t);
^
arch/powerpc/include/asm/string.h:29:12: note: 'memcmp' is a builtin with type 'int (const void *, const void *, unsigned long)'
arch/powerpc/include/asm/string.h:30:15: warning: incompatible redeclaration of library function 'memchr' [-Wincompatible-library-redeclaration]
extern void * memchr(const void *,int,__kernel_size_t);
^
arch/powerpc/include/asm/string.h:30:15: note: 'memchr' is a builtin with type 'void *(const void *, int, unsigned long)'
In file included from scripts/mod/devicetable-offsets.c:3:
In file included from include/linux/mod_devicetable.h:13:
In file included from include/linux/uuid.h:12:
include/linux/string.h:29:8: warning: incompatible redeclaration of library function 'strlcpy' [-Wincompatible-library-redeclaration]
size_t strlcpy(char *, const char *, size_t);
^
include/linux/string.h:29:8: note: 'strlcpy' is a builtin with type 'unsigned long (char *, const char *, unsigned long)'
include/linux/string.h:42:15: warning: incompatible redeclaration of library function 'strncat' [-Wincompatible-library-redeclaration]
extern char * strncat(char *, const char *, __kernel_size_t);
^
include/linux/string.h:42:15: note: 'strncat' is a builtin with type 'char *(char *, const char *, unsigned long)'
include/linux/string.h:45:15: warning: incompatible redeclaration of library function 'strlcat' [-Wincompatible-library-redeclaration]
extern size_t strlcat(char *, const char *, __kernel_size_t);
^
include/linux/string.h:45:15: note: 'strlcat' is a builtin with type 'unsigned long (char *, const char *, unsigned long)'
include/linux/string.h:57:12: warning: incompatible redeclaration of library function 'strncasecmp' [-Wincompatible-library-redeclaration]
extern int strncasecmp(const char *s1, const char *s2, size_t n);
^
include/linux/string.h:57:12: note: 'strncasecmp' is a builtin with type 'int (const char *, const char *, unsigned long)'
include/linux/string.h:100:24: warning: incompatible redeclaration of library function 'strspn' [-Wincompatible-library-redeclaration]
extern __kernel_size_t strspn(const char *,const char *);
^
include/linux/string.h:100:24: note: 'strspn' is a builtin with type 'unsigned long (const char *, const char *)'
include/linux/string.h:103:24: warning: incompatible redeclaration of library function 'strcspn' [-Wincompatible-library-redeclaration]
extern __kernel_size_t strcspn(const char *,const char *);
^
include/linux/string.h:103:24: note: 'strcspn' is a builtin with type 'unsigned long (const char *, const char *)'
include/linux/string.h:159:12: warning: incompatible redeclaration of library function 'bcmp' [-Wincompatible-library-redeclaration]
extern int bcmp(const void *,const void *,__kernel_size_t);
^
include/linux/string.h:159:12: note: 'bcmp' is a builtin with type 'int (const void *, const void *, unsigned long)'
15 warnings generated.
/usr/bin/as: unrecognized option '-mpower4'
>> clang-11: error: assembler command failed with exit code 1 (use -v to see invocation)
make[2]: *** [scripts/Makefile.build:268: scripts/mod/empty.o] Error 1
make[2]: Target '__build' not remade because of errors.
make[1]: *** [Makefile:1111: prepare0] Error 2
make[1]: Target 'prepare' not remade because of errors.
make: *** [Makefile:179: sub-make] Error 2
13 real 7 user 9 sys 134.10% cpu make prepare
.config.gz

Nick Desaulniers

unread,
Mar 19, 2020, 11:59:22 AM3/19/20
to kbuild test robot, Dirk Mueller, kbuil...@lists.01.org, clang-built-linux, Rob Herring, David Gibson
ignore this, it's complaining about the ` /usr/bin/as: unrecognized
option '-mpower4'` at the bottom, it's a known issue.
https://github.com/ClangBuiltLinux/linux/issues/672
> --
> You received this message because you are subscribed to the Google Groups "Clang Built Linux" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to clang-built-li...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/clang-built-linux/202003191934.oASTv9t3%25lkp%40intel.com.



--
Thanks,
~Nick Desaulniers

kbuild test robot

unread,
Mar 20, 2020, 8:16:36 PM3/20/20
to Dirk Mueller, kbuil...@lists.01.org, clang-bu...@googlegroups.com, Rob Herring, David Gibson
Hi Dirk,

FYI, the error/warning still remains.

tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: d8f289c16fbb72e17b783175c1fb0942816264fd
commit: 35595372d95c0d10784bce1aec8cc144a39eb66d [8211/10629] Remove redundant YYLOC global declaration
config: powerpc-defconfig (attached as .config)
compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project 1993f95f2b1eb2d8da7f1a01e977d8fe06314bcf)
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 35595372d95c0d10784bce1aec8cc144a39eb66d
# save the attached .config to linux build tree
COMPILER=clang make.cross ARCH=powerpc

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <l...@intel.com>

All errors (new ones prefixed by >>):

/usr/bin/as: unrecognized option '-mpower4'
>> clang-11: error: assembler command failed with exit code 1 (use -v to see invocation)
make[2]: *** [scripts/Makefile.build:268: scripts/mod/empty.o] Error 1
make[2]: Target '__build' not remade because of errors.
make[1]: *** [Makefile:1111: prepare0] Error 2
make[1]: Target 'prepare' not remade because of errors.
make: *** [Makefile:179: sub-make] Error 2
34 real 9 user 19 sys 84.67% cpu make prepare
.config.gz

Nick Desaulniers

unread,
Mar 20, 2020, 8:30:59 PM3/20/20
to kbuild test robot, Dirk Mueller, kbuil...@lists.01.org, clang-built-linux, Rob Herring, David Gibson
Known issue, please ignore: https://github.com/ClangBuiltLinux/linux/issues/675
> --
> You received this message because you are subscribed to the Google Groups "Clang Built Linux" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to clang-built-li...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/clang-built-linux/202003210848.qj0RGHwY%25lkp%40intel.com.



--
Thanks,
~Nick Desaulniers

Philip Li

unread,
Mar 20, 2020, 8:58:21 PM3/20/20
to Nick Desaulniers, kbuild test robot, Dirk Mueller, kbuil...@lists.01.org, clang-built-linux, Rob Herring, David Gibson
On Fri, Mar 20, 2020 at 05:30:45PM -0700, Nick Desaulniers wrote:
> Known issue, please ignore: https://github.com/ClangBuiltLinux/linux/issues/675
thanks for info, 0-day ci will blacklist this error.
> _______________________________________________
> kbuild-all mailing list -- kbuil...@lists.01.org
> To unsubscribe send an email to kbuild-a...@lists.01.org

Nick Desaulniers

unread,
Mar 23, 2020, 6:09:56 PM3/23/20
to Philip Li, kbuild test robot, kbuil...@lists.01.org, clang-built-linux
DTC folks to bcc

On Fri, Mar 20, 2020 at 5:58 PM Philip Li <phil...@intel.com> wrote:
>
> On Fri, Mar 20, 2020 at 05:30:45PM -0700, Nick Desaulniers wrote:
> > Known issue, please ignore: https://github.com/ClangBuiltLinux/linux/issues/675
> thanks for info, 0-day ci will blacklist this error.

I'd rather not blacklist it. So it looks like we don't see this in
our CI (example:
https://travis-ci.com/github/ClangBuiltLinux/continuous-integration/jobs/301119543).
It seems related to which config you compile with. With the attached
config, I was not able to reproduce:

$ gunzip config.gz
$ cp config .config
$ ARCH=powerpc CROSS_COMPILE=powerpc-linux-gnu- make CC=clang -j71
olddefconfig # note this shouldn't be needed
$ ARCH=powerpc CROSS_COMPILE=powerpc-linux-gnu- make CC=clang -j71
scripts/mod/empty.o

Doesn't produce anything, no error from make about being an invalid
target, but also no -mpower4 warning. I also don't understand why the
provided config doesn't set or unset many configs in linux-next.

Can you please triple check? I want to make sure the steps to
reproduce are reproducible.

>
> >
> > On Fri, Mar 20, 2020 at 5:16 PM kbuild test robot <l...@intel.com> wrote:
> > >
> > > Hi Dirk,
> > >
> > > FYI, the error/warning still remains.
> > >
> > > tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
> > > head: d8f289c16fbb72e17b783175c1fb0942816264fd
> > > commit: 35595372d95c0d10784bce1aec8cc144a39eb66d [8211/10629] Remove redundant YYLOC global declaration
> > > config: powerpc-defconfig (attached as .config)

'powerpc-defconfig' doesn't seem to be a named config. Seems I must
use the attachment?

> > > compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project 1993f95f2b1eb2d8da7f1a01e977d8fe06314bcf)
> > > reproduce:
> > > wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
> > > chmod +x ~/bin/make.cross
> > > git checkout 35595372d95c0d10784bce1aec8cc144a39eb66d
> > > # save the attached .config to linux build tree
> > > COMPILER=clang make.cross ARCH=powerpc

Hi Philip, I tried the above commands to reproduce, but I see:

$ COMPILER=clang make.cross ARCH=powerpc
E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13:
Permission denied)
E: Unable to acquire the dpkg frontend lock
(/var/lib/dpkg/lock-frontend), are you root?
cross tool binutils-powerpc-linux-gnu install failed
Please ensure powerpc cross tools has been installed.
Please install: xz-utils lftp
Install clang compiler failed
setup_crosstool failed
$ sudo apt install binutils-powerpc-linux-gnu
binutils-powerpc-linux-gnu is already the newest version (2.33.1-2).

Should install_cross_packages() check for these first, instead of
always trying to install them?

> > >
> > > If you fix the issue, kindly add following tag
> > > Reported-by: kbuild test robot <l...@intel.com>
> > >
> > > All errors (new ones prefixed by >>):
> > >
> > > /usr/bin/as: unrecognized option '-mpower4'
> > > >> clang-11: error: assembler command failed with exit code 1 (use -v to see invocation)
> > > make[2]: *** [scripts/Makefile.build:268: scripts/mod/empty.o] Error 1
> > > make[2]: Target '__build' not remade because of errors.
> > > make[1]: *** [Makefile:1111: prepare0] Error 2
> > > make[1]: Target 'prepare' not remade because of errors.
> > > make: *** [Makefile:179: sub-make] Error 2
> > > 34 real 9 user 19 sys 84.67% cpu make prepare
> > >
> > > ---
> > > 0-DAY CI Kernel Test Service, Intel Corporation
> > > https://lists.01.org/hyperkitty/list/kbuil...@lists.01.org
> > >
> > > --
> > > You received this message because you are subscribed to the Google Groups "Clang Built Linux" group.
> > > To unsubscribe from this group and stop receiving emails from it, send an email to clang-built-li...@googlegroups.com.
> > > To view this discussion on the web visit https://groups.google.com/d/msgid/clang-built-linux/202003210848.qj0RGHwY%25lkp%40intel.com.
> >
> >
> >
> > --
> > Thanks,
> > ~Nick Desaulniers
> > _______________________________________________
> > kbuild-all mailing list -- kbuil...@lists.01.org
> > To unsubscribe send an email to kbuild-a...@lists.01.org



--
Thanks,
~Nick Desaulniers

Philip Li

unread,
Mar 23, 2020, 7:13:27 PM3/23/20
to Nick Desaulniers, yidin...@intel.com, kbuild test robot, kbuil...@lists.01.org, clang-built-linux
On Mon, Mar 23, 2020 at 03:09:43PM -0700, Nick Desaulniers wrote:
> DTC folks to bcc
>
> On Fri, Mar 20, 2020 at 5:58 PM Philip Li <phil...@intel.com> wrote:
> >
> > On Fri, Mar 20, 2020 at 05:30:45PM -0700, Nick Desaulniers wrote:
> > > Known issue, please ignore: https://github.com/ClangBuiltLinux/linux/issues/675
> > thanks for info, 0-day ci will blacklist this error.
>
> I'd rather not blacklist it. So it looks like we don't see this in
> our CI (example:
> https://travis-ci.com/github/ClangBuiltLinux/continuous-integration/jobs/301119543).
> It seems related to which config you compile with. With the attached
> config, I was not able to reproduce:
>
> $ gunzip config.gz
> $ cp config .config
> $ ARCH=powerpc CROSS_COMPILE=powerpc-linux-gnu- make CC=clang -j71
> olddefconfig # note this shouldn't be needed
> $ ARCH=powerpc CROSS_COMPILE=powerpc-linux-gnu- make CC=clang -j71
> scripts/mod/empty.o
>
> Doesn't produce anything, no error from make about being an invalid
> target, but also no -mpower4 warning. I also don't understand why the
> provided config doesn't set or unset many configs in linux-next.
>
> Can you please triple check? I want to make sure the steps to
> reproduce are reproducible.
got it, we will check this to see what is wrong.

Liu Yiding

unread,
Mar 24, 2020, 11:18:59 PM3/24/20
to Philip Li, Nick Desaulniers, kbuild test robot, kbuil...@lists.01.org, clang-built-linux
Hi, All.

On 3/24/20 7:12 AM, Philip Li wrote:
> On Mon, Mar 23, 2020 at 03:09:43PM -0700, Nick Desaulniers wrote:
>> DTC folks to bcc
>>
>> On Fri, Mar 20, 2020 at 5:58 PM Philip Li <phil...@intel.com> wrote:
>>> On Fri, Mar 20, 2020 at 05:30:45PM -0700, Nick Desaulniers wrote:
>>>> Known issue, please ignore: https://github.com/ClangBuiltLinux/linux/issues/675
>>> thanks for info, 0-day ci will blacklist this error.
>> I'd rather not blacklist it. So it looks like we don't see this in
>> our CI (example:
>> https://travis-ci.com/github/ClangBuiltLinux/continuous-integration/jobs/301119543).
>> It seems related to which config you compile with. With the attached
>> config, I was not able to reproduce:
>>
>> $ gunzip config.gz
>> $ cp config .config
>> $ ARCH=powerpc CROSS_COMPILE=powerpc-linux-gnu- make CC=clang -j71
>> olddefconfig # note this shouldn't be needed
>> $ ARCH=powerpc CROSS_COMPILE=powerpc-linux-gnu- make CC=clang -j71
>> scripts/mod/empty.o
>>
>> Doesn't produce anything, no error from make about being an invalid
>> target, but also no -mpower4 warning. I also don't understand why the
>> provided config doesn't set or unset many configs in linux-next.
>>
>> Can you please triple check? I want to make sure the steps to
>> reproduce are reproducible.
> got it, we will check this to see what is wrong.


Check build log, we missed CROSS_COMPILE when make prepare

```

/usr/bin/timeout -k 100 2h /usr/bin/make HOSTCC=clang-11 CC=clang-11
-j32 -C source O=/kbuild/obj/consumer/powerpc-lyd-reproduce ARCH=powerpc
prepare
[snip]

```

Reproduce it locally.

```

root@liuyd-ubuntu1804:/home/liuyd/linux-next# make
HOSTCC=/root/0day/clang-latest/bin/clang
CC=/root/0day/clang-latest/bin/clang -j8 ARCH=powerpc prepare
scripts/kconfig/conf  --syncconfig Kconfig
[snip]

./include/linux/string.h:159:12: note: 'bcmp' is a builtin with type
'int (const void *, const void *, unsigned long)'
15 warnings generated.
/usr/bin/as: unrecognized option '-mpower4'
clang: error: assembler command failed with exit code 1 (use -v to see
invocation)

```
--
Best regards.
Liu Yiding

Reply all
Reply to author
Forward
0 new messages