Many thanks Rene, for the new minimal-xorg-glibc-gcc-x86-64-r49198.iso,
downloading now!
Will try it tomorrow as I have a working build in progress (past 1-gcc
at last), including with :-
glibc-2.31
gcc-9.2.0
glib-2.62.4
*note the last one, it fixed the problem from glib-2.62.2, although glib
is now at glib-2.63.5 if you want the latest, I thought one step at a
time, i'll try the latest soon.
It also needs Jan's diff/patch for gcc and the attached lfs
glib-2.62.4-skip_warnings-1.patch patch to work.
scsijon
ps and it's failed at libaio 'created file outside allowed top-level
dir:', oh well back to it!
On 07/02/20 22:15, René Rebe wrote:
Hi there,
huge shoutout to all the Patreon’s and YouTube viewers allowing me to
spend even more time keeping t2 up-to-date and improving all the many
details:
https://www.youtube.com/watch?v=LCCIbmsx_RQ
https://www.youtube.com/watch?v=xSR60foQhoM
t2-minimal-xorg-glibc-gcc-x86-64-r49198.iso
<http://dl.t2sde.org/binary/2020/t2-minimal-xorg-glibc-gcc-x86-64-r49198.iso>
Please feel free to report any issues, preferable with steps to reproduce or
even patches! ;-)
https://patreon.com/renerebe
Have a great week,
René Rebe
Submitted By: Bruce dubbs <[email protected]>
Date: 2017-10-15
Initial Package Version: 2.54.0
Upstream Status: Not submitted
Origin: Self
Description: Adds a capabiility to skip printing warning messages using
an environment variable: GLIB_LOG_LEVEL. The value
of the variable is a digit that correponds to:
1 Alert
2 Critical
3 Error
4 Warning
5 Notice
For instance GLIB_LOG_LEVEL=4 will skip output of Waring and
Notice messages (and Info/Debug messages if they are turned on).
--- glib-2.54.0/glib/gmessages.c 2017-08-19 08:39:20.000000000 -0500
+++ glib-2.54.0-new/glib/gmessages.c 2017-10-15 14:45:52.004885278 -0500
@@ -523,6 +523,35 @@
/* --- functions --- */
+/* skip_message
+ *
+ * This internal function queries an optional environment variable,
+ * GLIB_LOG_LEVEL and converts it to a value consistent
+ * with the type GLogLevelFlags. If the value is equal to
+ * or greater than the integer equivalent of the log_level.
+ * then the function returns a boolean that indicates that
+ * loging the output should be skipped.
+ */
+
+static gboolean skip_message( GLogLevelFlags log_level);
+
+static gboolean skip_message( GLogLevelFlags log_level)
+{
+ char* user_log_level;
+ int user_log_int;
+ gboolean skip = FALSE;
+
+ user_log_level = getenv( "GLIB_LOG_LEVEL" );
+
+ user_log_int = ( user_log_level != NULL ) ? atoi( user_log_level ) : 0;
+ user_log_int = ( user_log_int != 0 ) ? 1 << user_log_int : 0;
+
+ if ( user_log_int >= log_level ) skip = TRUE;
+
+ return skip;
+}
+
+
static void _g_log_abort (gboolean breakpoint);
static void
@@ -2496,6 +2525,9 @@
g_return_val_if_fail (fields != NULL, G_LOG_WRITER_UNHANDLED);
g_return_val_if_fail (n_fields > 0, G_LOG_WRITER_UNHANDLED);
+ /* If the user does not want this message level, just return */
+ if ( skip_message( log_level) ) return G_LOG_WRITER_HANDLED;
+
stream = log_level_to_file (log_level);
if (!stream || fileno (stream) < 0)
return G_LOG_WRITER_UNHANDLED;
@@ -2640,6 +2672,9 @@
FILE *stream;
gsize i;
+ /* If the user does not want this message level, just return */
+ if ( skip_message( log_level) ) return G_LOG_WRITER_HANDLED;
+
/* we cannot call _any_ GLib functions in this fallback handler,
* which is why we skip UTF-8 conversion, etc.
* since we either recursed or ran out of memory, we're in a pretty
Index: package/develop/gcc/gcc.conf
===================================================================
--- package/develop/gcc/gcc.conf (revision 49198)
+++ package/develop/gcc/gcc.conf (working copy)
@@ -144,6 +144,10 @@
# cross, since gcc-4.3 we have to:
var_append confopt ' ' '--target=$arch_target'
+ # Suppress these which will stop the cross build:
+ # error: narrowing conversion of ..."
+ var_append GCC_WRAPPER_APPEND " " "-Wno-narrowing"
+
[ "$SDECFG_KERNEL" = mingw ] &&
configscript="../libstdc++-v3/configure" ||
hook_add preconf 7 "libstdcpp_build"
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[email protected] with a subject of: unsubscribe t2