-
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
![Juniper Networks EX2300-C-12T Compact 12-Port EX2300-C Series Ethernet Switch picture](/store/img/g/Dh4AAOSw3Chmbx7U/s-l225/Juniper-Networks-EX2300-C-12T-Compact-12-Port-EX23.jpg)
Juniper Networks EX2300-C-12T Compact 12-Port EX2300-C Series Ethernet Switch
$300.00
![Juniper Networks EX2300-48P 48 Port Gigabit PoE 4 SFP 1/10G Network Switch picture](/store/img/g/VHMAAOSwonVme2lj/s-l225/Juniper-Networks-EX2300-48P-48-Port-Gigabit-PoE-4-.jpg)
Juniper Networks EX2300-48P 48 Port Gigabit PoE 4 SFP 1/10G Network Switch
$185.00
![Juniper Networks EX2200-C-12P-2G Gigabit Ethernet Managed Switch picture](/store/img/g/dbUAAOSwFd1mey3A/s-l225/Juniper-Networks-EX2200-C-12P-2G-Gigabit-Ethernet-.jpg)
Juniper Networks EX2200-C-12P-2G Gigabit Ethernet Managed Switch
$79.99
![Juniper EX3400-48P 48-Ports PoE+ 4x SFP+ and 2x QSFP+ Managed Switch Tested picture](/store/img/g/INMAAOSw6ydmBcA-/s-l225/Juniper-EX3400-48P-48-Ports-PoE-4x-SFP-and-2x-QSFP.jpg)
Juniper EX3400-48P 48-Ports PoE+ 4x SFP+ and 2x QSFP+ Managed Switch Tested
$135.00
![Juniper Networks EX3300-24P | 24 Port Gigabit Network Switch w/ Power cord picture](/store/img/g/MswAAOSwuMBl7vhO/s-l225/Juniper-Networks-EX3300-24P-24-Port-Gigabit-Networ.jpg)
Juniper Networks EX3300-24P | 24 Port Gigabit Network Switch w/ Power cord
$53.99
![Juniper EX4200-48PX 48-PORT 10/100/1000BASET PoE Ethernet Switch picture](/store/img/g/m80AAOSw0QpmfGzq/s-l225/Juniper-EX4200-48PX-48-PORT-10-100-1000BASET-PoE-E.jpg)
Juniper EX4200-48PX 48-PORT 10/100/1000BASET PoE Ethernet Switch
$50.00
![Juniper Networks EX2200-C Ethernet Managed Switch w/ Rack Mounts picture](/store/img/g/63gAAOSwQnNmexRL/s-l225/Juniper-Networks-EX2200-C-Ethernet-Managed-Switch-.jpg)
Juniper Networks EX2200-C Ethernet Managed Switch w/ Rack Mounts
$74.99
![Juniper EX3400-48P 48 Port Switch PoE+ 4x SFP+ 2x QSFP 1xAC *Tested/Warranty* picture](/store/img/g/YkgAAOSwqztlzUSp/s-l225/Juniper-EX3400-48P-48-Port-Switch-PoE-4x-SFP-2x-QS.jpg)
Juniper EX3400-48P 48 Port Switch PoE+ 4x SFP+ 2x QSFP 1xAC *Tested/Warranty*
$139.95
![Juniper Networks SRX220 8-Port Gigabit Services Gateway Security Appliance picture](/store/img/g/W6sAAOSwwFFkHGrv/s-l225/Juniper-Networks-SRX220-8-Port-Gigabit-Services-Ga.jpg)
Juniper Networks SRX220 8-Port Gigabit Services Gateway Security Appliance
$45.00
![Juniper Networks EX4400-48MP 48 port 5GbE + 12 port 10 Gigabit PoE++ Switch -NEW picture](/store/img/g/QesAAOSw07hmSVQ3/s-l225/Juniper-Networks-EX4400-48MP-48-port-5GbE-12-port-.jpg)
Juniper Networks EX4400-48MP 48 port 5GbE + 12 port 10 Gigabit PoE++ Switch -NEW
$1400.00