public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/51627] New: cannot compute suffix of object files mipsel
@ 2011-12-19 20:58 alexander at mezon dot ru
  2011-12-19 21:03 ` [Bug bootstrap/51627] " alexander at mezon dot ru
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: alexander at mezon dot ru @ 2011-12-19 20:58 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 51627
           Summary: cannot compute suffix of object files mipsel
    Classification: Unclassified
           Product: gcc
           Version: 4.6.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: alexander@mezon.ru


I'm trying to build cross-mipsel-gcc but it always fails at:

checking build system type... i686-pc-linux-gnu
checking host system type... mipsel-unknown-elf
checking for mipsel-ar... mipsel-ar
checking for mipsel-lipo... mipsel-lipo
checking for mipsel-nm...
/home/user/cross-avr-gcc/BUILD/cross-mipsel-gcc-4.6.2/gcc-mipsel/./gcc/nm
checking for mipsel-ranlib... mipsel-ranlib
checking for mipsel-strip... mipsel-strip
checking whether ln -s works... yes
checking for mipsel-gcc...
/home/user/cross-avr-gcc/BUILD/cross-mipsel-gcc-4.6.2/gcc-mipsel/./gcc/xgcc
-B/home/user/cross-avr-gcc/BUILD/cross-mipsel-gcc-4.6.2/gcc-mipsel/./gcc/
-B/usr/mipsel/bin/ -B/usr/mipsel/lib/ -isystem /usr/mipsel/include -isystem
/usr/mipsel/sys-include   
checking for suffix of object files... configure: error: in
`/home/user/cross-avr-gcc/BUILD/cross-mipsel-gcc-4.6.2/gcc-mipsel/mipsel/libgcc':
configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.


/home/user/cross-avr-gcc/BUILD/cross-mipsel-gcc-4.6.2/gcc-mipsel/mipsel/libgcc/config.log
 available here: http://pastebin.com/tmccuY7U


I looked at similar bugs and use advice with export
LD_LIBRARY_PATH="/mpfr/lib/:$LD_LIBRARY_PATH"



../gcc-%{version}/configure --prefix=%{_prefix} --mandir=%{_mandir} \
  --infodir=%{_infodir} --target=%{target} --enable-languages=c,c++ \
  --disable-nls --disable-libssp --with-system-zlib --disable-libgomp \
  --enable-version-specific-runtime-libs \
  --with-pkgversion="Mandriva %{version}-%{release}" \
  --with-bugurl="https://qa.mandriva.com/" \
  --libexecdir=%{_libexecdir}
# In general, building GCC is not smp-safe
export LD_LIBRARY_PATH="/usr/lib/:$LD_LIBRARY_PATH"
make
popd



libmpfr-devel installed

rpm -ql libmpfr-devel

/usr/include/mpf2mpfr.h
/usr/include/mpfr.h
/usr/lib/libmpfr.so
/usr/share/doc/libmpfr-devel
/usr/share/doc/libmpfr-devel/AUTHORS
/usr/share/doc/libmpfr-devel/BUGS
/usr/share/doc/libmpfr-devel/COPYING
/usr/share/doc/libmpfr-devel/COPYING.LESSER
/usr/share/doc/libmpfr-devel/FAQ.html
/usr/share/doc/libmpfr-devel/NEWS
/usr/share/doc/libmpfr-devel/TODO
/usr/share/doc/libmpfr-devel/examples
/usr/share/doc/libmpfr-devel/examples/ReadMe
/usr/share/doc/libmpfr-devel/examples/divworst.c
/usr/share/doc/libmpfr-devel/examples/rndo-add.c
/usr/share/doc/libmpfr-devel/examples/sample.c
/usr/share/doc/libmpfr-devel/examples/version.c
/usr/share/info/mpfr.info.xz



rpm -ql libgmp-devel

/usr/include/gmp.h
/usr/lib/libgmp.a
/usr/lib/libgmp.la
/usr/lib/libgmp.so
.....overquoting....
.....removed........

rpm -ql libmpc-devel

/usr/include/mpc.h
/usr/lib/libmpc.la
/usr/lib/libmpc.so
/usr/share/info/mpc.info.xz



all needed libs is installed.


Might somebody can help me?





BuildSystem: mandriva linux 2.6.39.4-4.2-desktop

GCC:
gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/i586-mandriva-linux-gnu/4.6.1/lto-wrapper
Target: i586-mandriva-linux-gnu
Configured with: ./configure --build=i586-mandriva-linux-gnu --prefix=/usr
--exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc
--datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib
--libexecdir=/usr/lib --localstatedir=/var --sharedstatedir=/usr/com
--mandir=/usr/share/man --infodir=/usr/share/info --x-includes=/usr/include
--x-libraries=/usr/lib --disable-libjava-multilib
--with-java-home=/usr/lib/jvm/java-rpmbuild
--with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-java-awt=qt,gtk
--enable-gtk-cairo --with-cloog --with-ppl --enable-cloog-backend=ppl
--disable-libssp --disable-libunwind-exceptions --disable-werror
--enable-__cxa_atexit --enable-bootstrap --enable-checking=release
--enable-gnu-unique-object
--enable-languages=c,ada,c++,fortran,go,java,lto,objc,obj-c++
--enable-linker-build-id --enable-plugin --enable-shared --enable-threads=posix
--with-system-zlib --with-bugurl=https://qa.mandriva.com/ --with-tune=generic
--with-arch=i686 --host=i586-mandriva-linux-gnu
--target=i586-mandriva-linux-gnu
Thread model: posix
gcc version 4.6.1 20110627 (Mandriva) (GCC)


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

* [Bug bootstrap/51627] cannot compute suffix of object files mipsel
  2011-12-19 20:58 [Bug bootstrap/51627] New: cannot compute suffix of object files mipsel alexander at mezon dot ru
@ 2011-12-19 21:03 ` alexander at mezon dot ru
  2011-12-19 21:07 ` redi at gcc dot gnu.org
                   ` (9 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: alexander at mezon dot ru @ 2011-12-19 21:03 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Alexander Khrukin <alexander at mezon dot ru> 2011-12-19 20:58:48 UTC ---
Build Options


mkdir -p gcc-mipsel
pushd gcc-mipsel
~/cross-avr-gcc/BUILD/cross-mipsel-gcc-4.6.2/gcc-mipsel
~/cross-avr-gcc/BUILD/cross-mipsel-gcc-4.6.2
CC='gcc -O2 -g -frecord-gcc-switches -Wstrict-aliasing=2 -pipe -Wformat
-Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4
-fomit-frame-pointer -mtune=generic -march=i586 -fasynchronous-unwind-tables'
../gcc-4.6.2/configure --prefix=/usr \
                         --mandir=/usr/share/man \ 
                         --infodir=/usr/share/info \
                         --target=mipsel  \
                         --enable-languages=c,c++ \ 
                         --disable-nls \ 
                         --disable-libssp \ 
                         --with-system-zlib \ 
                         --disable-libgomp \
                         --enable-version-specific-runtime-libs \ 
                         '--with-pkgversion=Mandriva 4.6.2-1' \
                         --with-bugurl=https://qa.mandriva.com/ \
                         --libexecdir=/usr/lib


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

* [Bug bootstrap/51627] cannot compute suffix of object files mipsel
  2011-12-19 20:58 [Bug bootstrap/51627] New: cannot compute suffix of object files mipsel alexander at mezon dot ru
  2011-12-19 21:03 ` [Bug bootstrap/51627] " alexander at mezon dot ru
@ 2011-12-19 21:07 ` redi at gcc dot gnu.org
  2011-12-19 21:19 ` alexander at mezon dot ru
                   ` (8 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: redi at gcc dot gnu.org @ 2011-12-19 21:07 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-12-19 21:03:02 UTC ---
(In reply to comment #0)
> checking for suffix of object files... configure: error: in
> `/home/user/cross-avr-gcc/BUILD/cross-mipsel-gcc-4.6.2/gcc-mipsel/mipsel/libgcc':
> configure: error: cannot compute suffix of object files: cannot compile
> See `config.log' for more details.

Have you done this?

Have you read http://gcc.gnu.org/wiki/FAQ#configure_suffix ?

Why not put the gmp, mpfr and mpc sources in the gcc source tree and let it
build them?


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

* [Bug bootstrap/51627] cannot compute suffix of object files mipsel
  2011-12-19 20:58 [Bug bootstrap/51627] New: cannot compute suffix of object files mipsel alexander at mezon dot ru
  2011-12-19 21:03 ` [Bug bootstrap/51627] " alexander at mezon dot ru
  2011-12-19 21:07 ` redi at gcc dot gnu.org
@ 2011-12-19 21:19 ` alexander at mezon dot ru
  2011-12-19 21:20 ` redi at gcc dot gnu.org
                   ` (7 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: alexander at mezon dot ru @ 2011-12-19 21:19 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Alexander Khrukin <alexander at mezon dot ru> 2011-12-19 21:15:06 UTC ---
(In reply to comment #2)
> (In reply to comment #0)
> > checking for suffix of object files... configure: error: in
> > `/home/user/cross-avr-gcc/BUILD/cross-mipsel-gcc-4.6.2/gcc-mipsel/mipsel/libgcc':
> > configure: error: cannot compute suffix of object files: cannot compile
> > See `config.log' for more details.
> 
> Have you done this?
> 
> Have you read http://gcc.gnu.org/wiki/FAQ#configure_suffix ?
> 
> Why not put the gmp, mpfr and mpc sources in the gcc source tree and let it
> build them?

Yeah, im read FAQ but i'm not understand that mpfr and other must be placed
into gcc build dir :3
Thanks for advice.


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

* [Bug bootstrap/51627] cannot compute suffix of object files mipsel
  2011-12-19 20:58 [Bug bootstrap/51627] New: cannot compute suffix of object files mipsel alexander at mezon dot ru
                   ` (2 preceding siblings ...)
  2011-12-19 21:19 ` alexander at mezon dot ru
@ 2011-12-19 21:20 ` redi at gcc dot gnu.org
  2011-12-19 22:29 ` alexander at mezon dot ru
                   ` (6 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: redi at gcc dot gnu.org @ 2011-12-19 21:20 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-12-19 21:18:51 UTC ---
http://www.advogato.org/person/redi/diary/253.html


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

* [Bug bootstrap/51627] cannot compute suffix of object files mipsel
  2011-12-19 20:58 [Bug bootstrap/51627] New: cannot compute suffix of object files mipsel alexander at mezon dot ru
                   ` (3 preceding siblings ...)
  2011-12-19 21:20 ` redi at gcc dot gnu.org
@ 2011-12-19 22:29 ` alexander at mezon dot ru
  2011-12-19 22:37 ` redi at gcc dot gnu.org
                   ` (5 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: alexander at mezon dot ru @ 2011-12-19 22:29 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #5 from Alexander Khrukin <alexander at mezon dot ru> 2011-12-19 22:16:43 UTC ---
Also i read http://gcc.gnu.org/install/configure.html

///
If you do not have GMP (the GNU Multiple Precision library), the MPFR library
and/or the MPC library installed in a standard location and you want to build
GCC, you can explicitly specify the directory where they are installed
(`--with-gmp=gmpinstalldir', `--with-mpfr=mpfrinstalldir',
`--with-mpc=mpcinstalldir'). The --with-gmp=gmpinstalldir option is shorthand
for --with-gmp-lib=gmpinstalldir/lib and
--with-gmp-include=gmpinstalldir/include. Likewise the
--with-mpfr=mpfrinstalldir option is shorthand for
--with-mpfr-lib=mpfrinstalldir/lib and
--with-mpfr-include=mpfrinstalldir/include, also the --with-mpc=mpcinstalldir
option is shorthand for --with-mpc-lib=mpcinstalldir/lib and
--with-mpc-include=mpcinstalldir/include. If these shorthand assumptions are
not correct, you can use the explicit include and lib options directly. You
might also need to ensure the shared libraries can be found by the dynamic 
////


But why it not working with system-wide mpc mpfr gmp?

Now i compiling gcc with mpfr-gmp-mpc placed in gcc tree but most prefered for
me is system installed libs.


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

* [Bug bootstrap/51627] cannot compute suffix of object files mipsel
  2011-12-19 20:58 [Bug bootstrap/51627] New: cannot compute suffix of object files mipsel alexander at mezon dot ru
                   ` (4 preceding siblings ...)
  2011-12-19 22:29 ` alexander at mezon dot ru
@ 2011-12-19 22:37 ` redi at gcc dot gnu.org
  2011-12-19 23:51 ` alexander at mezon dot ru
                   ` (4 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: redi at gcc dot gnu.org @ 2011-12-19 22:37 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #6 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-12-19 22:28:50 UTC ---
(In reply to comment #2)
> (In reply to comment #0)
> > checking for suffix of object files... configure: error: in
> > `/home/user/cross-avr-gcc/BUILD/cross-mipsel-gcc-4.6.2/gcc-mipsel/mipsel/libgcc':
> > configure: error: cannot compute suffix of object files: cannot compile
> > See `config.log' for more details.
> 
> Have you done this?

If you look in config.log you'll see this:

/home/builduser/cross-avr-gcc/BUILD/cross-mipsel-gcc-4.6.2/gcc-mipsel/./gcc/as:
line 87: exec: -E: invalid option

So the problem is nothing to do with the prerequisite libraries.


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

* [Bug bootstrap/51627] cannot compute suffix of object files mipsel
  2011-12-19 20:58 [Bug bootstrap/51627] New: cannot compute suffix of object files mipsel alexander at mezon dot ru
                   ` (5 preceding siblings ...)
  2011-12-19 22:37 ` redi at gcc dot gnu.org
@ 2011-12-19 23:51 ` alexander at mezon dot ru
  2011-12-20  0:07 ` pinskia at gcc dot gnu.org
                   ` (3 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: alexander at mezon dot ru @ 2011-12-19 23:51 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #7 from Alexander Khrukin <alexander at mezon dot ru> 2011-12-19 23:45:19 UTC ---
(In reply to comment #6)
> (In reply to comment #2)
> > (In reply to comment #0)
> > > checking for suffix of object files... configure: error: in
> > > `/home/user/cross-avr-gcc/BUILD/cross-mipsel-gcc-4.6.2/gcc-mipsel/mipsel/libgcc':
> > > configure: error: cannot compute suffix of object files: cannot compile
> > > See `config.log' for more details.
> > 
> > Have you done this?
> 
> If you look in config.log you'll see this:
> 
> /home/builduser/cross-avr-gcc/BUILD/cross-mipsel-gcc-4.6.2/gcc-mipsel/./gcc/as:
> line 87: exec: -E: invalid option
> 
> So the problem is nothing to do with the prerequisite libraries.



This mean that libs in gcc build tree not needed?


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

* [Bug bootstrap/51627] cannot compute suffix of object files mipsel
  2011-12-19 20:58 [Bug bootstrap/51627] New: cannot compute suffix of object files mipsel alexander at mezon dot ru
                   ` (6 preceding siblings ...)
  2011-12-19 23:51 ` alexander at mezon dot ru
@ 2011-12-20  0:07 ` pinskia at gcc dot gnu.org
  2011-12-20  0:23 ` alexander at mezon dot ru
                   ` (2 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu.org @ 2011-12-20  0:07 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #8 from Andrew Pinski <pinskia at gcc dot gnu.org> 2011-12-19 23:51:08 UTC ---
Did you build binutils already for mispel?


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

* [Bug bootstrap/51627] cannot compute suffix of object files mipsel
  2011-12-19 20:58 [Bug bootstrap/51627] New: cannot compute suffix of object files mipsel alexander at mezon dot ru
                   ` (7 preceding siblings ...)
  2011-12-20  0:07 ` pinskia at gcc dot gnu.org
@ 2011-12-20  0:23 ` alexander at mezon dot ru
  2011-12-30  6:21 ` pinskia at gcc dot gnu.org
  2011-12-30 10:46 ` alexander at mezon dot ru
  10 siblings, 0 replies; 12+ messages in thread
From: alexander at mezon dot ru @ 2011-12-20  0:23 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #9 from Alexander Khrukin <alexander at mezon dot ru> 2011-12-20 00:13:03 UTC ---
(In reply to comment #8)
> Did you build binutils already for mispel?


Yes i did.


cross-mipsel-binutils-2.22.51.0.1-1-mdv2011.0.i586.rpm


rpm -ql 

http://pastie.org/3043495


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

* [Bug bootstrap/51627] cannot compute suffix of object files mipsel
  2011-12-19 20:58 [Bug bootstrap/51627] New: cannot compute suffix of object files mipsel alexander at mezon dot ru
                   ` (8 preceding siblings ...)
  2011-12-20  0:23 ` alexander at mezon dot ru
@ 2011-12-30  6:21 ` pinskia at gcc dot gnu.org
  2011-12-30 10:46 ` alexander at mezon dot ru
  10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu.org @ 2011-12-30  6:21 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2011-12-30
     Ever Confirmed|0                           |1

--- Comment #10 from Andrew Pinski <pinskia at gcc dot gnu.org> 2011-12-30 06:18:59 UTC ---
Are they really installed as mipsel-as/mipsel-ld/mipsel-nm and are in the
current path ?


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

* [Bug bootstrap/51627] cannot compute suffix of object files mipsel
  2011-12-19 20:58 [Bug bootstrap/51627] New: cannot compute suffix of object files mipsel alexander at mezon dot ru
                   ` (9 preceding siblings ...)
  2011-12-30  6:21 ` pinskia at gcc dot gnu.org
@ 2011-12-30 10:46 ` alexander at mezon dot ru
  10 siblings, 0 replies; 12+ messages in thread
From: alexander at mezon dot ru @ 2011-12-30 10:46 UTC (permalink / raw)
  To: gcc-bugs

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

Alexander Khrukin <alexander at mezon dot ru> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
         Resolution|                            |FIXED

--- Comment #11 from Alexander Khrukin <alexander at mezon dot ru> 2011-12-30 09:19:00 UTC ---
(In reply to comment #10)
> Are they really installed as mipsel-as/mipsel-ld/mipsel-nm and are in the
> current path ?



Problem was in binutils.


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

end of thread, other threads:[~2011-12-30  9:19 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-12-19 20:58 [Bug bootstrap/51627] New: cannot compute suffix of object files mipsel alexander at mezon dot ru
2011-12-19 21:03 ` [Bug bootstrap/51627] " alexander at mezon dot ru
2011-12-19 21:07 ` redi at gcc dot gnu.org
2011-12-19 21:19 ` alexander at mezon dot ru
2011-12-19 21:20 ` redi at gcc dot gnu.org
2011-12-19 22:29 ` alexander at mezon dot ru
2011-12-19 22:37 ` redi at gcc dot gnu.org
2011-12-19 23:51 ` alexander at mezon dot ru
2011-12-20  0:07 ` pinskia at gcc dot gnu.org
2011-12-20  0:23 ` alexander at mezon dot ru
2011-12-30  6:21 ` pinskia at gcc dot gnu.org
2011-12-30 10:46 ` alexander at mezon dot ru

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).