Skip to content

Instantly share code, notes, and snippets.

View iains's full-sized avatar

Iain Sandoe iains

  • Independent
  • Romsey, UK
View GitHub Profile
diff --git a/libstdc++-v3/include/bits/basic_string.tcc b/libstdc++-v3/include/bits/basic_string.tcc
index 5f83991db83..b3940e1610c 100644
--- a/libstdc++-v3/include/bits/basic_string.tcc
+++ b/libstdc++-v3/include/bits/basic_string.tcc
@@ -433,10 +433,12 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
if (_M_is_local())
return;
-#ifdef __glibcxx_allocate_at_least // C++23
+#if __cpp_exceptions
1. cross from x86_64-darwin to x86_64-linux
src-local/gcc-master-patched/configure --prefix=/opt/iains/x86_64-apple-darwin24/gcc-17-0-0a --target=x86_64-pc-linux-gnu --build=x86_64-apple-darwin24 --disable-libstdcxx-pch --enable-languages=c,c++,objc,obj-c++ CC=x86_64-apple-darwin24-gcc CXX=x86_64-apple-darwin24-g++ --with-sysroot=/compilers/cross-roots/x86_64-ubuntu-server-10-04 --with-gxx-libcxx-include-dir=/XC/26.2/CommandLineTools/SDKs/MacOSX15.4.sdk/usr/include/c++/v1
gives:
#include "..." search starts here:
#include <...> search starts here:
/XC/26.2/CommandLineTools/SDKs/MacOSX15.4.sdk/usr/include/c++/v1
/opt/iains/x86_64-apple-darwin24/gcc-17-0-0a/lib/gcc/x86_64-pc-linux-gnu/17.0.0/include
/compilers/cross-roots/x86_64-ubuntu-server-10-04/usr/local/include
ignoring nonexistent directory "/Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/usr/local/include"
ignoring nonexistent directory "/opt/iains/x86_64-apple-darwin24/gcc-17-0-0a/lib/gcc/x86_64-apple-darwin24/17.0.0/../../../../x86_64-apple-darwin24/include"
ignoring nonexistent directory "/Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/Library/Frameworks"
#include "..." search starts here:
#include <...> search starts here:
/opt/iains/x86_64-apple-darwin24/gcc-17-0-0a/lib/gcc/x86_64-apple-darwin24/17.0.0/../../../../include/c++/v1
/opt/iains/x86_64-apple-darwin24/gcc-17-0-0a/lib/gcc/x86_64-apple-darwin24/17.0.0/include
/opt/iains/x86_64-apple-darwin24/gcc-17-0-0a/lib/gcc/x86_64-apple-darwin24/17.0.0/include-fixed
/Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/usr/include
/Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/System/Library/Frameworks
==== sum.sep
TEST: g++.dg/analyzer/fanalyzer-show-events-in-system-headers-no.C -std=c++14 compile
PASS: g++.dg/analyzer/fanalyzer-show-events-in-system-headers-no.C -std=c++14 at line 13 (test for warnings, line 12)
PASS: g++.dg/analyzer/fanalyzer-show-events-in-system-headers-no.C -std=c++14 at line 18 (test for warnings, line 11)
PASS: g++.dg/analyzer/fanalyzer-show-events-in-system-headers-no.C -std=c++14 at line 19 (test for warnings, line 12)
PASS: g++.dg/analyzer/fanalyzer-show-events-in-system-headers-no.C -std=c++14 at line 20 (test for warnings, line 12)
PASS: g++.dg/analyzer/fanalyzer-show-events-in-system-headers-no.C -std=c++14 at line 21 (test for warnings, line 12)
PASS: g++.dg/analyzer/fanalyzer-show-events-in-system-headers-no.C -std=c++14 (test for excess errors)
UNSUPPORTED: g++.dg/analyzer/fanalyzer-show-events-in-system-headers-no.C -std=c++98
TEST: g++.dg/analyzer/fanalyzer-show-events-in-system-headers-no.C -std=c++17 compile
apollo-2-his:bunsen-r15-9118 iainsandoe$ git push server :iains/gcc-r15/x86_64-darwin17/9118-250401-0820
error: unable to delete 'iains/gcc-r15/x86_64-darwin17/9118-250401-0820': remote ref does not exist
error: failed to push some refs to 'git+ssh://sourceware.org/git/bunsendb.git'
apollo-2-his:bunsen-r15-9118 iainsandoe$ cd ../
apollo-2-his:gcc-master iainsandoe$ rm -rf bunsen-r15-9118
apollo-2-his:gcc-master iainsandoe$ gcc-save-test --bunsen -f
using git : /opt/iains/x86_64-apple-darwin17/gcc-7-5-toolchain/bin/git [version git version 2.24.1]
upstream=gcc.gnu.org/git/gcc.git test_data_repo=git+ssh://sourceware.org/git/bunsendb.git tag=iains/gcc-r15/x86_64-darwin17/9118-250401-0820
remote: fatal: bad object refs/tags/buildbot/binutils-debian-amd64/5606
fatal: bad object refs/tags/buildbot/binutils-debian-amd64/5606
error: failed to select a version for the requirement `log = "^0.4"` (locked to 0.4.26)
candidate versions found which didn't match: 0.4.22
location searched: directory source `/src-local/gcc-master/gcc/rust/checks/errors/borrowck/ffi-polonius/vendor` (which is replacing registry `crates-io`)
required by package `polonius-engine v0.13.0`
... which satisfies dependency `polonius-engine = "^0.13.0"` (locked to 0.13.0) of package `ffi-polonius v0.1.0 (/src-local/gcc-master/gcc/rust/checks/errors/borrowck/ffi-polonius)`
perhaps a crate was updated and forgotten to be re-vendored?
As a reminder, you're using offline mode (--offline) which can sometimes cause surprising resolution failures, if this error is too confusing you may wish to retry without the offline flag.
make[3]: *** [rust/libffi_polonius.a] Error 101
@iains
iains / gist:91d32e8a2649d5d632e77f8a3c43be31
Created January 14, 2025 08:33
a68 documentation build error with makeinfo 6.7
$ makeinfo --version
texi2any (GNU texinfo) 6.7
if test "xinfo" = xinfo; then \
rm -f doc/ga68.info*; \
makeinfo --split-size=5000000 --split-size=5000000 --split-size=5000000 --no-split -I /src-local/a68-gcc/gcc/doc \
-I /src-local/a68-gcc/gcc/doc/include -o doc/ga68.info /src-local/a68-gcc/gcc/algol68/ga68.texi; \
else true; fi
if test "xinfo" = xinfo; then \
@iains
iains / gist:f2a97ad58533eafb7942b8513bfecf65
Created October 20, 2024 18:43
some debug functions that can help in GDB.
DEBUG_FUNCTION void
coro_pretty_p_statements (tree stmts, const char *msg = NULL)
{
if (msg)
fprintf (stderr, "%s", msg);
cxx_pretty_printer pp;
pp.set_output_stream (stderr);
if (stmts)
{
pp_newline_and_indent (&pp, 0);
@iains
iains / gist:f42f74eeb8fbd565bf5071d03f80c326
Created October 9, 2024 06:27
diff GCC trunk - libsupc++ to libc++abi on x86_64 Darwin23
-LAST_UPDATED: Sat 05 Oct 2024 17:48:06 UTC (revision r15-4086-g7c0d1e9f2a2f)
+LAST_UPDATED: Sun 06 Oct 2024 08:16:18 UTC (revision master-wip-darwin-libcxx-separation2-4093-g496ccf131b98)
+FAIL: g++.dg/abi/local1.C -std=c++17 execution test
+FAIL: g++.dg/abi/local1.C -std=c++26 execution test
+FAIL: g++.dg/abi/local1.C -std=c++98 execution test
+FAIL: g++.dg/contracts/contracts15.C output pattern test
+FAIL: g++.dg/cpp26/constexpr-new2.C -std=c++26 (test for excess errors)
+FAIL: g++.dg/eh/forced1.C -std=c++17 execution test
+FAIL: g++.dg/eh/forced1.C -std=c++26 execution test
./b2 --prefix=/opt/iains/x86_64-apple-darwin19/boost-1-78 --build-dir=gcc-13-cxx17 toolset=gcc-13 cxxflags="-std=c++17 -fno-visibility-inlines-hidden" variant=release visibility=global link=static threading=multi install
799 /src-local/openssl-1.1.1l/Configure --prefix=/opt/iains/x86_64-apple-darwin19/folly-deps-gcc13-cxx17 no-shared darwin64-x86_64-cc >conf.txt
801 time nice make -j6 >b.txt 2>e.yxy
803 time nice make install >ins.txt 2>ine.txt
807 cmake -DCMAKE_INSTALL_PREFIX=/opt/iains/x86_64-apple-darwin19/folly-deps-gcc13-cxx17 -DCMAKE_CXX_COMPILER=/opt/iains/x86_64-apple-darwin19/gcc-13-0-0-coro/bin/g++ -DCMAKE_CXX_STANDARD=17 -DBUILD_SHARED_LIBS=OFF -DBUILD_STATIC_LIBS=ON -DCMAKE_PREFIX_PATH=/opt/iains/x86_64-apple-darwin19/folly-deps-gcc13-cxx17 /src-local/double-conversion-3.1.4 >conf.txt
808 time nice make -j6 >b.txt 2>e.txt
810 time nice make install >ins.txt 2>ine.txt