-
Senior Member
registered user
![Quote](images/misc/quote_icon.png)
Originally Posted by
ruymbeke
Hi kl522,
Here you go, I remember that Klaus mentioned once that he was using an eepc for development
and yes Knoppix 7.0.3 is using a more recent version of gcc 4.7.1-2 than the one used to compile
the kernel (gcc 4.7.1-1) as you read below. So I need to either downgrade gcc to 4.7.1-1 or use
a previous version of Knoppix which still uses that version of gcc. I would be nice to have installed
on Knoppix the correct version of gcc to recompile the kernel without complication. I guess this is a
suggestion for improvement that Klaus may consider to use on his next release.
Thanks for your help.
Best Regards,
Gilles
root@Knoppix:/# cat /proc/version
Linux version 3.4.4 (root@eeepc) (gcc version 4.7.0 (Debian 4.7.1-1) ) #14 SMP PREEMPT Sat Jun 23 20:07:21 CEST 2012
root@Knoppix:/# gcc --version
gcc (Debian 4.7.1-2) 4.7.1
Copyright (C) 2012 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.
The module file can be edited manually. I have done before, after editing the module using vi, if the length of string remains, the module can be loaded. Or perhaps insmod has a force option to forcefully load a module.
-
![Quote](images/misc/quote_icon.png)
Originally Posted by
ruymbeke
...So I need to either downgrade gcc to 4.7.1-1 or use a previous version of Knoppix...
Well Knoppix 7.0.2 is using an older version of gcc 4.6.3-7 so I will need to downgrade gcc on Knoppix 7.0.3.
So what is the easiest way to find and reinstall an older version of gcc ?
apt-get -y --reinstall install gcc-4.7=4.7.1 does not work: "E: Version '4.7.1' for 'gcc-4.7' was not found"
Best Regards,
Gilles
-
Senior Member
registered user
![Quote](images/misc/quote_icon.png)
Originally Posted by
kl522
The module file can be edited manually. I have done before, after editing the module using vi, if the length of string remains, the module can be loaded. Or perhaps insmod has a force option to forcefully load a module.
Perhaps can try this :-
# sed -i -e 's/GCC: (Debian 4.7.1-2) 4.7.1/GCC: (Debian 4.7.1-1) 4.7.0/g' oprofile.ko
Might be faster than other methods.
-
![Quote](images/misc/quote_icon.png)
Originally Posted by
kl522
... sed -i -e 's/GCC: (Debian 4.7.1-2) 4.7.1/GCC: (Debian 4.7.1-1) 4.7.0/g' oprofile.ko ...
Nice trick but the module still does not load because of Unknown symbols.
I may have to overlay the kernel and all the modules ...
-
Senior Member
registered user
Too bad then, I think other things are probably changed too. Maybe can still try modprobe -f.
Last edited by kl522; 08-01-2012 at 09:36 AM.
-
![Quote](images/misc/quote_icon.png)
Originally Posted by
kl522
Too bad then, I think other things are probably changed too. Maybe can still try modprobe -f.
Hi kl522,
Nope: # depmod; modprobe -f oprofile ==> ERROR: could not insert 'oprofile': Exec format error
Thanks for your help !
Gilles
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
![Dell SNPTP9W1C/16G 16 GB 2666MHz (PC4-2666) Memory Ram picture](/store/img/g/JKYAAOSwpONmaNJP/s-l225/Dell-SNPTP9W1C-16G-16-GB-2666MHz-PC4-2666-Memory-R.jpg)
Dell SNPTP9W1C/16G 16 GB 2666MHz (PC4-2666) Memory Ram
$34.95
![Crucial 8GB 1x8GB PC RAM PC3L 12800U DDR3 1600MHz Desktop Memory DIMM picture](/store/img/g/S5oAAOSwIq5mcvT-/s-l225/Crucial-8GB-1x8GB-PC-RAM-PC3L-12800U-DDR3-1600MHz-.jpg)
Crucial 8GB 1x8GB PC RAM PC3L 12800U DDR3 1600MHz Desktop Memory DIMM
$8.36
![A-Tech 8GB DDR3 1600 PC3-12800 Laptop SODIMM 204-Pin Memory RAM PC3L DDR3L 1x 8G picture](/store/img/g/RCAAAOSweqdeWaui/s-l225/A-Tech-8GB-DDR3-1600-PC3-12800-Laptop-SODIMM-204-P.jpg)
A-Tech 8GB DDR3 1600 PC3-12800 Laptop SODIMM 204-Pin Memory RAM PC3L DDR3L 1x 8G
$13.99
![Team Group Elite+ 16GB (8GBx2) DDR4 2400MHz RAM (TPRD48G2400HC16BK) picture](/store/img/g/Ny0AAOSwZbhmaest/s-l225/Team-Group-Elite-16GB-8GBx2-DDR4-2400MHz-RAM-TPRD4.jpg)
Team Group Elite+ 16GB (8GBx2) DDR4 2400MHz RAM (TPRD48G2400HC16BK)
$23.99
![Team T-FORCE VULCAN Z 32GB (2 x 16GB) PC RAM DDR4 3200 (PC4 25600) Memory picture](/store/img/g/~u4AAOSwK-liKn7t/s-l225/Team-T-FORCE-VULCAN-Z-32GB-2-x-16GB-PC-RAM-DDR4-32.jpg)
Team T-FORCE VULCAN Z 32GB (2 x 16GB) PC RAM DDR4 3200 (PC4 25600) Memory
$54.99
![Micron 16GB DDR4-2400 SODIMM MTA16ATF2G64HZ-2G3E1 Laptop Memory RAM picture](/store/img/g/erEAAOSw6Hdmb2EJ/s-l225/Micron-16GB-DDR4-2400-SODIMM-MTA16ATF2G64HZ-2G3E1-.jpg)
Micron 16GB DDR4-2400 SODIMM MTA16ATF2G64HZ-2G3E1 Laptop Memory RAM
$21.99
![Crucial DDR3L 16GB 1600 2x 8GB PC3-12800 Laptop SODIMM Memory RAM PC3 16G DDR3 picture](/store/img/g/mecAAOSw2Vlkv6Ot/s-l225/Crucial-DDR3L-16GB-1600-2x-8GB-PC3-12800-Laptop-SO.jpg)
Crucial DDR3L 16GB 1600 2x 8GB PC3-12800 Laptop SODIMM Memory RAM PC3 16G DDR3
$22.45
![NEW OLOy 16GB 2x8GB KIT DDR4-3000 PC4-24000 Desktop Gaming RAM MD4U0830160BB1ST picture](/store/img/g/k~8AAOSwIBdmZRfq/s-l225/NEW-OLOy-16GB-2x8GB-KIT-DDR4-3000-PC4-24000-Deskto.jpg)
NEW OLOy 16GB 2x8GB KIT DDR4-3000 PC4-24000 Desktop Gaming RAM MD4U0830160BB1ST
$19.99
![128GB Kit 4x 32GB PC4-17000 LRDIMM DELL POWEREDGE R730xd R730 R630 Memory RAM picture](/store/img/g/I1cAAOSwInxXNRbw/s-l225/128GB-Kit-4x-32GB-PC4-17000-LRDIMM-DELL-POWEREDGE-.jpg)
128GB Kit 4x 32GB PC4-17000 LRDIMM DELL POWEREDGE R730xd R730 R630 Memory RAM
$127.96
![HYNIX HMT31GR7BFR4C-H9 8GB PC3-10600R DDR3-1333MHZ 2Rx4 (LOT OF 8) DRAT-3 picture](/store/img/g/Q8gAAOSwtIdmR-TL/s-l225/HYNIX-HMT31GR7BFR4C-H9-8GB-PC3-10600R-DDR3-1333MHZ.jpg)
HYNIX HMT31GR7BFR4C-H9 8GB PC3-10600R DDR3-1333MHZ 2Rx4 (LOT OF 8) DRAT-3
$999.00