LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 09-28-2014, 11:06 AM   #1
Torben Friis
Member
 
Registered: Oct 2008
Posts: 71

Rep: Reputation: 15
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
 
Old 09-28-2014, 01:42 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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/


-

Last edited by knudfl; 09-28-2014 at 01:55 PM.
 
Old 09-29-2014, 02:38 AM   #3
Torben Friis
Member
 
Registered: Oct 2008
Posts: 71

Original Poster
Rep: Reputation: 15
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
 
Old 09-29-2014, 04:02 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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

-

Last edited by knudfl; 09-29-2014 at 04:03 AM.
 
Old 09-29-2014, 08:32 AM   #5
Torben Friis
Member
 
Registered: Oct 2008
Posts: 71

Original Poster
Rep: Reputation: 15
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
 
Old 09-29-2014, 10:58 AM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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


-

Last edited by knudfl; 09-29-2014 at 11:01 AM.
 
Old 09-30-2014, 04:11 AM   #7
Torben Friis
Member
 
Registered: Oct 2008
Posts: 71

Original Poster
Rep: Reputation: 15
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
 
Old 09-30-2014, 06:11 AM   #8
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
← #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

-
 
Old 09-30-2014, 07:51 AM   #9
Torben Friis
Member
 
Registered: Oct 2008
Posts: 71

Original Poster
Rep: Reputation: 15
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
 
Old 09-30-2014, 08:05 AM   #10
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
← #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' ?

-
 
Old 09-30-2014, 09:43 AM   #11
Torben Friis
Member
 
Registered: Oct 2008
Posts: 71

Original Poster
Rep: Reputation: 15
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
 
Old 09-30-2014, 12:15 PM   #12
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 11.

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


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] compiling openmandriva lx 3.13.11-nrjQL-desktop-1omv on acer portable Torben Friis Mandriva 0 09-27-2014 06:45 PM
LXer: OpenMandriva Beta out now LXer Syndicated Linux News 0 03-26-2014 05:01 PM
compiling OpenMandriva Torben Friis Mandriva 0 12-16-2013 04:44 PM
First Community OpenMandriva Released jeremy Linux - News 0 11-24-2013 01:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 04:57 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration