public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/54260] New: GCC 4.7.1 fails to build.
@ 2012-08-14 17:09 Fetrovsky at gmail dot com
  2012-08-14 17:14 ` [Bug bootstrap/54260] " pinskia at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Fetrovsky at gmail dot com @ 2012-08-14 17:09 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 54260
           Summary: GCC 4.7.1 fails to build.
    Classification: Unclassified
           Product: gcc
           Version: 4.7.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: Fetrovsky@gmail.com


I don't know where to report this problem --- apologies if this is the wrong
place.  GCC 4.7.1 is not building for me.  I ran configure without any
arguments and this is what I get when I do make:

mkdir -p -- x86_64-unknown-linux-gnu/libgcc
Checking multilib configuration for libgcc...
Configuring stage 1 in x86_64-unknown-linux-gnu/libgcc
configure: creating cache ./config.cache
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for --enable-version-specific-runtime-libs... no
checking for a BSD-compatible install... /usr/bin/install -c
checking for gawk... gawk
checking for x86_64-unknown-linux-gnu-ar... ar
checking for x86_64-unknown-linux-gnu-lipo... lipo
checking for x86_64-unknown-linux-gnu-nm...
/home/Feto/sw/gcc/host-x86_64-unknown-linux-gnu/gcc/nm
checking for x86_64-unknown-linux-gnu-ranlib... ranlib
checking for x86_64-unknown-linux-gnu-strip... strip
checking whether ln -s works... yes
checking for x86_64-unknown-linux-gnu-gcc...
/home/Feto/sw/gcc/host-x86_64-unknown-linux-gnu/gcc/xgcc
-B/home/Feto/sw/gcc/host-x86_64-unknown-linux-gnu/gcc/
-B/usr/local/x86_64-unknown-linux-gnu/bin/
-B/usr/local/x86_64-unknown-linux-gnu/lib/ -isystem
/usr/local/x86_64-unknown-linux-gnu/include -isystem
/usr/local/x86_64-unknown-linux-gnu/sys-include
checking for suffix of object files... configure: error: in
`/home/Feto/sw/gcc/x86_64-unknown-linux-gnu/libgcc':
configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
make[2]: *** [configure-stage1-target-libgcc] Error 1
make[2]: Leaving directory `/home/Feto/sw/gcc'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/home/Feto/sw/gcc'
make: *** [all] Error 2
[Feto@fet gcc]$


Thank you!


- Daniel


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

* [Bug bootstrap/54260] GCC 4.7.1 fails to build.
  2012-08-14 17:09 [Bug bootstrap/54260] New: GCC 4.7.1 fails to build Fetrovsky at gmail dot com
@ 2012-08-14 17:14 ` pinskia at gcc dot gnu.org
  2012-08-14 17:17 ` redi at gcc dot gnu.org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu.org @ 2012-08-14 17:14 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-08-14 17:14:09 UTC ---
Can you attach x86_64-unknown-linux-gnu/libgcc/config.log ?


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

* [Bug bootstrap/54260] GCC 4.7.1 fails to build.
  2012-08-14 17:09 [Bug bootstrap/54260] New: GCC 4.7.1 fails to build Fetrovsky at gmail dot com
  2012-08-14 17:14 ` [Bug bootstrap/54260] " pinskia at gcc dot gnu.org
@ 2012-08-14 17:17 ` redi at gcc dot gnu.org
  2012-08-15 23:48 ` Fetrovsky at gmail dot com
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: redi at gcc dot gnu.org @ 2012-08-14 17:17 UTC (permalink / raw)
  To: gcc-bugs

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

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2012-08-14
     Ever Confirmed|0                           |1

--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-08-14 17:16:58 UTC ---
Did you read http://gcc.gnu.org/wiki/FAQ#configure_suffix ?

http://gcc.gnu.org/wiki/InstallingGCC explains how to avoid that issue


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

* [Bug bootstrap/54260] GCC 4.7.1 fails to build.
  2012-08-14 17:09 [Bug bootstrap/54260] New: GCC 4.7.1 fails to build Fetrovsky at gmail dot com
  2012-08-14 17:14 ` [Bug bootstrap/54260] " pinskia at gcc dot gnu.org
  2012-08-14 17:17 ` redi at gcc dot gnu.org
@ 2012-08-15 23:48 ` Fetrovsky at gmail dot com
  2012-08-16  7:25 ` mikpe at it dot uu.se
  2012-08-16  7:44 ` redi at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: Fetrovsky at gmail dot com @ 2012-08-15 23:48 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Feto <Fetrovsky at gmail dot com> 2012-08-15 23:48:07 UTC ---
Hi,

Thanks for the response.  I've looked at the corresponding config.log, and
looked into the problems there, but I can't seem to make sense of what's going
on.  I get:

 98 configure:3373: /home/Feto/sw/gcc/build/./gcc/xgcc
-B/home/Feto/sw/gcc/build/./gcc/ -B/usr/local/x86_64-unknown-linux-gnu/bin/
-B/usr/local/x86_64-unknown-linux-gnu/lib/ -isystem
/usr/local/x86_64-unknown-linux-gnu/include -isystem
/usr/local/x86_64-unknown-linux-gnu/sys-include    -o conftest -g -O2  
conftest.c  >&5
 99 /home/Feto/sw/gcc/build/./gcc/cc1: error while loading shared libraries:
libmpc.so.2: cannot open shared object
    file: No such file or directory
100 configure:3376: $? = 1
101 configure:3564: checking for suffix of object files
102 configure:3586: /home/Feto/sw/gcc/build/./gcc/xgcc
-B/home/Feto/sw/gcc/build/./gcc/ -B/usr/local/x86_64-unknown-
    linux-gnu/bin/ -B/usr/local/x86_64-unknown-linux-gnu/lib/ -isystem
/usr/local/x86_64-unknown-linux-gnu/include -
    isystem /usr/local/x86_64-unknown-linux-gnu/sys-include    -c -g -O2 
conftest.c >&5
103 /home/Feto/sw/gcc/build/./gcc/cc1: error while loading shared libraries:
libmpc.so.2: cannot open shared object
    file: No such file or directory
104 configure:3590: $? = 1
105 configure: failed program was:
106 | /* confdefs.h */
107 | #define PACKAGE_NAME "GNU C Runtime Library"
108 | #define PACKAGE_TARNAME "libgcc"
109 | #define PACKAGE_VERSION "1.0"
110 | #define PACKAGE_STRING "GNU C Runtime Library 1.0"
111 | #define PACKAGE_BUGREPORT ""
112 | #define PACKAGE_URL "http://www.gnu.org/software/libgcc/"
113 | /* end confdefs.h.  */
114 |
115 | int
116 | main ()
117 | {
118 |
119 |   ;
120 |   return 0;
121 | }
122 configure:3604: error: in
`/home/Feto/sw/gcc/build/x86_64-unknown-linux-gnu/libgcc':
123 configure:3607: error: cannot compute suffix of object files: cannot
compile
124 See `config.log' for more details.


So I tried compiling the test file (conftest.c) like so:

/home/Feto/sw/gcc/build/./gcc/xgcc -B/home/Feto/sw/gcc/build/./gcc/
-B/usr/local/x86_64-unknown-linux-gnu/bin/
-B/usr/local/x86_64-unknown-linux-gnu/lib/ -isystem
/usr/local/x86_64-unknown-linux-gnu/include -isystem
/usr/local/x86_64-unknown-linux-gnu/sys-include    -o conftest -g -O2  
conftest.c

I made sure libmpc is properly installed, the proper location is passed to
configure, and so on.  I'm not sure what else to try.

[Feto@fet libgcc]$ ll /usr/local/lib/libmpc*
-rw-r--r-- 1 root root 211870 Aug 14 15:27 /usr/local/lib/libmpc.a
-rwxr-xr-x 1 root root    946 Aug 14 15:27 /usr/local/lib/libmpc.la
lrwxrwxrwx 1 root root     15 Aug 14 15:27 /usr/local/lib/libmpc.so ->
libmpc.so.2.0.0
lrwxrwxrwx 1 root root     15 Aug 14 15:27 /usr/local/lib/libmpc.so.2 ->
libmpc.so.2.0.0
-rwxr-xr-x 1 root root  98008 Aug 14 15:27 /usr/local/lib/libmpc.so.2.0.0
[Feto@fet libgcc]$ ld -lmpc
ld: warning: cannot find entry symbol _start; not setting start address
[Feto@fet libgcc]$


Thank you,


- Daniel


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

* [Bug bootstrap/54260] GCC 4.7.1 fails to build.
  2012-08-14 17:09 [Bug bootstrap/54260] New: GCC 4.7.1 fails to build Fetrovsky at gmail dot com
                   ` (2 preceding siblings ...)
  2012-08-15 23:48 ` Fetrovsky at gmail dot com
@ 2012-08-16  7:25 ` mikpe at it dot uu.se
  2012-08-16  7:44 ` redi at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: mikpe at it dot uu.se @ 2012-08-16  7:25 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from Mikael Pettersson <mikpe at it dot uu.se> 2012-08-16 07:24:56 UTC ---
(In reply to comment #3)
>  99 /home/Feto/sw/gcc/build/./gcc/cc1: error while loading shared libraries:
> libmpc.so.2: cannot open shared object
>     file: No such file or directory

You failed to inform the dynamic linker where to find libmpc.so.  Set
LD_LIBRARY_PATH to something like "/usr/local/lib:".


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

* [Bug bootstrap/54260] GCC 4.7.1 fails to build.
  2012-08-14 17:09 [Bug bootstrap/54260] New: GCC 4.7.1 fails to build Fetrovsky at gmail dot com
                   ` (3 preceding siblings ...)
  2012-08-16  7:25 ` mikpe at it dot uu.se
@ 2012-08-16  7:44 ` redi at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: redi at gcc dot gnu.org @ 2012-08-16  7:44 UTC (permalink / raw)
  To: gcc-bugs

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

Jonathan Wakely <redi at gcc dot gnu.org> changed:

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

--- Comment #5 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-08-16 07:44:32 UTC ---
These links explain that the support libraries must be in the dynamic linker's
search path:

(In reply to comment #2)
> Did you read http://gcc.gnu.org/wiki/FAQ#configure_suffix ?
> 
> http://gcc.gnu.org/wiki/InstallingGCC explains how to avoid that issue

If you follow those instructions it will work. That's why I provided the links.


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

end of thread, other threads:[~2012-08-16  7:44 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-08-14 17:09 [Bug bootstrap/54260] New: GCC 4.7.1 fails to build Fetrovsky at gmail dot com
2012-08-14 17:14 ` [Bug bootstrap/54260] " pinskia at gcc dot gnu.org
2012-08-14 17:17 ` redi at gcc dot gnu.org
2012-08-15 23:48 ` Fetrovsky at gmail dot com
2012-08-16  7:25 ` mikpe at it dot uu.se
2012-08-16  7:44 ` redi at gcc dot gnu.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).