2013-04-12 14:52:33

by Toralf Förster

[permalink] [raw]
Subject: build error with latest git kernel for a user mode linux build

I get :
..
CC kernel/bounds.s
GEN include/generated/bounds.h
CC arch/um/kernel/asm-offsets.s
In file included from /home/tfoerste/devel/linux/arch/um/include/asm/mman.h:5:0,
from /home/tfoerste/devel/linux/arch/x86/um/shared/sysdep/kernel-offsets.h:5,
from arch/um/kernel/asm-offsets.c:1:
/home/tfoerste/devel/linux/arch/um/include/shared/as-layout.h:9:35: fatal error: generated/asm-offsets.h: No such file or directory
compilation terminated.
make[1]: *** [arch/um/kernel/asm-offsets.s] Error 1
make: *** [prepare0] Error 2


--
MfG/Sincerely
Toralf Förster
pgp finger print: 7B1A 07F4 EC82 0F90 D4C2 8936 872A E508 7DB6 9DA3


Attachments:
.config (22.42 kB)

2013-04-12 15:00:05

by Richard Weinberger

[permalink] [raw]
Subject: Re: build error with latest git kernel for a user mode linux build

On Fri, Apr 12, 2013 at 4:52 PM, Toralf F?rster <[email protected]> wrote:
> I get :
> ..
> CC kernel/bounds.s
> GEN include/generated/bounds.h
> CC arch/um/kernel/asm-offsets.s
> In file included from /home/tfoerste/devel/linux/arch/um/include/asm/mman.h:5:0,
> from /home/tfoerste/devel/linux/arch/x86/um/shared/sysdep/kernel-offsets.h:5,
> from arch/um/kernel/asm-offsets.c:1:
> /home/tfoerste/devel/linux/arch/um/include/shared/as-layout.h:9:35: fatal error: generated/asm-offsets.h: No such file or directory
> compilation terminated.
> make[1]: *** [arch/um/kernel/asm-offsets.s] Error 1
> make: *** [prepare0] Error 2

Did you specify ARCH=um and SUBARCH=?

--
Thanks,
//richard

2013-04-12 17:26:35

by Toralf Förster

[permalink] [raw]
Subject: Re: build error with latest git kernel for a user mode linux build

On 04/12/2013 05:00 PM, richard -rw- weinberger wrote:
> Did you specify ARCH=um and SUBARCH=?
Only ARCH=um, but the full line give the same :

$ make ARCH=um SUBARCH=x86
scripts/kconfig/conf --silentoldconfig arch/x86/um/Kconfig
CHK include/generated/uapi/linux/version.h
make[3]: Nothing to be done for `all'.
make[1]: `arch/x86/um/user-offsets.s' is up to date.
CHK include/generated/utsrelease.h
CC arch/um/kernel/asm-offsets.s
In file included from /home/tfoerste/devel/linux/arch/um/include/asm/mman.h:5:0,
from /home/tfoerste/devel/linux/arch/x86/um/shared/sysdep/kernel-offsets.h:5,
from arch/um/kernel/asm-offsets.c:1:
/home/tfoerste/devel/linux/arch/um/include/shared/as-layout.h:9:35: fatal error: generated/asm-offsets.h: No such file or directory
compilation terminated.
make[1]: *** [arch/um/kernel/asm-offsets.s] Error 1
make: *** [prepare0] Error 2


--
MfG/Sincerely
Toralf Förster
pgp finger print: 7B1A 07F4 EC82 0F90 D4C2 8936 872A E508 7DB6 9DA3

2013-04-12 17:41:18

by Richard Weinberger

[permalink] [raw]
Subject: Re: build error with latest git kernel for a user mode linux build

On Fri, Apr 12, 2013 at 7:26 PM, Toralf F?rster <[email protected]> wrote:
> On 04/12/2013 05:00 PM, richard -rw- weinberger wrote:
>> Did you specify ARCH=um and SUBARCH=?
> Only ARCH=um, but the full line give the same :
>
> $ make ARCH=um SUBARCH=x86
> scripts/kconfig/conf --silentoldconfig arch/x86/um/Kconfig
> CHK include/generated/uapi/linux/version.h
> make[3]: Nothing to be done for `all'.
> make[1]: `arch/x86/um/user-offsets.s' is up to date.
> CHK include/generated/utsrelease.h
> CC arch/um/kernel/asm-offsets.s
> In file included from /home/tfoerste/devel/linux/arch/um/include/asm/mman.h:5:0,
> from /home/tfoerste/devel/linux/arch/x86/um/shared/sysdep/kernel-offsets.h:5,
> from arch/um/kernel/asm-offsets.c:1:
> /home/tfoerste/devel/linux/arch/um/include/shared/as-layout.h:9:35: fatal error: generated/asm-offsets.h: No such file or directory
> compilation terminated.
> make[1]: *** [arch/um/kernel/asm-offsets.s] Error 1
> make: *** [prepare0] Error 2

You .config build perfectly fine here.
Have you tried a "make mrproper"?

Thanks,
//richard

2013-04-12 17:47:17

by Toralf Förster

[permalink] [raw]
Subject: Re: build error with latest git kernel for a user mode linux build

On 04/12/2013 07:41 PM, richard -rw- weinberger wrote:
> You .config build perfectly fine here.
> Have you tried a "make mrproper"?

$ cp .config ../; make mrproper; make mrproper ARCH=um; make mrproper ARCH=um SUBARCH=x86; cp ../.config .; make ARCH=um SUBARCH=x86 oldconfig; make ARCH=um SUBARCH=x86 linux
CLEAN .
CLEAN .tmp_versions
...
GEN include/generated/bounds.h
CC arch/um/kernel/asm-offsets.s
In file included from /home/tfoerste/devel/linux/arch/um/include/asm/mman.h:5:0,
from /home/tfoerste/devel/linux/arch/x86/um/shared/sysdep/kernel-offsets.h:5,
from arch/um/kernel/asm-offsets.c:1:
/home/tfoerste/devel/linux/arch/um/include/shared/as-layout.h:9:35: fatal error: generated/asm-offsets.h: No such file or directory
compilation terminated.
make[1]: *** [arch/um/kernel/asm-offsets.s] Error 1
make: *** [prepare0] Error 2




:-(

--
MfG/Sincerely
Toralf Förster
pgp finger print: 7B1A 07F4 EC82 0F90 D4C2 8936 872A E508 7DB6 9DA3

2013-04-12 17:51:41

by Toralf Förster

[permalink] [raw]
Subject: Re: build error with latest git kernel for a user mode linux build

On 04/12/2013 07:41 PM, richard -rw- weinberger wrote:
> You .config build perfectly fine here.
> Have you tried a "make mrproper"?
ick - I forgot to un-apply your patch you sent to me related to the trinity-madvise UML problem - compiles fine now again

but this now seems not to work any longer :

$ cat devel/stub_pte_fix.diff
diff --git a/arch/um/include/asm/Kbuild b/arch/um/include/asm/Kbuild
index b30f34a..db2d885 100644
--- a/arch/um/include/asm/Kbuild
+++ b/arch/um/include/asm/Kbuild
@@ -3,3 +3,4 @@ generic-y += hw_irq.h irq_regs.h kdebug.h percpu.h sections.h topology.h xor.h
generic-y += ftrace.h pci.h io.h param.h delay.h mutex.h current.h exec.h
generic-y += switch_to.h clkdev.h
generic-y += trace_clock.h
+header-y += mman.h
diff --git a/arch/um/include/asm/mman.h b/arch/um/include/asm/mman.h
new file mode 100644
index 0000000..d8fb362
--- /dev/null
+++ b/arch/um/include/asm/mman.h
@@ -0,0 +1,10 @@
+#ifndef __UM_MMAN_H__
...

--
MfG/Sincerely
Toralf Förster
pgp finger print: 7B1A 07F4 EC82 0F90 D4C2 8936 872A E508 7DB6 9DA3

2013-04-12 18:39:51

by Richard Weinberger

[permalink] [raw]
Subject: Re: build error with latest git kernel for a user mode linux build

On Fri, Apr 12, 2013 at 7:51 PM, Toralf F?rster <[email protected]> wrote:
> On 04/12/2013 07:41 PM, richard -rw- weinberger wrote:
>> You .config build perfectly fine here.
>> Have you tried a "make mrproper"?
> ick - I forgot to un-apply your patch you sent to me related to the trinity-madvise UML problem - compiles fine now again
>
> but this now seems not to work any longer :
>
> $ cat devel/stub_pte_fix.diff
> diff --git a/arch/um/include/asm/Kbuild b/arch/um/include/asm/Kbuild
> index b30f34a..db2d885 100644
> --- a/arch/um/include/asm/Kbuild
> +++ b/arch/um/include/asm/Kbuild
> @@ -3,3 +3,4 @@ generic-y += hw_irq.h irq_regs.h kdebug.h percpu.h sections.h topology.h xor.h
> generic-y += ftrace.h pci.h io.h param.h delay.h mutex.h current.h exec.h
> generic-y += switch_to.h clkdev.h
> generic-y += trace_clock.h
> +header-y += mman.h
> diff --git a/arch/um/include/asm/mman.h b/arch/um/include/asm/mman.h
> new file mode 100644
> index 0000000..d8fb362
> --- /dev/null
> +++ b/arch/um/include/asm/mman.h
> @@ -0,0 +1,10 @@
> +#ifndef __UM_MMAN_H__
> ...

The attached patch is an updated version of stub_pte_fix.diff. It
should fix your issues. :-)

--
Thanks,
//richard


Attachments:
stub_pte_fix.diff (2.39 kB)

2013-04-12 18:47:52

by Toralf Förster

[permalink] [raw]
Subject: Re: build error with latest git kernel for a user mode linux build

On 04/12/2013 08:39 PM, richard -rw- weinberger wrote:
> The attached patch is an updated version of stub_pte_fix.diff. It
> should fix your issues. :-)

yup - thx
:-)

--
MfG/Sincerely
Toralf Förster
pgp finger print: 7B1A 07F4 EC82 0F90 D4C2 8936 872A E508 7DB6 9DA3