pro64-support
[Top] [All Lists]

RE: Error: File number less than one

To: "'mpm@xxxxxxxxxxxxxxxxx'" <mpm@xxxxxxxxxxxxxxxxx>
Subject: RE: Error: File number less than one
From: "Van Maren, Kevin" <kevin.vanmaren@xxxxxxxxxx>
Date: Wed, 25 Jul 2001 08:41:45 -0500
Cc: "''pro64-support@xxxxxxxxxxx' '" <pro64-support@xxxxxxxxxxx>
Sender: owner-pro64-support@xxxxxxxxxxx
> We don't build our own gas.  This is what came with the ia64 
> turbolinux
> we use.  However, we haven't updated in several months, so things
> may have changed.
> -- Mike Murphy
> -- mpm@xxxxxxx

Well, the GPL says you have to be able to get the source since you
have the binary.  But that doesn't mean it has to be easy :-)
You wouldn't happen to have a source RPM for binutils?

I haven't been able to locate a copy of 2.9-ia64-000717, and the earliest
"release" of gas that supports IA64 is 2.11.

Any chance you can just email me the "as" (and "ld" to be safe) that
you use?  I don't have ready access to an IA-32 Linux PC, and it sounded
pretty clear that I can't compile sgicc on Itanium, so my fixing the
compiler to work aorund the gas bug is a bit of a strech.

I hacked my gas to recognize files starting at 0; however, it also uses
a file of 0 to indicate "no file", which I didn't fix, so it didn't
generate any debug_line info, which caused the linker to puke because
of the missing section.  So I #included a dummy file to force a file > 1,
which allowed it to compile/link, but it wouldn't execute because of an
illegal instruction in main().  Gack.

Of course, this is all after I had to hack the header files because it
choked on stdio.h:

In file included from /usr/include/_G_config.h:44,
                 from /usr/include/libio.h:30,
                 from /usr/include/stdio.h:64,
                 from test.c:3:
/usr/include/gconv.h:171: array size missing in `__data'

basically, it is using an gcc-extension: <type> __data [] ;


Take 2: just omit stdio.h header, create a dummy file with only a #include
"myfile.c", and try that.  With the Caldera as/ld, it now works.
Unfortunatly, I can't do this hack easily on the project I want to compile
since there are so many files (and I want to be using Fortran and C).

I'd really like to use the SGI compiler.  What is the shortest/easiest
path to that goal?

Kevin

<Prev in Thread] Current Thread [Next in Thread>