building
Peter T Greening
peteman@math.unm.edu
Fri Jun 20 22:38:00 GMT 2003
/sigh... at least I know which direction to go now. Thank you very much for
your time. At this point I am hesident to try to RPM my way to a better gcc
environment, and more inclined to chroot myself into a little hole and build
my way out from source. Of course this is alot of work, and I just want a
gcc which doesnt generate errors such as "your gcc doesnt create
executables". Again /sigh, I have forgotten what I was trying to build in
the first place that convinced me I needed to rebuild gcc. Mabe I will rpm
my way to happiness.. again, thanks for all your help.
On Friday 20 June 2003 12:08 pm, Zack Weinberg wrote:
> Peter T Greening <peteman@math.unm.edu> writes:
> > it says this:
> > int main() {
> > switch (0) case 0: case (sizeof (long long) == 4):;
> > ; return 0; }
> > configure:1816: gcc -c -g -O2 conftest.c 1>&5
> > configure:1882: checking execution character set
> > configure:1890: syntax error at end of input
> > /usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../crt1.o: In function
> > `_start':
> > /usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../crt1.o(.text+0x18):
> > undefined reference to `main'
> > collect2: ld returned 1 exit status
> > .... I read this as "redhat glib is broken, install your own."
> > am I correct?
>
> The C library may be broken, but the bootstrap compiler is definitely
> broken. It shouldn't even have attempted to link that program, since
> there is a -c on the command line, and I don't know where 'syntax
> error at end of input' came from either. (That test program, by the
> way, is *not* the test for the execution character set, but you have
> bigger problems.)
>
> Do not attempt to install glibc from scratch, especially not with a
> probably-broken C compiler. I'd nuke all the -devel RPMs off the
> system, ditto the gcc and binutils rpms, and reinstall the latest from
> Red Hat's website, then try again. I am not an expert Red Hat
> sysadmin; someone more familiar with the system may be able to give
> more specific / reliable advice.
>
> zw
--
Pete Greening
student system administrator
----------------------------------------------------------------------
laziness is the ultimate motivation of all good system administrators,
any time they can automate, out-source, or otherwise eliminate a task
from their regular routine, it allows them to be more lazy. A truly
lazy system admin would never have to do anything, because everything
would be either automated and done by the machine, or done by users.
The education of users also fulfills this laziness goal, an educated
user will both be more productive, and require less of the admin.
----------------------------------------------------------------------
More information about the Gcc
mailing list