* Problem building i386_defconfig with next-20130920
@ 2013-09-20 17:07 Jim Davis
2013-09-23 0:20 ` Stephen Rothwell
0 siblings, 1 reply; 3+ messages in thread
From: Jim Davis @ 2013-09-20 17:07 UTC (permalink / raw)
To: linux-next
Trying to build a x86 kernel is failing with
kernel/bounds.c:1:0: error: CPU you selected does not support x86-64
instruction set
/*
^
kernel/bounds.c:1:0: warning: -mregparm is ignored in 64-bit mode
[enabled by default]
make[1]: *** [kernel/bounds.s] Error 1
make: *** [prepare0] Error 2
Here's the steps I've gone through in detail, just in case it's pilot error :/
jim@krebstar:~/linux$ make distclean
CLEAN arch/x86/tools
CLEAN .tmp_versions
CLEAN scripts/basic
CLEAN scripts/kconfig
CLEAN include/config include/generated arch/x86/include/generated
CLEAN .config include/generated/uapi/linux/version.h
jim@krebstar:~/linux$ git clean -fdx
jim@krebstar:~/linux$ git remote -v
linux-next git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
(fetch)
linux-next git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
(push)
origin git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
(fetch)
origin git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
(push)
jim@krebstar:~/linux$ git remote update
Fetching origin
Fetching linux-next
jim@krebstar:~/linux$ git describe
v3.12-rc1
jim@krebstar:~/linux$ git tag | grep '^next-' | tail -1
next-20130920
jim@krebstar:~/linux$ make i386_defconfig
HOSTCC scripts/basic/fixdep
HOSTCC scripts/kconfig/conf.o
SHIPPED scripts/kconfig/zconf.tab.c
SHIPPED scripts/kconfig/zconf.lex.c
SHIPPED scripts/kconfig/zconf.hash.c
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/conf
#
# configuration written to .config
#
jim@krebstar:~/linux$ make
scripts/kconfig/conf --silentoldconfig Kconfig
SYSHDR arch/x86/syscalls/../include/generated/uapi/asm/unistd_32.h
SYSHDR arch/x86/syscalls/../include/generated/uapi/asm/unistd_64.h
SYSHDR arch/x86/syscalls/../include/generated/uapi/asm/unistd_x32.h
SYSTBL arch/x86/syscalls/../include/generated/asm/syscalls_32.h
HOSTCC arch/x86/tools/relocs_32.o
HOSTCC arch/x86/tools/relocs_64.o
HOSTCC arch/x86/tools/relocs_common.o
HOSTLD arch/x86/tools/relocs
CHK include/config/kernel.release
UPD include/config/kernel.release
WRAP arch/x86/include/generated/asm/clkdev.h
CHK include/generated/uapi/linux/version.h
UPD include/generated/uapi/linux/version.h
CHK include/generated/utsrelease.h
UPD include/generated/utsrelease.h
CC kernel/bounds.s
gcc: warning: ‘-mcpu=’ is deprecated; use ‘-mtune=’ or ‘-march=’ instead
kernel/bounds.c:1:0: error: CPU you selected does not support x86-64
instruction set
/*
^
kernel/bounds.c:1:0: warning: -mregparm is ignored in 64-bit mode
[enabled by default]
make[1]: *** [kernel/bounds.s] Error 1
make: *** [prepare0] Error 2
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Problem building i386_defconfig with next-20130920
2013-09-20 17:07 Problem building i386_defconfig with next-20130920 Jim Davis
@ 2013-09-23 0:20 ` Stephen Rothwell
2013-09-23 2:20 ` Jim Davis
0 siblings, 1 reply; 3+ messages in thread
From: Stephen Rothwell @ 2013-09-23 0:20 UTC (permalink / raw)
To: Jim Davis; +Cc: linux-next
[-- Attachment #1: Type: text/plain, Size: 1845 bytes --]
Hi Jim,
On Fri, 20 Sep 2013 10:07:42 -0700 Jim Davis <jim.epost@gmail.com> wrote:
>
> Trying to build a x86 kernel is failing with
>
> kernel/bounds.c:1:0: error: CPU you selected does not support x86-64
> instruction set
> /*
> ^
> kernel/bounds.c:1:0: warning: -mregparm is ignored in 64-bit mode
> [enabled by default]
> make[1]: *** [kernel/bounds.s] Error 1
> make: *** [prepare0] Error 2
>
> Here's the steps I've gone through in detail, just in case it's pilot error :/
>
> jim@krebstar:~/linux$ make distclean
> CLEAN arch/x86/tools
> CLEAN .tmp_versions
> CLEAN scripts/basic
> CLEAN scripts/kconfig
> CLEAN include/config include/generated arch/x86/include/generated
> CLEAN .config include/generated/uapi/linux/version.h
> jim@krebstar:~/linux$ git clean -fdx
> jim@krebstar:~/linux$ git remote -v
> linux-next git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
> (fetch)
> linux-next git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
> (push)
> origin git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
> (fetch)
> origin git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
> (push)
> jim@krebstar:~/linux$ git remote update
> Fetching origin
> Fetching linux-next
> jim@krebstar:~/linux$ git describe
> v3.12-rc1
> jim@krebstar:~/linux$ git tag | grep '^next-' | tail -1
> next-20130920
> jim@krebstar:~/linux$ make i386_defconfig
So, you are building v3.12-rc1, not linux-next ... i386_defconfig is one
of the builds I do before releasing linux-next (but not on just Linus'
tree) and it did not fail for me on Friday (gcc 4.6.3 if it matters), so
maybe this is fixed by something after -rc1 or in linux-next.
--
Cheers,
Stephen Rothwell sfr@canb.auug.org.au
[-- Attachment #2: Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Problem building i386_defconfig with next-20130920
2013-09-23 0:20 ` Stephen Rothwell
@ 2013-09-23 2:20 ` Jim Davis
0 siblings, 0 replies; 3+ messages in thread
From: Jim Davis @ 2013-09-23 2:20 UTC (permalink / raw)
To: Stephen Rothwell; +Cc: linux-next
I think it's a gcc version issue on my system. I'm running Ubuntu
13.04, and after that upgrade the compiler version was 4.8.1. I tried
downgrading to gcc 4.4 and that got past the error.
My gcc-fu is way too weak to figure out why the newer version was
causing problems, but there has for some time also been a problem
compiling the seccomp filter example program, that also seemed to
point to an issue with the Ubuntu build setup -- or at least the
Ubuntu build setup on my system.
On Sun, Sep 22, 2013 at 5:20 PM, Stephen Rothwell <sfr@canb.auug.org.au> wrote:
> Hi Jim,
>
> On Fri, 20 Sep 2013 10:07:42 -0700 Jim Davis <jim.epost@gmail.com> wrote:
>>
>> Trying to build a x86 kernel is failing with
>>
>> kernel/bounds.c:1:0: error: CPU you selected does not support x86-64
>> instruction set
>> /*
>> ^
>> kernel/bounds.c:1:0: warning: -mregparm is ignored in 64-bit mode
>> [enabled by default]
>> make[1]: *** [kernel/bounds.s] Error 1
>> make: *** [prepare0] Error 2
>>
>> Here's the steps I've gone through in detail, just in case it's pilot error :/
>>
>> jim@krebstar:~/linux$ make distclean
>> CLEAN arch/x86/tools
>> CLEAN .tmp_versions
>> CLEAN scripts/basic
>> CLEAN scripts/kconfig
>> CLEAN include/config include/generated arch/x86/include/generated
>> CLEAN .config include/generated/uapi/linux/version.h
>> jim@krebstar:~/linux$ git clean -fdx
>> jim@krebstar:~/linux$ git remote -v
>> linux-next git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
>> (fetch)
>> linux-next git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
>> (push)
>> origin git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
>> (fetch)
>> origin git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
>> (push)
>> jim@krebstar:~/linux$ git remote update
>> Fetching origin
>> Fetching linux-next
>> jim@krebstar:~/linux$ git describe
>> v3.12-rc1
>> jim@krebstar:~/linux$ git tag | grep '^next-' | tail -1
>> next-20130920
>> jim@krebstar:~/linux$ make i386_defconfig
>
> So, you are building v3.12-rc1, not linux-next ... i386_defconfig is one
> of the builds I do before releasing linux-next (but not on just Linus'
> tree) and it did not fail for me on Friday (gcc 4.6.3 if it matters), so
> maybe this is fixed by something after -rc1 or in linux-next.
>
> --
> Cheers,
> Stephen Rothwell sfr@canb.auug.org.au
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-09-23 2:20 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-09-20 17:07 Problem building i386_defconfig with next-20130920 Jim Davis
2013-09-23 0:20 ` Stephen Rothwell
2013-09-23 2:20 ` Jim Davis
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).