-
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
![ASRock Z170M-ITX/ac LGA 1151 Intel Z170 HDMI USB 3.0 Mini ITX Intel Motherboard picture](/store/img/g/4lIAAOSwc8Fmc3LR/s-l225/ASRock-Z170M-ITX-ac-LGA-1151-Intel-Z170-HDMI-USB-3.jpg)
ASRock Z170M-ITX/ac LGA 1151 Intel Z170 HDMI USB 3.0 Mini ITX Intel Motherboard
$49.99
![ASRock B550M Pro SE AM4 DDR4 SATA 6Gb/s 1 PCIe 4.0 x16 Micro ATX Motherboard picture](/store/img/g/oXIAAOSwCn1k30lD/s-l225/ASRock-B550M-Pro-SE-AM4-DDR4-SATA-6Gb-s-1-PCIe-4-0.jpg)
ASRock B550M Pro SE AM4 DDR4 SATA 6Gb/s 1 PCIe 4.0 x16 Micro ATX Motherboard
$84.99
![MSI H81M-P33 Desktop Motherboard Intel MicroATX Socket LGA1150 USB 3.0 W/IO picture](/store/img/g/gFAAAOSwLi5hKOrA/s-l225/MSI-H81M-P33-Desktop-Motherboard-Intel-MicroATX-So.jpg)
MSI H81M-P33 Desktop Motherboard Intel MicroATX Socket LGA1150 USB 3.0 W/IO
$26.99
![Gigabyte GA-Q170M-D3H-GSM LGA1151 DDR4 Desktop Motherboard (No I/O Plate) picture](/store/img/g/G68AAOSwFDFmX0vt/s-l225/Gigabyte-GA-Q170M-D3H-GSM-LGA1151-DDR4-Desktop-Mot.jpg)
Gigabyte GA-Q170M-D3H-GSM LGA1151 DDR4 Desktop Motherboard (No I/O Plate)
$39.99
![Asus H81M-C Intel LGA1150 DDR3 Desktop Motherboard MicroATX Socket H3 picture](/store/img/g/CZ4AAOSwg8pmYirU/s-l225/Asus-H81M-C-Intel-LGA1150-DDR3-Desktop-Motherboard.jpg)
Asus H81M-C Intel LGA1150 DDR3 Desktop Motherboard MicroATX Socket H3
$23.99
![MSI MPG X570 GAMING EDGE WIFI SATA AM4 DDR4 Motherboard picture](/store/img/g/JvAAAOSwdWtmUj6w/s-l225/MSI-MPG-X570-GAMING-EDGE-WIFI-SATA-AM4-DDR4-Mother.jpg)
MSI MPG X570 GAMING EDGE WIFI SATA AM4 DDR4 Motherboard
$104.99
![Asus Prime H310M-A R2.0 Intel LGA 1151 DDR4 Desktop Motherboard picture](/store/img/g/ld0AAOSw7q5mV2ql/s-l225/Asus-Prime-H310M-A-R2-0-Intel-LGA-1151-DDR4-Deskto.jpg)
Asus Prime H310M-A R2.0 Intel LGA 1151 DDR4 Desktop Motherboard
$54.99
![Gigabyte Z370P D3 ATX Z370 LGA1151 Motherboard (Support Intel 6/7th 8th 9th) picture](/store/img/g/QrkAAOSwMGNmLxf0/s-l225/Gigabyte-Z370P-D3-ATX-Z370-LGA1151-Motherboard-Sup.jpg)
Gigabyte Z370P D3 ATX Z370 LGA1151 Motherboard (Support Intel 6/7th 8th 9th)
$59.99
![MSI PRO B650-P WiFi AMD AM5 DDR5 WiFi 6E ProSeries Motherboard picture](/store/img/g/egYAAOSw1q5mPOza/s-l225/MSI-PRO-B650-P-WiFi-AMD-AM5-DDR5-WiFi-6E-ProSeries.jpg)
MSI PRO B650-P WiFi AMD AM5 DDR5 WiFi 6E ProSeries Motherboard
$107.30
![Gigabyte GA-Q170M-D3H-GSM LGA1151 DDR4 Desktop Motherboard with I/O Plate picture](/store/img/g/1ykAAOSw1ztmawRh/s-l225/Gigabyte-GA-Q170M-D3H-GSM-LGA1151-DDR4-Desktop-Mot.jpg)
Gigabyte GA-Q170M-D3H-GSM LGA1151 DDR4 Desktop Motherboard with I/O Plate
$49.99