I have successfully compiled GNU GCC-9.1.0 successfully into Solaris 10 SPARC edition OS on my Sun/Oracle SPARC server. I have had to however copy the static library files of libgmp.so, libmfr.so and libmpc.so into the following directories created during the 'gmake' process gcc-9.1.0/host-sparc-sun-solaris2.10/gcc gcc-9.1.0/host-sparc-sun-solaris2.10/prev-gcc
I now have a problem when I try to configure using the './configure' command any tarball archive containing C code source files. When I type in './configure' I get an error message saying 'C Compiler does not work, see config.log file for details' . I have uploaded the relevant config.log file generated into the following URL. It mentions that a static library file named 'libmpc.so.3 is missing, however the library file is present within /usr/local/lib directory. How do I resolve this situation. I shall appreciate any help given to me
configure:2912: gcc -v >&5
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc/sparc-sun-solaris2.10/9.1.0/lto-wrapper
Target: sparc-sun-solaris2.10
Configured with: ./configure --enable-obsolete --with-gmp-lib=/usr/local/lib --with-mpfr-lib=/usr/local/lib --with-mpc-lib=/usr/local/lib
...[snip]...
configure:2975: gcc conftest.c >&5
ld.so.1: cc1: fatal: libmpc.so.3: open failed: No such file or directory
gcc: fatal error: Killed signal terminated program cc1
compilation terminated.
configure:2978: $? = 1
configure:3016: result:
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:3023: error: C compiler cannot create executables
(full config.log is at http://tab140.freewebspace.com/config-gcc9.txt)