[opensuse-support] What happened to "cloneconfig" (kernel sources make)
Hi, I tried this, which had been working for a decade at least and is documented: Telcontar:~ # cd /usr/src/linux Telcontar:/usr/src/linux # make cloneconfig make[1]: *** No rule to make target 'cloneconfig'. Stop. make: *** [Makefile:569: cloneconfig] Error 2 Telcontar:/usr/src/linux # What? The documentation still says to use it: /usr/share/doc/packages/kernel-source-4.12.14-lp150.12.45/README.SUSE: «In addition, the running kernel exposes a gzip compressed version of its configuration file as /proc/config.gz. The kernel sources can be configured based on /proc/config.gz with ``make cloneconfig''.» So, what should I use instead to get the same result? Perhaps copy /proc/config.gz to /usr/src/linux and expand it? -- Cheers / Saludos, Carlos E. R. (from 15.0 x86_64 at Telcontar)
On 21/01/2019 22.46, Carlos E. R. wrote:
Hi,
...
So, what should I use instead to get the same result? Perhaps copy /proc/config.gz to /usr/src/linux and expand it?
I did that (to get a .config), and now I get: Telcontar:/usr/src/linux # echo -e "\n-- scripts --" && make scripts && echo -e "\n-- prepare --" && make prepare && echo -e "\n-- Done good! --" -- scripts -- scripts/kconfig/conf --silentoldconfig Kconfig HOSTCC scripts/basic/bin2c WRAP arch/x86/include/generated/asm/clkdev.h WRAP arch/x86/include/generated/asm/dma-contiguous.h WRAP arch/x86/include/generated/asm/early_ioremap.h WRAP arch/x86/include/generated/asm/mcs_spinlock.h WRAP arch/x86/include/generated/asm/mm-arch-hooks.h HOSTCC scripts/genksyms/genksyms.o SHIPPED scripts/genksyms/parse.tab.c HOSTCC scripts/genksyms/parse.tab.o SHIPPED scripts/genksyms/lex.lex.c SHIPPED scripts/genksyms/keywords.hash.c SHIPPED scripts/genksyms/parse.tab.h HOSTCC scripts/genksyms/lex.lex.o HOSTLD scripts/genksyms/genksyms CC scripts/mod/empty.o HOSTCC scripts/mod/mk_elfconfig MKELF scripts/mod/elfconfig.h HOSTCC scripts/mod/modpost.o scripts/mod/modpost.c:26:10: fatal error: ../../include/generated/uapi/linux/suse_version.h: No such file or directory #include "../../include/generated/uapi/linux/suse_version.h" ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ compilation terminated. make[2]: *** [scripts/Makefile.host:124: scripts/mod/modpost.o] Error 1 make[1]: *** [scripts/Makefile.build:599: scripts/mod] Error 2 make: *** [Makefile:583: scripts] Error 2 Telcontar:/usr/src/linux # What is going on? -- Cheers / Saludos, Carlos E. R. (from 15.0 x86_64 at Telcontar)
22.01.2019 0:53, Carlos E. R. пишет:
On 21/01/2019 22.46, Carlos E. R. wrote:
Hi,
...
So, what should I use instead to get the same result? Perhaps copy /proc/config.gz to /usr/src/linux and expand it?
I did that (to get a .config), and now I get:
Telcontar:/usr/src/linux # echo -e "\n-- scripts --" && make scripts && echo -e "\n-- prepare --" && make prepare && echo -e "\n-- Done good! --"
-- scripts -- scripts/kconfig/conf --silentoldconfig Kconfig ... scripts/mod/modpost.c:26:10: fatal error: ../../include/generated/uapi/linux/suse_version.h: No such file or directory #include "../../include/generated/uapi/linux/suse_version.h" ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
suse_version.h is generated during "make prepare"
What is going on?
On 24/01/2019 05.32, Andrei Borzenkov wrote:
22.01.2019 0:53, Carlos E. R. пишет:
On 21/01/2019 22.46, Carlos E. R. wrote:
Hi,
...
So, what should I use instead to get the same result? Perhaps copy /proc/config.gz to /usr/src/linux and expand it?
I did that (to get a .config), and now I get:
Telcontar:/usr/src/linux # echo -e "\n-- scripts --" && make scripts && echo -e "\n-- prepare --" && make prepare && echo -e "\n-- Done good! --"
-- scripts -- scripts/kconfig/conf --silentoldconfig Kconfig ... scripts/mod/modpost.c:26:10: fatal error: ../../include/generated/uapi/linux/suse_version.h: No such file or directory #include "../../include/generated/uapi/linux/suse_version.h" ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
suse_version.h is generated during "make prepare"
Well, it wasn't. As you can see above, I did run "make prepare". -- Cheers / Saludos, Carlos E. R. (from 15.0 x86_64 at Telcontar)
On Thu, Jan 24, 2019 at 12:13 PM Carlos E.R. <robin.listas@gmx.es> wrote:
On 24/01/2019 05.32, Andrei Borzenkov wrote:
22.01.2019 0:53, Carlos E. R. пишет:
On 21/01/2019 22.46, Carlos E. R. wrote:
Hi,
...
So, what should I use instead to get the same result? Perhaps copy /proc/config.gz to /usr/src/linux and expand it?
I did that (to get a .config), and now I get:
Telcontar:/usr/src/linux # echo -e "\n-- scripts --" && make scripts && echo -e "\n-- prepare --" && make prepare && echo -e "\n-- Done good! --"
-- scripts -- scripts/kconfig/conf --silentoldconfig Kconfig ... scripts/mod/modpost.c:26:10: fatal error: ../../include/generated/uapi/linux/suse_version.h: No such file or directory #include "../../include/generated/uapi/linux/suse_version.h" ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
suse_version.h is generated during "make prepare"
Well, it wasn't.
As you can see above, I did run "make prepare".
No, you did not. It failed before "make prepare". If you run it before, we obviously have no way to know it. -- To unsubscribe, e-mail: opensuse-support+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-support+owner@opensuse.org
On 24/01/2019 10.32, Andrei Borzenkov wrote:
On Thu, Jan 24, 2019 at 12:13 PM Carlos E.R. <> wrote:
On 24/01/2019 05.32, Andrei Borzenkov wrote:
22.01.2019 0:53, Carlos E. R. пишет:
On 21/01/2019 22.46, Carlos E. R. wrote:
Hi,
...
So, what should I use instead to get the same result? Perhaps copy /proc/config.gz to /usr/src/linux and expand it?
I did that (to get a .config), and now I get:
Telcontar:/usr/src/linux # echo -e "\n-- scripts --" && make scripts && echo -e "\n-- prepare --" && make prepare && echo -e "\n-- Done good! --"
-- scripts -- scripts/kconfig/conf --silentoldconfig Kconfig ... scripts/mod/modpost.c:26:10: fatal error: ../../include/generated/uapi/linux/suse_version.h: No such file or directory #include "../../include/generated/uapi/linux/suse_version.h" ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
suse_version.h is generated during "make prepare"
Well, it wasn't.
As you can see above, I did run "make prepare".
No, you did not. It failed before "make prepare". If you run it before, we obviously have no way to know it.
I posted the command line I used with the order of commands I used, the same for perhaps a decade: make scripts make prepare Now for some unknown reason it has to be reversed, but the official documentation has not changed. Notice the documentation at "/usr/src/linux/README.SUSE", it says: The first method involves the following steps: (1) Install the kernel-source package. (2) Configure the kernel, see HOW TO CONFIGURE THE KERNEL SOURCES. (3) Create files required for compiling external modules: ``make scripts'' and ``make prepare''. <================================ (4) Compile the module(s) by changing into the module source directory and typing ``make -C $(your_build_dir) M=$(pwd)''. (5) Install the module(s) by typing ``make -C $(your_build_dir) M=$(pwd) modules_install''. -- Cheers / Saludos, Carlos E. R. (from 15.0 x86_64 at Telcontar)
Hello, On Mon, 21 Jan 2019, Carlos E. R. wrote:
Telcontar:~ # cd /usr/src/linux Telcontar:/usr/src/linux # make cloneconfig make[1]: *** No rule to make target 'cloneconfig'. Stop. make: *** [Makefile:569: cloneconfig] Error 2 Telcontar:/usr/src/linux # [..] So, what should I use instead to get the same result? Perhaps copy /proc/config.gz to /usr/src/linux and expand it?
Sort of. # cd /usr/src/linux/ # zcat /proc/config.gz > .config # make silentoldconfig HTH, -dnh -- I've never understood why women douse themselves with things that are alleged to smell of roses/tulips/freesias. What exactly are they trying to attract? Bees? -- Tanuki -- To unsubscribe, e-mail: opensuse-support+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-support+owner@opensuse.org
On 23/01/2019 19.52, David Haller wrote:
Hello,
On Mon, 21 Jan 2019, Carlos E. R. wrote:
Telcontar:~ # cd /usr/src/linux Telcontar:/usr/src/linux # make cloneconfig make[1]: *** No rule to make target 'cloneconfig'. Stop. make: *** [Makefile:569: cloneconfig] Error 2 Telcontar:/usr/src/linux # [..] So, what should I use instead to get the same result? Perhaps copy /proc/config.gz to /usr/src/linux and expand it?
Sort of.
# cd /usr/src/linux/ # zcat /proc/config.gz > .config # make silentoldconfig
Ok! I always then did make scripts && make prepare , and now it seems I have to do in n reverse order, make prepare && make scripts. Go figure. -- Cheers / Saludos, Carlos E. R. (from 15.0 x86_64 at Telcontar)
On 21/01/2019 22.46, Carlos E. R. wrote:
Hi,
I tried this, which had been working for a decade at least and is documented:
Telcontar:~ # cd /usr/src/linux Telcontar:/usr/src/linux # make cloneconfig make[1]: *** No rule to make target 'cloneconfig'. Stop. make: *** [Makefile:569: cloneconfig] Error 2 Telcontar:/usr/src/linux #
What?
The documentation still says to use it:
/usr/share/doc/packages/kernel-source-4.12.14-lp150.12.45/README.SUSE:
Reported. Bugzilla – Bug 1123348 -- Cheers / Saludos, Carlos E. R. (from 15.0 x86_64 at Telcontar)
participants (4)
-
Andrei Borzenkov
-
Carlos E. R.
-
Carlos E.R.
-
David Haller