Ok, was able to get rid of the "error: narrowing conversion of ..." at
the cross stage of gcc by adding:
var_append GCC_WRAPPER_APPEND " " "-Wno-narrowing" to the cross stage.
I am assuming that this does not show up in the native build, since no
one else has hit this error.
Patch attached.
Jan
On 2/4/20 1:05 AM, Jan Rovins wrote:
Ok, now I have gotten all the way up to gcc stage 1.
and it broke in a way that I have not seen before, so maybe this was
introduced with the new glibc?
../../gcc/config/i386/i386.c:30851:1: error: narrowing conversion of
'9223372036854775810' from 'long unsigned int' to 'long int'
[-Wnarrowing]
30851 | };
| ^
../../gcc/config/i386/i386-builtin.def:437:1: note: in expansion of
macro 'BDESC_END'
437 | BDESC_END (SPECIAL_ARGS, ARGS)
| ^~~~~~~~~
make[2]: *** [Makefile:2267: i386.o] Error 1
rm gcc.pod
make[2]: Leaving directory
'/opt/t2-trunk/src.gcc.default.20200204.055742.9830.j-ryzen-3950/gcc-9.2.0/objdir/gcc'
make[1]: *** [Makefile:4320: all-gcc] Error 2
make[1]: Leaving directory
'/opt/t2-trunk/src.gcc.default.20200204.055742.9830.j-ryzen-3950/gcc-9.2.0/objdir'
make: *** [Makefile:954: all] Error 2
Due to previous errors, no 1-gcc.log file!
(Try enabling xtrace in the config to track an error inside the build
system.)
--- BUILD ERROR ---
Creating file list and doing final adaptions ...
removed
'/opt/t2-trunk/build/default-9.0-svn-generic-x86-64-linux/usr/lib64/libsupc++.la'
removed
'/opt/t2-trunk/build/default-9.0-svn-generic-x86-64-linux/usr/lib64/libstdc++fs.la'
removed
'/opt/t2-trunk/build/default-9.0-svn-generic-x86-64-linux/usr/lib64/libstdc++.la'
removed
'/opt/t2-trunk/build/default-9.0-svn-generic-x86-64-linux/usr/lib/libsupc++.la'
removed
'/opt/t2-trunk/build/default-9.0-svn-generic-x86-64-linux/usr/lib/libstdc++fs.la'
removed
'/opt/t2-trunk/build/default-9.0-svn-generic-x86-64-linux/usr/lib/libstdc++.la'
Searching for orphaned files ...
Found 886 files for this package.
Found 0 orphaned files for this package.
Clear (old) md5sums ...
Creating md5sum files ... done.
Creating package description ...
Making post-install adaptions.
== 02/04/20 05:59:35 =[1]=> Aborted building package gcc.
It is getting late, will continue this tomorrow night.
Jan
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