[Bug libgcc/58260] New: configure: error: cannot compute suffix of object files: cannot compile See `config.log' for more details. gmake[1]: *** [configure-target-libgcc] Error 1

2013-08-28 Thread anand.karanam at tcs dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58260

Bug ID: 58260
   Summary: configure: error: cannot compute suffix of object
files: cannot compile See `config.log' for more
details. gmake[1]: *** [configure-target-libgcc] Error
1
   Product: gcc
   Version: 4.6.3
Status: UNCONFIRMED
  Severity: major
  Priority: P3
 Component: libgcc
  Assignee: unassigned at gcc dot gnu.org
  Reporter: anand.karanam at tcs dot com

Created attachment 30710
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30710&action=edit
configuration file

While preparing cross compiler from Solaris10 to Linux problem seem during the
build of we observe the error 

checking for i686-pc-linux-gnu-gcc...
/home/ekarana/ekarana_2013/GCC463_OSE5.6/Solaris_to_Linux/INSTALL/build-gcc/sparc-sun-solaris2.10-i686-pc-linux-gnu/./gcc/xgcc
-B/home/ekarana/ekarana_2013/GCC463_OSE5.6/Solaris_to_Linux/INSTALL/build-gcc/sparc-sun-solaris2.10-i686-pc-linux-gnu/./gcc/
-B/home/ekarana/ekarana_2013/GCC463_OSE5.6/Solaris_to_Linux/SunOS/sparc/i686-pc-linux-gnu/bin/
-B/home/ekarana/ekarana_2013/GCC463_OSE5.6/Solaris_to_Linux/SunOS/sparc/i686-pc-linux-gnu/lib/
-isystem
/home/ekarana/ekarana_2013/GCC463_OSE5.6/Solaris_to_Linux/SunOS/sparc/i686-pc-linux-gnu/include
-isystem
/home/ekarana/ekarana_2013/GCC463_OSE5.6/Solaris_to_Linux/SunOS/sparc/i686-pc-linux-gnu/sys-include
 
checking for suffix of object files... configure: error: in
`/home/ekarana/ekarana_2013/GCC463_OSE5.6/Solaris_to_Linux/INSTALL/build-gcc/sparc-sun-solaris2.10-i686-pc-linux-gnu/i686-pc-linux-gnu/libgcc':
configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
gmake[1]: *** [configure-target-libgcc] Error 1
gmake[1]: Leaving directory
`/home/ekarana/ekarana_2013/GCC463_OSE5.6/Solaris_to_Linux/INSTALL/build-gcc/sparc-sun-solaris2.10-i686-pc-linux-gnu'
make: *** [all] Error 2


Compiler is installed ( problem with libgcc and libstdcc++ builds)
but can't be used.





Environment variables

CLEARCASE_ROOT=/view/ekarana_solaris_to_linux
CLEARCASE_CMDLINE=setview ekarana_solaris_to_linux
USER=ekarana
LOGNAME=ekarana
HOME=/home/ekarana
PATH=/app/texinfo/4.0/bin:/home/ekarana/ekarana_2013/GCC463_OSE5.6/Solaris_to_Linux/SunOS/sparc/bin:/app/openssl/1.0.0/bin:/vobs/cello/cade_struct/SunOS/sparc/bin/jdk1.4:/vobs/cello/cade_struct/SunOS/sparc/bin:/vobs/cello/cade_struct/bin:/usr/atria/bin:/home/ekarana/bin:/proj/swdi/tools/bin:/vobs/axeste/fwsime/eriemu/bin/ERIemu-FW/bin:/app/git/1.7.2.2/LMWP3/bin:/app/git/1.7.2.2/LMWP3/libexec/git-core:/local/Apstools/4.5/lib/tcl/bin:/opt/rational/clearcase/sun5/bin:/vobs/wds/otd/Developer/bin:/app/emake/sekisparc/bin:/app/git/1.8.3.3/bin:/app/git/1.8.3.3/libexec/git-core:/app/jdk/1.6.0_16/bin:/app/nedit/5.5.1/bin:/app/emacs/23.2/bin:/app/nxclient/3.4.0.7/bin:/app/vim/7.3.021/bin:/app/xemacs/21.5.29/bin:/app/thunderbird/3.1.6:/app/thunderbird/3.1.6/bin:/app/openoffice/3.2.1/bin:/app/j2re/1.6.0_22/bin:/app/ica/client/8.63:/app/acroread/8.1.7/Adobe/Reader8/bin:/app/firefox/3.6.12:/home/ekarana/.afs/0/rbin:/home/ekarana/.afs/0/pbin:/env/seki/bin:/home/ekarana/.afs/0/ibin:/usr/afsws/bin:/u
 
sr/bin:/bin:/usr/sbin:/sbin:/opt/quest/bin:/usr/openwin/bin:/usr/dt/bin:/usr/ccs/bin:/app/arc/0/bin:/usr/ucb:/vobs/cello/cade_struct/tools/coverity/SunOS/sparc/cov-analysis/bin:.
MAIL=/var/mail//ekarana
SHELL=/bin/tcsh
TZ=MET
SSH_CLIENT=147.214.14.232 48272 22
SSH_CONNECTION=147.214.14.232 48272 147.214.15.85 22
SSH_TTY=/dev/pts/452
TERM=xterm
DISPLAY=localhost:20.0

HOSTTYPE=sun4
VENDOR=sun
OSTYPE=solaris
MACHTYPE=sparc
SHLVL=2
PWD=/home/ekarana/ekarana_2013/GCC463_OSE5.6/Solaris_to_Linux/INSTALL/build-gcc/sparc-sun-solaris2.10-i686-pc-linux-gnu
GROUP=cello
HOST=esekits1047
REMOTEHOST=esekilxxen1309.rnd.ericsson.se
SITE=seki
ARC_ENV=seki
ARC_RELEASE=0
_system_path=/usr/bin:/bin:/usr/sbin:/sbin:/opt/quest/bin
MODULEPATH=/vobs/cello/cade_struct/modules:/app/modules/0/modulefiles:/home/ekarana/.afs/0/rmodules:/home/ekarana/.afs/0/pmodules:/env/seki/modules:/home/ekarana/.afs/0/imodules:/env/common/modules
LOADEDMODULES=firefox/3.6.12:acroread/8.1.7:flashplayer/10.1:ica/8.63:j2re/1.6.0_22:openoffice/3.2.1:thunderbird/3.1.6:xemacs/21.5.29:vim/7.3.021:nxclient/3.4.0.7:emacs/23.2:isit_modules:nedit/5.5.1:j2sdk/1.6.0_16:git/1.8.3.3:emake/sekisparc:coverity:openssl/1.0.0:texinfo/4.0
PROJ_NR=0
CCHOME=/usr/atria
MAGIC_PATH=/usr/atria/config/magic
LANG=en_US
LC_TIME=C
LC_MESSAGES=C
LC_COLLATE=C
_MODULESBEGINENV_=/home/ekarana/.modulesbeginenv
_LMFILES_=/env/common/modules/firefox/3.6.12:/env/common/modules/acroread/8.1.7:/env/common/modules/flashplayer/10.1:/env/common/modules/ica/8.63:/env/common/modules/j2re/1.6.0_22:/env/common/modules/openoffice/3.2.1:/env/common/modules/thunderbird/3.1.6:/env/common/modules/xemacs/21.5.29:/env/common/modules/vim/7.3.021:/env

[Bug libgcc/58260] configure: error: cannot compute suffix of object files: cannot compile See `config.log' for more details. gmake[1]: *** [configure-target-libgcc] Error 1

2013-08-28 Thread anand.karanam at tcs dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58260

anand.karanam at tcs dot com changed:

   What|Removed |Added

 CC||anand.karanam at tcs dot com

--- Comment #3 from anand.karanam at tcs dot com ---
Created attachment 30711
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30711&action=edit
libgcc configuratrion informatoin

Added the config.log of libgcc


[Bug libgcc/58260] configure: error: cannot compute suffix of object files: cannot compile See `config.log' for more details. gmake[1]: *** [configure-target-libgcc] Error 1

2013-08-29 Thread anand.karanam at tcs dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58260

--- Comment #8 from anand.karanam at tcs dot com ---
Hi,
I have tried the build of gmp,mpfr and mpc with the option of --disable-shared
and using them.

However now when I use the following configuration for cross compiler build (
Solaris to Linux ) with the following options


$INSTALLDIR/gcc-$GCCVER/configure --prefix=$PREFIX $TGTOPT $SYSROOT
--with-gnu-as --with-gnu-ld --enable-languages=c,c++ --disable-nls
-with-gmp=/app/gmp/5.0.1 --with-mpfr=/app/mpfr/2.4.2 --with-mpc=/app/mpc/0.8.1


SOURCE=/home/ekarana/ekarana_2013/GCC463_OSE5.6/Solaris_to_Linux/INSTALL
PREFIX=/home/ekarana/ekarana_2013/GCC463_OSE5.6/Solaris_to_Linux/SunOS/sparc
CROSS_OS=Linux
INSTALLDIR=/home/ekarana/ekarana_2013/GCC463_OSE5.6/Solaris_to_Linux/INSTALL
XLIBC=/vobs/cello/cade_struct/Linux/i686/usr
XSYSROOT=--with-sysroot=/vobs/cello/cade_struct/Linux/i686/usr
SYSROOT=--with-sysroot=/vobs/cello/cade_struct/Linux/i686/usr



Now observe the problem with libgomp build.

configure:3688:
/home/ekarana/ekarana_2013/GCC463_OSE5.6/Solaris_to_Linux/INSTALL/build-gcc/sparc-sun-solaris2.10-i686-pc-linux-gnu/./gcc/xgcc
-B/home/ekarana/ekarana_2013/GCC463_OSE5.6/Solaris_to_Linux/INS
TALL/build-gcc/sparc-sun-solaris2.10-i686-pc-linux-gnu/./gcc/
-B/home/ekarana/ekarana_2013/GCC463_OSE5.6/Solaris_to_Linux/SunOS/sparc/i686-pc-linux-gnu/bin/
-B/home/ekarana/ekarana_2013/GCC463_OSE5.6/Solari
s_to_Linux/SunOS/sparc/i686-pc-linux-gnu/lib/ -isystem
/home/ekarana/ekarana_2013/GCC463_OSE5.6/Solaris_to_Linux/SunOS/sparc/i686-pc-linux-gnu/include
-isystem /home/ekarana/ekarana_2013/GCC463_OSE5.6/Solar
is_to_Linux/SunOS/sparc/i686-pc-linux-gnu/sys-include-g -O2   conftest.c 
>&5
/home/ekarana/ekarana_2013/GCC463_OSE5.6/Solaris_to_Linux/SunOS/sparc/i686-pc-linux-gnu/bin/ld:
warning: ld-linux.so.2, needed by
/vobs/cello/cade_struct/Linux/i686/usr/lib/libc.so.6, not found (try using -
rpath or -rpath-link)
/vobs/cello/cade_struct/Linux/i686/usr/lib/libc.so.6: undefined reference to
`__libc_stack_end@GLIBC_2.1'
/vobs/cello/cade_struct/Linux/i686/usr/lib/libc.so.6: undefined reference to
`_dl_tls_get_addr_soft@GLIBC_PRIVATE'
/vobs/cello/cade_struct/Linux/i686/usr/lib/libc.so.6: undefined reference to
`_dl_argv@GLIBC_PRIVATE'
/vobs/cello/cade_struct/Linux/i686/usr/lib/libc.so.6: undefined reference to
`_rtld_global_ro@GLIBC_PRIVATE'
/vobs/cello/cade_struct/Linux/i686/usr/lib/libc.so.6: undefined reference to
`___tls_get_addr@GLIBC_2.3'
/vobs/cello/cade_struct/Linux/i686/usr/lib/libc.so.6: undefined reference to
`_rtld_global@GLIBC_PRIVATE'
/vobs/cello/cade_struct/Linux/i686/usr/lib/libc.so.6: undefined reference to
`__libc_enable_secure@GLIBC_PRIVATE'
collect2: ld returned 1 exit status
configure:3692: $? = 1
configure:3729: result:
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "GNU OpenMP Runtime Library"
| #define PACKAGE_TARNAME "libgomp"
:q!


Some information on 

Note: /vobs/cello/cade_struct/Linux/i686/usr  contains the copy of Linux host
includes and libraries( static and shared ). 

Not sure if the /vobs/cello/cade_struct/Linux/i686/usr  libraries are from
SLED11 64bit as they were created earlier  from SLED10 32 bit

Solaris host machine is 

SunOS esekits  5.10 Generic_142900-02 sun4u sparc SUNW,SPARC-Enterprise

Do we need to have a copy of the Linux host includes and libraries to prepare
the cross compiler?

Or can we avoid this with newlib build and using the same?

Attached the config file for libgomp.


[Bug libgcc/58260] configure: error: cannot compute suffix of object files: cannot compile See `config.log' for more details. gmake[1]: *** [configure-target-libgcc] Error 1

2013-08-29 Thread anand.karanam at tcs dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58260

--- Comment #9 from anand.karanam at tcs dot com ---
Hi,
I have tried the build of gmp,mpfr and mpc with the option of --disable-shared
and using them.

However now when I use the following configuration for cross compiler build (
Solaris to Linux ) with the following options


$INSTALLDIR/gcc-$GCCVER/configure --prefix=$PREFIX $TGTOPT $SYSROOT
--with-gnu-as --with-gnu-ld --enable-languages=c,c++ --disable-nls
-with-gmp=/app/gmp/5.0.1 --with-mpfr=/app/mpfr/2.4.2 --with-mpc=/app/mpc/0.8.1


SOURCE=/home/ekarana/ekarana_2013/GCC463_OSE5.6/Solaris_to_Linux/INSTALL
PREFIX=/home/ekarana/ekarana_2013/GCC463_OSE5.6/Solaris_to_Linux/SunOS/sparc
CROSS_OS=Linux
INSTALLDIR=/home/ekarana/ekarana_2013/GCC463_OSE5.6/Solaris_to_Linux/INSTALL
XLIBC=/vobs/cello/cade_struct/Linux/i686/usr
XSYSROOT=--with-sysroot=/vobs/cello/cade_struct/Linux/i686/usr
SYSROOT=--with-sysroot=/vobs/cello/cade_struct/Linux/i686/usr



Now observe the problem with libgomp build.

configure:3688:
/home/ekarana/ekarana_2013/GCC463_OSE5.6/Solaris_to_Linux/INSTALL/build-gcc/sparc-sun-solaris2.10-i686-pc-linux-gnu/./gcc/xgcc
-B/home/ekarana/ekarana_2013/GCC463_OSE5.6/Solaris_to_Linux/INS
TALL/build-gcc/sparc-sun-solaris2.10-i686-pc-linux-gnu/./gcc/
-B/home/ekarana/ekarana_2013/GCC463_OSE5.6/Solaris_to_Linux/SunOS/sparc/i686-pc-linux-gnu/bin/
-B/home/ekarana/ekarana_2013/GCC463_OSE5.6/Solari
s_to_Linux/SunOS/sparc/i686-pc-linux-gnu/lib/ -isystem
/home/ekarana/ekarana_2013/GCC463_OSE5.6/Solaris_to_Linux/SunOS/sparc/i686-pc-linux-gnu/include
-isystem /home/ekarana/ekarana_2013/GCC463_OSE5.6/Solar
is_to_Linux/SunOS/sparc/i686-pc-linux-gnu/sys-include-g -O2   conftest.c 
>&5
/home/ekarana/ekarana_2013/GCC463_OSE5.6/Solaris_to_Linux/SunOS/sparc/i686-pc-linux-gnu/bin/ld:
warning: ld-linux.so.2, needed by
/vobs/cello/cade_struct/Linux/i686/usr/lib/libc.so.6, not found (try using -
rpath or -rpath-link)
/vobs/cello/cade_struct/Linux/i686/usr/lib/libc.so.6: undefined reference to
`__libc_stack_end@GLIBC_2.1'
/vobs/cello/cade_struct/Linux/i686/usr/lib/libc.so.6: undefined reference to
`_dl_tls_get_addr_soft@GLIBC_PRIVATE'
/vobs/cello/cade_struct/Linux/i686/usr/lib/libc.so.6: undefined reference to
`_dl_argv@GLIBC_PRIVATE'
/vobs/cello/cade_struct/Linux/i686/usr/lib/libc.so.6: undefined reference to
`_rtld_global_ro@GLIBC_PRIVATE'
/vobs/cello/cade_struct/Linux/i686/usr/lib/libc.so.6: undefined reference to
`___tls_get_addr@GLIBC_2.3'
/vobs/cello/cade_struct/Linux/i686/usr/lib/libc.so.6: undefined reference to
`_rtld_global@GLIBC_PRIVATE'
/vobs/cello/cade_struct/Linux/i686/usr/lib/libc.so.6: undefined reference to
`__libc_enable_secure@GLIBC_PRIVATE'
collect2: ld returned 1 exit status
configure:3692: $? = 1
configure:3729: result:
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "GNU OpenMP Runtime Library"
| #define PACKAGE_TARNAME "libgomp"
:q!


Some information on 

Note: /vobs/cello/cade_struct/Linux/i686/usr  contains the copy of Linux host
includes and libraries( static and shared ). 

Not sure if the /vobs/cello/cade_struct/Linux/i686/usr  libraries are from
SLED11 64bit as they were created earlier  from SLED10 32 bit

Solaris host machine is 

SunOS esekits  5.10 Generic_142900-02 sun4u sparc SUNW,SPARC-Enterprise

Do we need to have a copy of the Linux host includes and libraries to prepare
the cross compiler?

Or can we avoid this with newlib build and using the same?

Attached the config file for libgomp.


[Bug libgcc/58260] configure: error: cannot compute suffix of object files: cannot compile See `config.log' for more details. gmake[1]: *** [configure-target-libgcc] Error 1

2013-08-29 Thread anand.karanam at tcs dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58260

--- Comment #10 from anand.karanam at tcs dot com ---
Created attachment 30716
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30716&action=edit
libgomp configuration


[Bug libgcc/58260] configure: error: cannot compute suffix of object files: cannot compile See `config.log' for more details. gmake[1]: *** [configure-target-libgcc] Error 1

2013-09-21 Thread anand.karanam at tcs dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58260

--- Comment #12 from anand.karanam at tcs dot com ---
Hi,

Now, I have the glibc from Linux host copied to a common path. Able to build
the Solaris to Linux cross compiler but that doesn't work.



hello.c: In function 'main':
hello.c:10:1: internal compiler error: Bus Error
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
*** Error code 1

Also the libgcc preparation failed

checking for i686-pc-linux-gnu-gcc...
/vobs/cello/cade_struct/tools/gcc/INSTALL/build-gcc/sparc-sun-solaris2.10-i686-pc-linux-gnu/./gcc/xgcc
-B/vobs/cello/cade_struct/tools/gcc/INSTALL/build-gcc/sparc-sun-solaris2.10-i686-pc-linux-gnu/./gcc/
-B/vobs/cello/cade_struct/tools/gcc/SunOS/sparc/i686-pc-linux-gnu/bin/
-B/vobs/cello/cade_struct/tools/gcc/SunOS/sparc/i686-pc-linux-gnu/lib/ -isystem
/vobs/cello/cade_struct/tools/gcc/SunOS/sparc/i686-pc-linux-gnu/include
-isystem
/vobs/cello/cade_struct/tools/gcc/SunOS/sparc/i686-pc-linux-gnu/sys-include   
checking for suffix of object files... configure: error: in
`/vobs/cello/cade_struct/tools/gcc/INSTALL/build-gcc/sparc-sun-solaris2.10-i686-pc-linux-gnu/i686-pc-linux-gnu/libgcc':
configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.



I have ensured GMP,MPFR and MPC.

Attached the config.log as   Solaris_to_Linux_config_2013_09_21.log.

Please check this as this time we can only see the errors as

configure:3055:
/vobs/cello/cade_struct/tools/gcc/INSTALL/build-gcc/sparc-sun-solaris2.10-i686-pc-linux-gnu/./gcc/xgcc
-B/vobs/cello/cade_struct/tools/gcc/INSTALL/buil
d-gcc/sparc-sun-solaris2.10-i686-pc-linux-gnu/./gcc/
-B/vobs/cello/cade_struct/tools/gcc/SunOS/sparc/i686-pc-linux-gnu/bin/
-B/vobs/cello/cade_struct/tools/gcc/SunOS/s
parc/i686-pc-linux-gnu/lib/ -isystem
/vobs/cello/cade_struct/tools/gcc/SunOS/sparc/i686-pc-linux-gnu/include
-isystem /vobs/cello/cade_struct/tools/gcc/SunOS/sparc/i68
6-pc-linux-gnu/sys-include-o conftest -g -O2   conftest.c  >&5
conftest.c: In function 'main':
conftest.c:16:1: internal compiler error: Bus Error
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
configure:3058: $? = 1



Need help to decide if this is a known problem with this version or I am still
missing something as the Native compiler is build ok for Solaris10.

Thanks,
Anand


[Bug libgcc/58260] configure: error: cannot compute suffix of object files: cannot compile See `config.log' for more details. gmake[1]: *** [configure-target-libgcc] Error 1

2013-09-21 Thread anand.karanam at tcs dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58260

--- Comment #13 from anand.karanam at tcs dot com ---
Created attachment 30879
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30879&action=edit
libgcc_config.log

Please check this and help with your inputs.