tech-toolchain archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Failure to cross-build libstdc++-v3 for earmv6hf from macOS
> On Apr 7, 2018, at 2:43 PM, Joerg Sonnenberger <joerg%bec.de@localhost> wrote:
>
> On Sat, Apr 07, 2018 at 02:39:59PM -0700, Jason Thorpe wrote:
>> BigMac:thorpej$ cat /Volumes/Data0/Users/thorpej/hack/NetBSD/current/src/external/gpl3/gcc/dist/libstdc++-v3/config/abi/pre/gnu.ver | grep -E -v '^[ ]*#(#| |)'
>
> That should be '^[ ]*#(#| )?' right?
Ah, I think the real problem is an expansion issue inside make(1)… what was passed to the shell to execute was indeed wrong, but the following Makefile change fixes the problem for me with the macOS grep(1):
Index: Makefile
===================================================================
RCS file: /cvsroot/src/external/gpl3/gcc/lib/libstdc++-v3/Makefile,v
retrieving revision 1.32
diff -u -p -r1.32 Makefile
--- Makefile 7 Feb 2018 02:30:39 -0000 1.32
+++ Makefile 7 Apr 2018 21:52:07 -0000
@@ -21,7 +21,7 @@ COPTS.random.cc+= ${${ACTIVE_CC} == "cla
.if ${MKPIC} != "no"
libstdc++-symbols.ver:
cat ${DIST}/libstdc++-v3/config/abi/pre/gnu.ver ${G_port_specific_symbol_files} | \
- ${TOOL_GREP} -E -v '^[ ]*#(#| |$)' | \
+ ${TOOL_GREP} -E -v '^[ ]*#(#| |$$)' | \
${CXX} -I${DESTDIR}/usr/include/g++ -E -P -include ${.CURDIR}/arch/${LIBSTDCXX_MACHINE_ARCH}/c++config.h - > \
>
>> Well that’s a bummer. I notice that NetBSD seems to be shipping GNU grep(1) these days as well (???):
>
> It been shipping with GNU grep for a very long time...
>
> Joerg
Home |
Main Index |
Thread Index |
Old Index