* kernel/module compiler version problem
@ 2004-06-11 19:16 Chris Friesen
2004-06-11 19:31 ` Greg KH
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: Chris Friesen @ 2004-06-11 19:16 UTC (permalink / raw)
To: Linux kernel, bj0rn
I'm running 2.4.22, build with gcc 3.3.1, modutils 2.4.22.
I have an ATM driver that is shipped with a binary blob and a source code shim.
It compiles fine. When I go to load it, I get the following error:
"The module you are trying to load is compiled with a gcc
version 2 compiler, while the kernel you are running is compiled with
a gcc version 3 compiler. This is known to not work."
Presumably the binary blob was compiled with gcc 2.x? Is there any way to
override this? "insmod -f" doesn't seem to work.
Thanks,
Chris
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: kernel/module compiler version problem
2004-06-11 19:16 kernel/module compiler version problem Chris Friesen
@ 2004-06-11 19:31 ` Greg KH
2004-06-11 19:52 ` Chris Friesen
2004-06-11 19:38 ` Richard B. Johnson
2004-06-13 6:34 ` Keith Owens
2 siblings, 1 reply; 6+ messages in thread
From: Greg KH @ 2004-06-11 19:31 UTC (permalink / raw)
To: Chris Friesen; +Cc: Linux kernel, bj0rn
On Fri, Jun 11, 2004 at 03:16:00PM -0400, Chris Friesen wrote:
> I'm running 2.4.22, build with gcc 3.3.1, modutils 2.4.22.
>
> I have an ATM driver that is shipped with a binary blob and a source code
> shim.
Go ask the people who provided you the binary blob, sorry but no one
here can help you with this issue.
good luck,
greg k-h
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: kernel/module compiler version problem
2004-06-11 19:16 kernel/module compiler version problem Chris Friesen
2004-06-11 19:31 ` Greg KH
@ 2004-06-11 19:38 ` Richard B. Johnson
2004-06-11 19:59 ` Chris Friesen
2004-06-13 6:34 ` Keith Owens
2 siblings, 1 reply; 6+ messages in thread
From: Richard B. Johnson @ 2004-06-11 19:38 UTC (permalink / raw)
To: Chris Friesen; +Cc: Linux kernel, bj0rn
On Fri, 11 Jun 2004, Chris Friesen wrote:
> I'm running 2.4.22, build with gcc 3.3.1, modutils 2.4.22.
>
> I have an ATM driver that is shipped with a binary blob and a source code shim.
> It compiles fine. When I go to load it, I get the following error:
>
> "The module you are trying to load is compiled with a gcc
> version 2 compiler, while the kernel you are running is compiled with
> a gcc version 3 compiler. This is known to not work."
>
> Presumably the binary blob was compiled with gcc 2.x? Is there any way to
> override this? "insmod -f" doesn't seem to work.
>
> Thanks,
>
> Chris
Get a new blob from the blob vendor. Of course you may have just
installed a worm....
Cheers,
Dick Johnson
Penguin : Linux version 2.4.26 on an i686 machine (5570.56 BogoMips).
Note 96.31% of all statistics are fiction.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: kernel/module compiler version problem
2004-06-11 19:31 ` Greg KH
@ 2004-06-11 19:52 ` Chris Friesen
0 siblings, 0 replies; 6+ messages in thread
From: Chris Friesen @ 2004-06-11 19:52 UTC (permalink / raw)
To: linux-kernel; +Cc: bj0rn
Greg KH wrote:
> On Fri, Jun 11, 2004 at 03:16:00PM -0400, Chris Friesen wrote:
> > I'm running 2.4.22, build with gcc 3.3.1, modutils 2.4.22.
> >
> > I have an ATM driver that is shipped with a binary blob and a source
> code
> > shim.
>
> Go ask the people who provided you the binary blob, sorry but no one
> here can help you with this issue.
Heh...how did I know that was coming...
I realize I can't reasonably ask here about problems if things blow up. I was
actually more interested in exactly what the conflicts were between a binary
chunk compiled with gcc2 linked with source compiled with gcc3 and loaded into a
kernel compiled with gcc3.
I had hoped some of the modutils people might respond, since they obviously know
of some issues.
Chris
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: kernel/module compiler version problem
2004-06-11 19:38 ` Richard B. Johnson
@ 2004-06-11 19:59 ` Chris Friesen
0 siblings, 0 replies; 6+ messages in thread
From: Chris Friesen @ 2004-06-11 19:59 UTC (permalink / raw)
To: root; +Cc: Linux kernel, bj0rn
Richard B. Johnson wrote:
> Get a new blob from the blob vendor. Of course you may have just
> installed a worm....
Ya, I know, new blob is next on the agenda. Unfortunately our older ATM cards
(which did have open drivers) went end-of-life, and I didn't get to pick the new
hardware. I'm stuck with it, there's no open-source driver available, and I
don't have the time to write one.
Chris
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: kernel/module compiler version problem
2004-06-11 19:16 kernel/module compiler version problem Chris Friesen
2004-06-11 19:31 ` Greg KH
2004-06-11 19:38 ` Richard B. Johnson
@ 2004-06-13 6:34 ` Keith Owens
2 siblings, 0 replies; 6+ messages in thread
From: Keith Owens @ 2004-06-13 6:34 UTC (permalink / raw)
To: Chris Friesen; +Cc: Linux kernel
On Fri, 11 Jun 2004 15:16:00 -0400,
Chris Friesen <cfriesen@nortelnetworks.com> wrote:
>I'm running 2.4.22, build with gcc 3.3.1, modutils 2.4.22.
>
>I have an ATM driver that is shipped with a binary blob and a source code shim.
> It compiles fine. When I go to load it, I get the following error:
>
>"The module you are trying to load is compiled with a gcc
>version 2 compiler, while the kernel you are running is compiled with
>a gcc version 3 compiler. This is known to not work."
>
>Presumably the binary blob was compiled with gcc 2.x? Is there any way to
>override this? "insmod -f" doesn't seem to work.
That patch originally came from RedHat, and was included in modutils
2.4.22. From RH Bugzilla 73732.
"The insmod in Red Hat Linux 8.0 looks for modules and kernels which do
not have a matching gcc version. This is done because both the base and
the Red Hat kernel ABI for gcc 2 and gcc 3 built kernels are not the
same. This is due to workarounds for old (egcs) compiler bugs which
change the padding in kernel data structures.
Other vendors using gcc 3 series compilers received many strange bug
reports that turned out to be gcc 2 and gcc 3 module mixups. We saw the
same problems and verified the cause in our earlier beta releases. In
order to assist our customers Red Hat extended insmod to detect the
problem case and display an error message."
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2004-06-13 6:34 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-11 19:16 kernel/module compiler version problem Chris Friesen
2004-06-11 19:31 ` Greg KH
2004-06-11 19:52 ` Chris Friesen
2004-06-11 19:38 ` Richard B. Johnson
2004-06-11 19:59 ` Chris Friesen
2004-06-13 6:34 ` Keith Owens
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox