public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug java/35367]  New: Linux x86 build (with --enable-targets=all, so also building with cross-to-x64 multilib configuration) fails in libjava (prims.cc)
@ 2008-02-25 13:54 tim dot vanholder at anubex dot com
  2009-05-18  7:44 ` [Bug libgcj/35367] " debian-gcc at lists dot debian dot org
  2010-07-06 13:02 ` froydnj at gcc dot gnu dot org
  0 siblings, 2 replies; 3+ messages in thread
From: tim dot vanholder at anubex dot com @ 2008-02-25 13:54 UTC (permalink / raw)
  To: java-prs

configured by ../../../src/gcc/configure, generated by GNU Autoconf 2.59,
  with options " '-v' '--prefix=/opt/experimental' '--enable-shared'
'--with-system-zlib' '--enable-threads=posix' '--enable-nls'
'--enable-clocale=gnu' '--enable-libstdcxx-debug' '--enable-libffi'
'--enable-objc-gc' '--enable-mpfr' '--enable-targets=all'
'--enable-checking=release'
'--enable-languages=c,ada,c++,fortran,java,objc,obj-c++,treelang'"

system: Debian linux (lenny/sid; building gcc myself because I'm stuck with
kernel 2.4 so am unable to install newer debian packages)

libtool: compile:  /home/tim/gnu/build/linux/gcc/./gcc/xgcc -shared-libgcc
-B/home/tim/gnu/build/linux/gcc/./gcc -nostdinc++
-L/home/tim/gnu/build/linux/gcc/i686-pc-linux-gnu/64/libstdc++-v3/src
-L/home/tim/gnu/build/linux/gcc/i686-pc-linux-gnu/64/libstdc++-v3/src/.libs
-B/opt/experimental/i686-pc-linux-gnu/bin/
-B/opt/experimental/i686-pc-linux-gnu/lib/ -isystem
/opt/experimental/i686-pc-linux-gnu/include -isystem
/opt/experimental/i686-pc-linux-gnu/sys-include -m64 -DHAVE_CONFIG_H -I.
-I../../../../../../src/gcc/libjava -I./include -I./gcj
-I../../../../../../src/gcc/libjava -Iinclude
-I../../../../../../src/gcc/libjava/include
-I../../../../../../src/gcc/libjava/classpath/include -Iclasspath/include
-I../../../../../../src/gcc/libjava/classpath/native/fdlibm
-I../../../../../../src/gcc/libjava/../boehm-gc/include -I../boehm-gc/include
-I../../../../../../src/gcc/libjava/libltdl
-I../../../../../../src/gcc/libjava/libltdl
-I../../../../../../src/gcc/libjava/.././libjava/../gcc
-I../../../../../../src/gcc/libjava/../zlib
-I../../../../../../src/gcc/libjava/../libffi/include -I../libffi/include
-fno-rtti -fnon-call-exceptions -fdollars-in-identifiers -Wswitch-enum
-D_FILE_OFFSET_BITS=64 -ffloat-store -fomit-frame-pointer -Usun -Wextra -Wall
-D_GNU_SOURCE -DPREFIX=\"/opt/experimental\"
-DTOOLEXECLIBDIR=\"/opt/experimental/lib/../lib64\"
-DJAVA_HOME=\"/opt/experimental\"
-DBOOT_CLASS_PATH=\"/opt/experimental/share/java/libgcj-4.3.0.jar\"
-DJAVA_EXT_DIRS=\"/opt/experimental/share/java/ext\"
-DGCJ_ENDORSED_DIRS=\"/opt/experimental/share/java/gcj-endorsed\"
-DGCJ_VERSIONED_LIBDIR=\"/opt/experimental/lib/../lib64/gcj-4.3.0-9\"
-DPATH_SEPARATOR=\":\" -DECJ_JAR_FILE=\"\"
-DLIBGCJ_DEFAULT_DATABASE=\"/opt/experimental/lib/../lib64/gcj-4.3.0-9/classmap.db\"
-DLIBGCJ_DEFAULT_DATABASE_PATH_TAIL=\"gcj-4.3.0/classmap.db\" -g -O2
-D_GNU_SOURCE -m64 -MT prims.lo -MD -MP -MF .deps/prims.Tpo -c
../../../../../../src/gcc/libjava/prims.cc  -fPIC -DPIC -o .libs/prims.o
../../../../../../src/gcc/libjava/prims.cc: In function 'void
_Jv_catch_fpe(int, siginfo_t*, void*)':
../../../../../../src/gcc/libjava/prims.cc:193: error: cast from 'unsigned
char*' to 'greg_t' loses precision

This seems to be a bug in the configury, as java-signal.h is linked to
i386-signal.h instead of x86_64-signal.h in i686-pc-linux-gnu/64/libjava.
Adjusting that link is not enough to make the build succeed (it still gives the
same error, with additional errors about REG_RIP/RAX/RDX not being declared).


-- 
           Summary: Linux x86 build (with --enable-targets=all, so also
                    building with cross-to-x64 multilib configuration) fails
                    in libjava (prims.cc)
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: java
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: tim dot vanholder at anubex dot com
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35367


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug libgcj/35367] Linux x86 build (with --enable-targets=all, so also building with cross-to-x64 multilib configuration) fails in libjava (prims.cc)
  2008-02-25 13:54 [Bug java/35367] New: Linux x86 build (with --enable-targets=all, so also building with cross-to-x64 multilib configuration) fails in libjava (prims.cc) tim dot vanholder at anubex dot com
@ 2009-05-18  7:44 ` debian-gcc at lists dot debian dot org
  2010-07-06 13:02 ` froydnj at gcc dot gnu dot org
  1 sibling, 0 replies; 3+ messages in thread
From: debian-gcc at lists dot debian dot org @ 2009-05-18  7:44 UTC (permalink / raw)
  To: java-prs



------- Comment #1 from debian-gcc at lists dot debian dot org  2009-05-18 07:44 -------
debian doesn't have all libraries needed as build dependencies as 64bit
versions, so it's clear that the build fails. IMO not a GCC issue.

  Matthias


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35367


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug libgcj/35367] Linux x86 build (with --enable-targets=all, so also building with cross-to-x64 multilib configuration) fails in libjava (prims.cc)
  2008-02-25 13:54 [Bug java/35367] New: Linux x86 build (with --enable-targets=all, so also building with cross-to-x64 multilib configuration) fails in libjava (prims.cc) tim dot vanholder at anubex dot com
  2009-05-18  7:44 ` [Bug libgcj/35367] " debian-gcc at lists dot debian dot org
@ 2010-07-06 13:02 ` froydnj at gcc dot gnu dot org
  1 sibling, 0 replies; 3+ messages in thread
From: froydnj at gcc dot gnu dot org @ 2010-07-06 13:02 UTC (permalink / raw)
  To: java-prs



------- Comment #2 from froydnj at gcc dot gnu dot org  2010-07-06 13:02 -------
(In reply to comment #1)
> debian doesn't have all libraries needed as build dependencies as 64bit
> versions, so it's clear that the build fails. IMO not a GCC issue.

This same error occurs on systems where a native x86-64 build works just fine
(and builds libjava), so yes, it is a GCC issue.


-- 

froydnj at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2010-07-06 13:02:16
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35367


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-07-06 13:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-02-25 13:54 [Bug java/35367] New: Linux x86 build (with --enable-targets=all, so also building with cross-to-x64 multilib configuration) fails in libjava (prims.cc) tim dot vanholder at anubex dot com
2009-05-18  7:44 ` [Bug libgcj/35367] " debian-gcc at lists dot debian dot org
2010-07-06 13:02 ` froydnj at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).