LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Mandriva (https://www.linuxquestions.org/questions/mandriva-30/)
-   -   compiling openmandriva lx (https://www.linuxquestions.org/questions/mandriva-30/compiling-openmandriva-lx-4175520381/)

Torben Friis 09-28-2014 11:06 AM

compiling openmandriva lx
 
Hi,
I have followed the rules as indicated in the README file (in /home/kirsten/linux/linux-3.16.3):
1. Downloaded linux-3.16.3 and extracted it in /home/kirsten/linux/linux-3.16.3
2. mkdir /usr/src/linux-3.16.3
3. cd /usr/src/linux-3.16.3
4. make O=/home/kirsten/linux/linux-3.16.3 oldconfig

and I get:
make: *** No rule to make target `oldconfig'. Stop.
Can anyone tell me what is missing?
best regards
torben

knudfl 09-28-2014 01:42 PM

https://www.kernel.org/pub/linux/ker...-3.16.3.tar.xz
The file linux-3.16.3/README : "Do NOT use the /usr/src/linux area !"

""..put the kernel tarball in a directory where you have permissions
(eg. your home directory) and unpack it "".

(( Default build location is /home/<name>/<new-tmp>/ )).

You cannot run 'make oldconfig' with no file ".config".
* 'make oldconfig' is when you copy /boot/config* to linux-3.16.3/ :
$ cp /boot/config-<version> /home/<name>/new-tmp/linux-3.16.3/ !
$ cd linux-3.16/
$ mv config-<version> .config
... then you can do 'make oldconfig'. In /home/kirsten/linux/linux-3.16.3/


-

Torben Friis 09-29-2014 02:38 AM

compiling openmandriva lx
 
Thanks knudfl,
It worked, but when I did a make (in /home/kirsten/linux/linux-3.16.3) I got the following:


PASYMS arch/x86/realmode/rm/pasyms.h
LDS arch/x86/realmode/rm/realmode.lds
LD arch/x86/realmode/rm/realmode.elf
ld: warning: arch/x86/realmode/rm/header.o: missing .note.GNU-stack section implies executable stack
ld: internal error in do_layout, at ../../gold/object.cc:1696
make[3]: *** [arch/x86/realmode/rm/realmode.elf] Error 1
make[2]: *** [arch/x86/realmode/rm/realmode.bin] Error 2
make[1]: *** [arch/x86/realmode] Error 2
make: *** [arch/x86] Error 2
[root@localhost linux-3.16.3]#

Can you help with that too?
best regards
torben

knudfl 09-29-2014 04:02 AM

Please be aware of the "BuildRequires".
This is from the `kernel-3.16.3-300.fc21.src.rpm' source, Fedora 21 :
http://dl.fedoraproject.org/pub/fedo...0.fc21.src.rpm
( I can't find the OpenMandriva cooker kernel source rpm.
E.g. http://ftp.yzu.edu.tw/linux/openmand...er/repository/ : No SRPMS.)


The file kernel.spec (Fedora 21 src.rpm)
Code:

BuildRequires: kmod, patch, bash, sh-utils, tar
BuildRequires: bzip2, xz, findutils, gzip, m4, perl, perl-Carp, make, diffutils, gawk
BuildRequires: gcc, binutils, hmaccalc
BuildRequires: net-tools, hostname, bc
%if %{with_sparse}
BuildRequires: sparse

When you are sure that all the "kernel build prerequisites" are installed,
please try again : $ make mrproper && make

-

Torben Friis 09-29-2014 08:32 AM

compiling openmandriva lx
 
Hi knudfl,

Here is what I have:

kmod ok
patch ok
bash ok
sh-utils found bsh-utils, but could'nt install it
tar ok
bzip2 ok
xz ok (what I used)
findutils ok
gzip ok
m4 ok
perl ok
perl-Carp-Asset |
perl-Carp-Asset-More | I did'nt know which one to choose
perl-Carp-Clan |
perl-Carp-Clan-Share |
make ok
diffutils ok
gawk ok
gcc ok
binutils ok
hmaccalc not found
het-tools ok
hostname ok
bc ok
sparse several with sparse in it.

But I got the same result.

Here is my kernel:

[root@localhost linux-3.16.3]# uname -a
Linux localhost.localdomain 3.13.11-nrjQL-desktop-1omv #1 SMP PREEMPT Sat Apr 26 00:23:26 UTC 2014 i686 i686 i686 GNU/Linux

Is this 64-bit?

Here is my gcc:

[root@localhost linux-3.16.3]# gcc --version
gcc (Linaro GCC 4.8-2014.01) 4.8.3 20140106 (OpenMandriva Association)
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
[root@localhost linux-3.16.3]#

torben

knudfl 09-29-2014 10:58 AM

Quote:

[root@localhost linux-3.16.3]# uname -a
This is more correct : $ uname -m
.. which will show one word only : i686.

But {i686 i686 i686} from 'uname -a' is of course i686 = 32bits.
(A 64bits OS replies with x86_64.)


*** What is it you think that kernel-3.16.3 can do,
that kernel-3.13.11 cannot do ?
Installing a new kernel is no holiday, may go wrong.


About your errors : Don't know. Your prerequisites looks OK.
No patches required http://www.linuxfromscratch.org/lfs/...08/kernel.html

You can also try building the Fedora 21 kernel-3.16.3 :
1) Setup rpm-build http://www.linuxquestions.org/questi...1-a-766486/#13 post #13
1a) # urpmi rpm-build && exit
2) $ rpm -Uvh kernel-3.16.3-300.fc21.src.rpm
3) $ cd rpms/SPECS
.... and delete ``perl-Carp, ´´ from line 410, kernel.spec
4) rpmbuild -bb kernel.spec

If any "module checking" goes wrong caused by the missing perl-Carp :
# CPAN
> CPAN install Carp


-

Torben Friis 09-30-2014 04:11 AM

compiling openm andriva lx
 
Hi knudlf,
So my kernel is 32 bit. My cpu is 64 bit and the gcc does'nt say anything about that, so I assume that I am OK.
I wanted to try a new kernel because I have a problem with Skype, but I dont think it would have any effect. Perhaps mostly because I am interested in Linux.
I have installed CPAN, but it did'nt have any effect. But how do I install Carp? I tried "> CPAN install Carp", but that did'nt work.
TORBEN

knudfl 09-30-2014 06:11 AM

← #7 .
Quote:

> CPAN install Carp"
Probably a test that fails. ( Or you have a home made perl.)

Do it manually : http://search.cpan.org/ >
> http://search.cpan.org/search?query=Carp&mode=all >
> http://search.cpan.org/~zefram/Carp-1.3301/lib/Carp.pm >
> http://www.cpan.org/authors/id/Z/ZE/...-1.3301.tar.gz
> Carp-1.3301.tar.gz

$ tar xvf Carp-1.3301.tar.gz && cd Carp-1.3301/
$ perl Ma<TAB>
$ make
( 'make test' works OK here : "Result: PASS" ).
# make install

-

Torben Friis 09-30-2014 07:51 AM

compiling openmandriva lx
 
Hi knudfl,

I had a problem with "make" - viz:

1. downloaded Carp-1.3301.tar.gz
2. into /home/kirsten/Downloads
3 extracted: tar -xvf Carp-1.3301.tar.gz && cd Carp-1.3301/
4. Carp-1.3301/
Carp-1.3301/MANIFEST
Carp-1.3301/Makefile.PL
.
.
.
Carp-1.3301/t/vivify_gv.t
Carp-1.3301/t/Carp_overload.t
Carp-1.3301/t/arg_regexp.t
5. [root@localhost Carp-1.3301]# perl Makefile.PL
Checking if your kit is complete...
Looks good
JSON::PP 2.27103 is not available
at /usr/lib/perl5/5.16.3/CPAN/Meta/Converter.pm line 23.
at /usr/lib/perl5/5.16.3/ExtUtils/MM_Any.pm line 824.
JSON::PP 2.27103 is not available
at /usr/lib/perl5/5.16.3/CPAN/Meta/Converter.pm line 23.
6 [root@localhost Carp-1.3301]# make
make: *** No targets specified and no makefile found. Stop.
7. [root@localhost Carp-1.3301]# ls
Changes lib/ Makefile.PL MANIFEST META.json META.yml README t/
[root@localhost Carp-1.3301]#

But there is a Makefile, is there not?
torben

knudfl 09-30-2014 08:05 AM

← #9 .

You are not supposed to use root for anything in /home/<name>/,
.. except for 'make install'.

See post #8 : The $ prompt means that you are unprivileged user.
Delete the "Carp-1.3301/" directory, and start from scratch.

Are you missing the basic package 'perl-devel' ?

-

Torben Friis 09-30-2014 09:43 AM

compiling openmandriva lx
 
Hi knudfl,
I installed Carp, did the "'' yes | make oldconfig" and make and got the same error.
I suppose that Carp does not do anything for me here.
I have tried to find the files in "ld: internal error in do_layout, at ../../gold/object.cc:1696" without success.
I am inclined to give up. I think that the people at "openmandriva lx" hav'nt quite got their act together.
Thank you very much for your help.
torben

knudfl 09-30-2014 12:15 PM

# 11.

Actually Carp is for some module testing ... after the most of the build.


All times are GMT -5. The time now is 01:29 PM.