Skip to content

Instantly share code, notes, and snippets.

View danielhams's full-sized avatar

Daniel Hams danielhams

View GitHub Profile
@danielhams
danielhams / gcc4_7_1_limits.h
Last active June 3, 2019 17:39
gcc4.7.1 limits.h
/* Copyright (C) 1992, 1994, 1997, 1998 Free Software Foundation, Inc.
This file is part of GCC.
GCC is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free
Software Foundation; either version 3, or (at your option) any later
version.
GCC is distributed in the hope that it will be useful, but WITHOUT ANY
@danielhams
danielhams / gcc8.2.0 limits.h
Created June 3, 2019 17:41
gcc_8_2_0_limits.h
/* Copyright (C) 1992-2018 Free Software Foundation, Inc.
This file is part of GCC.
GCC is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free
Software Foundation; either version 3, or (at your option) any later
version.
GCC is distributed in the hope that it will be useful, but WITHOUT ANY
@danielhams
danielhams / blah.txt
Created June 19, 2019 17:42
Using GOLD to link a simple file
[dan@leafy irix-binutils-investigation.git]$ ./buildassembly.sh
/builds/dan/bootstrapbuilds/gbstest-binutils232/build-bu/gold/ld-new: error: printf: unsupported symbol section 0xff01
/builds/dan/bootstrapbuilds/gbstest-binutils232/build-bu/gold/ld-new: error: __readenv_sigfpe: unsupported symbol section 0xff01
/builds/dan/bootstrapbuilds/gbstest-binutils232/build-bu/gold/ld-new: error: _environ: unsupported symbol section 0xff02
/builds/dan/bootstrapbuilds/gbstest-binutils232/build-bu/gold/ld-new: error: __xpg4: unsupported symbol section 0xff02
/builds/dan/bootstrapbuilds/gbstest-binutils232/build-bu/gold/ld-new: error: exit: unsupported symbol section 0xff01
/builds/dan/bootstrapbuilds/gbstest-binutils232/build-bu/gold/ld-new: error: printf: unsupported symbol section 0xff01
/builds/dan/bootstrapbuilds/gbstest-binutils232/build-bu/gold/ld-new: error: __readenv_sigfpe: unsupported symbol section 0xff01
/builds/dan/bootstrapbuilds/gbstest-binutils232/build-bu/gold/ld-new: error: _environ: unsupported symbol s
@danielhams
danielhams / gcc-6.3.0-nativeissue.txt
Last active June 26, 2019 09:13
gcc6.3.0issuesgist
Problems with 6.3 still.
Now building with:
[didbsshell dan@leafy build-gcc]$ g++ --version
g++ (GCC) 4.7.1
Copyright (C) 2012 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
@danielhams
danielhams / boost1_69.sgifixes.patch
Created June 27, 2019 12:50
Patch for boost 1.69.0, gcc8.2.0 compiler + binutils2.19
Only in boost_1_69_0-patched: b2
Only in boost_1_69_0-patched: bin.v2
Only in boost_1_69_0-patched: bjam
diff -u -r -w boost_1_69_0/boost/config/platform/irix.hpp boost_1_69_0-patched/boost/config/platform/irix.hpp
--- boost_1_69_0/boost/config/platform/irix.hpp 2018-12-05 19:58:16.000000000 +0000
+++ boost_1_69_0-patched/boost/config/platform/irix.hpp 2019-05-30 13:10:41.688909160 +0000
@@ -20,7 +20,7 @@
#ifdef __GNUC__
// GNU C on IRIX does not support threads (checked up to gcc 3.3)
@danielhams
danielhams / boostbuild.txt
Created June 27, 2019 19:46
Output of latest boost building on Irix with GCC 8.2.0
[didbsshell dan@leafy boost_1_69_0]$ ./b2 -j 3 --link=shared --threading=multi
--with-thread --with-system --with-chrono --with-program_options --with-atomic
--with-container --with-filesystem --prefix=/usr/people/dan/boostinstalltest st
age
Performing configuration checks
- default address-model : 32-bit
- default architecture : none
- lockfree boost::atomic_flag : yes
@danielhams
danielhams / toseparate.txt
Last active June 27, 2019 19:55
Toy C++ using some C++1X features
[didbsshell dan@leafy TestProj]$ g++ -pthread test.cc -o newtest.exe
[didbsshell dan@leafy TestProj]$ ./newtest.exe
This is a test.
Toast 1 constructed.
Toast 2 constructed.
Thread 3 with id 65537 began.
Thread 4 with id 65538 began.
Toast 3 constructed.
Toast 4 constructed.
Thread 4 with id 65538 ending.
@danielhams
danielhams / reintr-mips-debinfo.patch
Created June 29, 2019 10:57
Re-introduce MIPS_DEBUGGING_INFO as SGUG_DEBUGGING_INFO (to avoid clashes)
gcc/config/mips/iris6.h | 1 +
gcc/dwarf2cfi.c | 6 +++++
gcc/dwarf2out.c | 60 +++++++++++++++++++++++++++++++++++++++++
3 files changed, 67 insertions(+)
diff --git a/gcc/config/mips/iris6.h b/gcc/config/mips/iris6.h
index 54d27aa6be4..1ecde02b3eb 100644
--- a/gcc/config/mips/iris6.h
+++ b/gcc/config/mips/iris6.h
@@ -62,6 +62,7 @@ extern const char *host_detect_local_cpu (int argc, const char **argv);
@danielhams
danielhams / progress_gcc8_exceptions.txt
Created July 1, 2019 10:28
Some little progress (but problems still remain)
[dan@leafy irix-gcc8-investigation.git]$ ./dotests.sh
PKG_CONFIG_PATH=/usr/didbs/0_0_6/lib/pkgconfig
GDB_PATH=/builds/dan/bootstrapinstall/gbs4_1/bin/gdb
MANPATH=/usr/didbs/0_0_6/man:/usr/didbs/0_0_6/share/man:/usr/share/catman/a_man:/usr/share/catman/g_man:/usr/share/catman/p_man:/usr/share/catman/u_man
LD_LIBRARYN32_PATH=/usr/didbs/0_0_6/lib:/usr/lib32:/lib32
PATH=/usr/didbs/0_0_6/bin:/usr/sbin:/usr/bsd:/sbin:/usr/bin:/usr/bin/X11:/usr/etc
------ GCC4 COMPILER, GCC4 LIBS RUN ------
libstdc++.so.6 => /builds/dan/bootstrapinstall/gbs4_1/lib/libstdc++.so.6
libm.so => /usr/lib32/libm.so
libgcc_s.so.1 => /builds/dan/bootstrapinstall/gbs4_1/lib/libgcc_s.so.1
@danielhams
danielhams / unxmall_env.sh
Last active July 7, 2019 12:57
Unxmall's Env Script, updated
unset PKG_CONFIG_PATH
unset LDFLAGS
unset CFLAGS
unset CPPFLAGS
unset PERL
unset M4
unset SED
unset GREP
unset BISON
unset YACC