pkgsrc-Bugs archive

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

Re: pkg/53691: lang/gcc48 won't build on macOS 10.14

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

From: Andreas Gustafsson <>
Subject: Re: pkg/53691: lang/gcc48 won't build on macOS 10.14
Date: Fri, 8 Nov 2019 16:22:42 +0200

 I have now figured out what's going wrong, and found a work-around,
 but not a proper fix.
 I had an unconditional INSTALL_UNSTRIPPED=yes in mk.conf to facilitate
 debugging of the installed packages.  The gcc48 package build attempts
 to invoke the macOS strip(1) with an "-o" option to direct the
 stripped output to a new file rather than overwriting the original,
 with a command like
   /path/to/pkgsrc/lang/gcc48/work/.tools/bin/strip -o libgcc_ext.10.4.dylib_T. -R ../../../gcc-4.8.5/libgcc/config/i386/libgcc-darwin.10.4.ver -c -urx .././libgcc/./libgcc_s.dylib
 but INSTALL_UNSTRIPPED=yes turns .tools/bin/strip into a no-op, so the
 output file given with "-o" is never written to.  This then causes
 "lipo" to fail because its input file is missing.
 By commenting out the INSTALL_UNSTRIPPED=yes in mk.conf, I can
 successfully build gcc8 on macOS 10.15.  Building gcc48 still fails,
 but with a different error that should get its own PR.
 Any ideas how the INSTALL_UNSTRIPPED=yes case could be made to work?
 Andreas Gustafsson,

Home | Main Index | Thread Index | Old Index