NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: toolchain/44046 (Parallel MKDEBUG builds randomly fail installing libraries)



The following reply was made to PR toolchain/44046; it has been noted by GNATS.

From: Luke Mewburn <lukem%NetBSD.org@localhost>
To: Andreas Gustafsson <gson%gson.org@localhost>
Cc: gnats-bugs%NetBSD.org@localhost, lukem%NetBSD.org@localhost, 
toolchain-manager%netbsd.org@localhost,
        netbsd-bugs%netbsd.org@localhost, gnats-admin%netbsd.org@localhost
Subject: Re: toolchain/44046 (Parallel MKDEBUG builds randomly fail
 installing libraries)
Date: Thu, 16 Jun 2011 22:31:01 +1000

 --fmEUq8M7S0s+Fl0V
 Content-Type: multipart/mixed; boundary="9Iq5ULCa7nGtWwZS"
 Content-Disposition: inline
 
 
 --9Iq5ULCa7nGtWwZS
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 Content-Transfer-Encoding: quoted-printable
 
 On Mon, Nov 08, 2010 at 04:54:27PM +0200, Andreas Gustafsson wrote:
   | lukem%NetBSD.org@localhost wrote:
   | > Does bsd.lib.mk 1.309 (and bsd.prog.mk 1.251) resolve the situation?
   |=20
   | Apparently not - I just got another build failure with -current source
   | date 2010.11.08.13.05.49 which includes those changes.  Last 1000
   | lines of the build log are at:
   |=20
   |   http://www.gson.org/netbsd/bugs/lib-install/build2.log
 
 Hi Andreas,
 
 Please try the attached patch.  I'm trying an idea from a recent
 discussion on tech-toolchain (about a different bsd.lib.mk issue).
 
 thanks,
 Luke.
 
 
 
 --9Iq5ULCa7nGtWwZS
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: attachment; filename="lib.mk.debug.patch"
 Content-Transfer-Encoding: quoted-printable
 
 Index: bsd.lib.mk
 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
 RCS file: /cvsroot/src/share/mk/bsd.lib.mk,v
 retrieving revision 1.314
 diff -p -p -u -r1.314 bsd.lib.mk
 --- bsd.lib.mk 11 Apr 2011 23:03:38 -0000      1.314
 +++ bsd.lib.mk 16 Jun 2011 12:21:33 -0000
 @@ -431,9 +431,8 @@ _LIBS+=3D${SOLIB}
  SOBJS+=3D${OBJS:.o=3D.pico}
  .endif
  .if defined(SHLIB_FULLVERSION)
 -_LIB.so:=3Dlib${LIB}.so.${SHLIB_FULLVERSION}
  .if ${MKDEBUG} !=3D "no"
 -_LIB.debug:=3D${_LIB.so}.debug
 +_LIB.debug:=3Dlib${LIB}.so.${SHLIB_FULLVERSION}.debug
  .endif
  _LIBS+=3Dlib${LIB}.so.${SHLIB_FULLVERSION}
  .endif
 @@ -566,17 +565,20 @@ lib${LIB}.so.${SHLIB_FULLVERSION}: ${SOL
  .endif
        ${HOST_LN} -sf lib${LIB}.so.${SHLIB_FULLVERSION} lib${LIB}.so.tmp
        mv -f lib${LIB}.so.tmp lib${LIB}.so
 +.if defined(_LIB.debug)
 +      ${OBJCOPY} --only-keep-debug ${.TARGET} ${_LIB.debug}
 +      ${OBJCOPY} --strip-debug -p -R .gnu_debuglink \
 +              --add-gnu-debuglink=3D${_LIB.debug} ${.TARGET}
 +.endif
  .if ${MKSTRIPIDENT} !=3D "no"
        ${OBJCOPY} -R .ident ${.TARGET}
  .endif
 +      touch ${.TARGET} ${_LIB.debug}
 =20
  .if defined(_LIB.debug)
 -${_LIB.debug}: ${_LIB.so}
 +${_LIB.debug}: lib${LIB}.so.${SHLIB_FULLVERSION}
        ${_MKTARGET_CREATE}
 -      (  ${OBJCOPY} --only-keep-debug ${_LIB.so} ${_LIB.debug} \
 -      && ${OBJCOPY} --strip-debug -p -R .gnu_debuglink \
 -              --add-gnu-debuglink=3D${_LIB.debug} ${_LIB.so} \
 -      ) || (rm -f ${_LIB.debug}; false)
 +      [ -f ${.TARGET} ] || rm lib${LIB}.so.${SHLIB_FULLVERSION}
  .endif
 =20
  .if !empty(LOBJS)                                                     # {
 
 --9Iq5ULCa7nGtWwZS--
 
 --fmEUq8M7S0s+Fl0V
 Content-Type: application/pgp-signature
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.4.11 (NetBSD)
 
 iEYEARECAAYFAk3594QACgkQpBhtmn8zJHK8dQCeKwBx6DIaRdbQMIX9ZaolBr5I
 rqoAoKU0dlSYb556TUQuuyQDqCnrcIE/
 =pSD/
 -----END PGP SIGNATURE-----
 
 --fmEUq8M7S0s+Fl0V--
 


Home | Main Index | Thread Index | Old Index