Skip to content

Instantly share code, notes, and snippets.

View iains's full-sized avatar

Iain Sandoe iains

  • Independent
  • Romsey, UK
View GitHub Profile
==== 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
for this (and three other) functions in this test Darwin's port is producing very different code from linux (and it's not especially obvious to me why it would, since I've not [at least inentionally] modified any vector stuff):
EDIT: explanation is that the Linux long double is 128 bit, where the Darwin ABI has long double same as double.
long double
check_l_pos (long double x, long double y)
{
return x * __builtin_copysignl (1.0, y);
}
@iains
iains / gist:fc53cdfdf55c383d1d33ba1c2850052a
Created August 14, 2023 09:36
using a lambda trampoline - to making a closure into a function ptr.
// Closure type that runs the original function with the supplied args.
auto __callable = [&] {
std::__invoke(std::forward<_Callable>(__f),
std::forward<_Args>(__args)...);
};
// Trampoline to call the actual fn; we will pass in the closure address.
void (*__oc_tramp)(void*)
= [] (void *ca) { (*static_cast<decltype(__callable)*>(ca))(); };
@iains
iains / gist:dc28eb2aab6b540872f491adb3cb01fd
Created January 31, 2023 11:24
dummy target for dejagnu
these two files are in my dejagnu-boards/
I then use --target_board=dummy in my RUNTESTFLAGS
no-exe.exp:
proc no_exe_load { dest prog args } {
verbose -log "no_exe_load $prog $args "
return [list "xfail" $prog $args]
}