make oldconfig error 1 - linux

I built my kernel using fedpkg local (which took 6 hours and I hope I don't have to repeat the process)
Now when I try to use the command "make oldconfig" it returns with the following error
Makefile: 10: recipe for target 'oldconfig' failed
make: *** [oldconfig] Error 1
Can somebody tell me what this means and how to resolve it?

Related

How to compile linux kernel subdirectory?

I want to compile linux kernel subdirectory just like this:
make M=drivers/staging/comedi/
Unfortunately when I do this I get this error:
ERROR: Kernel configuration is invalid.
include/generated/autoconf.h or include/config/auto.conf are missing.
Run 'make oldconfig && make prepare' on kernel src to fix it.
Makefile:648: include/config/auto.conf: Nie ma takiego pliku ani katalogu
make: *** [Makefile:719: include/config/auto.conf] Błąd 1
It may be fixed by this command:
make oldconfig
After executing it, I have to press enter for 2 minutes to select the default options everywhere, and then I get this error anyway:
AR drivers/staging/comedi//built-in.a
WARNING: Symbol version dump "Module.symvers" is missing.
Modules may not have dependencies or modversions.
MODPOST drivers/staging/comedi//Module.symvers
/bin/sh: scripts/mod/modpost: Nie ma takiego pliku ani katalogu
make[1]: *** [scripts/Makefile.modpost:111: drivers/staging/comedi//Module.symvers] Błąd 127
make: *** [Makefile:1701: modules] Błąd 2
I have seen many times in the videos people just building a subdirectory with one make M=somedir command. Why doesn't it work for me?

PULP SDK (platform-rtl)

I'm following the tutorial on PULP SDK build process "https://github.com/pulp-platform/pulp-sdk/blob/b38dabd571287b6183f17a2c5538382b9d3fe668/README.md". I'm blocked at the stage of SDK build when I tape the command "$ make all" and I can't understand what's mean these errors.
ImportError: No module named 'sphinx'
Makefile:56: recipe for target 'html' failed
make[2]: * [html] Error 1
Makefile:14: recipe for target 'all' failed
make[1]: * [all] Error 2
Reached EOF with exit status 2
FATAL ERROR: the command 'build' has failed
Makefile:6: recipe for target 'all' failed
make: *** [all] Error 255
I had a similar problem, this error is caused by not (correctly) installing the pulp-riscv-gnu-toolchain.
So you should first install this toolchain which can be found here https://github.com/pulp-platform/pulp-riscv-gnu-toolchain.
After that you should follow the steps for "Installation (Pulp)" and replace the command for make to sudo make.
Now you can return to your tutorial on PULP SDK build process.
In case you are still encountering the same error than you should execute this command which I found here cannot open libmpfr.so.4 after update on ubuntu 18.04
sudo ln -s /usr/lib/x86_64-linux-gnu/libmpfr.so.6 /usr/lib/x86_64-linux-gnu/libmpfr.so.4
" Bear in mind that this is just workaround which might trigger other issues for your case. However, this might save you the day in cases when the problematic program is just a mean to achieve something else."

PULP SDK build process

I'm new to this website and it is the first time I've worked with the RISC-V processor. I'm following the tutorial of the PULP SDK build process "https://github.com/pulp-platform/pulp-sdk".
But, I'm blocked at the stage of SDK build when I tape the command "$ make all" and I can't understand what's mean these errors.
Below the errors:
sdk:json-tools:build: make all install
make[1]: Entering directory '/home/pulp/project/pulpissimo/pulp-sdk/json-tools'
#### Building in /home/pulp/project/pulpissimo/pulp-sdk/build/sdk/json-tools
#### Release type is RelWithDebInfo
#### Installing to /home/pulp/project/pulpissimo/pulp-sdk/pkg/sdk/dev/install/ws
( cd /home/pulp/project/pulpissimo/pulp-sdk/build/sdk/json-tools ; make all VERBOSE=0 )
make[2]: Entering directory '/home/pulp/project/pulpissimo/pulp-sdk/build/sdk/json-tools'
make[2]: *** No rule to make target 'all'. Stop.
make[2]: Leaving directory '/home/pulp/project/pulpissimo/pulp-sdk/build/sdk/json-tools'
Makefile:46: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/home/pulp/project/pulpissimo/pulp-sdk/json-tools'
Reached EOF with exit status 2
FATAL ERROR: the command 'build' has failed
Makefile:6: recipe for target 'all' failed
make: *** [all] Error 255
Thank you in advance
Have you selected the target as advised in the documentation before running make all?
By running source configs/pulpissimo.sh for example.
I selected the target as advised in the documentation before running make all. In fact, it was a Vivado cmake problem that starts automatically when I run the make all command and it's an old version of cmake.
I solved this problem by uncommenting the line source /opt/Xilinx/Vivado/2018.3/settings64.sh. The day I need to launch Vivado I have to run this line on the command line in the terminal.

Kernel "make module_install" always gives error

Hey guys i am trying to command a custom system call.
I tried every step given on this website.
But whenever i enter the " make modules_install install " command i always get this error :
INSTALL arch/x86/crypto/aes-x86_64.ko
cp: cannot stat 'arch/x86/crypto/aes-x86_64.ko': No such file or directory
Can't read module
scripts/Makefile.modinst:30: recipe for target 'arch/x86/crypto/aes-x86_64.ko' failed
make[1]: *** [arch/x86/crypto/aes-x86_64.ko] Error 2
Makefile:1077: recipe for target '_modinst_' failed
make: *** [_modinst_] Error 2
I searched everywhere but i am unable to find any answer.
Looking forward for a solution.

installing PAR::Packer Module on Perl 5.16

I was trying to install a module named "PAR::Packer" on active Perl version 5.16 running on 64 bit Ubuntu machine . But the installation was exiting with some errors :
this is the error :
-----------------
main.o: In function `main':
main.c:(.text.startup+0x35): undefined reference to `pthread_atfork'
collect2: error: ld returned 1 exit status
make[1]: *** [par] Error 1
make[1]: Leaving directory `/root/.cpan/build/PAR-Packer-1.017-dIGsgr/myldr'
make: *** [subdirs] Error 2
RSCHUPP/PAR-Packer-1.017.tar.gz
/usr/bin/make -- NOT OK
'YAML' not installed, will not store persistent state
Running make test
Can't test without successful make
Running make install
Make had returned bad status, install seems impossible
Failed during this command:
RSCHUPP/PAR-Packer-1.017.tar.gz : make NO
----------------
I also tried with PPM to install this module . PPM installation was successful , but I was not able to run the "pp" command .
Any help would be appreciated .
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=629670
seems to be a bug in debian 64 bit. Changed where they locate the libs.

Resources