+++ This bug was initially created as a clone of Bug #38743 +++

I'm building gcc 4.4.0 20090106 on OpenSolaris (32 bit boot mode). 

The file trunk/libjava/configure checks if 64 bit code can executed on a
32 bit platform when configuring for the i386-pc-solaris2.11/amd64/libgcc 
directory.

# prev-gcc/xgcc -v
Using built-in specs.
Target: i386-pc-solaris2.11
Configured with: ../gcc_trunk/configure
--enable-languages=ada,c,c++,fortran,java,objc,obj-c++ --enable-shared
--disable-static --enable-decimal-float --with-long-double-128 --enable-nls
--with-included-gettext --enable-gather-detailed-mem-stats --with-stabs
--enable-debug -enable-largefile --enable-symvers --without-system-zlib
--enable-gtk-cairo --enable-qt-peer --enable-xmlj --enable-gconf-peer
--enable-gjdoc --enable-java-awt=gtk,xlib,qt,x --enable-gc-debug
--enable-libgcj-debug --enable-objc-gc --enable-libstdcxx-debug
--disable-stage1-checking --enable-checking=release --without-system-libunwind
--with-gnu-as --with-as=/usr/local/bin/as --with-gnu-ld
--with-ld=/usr/local/bin/ld
Thread model: posix
gcc version 4.4.0 20090111 (experimental) [trunk revision 143259] (GCC) 


#ggrep -B10 cross i386-pc-solaris2.11/amd64/libjava/config.log
configure:2383: checking for C compiler default output file name
configure:2386: /usr/share/src/gcc_build/./gcc/xgcc
-B/usr/share/src/gcc_build/./gcc/ -B/usr/local/i386-pc-solaris2.11/bin/
-B/usr/local/i386-pc-solaris2.11/lib/ -isystem
/usr/local/i386-pc-solaris2.11/include -isystem
/usr/local/i386-pc-solaris2.11/sys-include  -m64 -g -O2     conftest.c  >&5
configure:2389: $? = 0
configure:2437: result: a.out
configure:2442: checking whether the C compiler works
configure:2448: ./a.out
./a.out: ./a.out: cannot execute [Exec format error]
configure:2451: $? = 126
configure:2470: result: yes
configure:2477: checking whether we are cross compiling
configure:2479: result: yes


# isainfo -k
i386


To push past this point I simply edited trunk/libjava/configure (as I did
in Bug #38743) and commented out the exit when the test failed (since I do
not need execs in that dir):

echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
If you meant to cross compile, use \`--host'.
See \`config.log' for more details." >&5
echo "$as_me: error: cannot run C compiled programs.
If you meant to cross compile, use \`--host'.
See \`config.log' for more details." >&2;}
#   { (exit 1); exit 1; }; }; }                    # Line 2466
    }; }
    fi
  fi
fi
echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6


Thanks,
Rob


-- 
           Summary: gcc 4.4.0 20090111 - The configure for
                    $BUILD/amd64/libjava checks if 64 bit code can exec on
                    32 bit platform
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Severity: major
          Priority: P3
         Component: bootstrap
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: rob1weld at aol dot com
 GCC build triplet: i386-pc-solaris2.11
  GCC host triplet: i386-pc-solaris2.11
GCC target triplet: i386-pc-solaris2.11


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

Reply via email to