This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: problem with configure


Herranz Sánchez Mariano wrote:

> Hi, i've just installed GNU compiler package
> gcc-2.95.3-sol8-sparc-local, in a SPARC/Solaris8, but when i try
> ./configure in the application BeroFTP 1.3.4, it says:
>
> checking whether the C compiler (/usr/local/bin/gcc  ) works...... no

That binary package was (probably) supplied by sunfreeware.com and not
the GCC project. You should turn to them for support.

However, it's probably just an installation problem.

My best guess is that you either don't have the system assembler and
linker installed, or the sunfreeware gcc expects them to be in your path
and they're not.

Try a trivial C program yourself:

     fox:~$ cat >test.c
     int main() { return 1; }
   (then press ctrl-D)
     fox:~$ gcc test.c

I'm guessing you'll get:

     gcc: installation problem, cannot exec 'as': No such file or
directory

Look for /usr/ccs/bin/as. If it exists, then you have a system assembler
(and presumably the system linker too, /usr/ccs/bin/ld). In that case,
editing /usr/ccs/bin into your path should work.

If it doesn't exist, you need to install an assembler. I think the
system assembler and linker are available on the install CDs but I don't
know where (I've never installed a Solaris box myself). You can,
however, install the GNU assembler and linker from the binutils package.

(A third alternative is that gcc is compiled with a wrong hardcoded path
to an assembler, e.g. /usr/local/bin/as. Try the above compile with a
'-v' switch: this will print (near the end) the full command line it's
using to invoke as and see where it's expecting it. However, I think gcc
will rely on your path if its own hardcoded path doesn't work.)

As an afterthought, you also need to make sure that /usr/local/lib is in
your LD_LIBRARY_PATH environment or C++ code will compile but not run
(the error message will include 'libstdc++.so.2.10.0').

Good luck,
Rup.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]