Bug 21872 - libjava configure fails because it mistakenly thinks it is cross compiling
Summary: libjava configure fails because it mistakenly thinks it is cross compiling
Status: RESOLVED DUPLICATE of bug 21782
Alias: None
Product: gcc
Classification: Unclassified
Component: bootstrap (show other bugs)
Version: 3.3.6
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
: 21871 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-06-02 01:10 UTC by aaronw
Modified: 2005-07-23 22:49 UTC (History)
3 users (show)

See Also:
Host: sparc-sun-solaris2.8
Target: sparc-sun-solaris2.8
Build: sparc-sun-solaris2.8
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description aaronw 2005-06-02 01:10:07 UTC
When compiling gcc 3.3.6 on sparc Solaris 2.8 with the configure option 
--with-cpu=ultrasparc, the configure script for libjava fails with: 
 
checking for sigaction... yes 
checking for ftruncate... (cached) yes 
checking for execinfo.h... no 
checking for unistd.h... (cached) yes 
checking for dlfcn.h... (cached) yes 
checking for backtrace... no 
checking for dladdr in -ldl... yes 
checking for /proc/self/exe... configure: error: Cannot check for file 
existence when cross compiling 
make: *** [configure-target-libjava] Error 1
Comment 1 aaronw 2005-06-02 01:12:09 UTC
Update: this is only for the sparcv9 multilib... I found that 
ac_cv_prog_cc_cross=yes in config.cache 
 
This should have been no. 
Comment 2 Eric Botcazou 2005-06-02 06:12:00 UTC
*** Bug 21871 has been marked as a duplicate of this bug. ***
Comment 3 Eric Botcazou 2005-06-02 06:14:28 UTC
> Update: this is only for the sparcv9 multilib... I found that 
> ac_cv_prog_cc_cross=yes in config.cache 

That could simply be another dup of 21870.  Binutils 2.16 should not be used in
conjunction with 3.3.x.
Comment 4 Andrew Pinski 2005-06-15 03:25:52 UTC

*** This bug has been marked as a duplicate of 21782 ***