Re: Update compiler to GNU gcc 3.4.0 causes core dumps



On Wed, 07 Dec 2005 04:00:01 -0800, fd wrote:

> I am using a RH 7.2 machine. I am facing a problem while trying to
> execute my program that has been compiled using gcc 3.4.0. Executing the
> program results in a Segmentation Fault. I even tried gcc 3.4.4 which is
> supposed to be a more stable release. But even this doesn't work.

You can't do that.

The code that gcc emits assumes a particular revision of the standard
C library. The kernel interface used by the standard C library
assumes a particular kernel version. All three components must be in
harmony before anything will work at all, let alone reliably.

So, if you must keep RHL7.2, then keep it and don't try to make a
frankensystem out of it. If you don't have a business reason to keep
7.2, then update to Fedora Core.

Cheers
.



Relevant Pages

  • Re: writing to a partition
    ... Allan Adler writes: ... When I simply imitate what the Makefile says, I execute: ... gcc -o disk disk.o ... but gcc can't make sense of disk.o. ...
    (comp.os.linux.misc)
  • Re: execute a different function before main()
    ... that allows you to execute some function before mainis ... #pragma startup directive. ... If you're using gcc in Windows or a POSIX system you can see what ... The startup files are typically named like crt0.o. ...
    (comp.lang.c)
  • Re: writing to a partition
    ... I'm not sure but I think the various labels in the Makefile ending ... When I simply imitate what the Makefile says, I execute: ... but gcc can't make sense of disk.o. ... the lilo boot process in a terminal window? ...
    (comp.os.linux.misc)
  • Re: Compiling problem for BASH 3.2
    ... couldn't even execute 'configure' file because of not enough memory.. ... That one was easy one because I can just increase the memory stack ... okay with Minix 3.1.2a. ... Minix CC not GCC. ...
    (comp.os.minix)
  • Re: execute a different function before main()
    ... allows you to execute some function before mainis called. ... there's one such fearture....the #pragma startup ... If you're using gcc in Windows or a POSIX system you can see what ... The startup files are typically named like crt0.o. ...
    (comp.lang.c)