[oi-dev] Build of gcc-7.3.0 stops with linker errors
Gary Mills
gary_mills at fastmail.fm
Thu May 24 12:59:24 UTC 2018
On Sat, May 19, 2018 at 09:10:26PM -0500, Norm Jacobs wrote:
> It looks like
> developer/gcc-7/patches/0008-sol2-enable-full-__cxa_atexit-support.patc
> h may need work for SPARC, particularly in libgcc/config.host. Without
> looking too far into it, I would guess that changing the diffs for
> libgcc/config.host in the patch to
[...]
> sparc*-*-solaris2.1[0-9]*)
> # Solaris 10+/SPARC lacks crt1.o and gcrt1.o.
> extra_parts="$extra_parts crt1.o gcrt1.o"
> + extra_parts="$extra_parts crtbeginS.o crtendS.o"
> ;;
> esac
> fi
>
> might resolve the issue, but I don't have a SPARC system setup to
> verify.
Yes, that seems to work. I put the file names all in one line. At
least, the compiler builds those missing files now:
$ find build -name 'crt*S.o' -ls
23220686 3 -rw-r--r-- 1 mills staff 2520 May 22 15:15 build/sparcv7/prev-sparc-sun-solaris2.11/libgcc/crtbeginS.o
23220688 2 -rw-r--r-- 1 mills staff 692 May 22 15:15 build/sparcv7/prev-sparc-sun-solaris2.11/libgcc/crtendS.o
23220226 5 -rw-r--r-- 1 mills staff 3592 May 22 15:01 build/sparcv7/prev-sparc-sun-solaris2.11/sparcv9/libgcc/crtbeginS.o
23220228 2 -rw-r--r-- 1 mills staff 952 May 22 15:01 build/sparcv7/prev-sparc-sun-solaris2.11/sparcv9/libgcc/crtendS.o
23220260 2 -rw-r--r-- 1 mills staff 952 May 22 15:01 build/sparcv7/prev-gcc/sparcv9/crtendS.o
23220259 5 -rw-r--r-- 1 mills staff 3592 May 22 15:01 build/sparcv7/prev-gcc/sparcv9/crtbeginS.o
23220718 2 -rw-r--r-- 1 mills staff 692 May 22 15:15 build/sparcv7/prev-gcc/crtendS.o
23220717 3 -rw-r--r-- 1 mills staff 2520 May 22 15:15 build/sparcv7/prev-gcc/crtbeginS.o
The build of gcc-7 gets past that point now, but stops later with a
segmentation fault. I assume that's unrelated to the earlier error.
--
-Gary Mills- -refurb- -Winnipeg, Manitoba, Canada-
More information about the oi-dev
mailing list