[oi-dev] Build of gcc-7.3.0 stops with linker errors

Gary Mills gary_mills at fastmail.fm
Sat May 19 19:56:19 UTC 2018


I'm attempting to build the developer/gcc-7 source package from a
recent version of oi-userland.  The build stops with these error
messages:

    /export/home/mills/Downloads/code/oi-userland/components/developer/gcc-7/build/sparcv7/./gcc/xgcc
    -B/export/home/mills/Downloads/code/oi-userland/components/developer/gcc-7/build/sparcv7/./gcc/
    -B/usr/gcc/7/sparc-sun-solaris2.11/bin/
    -B/usr/gcc/7/sparc-sun-solaris2.11/lib/ -isystem
    /usr/gcc/7/sparc-sun-solaris2.11/include -isystem
    /usr/gcc/7/sparc-sun-solaris2.11/sys-include -O2 -g -O2 -DIN_GCC -W
    -Wall -Wwrite-strings -Wcast-qual -Wno-format -Wstrict-prototypes
    -Wmissing-prototypes -Wold-style-definition -isystem ./include -fPIC
    -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector -shared
    -nodefaultlibs -Wl,-h,libgcc_s.so.1 -Wl,-z,text -Wl,-z,defs
    -Wl,-M,libgcc.map -o sparcv9/libgcc_s.so.1.tmp -g -O2 -m64 -B./
    _muldi3_s.o _negdi2_s.o ... unwind-sjlj_s.o unwind-c_s.o emutls_s.o
    libgcc.a -lc && rm -f sparcv9/libgcc_s.so && if [ -f
    sparcv9/libgcc_s.so.1 ]; then mv -f sparcv9/libgcc_s.so.1
    sparcv9/libgcc_s.so.1.backup; else true; fi && mv
    sparcv9/libgcc_s.so.1.tmp sparcv9/libgcc_s.so.1 && ln -s libgcc_s.so.1
    sparcv9/libgcc_s.so
    ld: fatal: file crtbeginS.o: open failed: No such file or directory
    ld: fatal: file crtendS.o: open failed: No such file or directory
    ld: fatal: file processing errors. No output written to sparcv9/libgcc_s.so.1.tmp
    collect2: error: ld returned 1 exit status
    Makefile:977: recipe for target 'libgcc_s.so' failed
    make[6]: *** [libgcc_s.so] Error 1
    make[6]: Leaving directory '/dpool/export/home/mills/Downloads/code/oi-userland-apr/components/developer/gcc-7/build/sparcv7/sparc-sun-solaris2.11/sparcv9/libgcc'

It seems to be building the runtime shared library.  However, the
files crtbeginS.o and crtendS.o do not exist in the build directory.
Neither do they exist in libgcc.a .  The directory /usr/gcc/7 also
does not exist, as the compiler has not been installed yet.  I'm using
gcc-4.4.4-il-4 to build it.

What's gone wrong?


-- 
-Gary Mills-		-refurb-		-Winnipeg, Manitoba, Canada-




More information about the oi-dev mailing list