[Bug java/82263] New: java multilib -m32 version is using 64 bit include and lib, _GStaticAssertCompileTimeAssertion_0

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[Bug java/82263] New: java multilib -m32 version is using 64 bit include and lib, _GStaticAssertCompileTimeAssertion_0

braddock.c at husky dot neu.edu
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)
Reply | Threaded
Open this post in threaded view
|

[Bug java/82263] java multilib -m32 version is using 64 bit include and lib, _GStaticAssertCompileTimeAssertion_0

braddock.c at husky dot neu.edu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82263

Andrew John Hughes <gnu_andrew at member dot fsf.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |gnu_andrew at member dot fsf.org

--- Comment #1 from Andrew John Hughes <gnu_andrew at member dot fsf.org> ---
There seems to be some confusion here. You mention using GCC 6, but the output
at the end is from GCC 7, which doesn't contain GCJ.
Reply | Threaded
Open this post in threaded view
|

[Bug java/82263] java multilib -m32 version is using 64 bit include and lib, _GStaticAssertCompileTimeAssertion_0

braddock.c at husky dot neu.edu
In reply to this post by braddock.c at husky dot neu.edu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82263

--- Comment #2 from Chris Severance <gccbugzilla.severach at spamgourmet dot com> ---
I'm building gcc 6.4.1 6-20170913 with gcc 7.2.0. The -m32 version of java does
not build.