On 24/10/17 11:06 +0200, FX wrote:
Thanks Jonathan. I tried, and it does not work, I still get the same error:
Making all in include
mkdir -p ./x86_64-apple-darwin17.0.0/bits/stdc++.h.gch
mkdir -p ./x86_64-apple-darwin17.0.0/bits/stdc++.h.gch
/Users/fx/devel/gcc/ibin/./gcc/xgcc -shared-libgcc
-B/Users/fx/devel/gcc/ibin/./gcc -nostdinc++
-L/Users/fx/devel/gcc/ibin/x86_64-apple-darwin17.0.0/i386/libstdc++-v3/src
-L/Users/fx/devel/gcc/ibin/x86_64-apple-darwin17.0.0/i386/libstdc++-v3/src/.libs
-L/Users/fx/devel/gcc/ibin/x86_64-apple-darwin17.0.0/i386/libstdc++-v3/libsupc++/.libs
-B/Users/fx/devel/gcc/irun/x86_64-apple-darwin17.0.0/bin/
-B/Users/fx/devel/gcc/irun/x86_64-apple-darwin17.0.0/lib/ -isystem
/Users/fx/devel/gcc/irun/x86_64-apple-darwin17.0.0/include -isystem
/Users/fx/devel/gcc/irun/x86_64-apple-darwin17.0.0/sys-include -m32 -x
c++-header -nostdinc++ -g -O2 -m32
-I/Users/fx/devel/gcc/ibin/x86_64-apple-darwin17.0.0/i386/libstdc++-v3/include/x86_64-apple-darwin17.0.0
-I/Users/fx/devel/gcc/ibin/x86_64-apple-darwin17.0.0/i386/libstdc++-v3/include
-I/Users/fx/devel/gcc/trunk/libstdc++-v3/libsupc++ -O2 -g -std=gnu++0x
/Users/fx/devel/gcc/trunk/libstdc++-v3/include/precompiled/stdc++.h \
-o x86_64-apple-darwin17.0.0/bits/stdc++.h.gch/O2ggnu++0x.gch
/Users/fx/devel/gcc/ibin/./gcc/xgcc -shared-libgcc
-B/Users/fx/devel/gcc/ibin/./gcc -nostdinc++
-L/Users/fx/devel/gcc/ibin/x86_64-apple-darwin17.0.0/i386/libstdc++-v3/src
-L/Users/fx/devel/gcc/ibin/x86_64-apple-darwin17.0.0/i386/libstdc++-v3/src/.libs
-L/Users/fx/devel/gcc/ibin/x86_64-apple-darwin17.0.0/i386/libstdc++-v3/libsupc++/.libs
-B/Users/fx/devel/gcc/irun/x86_64-apple-darwin17.0.0/bin/
-B/Users/fx/devel/gcc/irun/x86_64-apple-darwin17.0.0/lib/ -isystem
/Users/fx/devel/gcc/irun/x86_64-apple-darwin17.0.0/include -isystem
/Users/fx/devel/gcc/irun/x86_64-apple-darwin17.0.0/sys-include -m32 -x
c++-header -nostdinc++ -g -O2 -m32
-I/Users/fx/devel/gcc/ibin/x86_64-apple-darwin17.0.0/i386/libstdc++-v3/include/x86_64-apple-darwin17.0.0
-I/Users/fx/devel/gcc/ibin/x86_64-apple-darwin17.0.0/i386/libstdc++-v3/include
-I/Users/fx/devel/gcc/trunk/libstdc++-v3/libsupc++ -O2 -g
/Users/fx/devel/gcc/trunk/libstdc++-v3/include/precompiled/stdc++.h -o
x86_64-apple-darwin17.0.0/bits/stdc++.h.gch/O2g.gch
/Users/fx/devel/gcc/trunk/libstdc++-v3/include/precompiled/stdc++.h:44:10:
fatal error: cstdarg: No such file or directory
#include <cstdarg>
^~~~~~~~~
compilation terminated.
make[7]: *** [x86_64-apple-darwin17.0.0/bits/stdc++.h.gch/O2ggnu++0x.gch] Error
1
OK, could you try this, and share the full output?
diff --git a/libstdc++-v3/include/Makefile.am b/libstdc++-v3/include/Makefile.am
index 2c4d193d0a4..92b9db80143 100644
--- a/libstdc++-v3/include/Makefile.am
+++ b/libstdc++-v3/include/Makefile.am
@@ -1022,43 +1022,43 @@ all-local: ${allstamped} ${allcreated}
# Ignore errors from $(LN_S) because the links may already exist.
stamp-std: ${std_headers}
@-mkdir -p ${std_builddir}
- @-cd ${std_builddir} && $(LN_S) $? . 2>/dev/null
+ -cd ${std_builddir} && $(LN_S) $? .
@$(STAMP) stamp-std
stamp-bits: ${bits_headers}
@-mkdir -p ${bits_builddir}
- @-cd ${bits_builddir} && $(LN_S) $? . 2>/dev/null
+ -cd ${bits_builddir} && $(LN_S) $? .
@$(STAMP) stamp-bits
stamp-bits-sup: stamp-bits ${bits_sup_headers}
- @-cd ${bits_builddir} && $(LN_S) $? . 2>/dev/null
+ -cd ${bits_builddir} && $(LN_S) $? .
@$(STAMP) stamp-bits-sup
stamp-c_base: ${c_base_headers}
@-mkdir -p ${c_base_builddir}
- @-cd ${c_base_builddir} && $(LN_S) $? . 2>/dev/null
+ -cd ${c_base_builddir} && $(LN_S) $? .
@$(STAMP) stamp-c_base
stamp-c_base_extra: ${c_base_headers_extra}
@-mkdir -p ${bits_builddir}
- @-cd ${bits_builddir} && $(LN_S) $? . 2>/dev/null
+ -cd ${bits_builddir} && $(LN_S) $? .
@$(STAMP) stamp-c_base_extra
stamp-c_compatibility: ${c_compatibility_headers_extra}
@-mkdir -p ${c_compatibility_builddir}
- @-if [ ! -z "${c_compatibility_headers_extra}" ]; then \
- cd ${c_compatibility_builddir} && $(LN_S) $? . 2>/dev/null ;\
+ -if [ ! -z "${c_compatibility_headers_extra}" ]; then \
+ cd ${c_compatibility_builddir} && $(LN_S) $? . ;\
fi
@$(STAMP) stamp-c_compatibility
stamp-backward: ${backward_headers}
@-mkdir -p ${backward_builddir}
- @-cd ${backward_builddir} && $(LN_S) $? . 2>/dev/null
+ -cd ${backward_builddir} && $(LN_S) $? .
@$(STAMP) stamp-backward
stamp-ext: ${ext_headers}
@-mkdir -p ${ext_builddir}
- @-cd ${ext_builddir} && $(LN_S) $? . 2>/dev/null
+ -cd ${ext_builddir} && $(LN_S) $? .
@$(STAMP) stamp-ext
# Have to deal with nested include directories, gah! Strip off source
@@ -1114,47 +1114,47 @@ stamp-pb:
stamp-tr1: ${tr1_headers}
@-mkdir -p ${tr1_builddir}
- @-cd ${tr1_builddir} && $(LN_S) $? . 2>/dev/null
+ -cd ${tr1_builddir} && $(LN_S) $? .
@$(STAMP) stamp-tr1
stamp-tr2: ${tr2_headers}
@-mkdir -p ${tr2_builddir}
- @-cd ${tr2_builddir} && $(LN_S) $? . 2>/dev/null
+ -cd ${tr2_builddir} && $(LN_S) $? .
@$(STAMP) stamp-tr2
stamp-decimal: ${decimal_headers}
@-mkdir -p ${decimal_builddir}
- @-cd ${decimal_builddir} && $(LN_S) $? . 2>/dev/null
+ -cd ${decimal_builddir} && $(LN_S) $? .
@$(STAMP) stamp-decimal
stamp-experimental: ${experimental_headers}
@-mkdir -p ${experimental_builddir}
- @-cd ${experimental_builddir} && $(LN_S) $? . 2>/dev/null
+ -cd ${experimental_builddir} && $(LN_S) $? .
@$(STAMP) stamp-experimental
stamp-experimental-bits: ${experimental_bits_headers}
@-mkdir -p ${experimental_bits_builddir}
- @-cd ${experimental_bits_builddir} && $(LN_S) $? . 2>/dev/null
+ -cd ${experimental_bits_builddir} && $(LN_S) $? .
@$(STAMP) stamp-experimental-bits
stamp-debug: ${debug_headers}
@-mkdir -p ${debug_builddir}
- @-cd ${debug_builddir} && $(LN_S) $? . 2>/dev/null
+ -cd ${debug_builddir} && $(LN_S) $? .
@$(STAMP) stamp-debug
stamp-parallel: ${parallel_headers}
@-mkdir -p ${parallel_builddir}
- @-cd ${parallel_builddir} && $(LN_S) $? . 2>/dev/null
+ -cd ${parallel_builddir} && $(LN_S) $? .
@$(STAMP) stamp-parallel
stamp-profile: ${profile_headers}
@-mkdir -p ${profile_builddir}
- @-cd ${profile_builddir} && $(LN_S) $? . 2>/dev/null
+ -cd ${profile_builddir} && $(LN_S) $? .
@$(STAMP) stamp-profile
stamp-profile-impl: ${profile_impl_headers}
@-mkdir -p ${profile_impl_builddir}
- @-cd ${profile_impl_builddir} && $(LN_S) $? . 2>/dev/null
+ -cd ${profile_impl_builddir} && $(LN_S) $? .
@$(STAMP) stamp-profile-impl
stamp-${host_alias}:
diff --git a/libstdc++-v3/include/Makefile.in b/libstdc++-v3/include/Makefile.in
index bc8556c68d2..69d7eca246e 100644
--- a/libstdc++-v3/include/Makefile.in
+++ b/libstdc++-v3/include/Makefile.in
@@ -1471,43 +1471,43 @@ all-local: ${allstamped} ${allcreated}
# Ignore errors from $(LN_S) because the links may already exist.
stamp-std: ${std_headers}
@-mkdir -p ${std_builddir}
- @-cd ${std_builddir} && $(LN_S) $? . 2>/dev/null
+ -cd ${std_builddir} && $(LN_S) $? .
@$(STAMP) stamp-std
stamp-bits: ${bits_headers}
@-mkdir -p ${bits_builddir}
- @-cd ${bits_builddir} && $(LN_S) $? . 2>/dev/null
+ -cd ${bits_builddir} && $(LN_S) $? .
@$(STAMP) stamp-bits
stamp-bits-sup: stamp-bits ${bits_sup_headers}
- @-cd ${bits_builddir} && $(LN_S) $? . 2>/dev/null
+ -cd ${bits_builddir} && $(LN_S) $? .
@$(STAMP) stamp-bits-sup
stamp-c_base: ${c_base_headers}
@-mkdir -p ${c_base_builddir}
- @-cd ${c_base_builddir} && $(LN_S) $? . 2>/dev/null
+ -cd ${c_base_builddir} && $(LN_S) $? .
@$(STAMP) stamp-c_base
stamp-c_base_extra: ${c_base_headers_extra}
@-mkdir -p ${bits_builddir}
- @-cd ${bits_builddir} && $(LN_S) $? . 2>/dev/null
+ -cd ${bits_builddir} && $(LN_S) $? .
@$(STAMP) stamp-c_base_extra
stamp-c_compatibility: ${c_compatibility_headers_extra}
@-mkdir -p ${c_compatibility_builddir}
- @-if [ ! -z "${c_compatibility_headers_extra}" ]; then \
- cd ${c_compatibility_builddir} && $(LN_S) $? . 2>/dev/null ;\
+ -if [ ! -z "${c_compatibility_headers_extra}" ]; then \
+ cd ${c_compatibility_builddir} && $(LN_S) $? . ;\
fi
@$(STAMP) stamp-c_compatibility
stamp-backward: ${backward_headers}
@-mkdir -p ${backward_builddir}
- @-cd ${backward_builddir} && $(LN_S) $? . 2>/dev/null
+ -cd ${backward_builddir} && $(LN_S) $? .
@$(STAMP) stamp-backward
stamp-ext: ${ext_headers}
@-mkdir -p ${ext_builddir}
- @-cd ${ext_builddir} && $(LN_S) $? . 2>/dev/null
+ -cd ${ext_builddir} && $(LN_S) $? .
@$(STAMP) stamp-ext
# Have to deal with nested include directories, gah! Strip off source
@@ -1563,47 +1563,47 @@ stamp-pb:
stamp-tr1: ${tr1_headers}
@-mkdir -p ${tr1_builddir}
- @-cd ${tr1_builddir} && $(LN_S) $? . 2>/dev/null
+ -cd ${tr1_builddir} && $(LN_S) $? .
@$(STAMP) stamp-tr1
stamp-tr2: ${tr2_headers}
@-mkdir -p ${tr2_builddir}
- @-cd ${tr2_builddir} && $(LN_S) $? . 2>/dev/null
+ -cd ${tr2_builddir} && $(LN_S) $? .
@$(STAMP) stamp-tr2
stamp-decimal: ${decimal_headers}
@-mkdir -p ${decimal_builddir}
- @-cd ${decimal_builddir} && $(LN_S) $? . 2>/dev/null
+ -cd ${decimal_builddir} && $(LN_S) $? .
@$(STAMP) stamp-decimal
stamp-experimental: ${experimental_headers}
@-mkdir -p ${experimental_builddir}
- @-cd ${experimental_builddir} && $(LN_S) $? . 2>/dev/null
+ -cd ${experimental_builddir} && $(LN_S) $? .
@$(STAMP) stamp-experimental
stamp-experimental-bits: ${experimental_bits_headers}
@-mkdir -p ${experimental_bits_builddir}
- @-cd ${experimental_bits_builddir} && $(LN_S) $? . 2>/dev/null
+ -cd ${experimental_bits_builddir} && $(LN_S) $? .
@$(STAMP) stamp-experimental-bits
stamp-debug: ${debug_headers}
@-mkdir -p ${debug_builddir}
- @-cd ${debug_builddir} && $(LN_S) $? . 2>/dev/null
+ -cd ${debug_builddir} && $(LN_S) $? .
@$(STAMP) stamp-debug
stamp-parallel: ${parallel_headers}
@-mkdir -p ${parallel_builddir}
- @-cd ${parallel_builddir} && $(LN_S) $? . 2>/dev/null
+ -cd ${parallel_builddir} && $(LN_S) $? .
@$(STAMP) stamp-parallel
stamp-profile: ${profile_headers}
@-mkdir -p ${profile_builddir}
- @-cd ${profile_builddir} && $(LN_S) $? . 2>/dev/null
+ -cd ${profile_builddir} && $(LN_S) $? .
@$(STAMP) stamp-profile
stamp-profile-impl: ${profile_impl_headers}
@-mkdir -p ${profile_impl_builddir}
- @-cd ${profile_impl_builddir} && $(LN_S) $? . 2>/dev/null
+ -cd ${profile_impl_builddir} && $(LN_S) $? .
@$(STAMP) stamp-profile-impl
stamp-${host_alias}: