[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAGXu5j+VGGz7DD4M5_MxdKo7uy4Bhyt37hfREZKL5C6LA9O1_w@mail.gmail.com>
Date: Fri, 6 Jan 2017 12:53:11 -0800
From: Kees Cook <keescook@...omium.org>
To: Michal Hocko <mhocko@...nel.org>
Cc: LKML <linux-kernel@...r.kernel.org>
Subject: Re: next: s390 allyesconfig fails to compile samples/seccomp
On Fri, Jan 6, 2017 at 12:18 PM, Kees Cook <keescook@...omium.org> wrote:
> On Fri, Jan 6, 2017 at 7:04 AM, Michal Hocko <mhocko@...nel.org> wrote:
>> Hi,
>> I am not relly sure what went wrong, but I've noticed that allyesconfig
>> doesn't compile with my s390 crosscompiler with a strange error
>> messages for linux-next (next-20170106). Linus' tree compiles just fine.
>> It smells like some headers include problems because
>> $ git diff origin/master..next/master -- samples/seccomp/
>> doesn't show anything...
>
> Oh, how strange. Did __BITS_PER_LONG move around? That's part of uapi...
>
>
>>
>> samples/seccomp/bpf-helper.h:134:2: error: #error __BITS_PER_LONG value unusable.
>> #error __BITS_PER_LONG value unusable.
>> ^
>
> #include <asm/bitsperlong.h> /* for __BITS_PER_LONG */
>
> Hm, maybe this should be uapi/asm/bitsperlong.h ?
>
> Let me see if I can reproduce this...
I don't see the samples error. :(
I do get this, though:
OBJCOPY arch/s390/boot/compressed/vmlinux.bin
GZIP arch/s390/boot/compressed/vmlinux.bin.gz
AS arch/s390/boot/compressed/head.o
CC arch/s390/boot/compressed/misc.o
LD arch/s390/boot/compressed/piggy.o
s390x-linux-gnu-ld: arch/s390/boot/compressed/vmlinux.bin.gz: not in ELF format
arch/s390/boot/compressed/Makefile:71: recipe for target
'arch/s390/boot/compressed/piggy.o' failed
make[2]: *** [arch/s390/boot/compressed/piggy.o] Error 1
arch/s390/boot/Makefile:22: recipe for target
'arch/s390/boot/compressed/vmlinux' failed
make[1]: *** [arch/s390/boot/compressed/vmlinux] Error 2
arch/s390/Makefile:119: recipe for target 'bzImage' failed
I'm using:
$ s390x-linux-gnu-gcc --version
s390x-linux-gnu-gcc (Ubuntu 5.4.0-6ubuntu1~16.04.1) 5.4.0 20160609
-Kees
--
Kees Cook
Nexus Security
Powered by blists - more mailing lists