Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 19 May 2019 23:54:18 +0200
From:      Dimitry Andric <dim@FreeBSD.org>
To:        "Julian H. Stacey" <jhs@berklix.com>
Cc:        current@freebsd.org, Li-Wen Hsu <lwhsu@FreeBSD.org>
Subject:   Re: lib/libgcc_s fails on make all after make world succeeds
Message-ID:  <0A149CA1-508B-41C3-BBA3-B4F6E0A416C5@FreeBSD.org>
In-Reply-To: <201905192129.x4JLTef3012634@fire.js.berklix.net>
References:  <201905192129.x4JLTef3012634@fire.js.berklix.net>

next in thread | previous in thread | raw e-mail | index | archive | help

--Apple-Mail=_95D2AFE8-612C-4205-A44A-71A5E2EA587A
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
	charset=us-ascii

On 19 May 2019, at 23:29, Julian H. Stacey <jhs@berklix.com> wrote:
> 
> Hi current@freebsd.org
> On current src/ on 2 boxes, I have seen the same break for a week or 2,
> lib/libgcc_s fails on make all after make world succeeds,
> Anyone else seen it or got ideas please ? Notes below the sample.
> 
> ===> lib/libgcc_s (all)
> building shared library libgcc_s.so.1
> cc  -nodefaultlibs -Wl,--version-script=/usr/src/lib/libgcc_s/Version.map
> -shared -Wl,-x -Wl,--fatal-warnings -Wl,--warn-shared-textrel  -o \
> libgcc_s.so.1.full -Wl,-soname,libgcc_s.so.1
...
> -L/usr/obj/usr/src/amd64.amd64/lib/libc -lc \
> ld: error: can't create dynamic relocation R_X86_64_32S \
> against symbol: __je_sz_size2index_tab in readonly segment; \
> recompile object files with -fPIC or pass '-Wl,-z,notext' \
> to allow text relocations in the output
>>>> defined in /usr/obj/usr/src/amd64.amd64/lib/libc/libc.a(jemalloc_sz.o)

It looks like for some reason, it chooses to link with libc.a instead of
libc.so here.  Maybe your libc.so is not getting built at all, because
of your environment?

Or maybe you are hitting some build race where libc.a is done, but
libc.so is still being built, while at the same time, libgcc_s.so.1 is
being linked?

There are some difficult-to-reproduce races with libgcc_s, which are
sometimes also hit by CI (I think Li-Wen mentioned them multiple times
now).  But usually I would expect this to be "solved" by simply
re-running buildworld, as the race window is very small, and you have
to be quite lucky (or unlucky, depending on your point of view :) to hit
it.

-Dimitry


--Apple-Mail=_95D2AFE8-612C-4205-A44A-71A5E2EA587A
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename=signature.asc
Content-Type: application/pgp-signature;
	name=signature.asc
Content-Description: Message signed with OpenPGP

-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.2

iF0EARECAB0WIQR6tGLSzjX8bUI5T82wXqMKLiCWowUCXOHQigAKCRCwXqMKLiCW
oygMAJ9GAhVguLH8tHgy8Rr4mE7nekNkcQCgtBCI4o34FIIOKSJOk8+CoSCvpOI=
=Zqrt
-----END PGP SIGNATURE-----

--Apple-Mail=_95D2AFE8-612C-4205-A44A-71A5E2EA587A--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?0A149CA1-508B-41C3-BBA3-B4F6E0A416C5>