-
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
![Lenovo ThinkBook 15 Gen 4 Notebook 15.6](/store/img/iCUAAOSwA-Bmmdb-/s-l225//Lenovo-ThinkBook-15-Gen-4-Notebook-15-6-FHD-AMD-R7.jpg)
Lenovo ThinkBook 15 Gen 4 Notebook 15.6" FHD AMD R7 5825U 16GB RAM 512GB SSD
$39.33
![Lenovo Legion Pro 7i 16](/store/img/K1kAAOSwSOhmmdru/s-l225//Lenovo-Legion-Pro-7i-16-WQXGA-240Hz-Gaming-Laptop-.jpg)
Lenovo Legion Pro 7i 16" WQXGA 240Hz Gaming Laptop i9-14900HX 16GB RAM RTX 4080
$37.98
![15.6](/store/img/aFMAAOSwS4dmT5XL/s-l225//15-6-Lenovo-ThinkPad-Laptop-PC-Intel-i5-16GB-RAM-5.jpg)
15.6" Lenovo ThinkPad Laptop PC: Intel i5 16GB RAM 512 SSD Windows 10 Webcam
$229.99
![Lenovo Ideapad 1i 15.6](/store/img/DRgAAOSw3QFl~IJV/s-l225//Lenovo-Ideapad-1i-15-6-FHD-Touchscreen-Laptop-Inte.jpg)
Lenovo Ideapad 1i 15.6" FHD Touchscreen Laptop - Intel Core i3-1215U with 8GB...
$329.99
![Lenovo ThinkBook 15 Gen 4 Notebook 15.6](/store/img/sfoAAOSwilxmMx9X/s-l225//Lenovo-ThinkBook-15-Gen-4-Notebook-15-6-FHD-AMD-R7.jpg)
Lenovo ThinkBook 15 Gen 4 Notebook 15.6" FHD AMD R7 5825U 16GB RAM 512GB SSD
$479.99
![Lenovo LOQ 15.6](/store/img/KeEAAOSw~gFmQyw7/s-l225//Lenovo-LOQ-15-6-FHD-144Hz-Gaming-Laptop-i5-12450HX.jpg)
Lenovo LOQ 15.6" FHD 144Hz Gaming Laptop i5-12450HX 12GB RAM 512GB SSD RTX 3050
$599.99
![Lenovo ThinkBook 15 Gen 4 Notebook 15.6](/store/img/whYAAOSwnTtmjMWA/s-l225//Lenovo-ThinkBook-15-Gen-4-Notebook-15-6-FHD-Intel-.jpg)
Lenovo ThinkBook 15 Gen 4 Notebook 15.6" FHD Intel Core i7-1255U 8GB RAM
$514.99
![Lenovo ThinkPad T480 Laptop Intel Core i5-8350U 16GB Ram 256GB SSD 14](/store/img/kzEAAOSwh~BlVWYn/s-l225//Lenovo-ThinkPad-T480-Laptop-Intel-Core-i5-8350U-16.jpg)
Lenovo ThinkPad T480 Laptop Intel Core i5-8350U 16GB Ram 256GB SSD 14" FHD W11P
$204.99
![Lenovo ThinkPad E, AMD, 8GB RAM, 256GB SSD, No OS, 20T80005US picture](/store/img/-5MAAOSwIydllv39/s-l225//Lenovo-ThinkPad-E-AMD-8GB-RAM-256GB-SSD-No-OS-20T8.jpg)
Lenovo ThinkPad E, AMD, 8GB RAM, 256GB SSD, No OS, 20T80005US
$280.00
![Lenovo ThinkPad L14 14” FHD Laptop AMD Ryzen 5 PRO 16GB RAM 512GB SSD Windows 10 picture](/store/img/1fMAAOSwMBhmMQfq/s-l225//Lenovo-ThinkPad-L14-14-FHD-Laptop-AMD-Ryzen-5-PRO-.jpg)
Lenovo ThinkPad L14 14” FHD Laptop AMD Ryzen 5 PRO 16GB RAM 512GB SSD Windows 10
$229.99