https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82263
Bug ID: 82263 Summary: java multilib -m32 version is using 64 bit include and lib, _GStaticAssertCompileTimeAssertion_0 Product: gcc Version: 6.4.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: java Assignee: unassigned at gcc dot gnu.org Reporter: gccbugzilla.severach at spamgourmet dot com Target Milestone: --- Snapshot 6-20170913 fixed all glibc 2.26 issues except for the -m32 multilib version of the java compiler. It halts with /usr/include/glib-2.0/glib/gmacros.h:232:53: error: size of array ‘_GStaticAssertCompileTimeAssertion_0’ is negative This is because it is including a 64 bit /usr/lib/glib-2.0/include/glibconfig.h. I can patch the makefile to get it to use the 32 bit /usr/lib32/glib-2.0/include/glibconfig.h which completes the compile then crashes on linking to the 64 bit libs. $ pacman -Q gcc-multilib glibc gcc-multilib 7.2.0-1 glibc 2.26-4 $ gcc -v Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-pc-linux-gnu/7.2.0/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: /build/gcc-multilib/src/gcc/configure --prefix=/usr --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=https://bugs.archlinux.org/ --enable-languages=c,c++,ada,fortran,go,lto,objc,obj-c++ --enable-shared --enable-threads=posix --enable-libmpx --with-system-zlib --with-isl --enable-__cxa_atexit --disable-libunwind-exceptions --enable-clocale=gnu --disable-libstdcxx-pch --disable-libssp --enable-gnu-unique-object --enable-linker-build-id --enable-lto --enable-plugin --enable-install-libiberty --with-linker-hash-style=gnu --enable-gnu-indirect-function --enable-multilib --disable-werror --enable-checking=release --enable-default-pie --enable-default-ssp Thread model: posix gcc version 7.2.0 (GCC)