public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/54834] New: bootstrap fails when building libbacktrace
@ 2012-10-06 10:16 tobi at gcc dot gnu.org
  2012-10-08 16:18 ` [Bug bootstrap/54834] " ian at airs dot com
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: tobi at gcc dot gnu.org @ 2012-10-06 10:16 UTC (permalink / raw)
  To: gcc-bugs


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

             Bug #: 54834
           Summary: bootstrap fails when building libbacktrace
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: tobi@gcc.gnu.org
            Target: x86_64-apple-darwin11.4.0


Created attachment 28371
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=28371
configure log

The failure mode is copied below.  I attach my libbacktrace/config.log.

make  all-am
/bin/sh ./libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.
-I../../libbacktrace  -I ../../libbacktrace/../include -I
../../libbacktrace/../libgcc -I ../libgcc -I ../gcc/include -I
../../gcc/include  -funwind-tables -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute
-Wcast-qual -Werror  -g -c -o backtrace.lo ../../libbacktrace/backtrace.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../libbacktrace -I
../../libbacktrace/../include -I ../../libbacktrace/../libgcc -I ../libgcc -I
../gcc/include -I ../../gcc/include -funwind-tables -W -Wall -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition
-Wmissing-format-attribute -Wcast-qual -Werror -g -c
../../libbacktrace/backtrace.c -o backtrace.o
In file included from ../../libbacktrace/backtrace.c:35:
../gcc/include/unwind.h:48: error: unknown machine mode 'unwind_word'
../gcc/include/unwind.h:49: error: unknown machine mode 'unwind_word'
In file included from ../../libbacktrace/backtrace.c:35:
../gcc/include/unwind.h:252:4: error: #error "__SIZEOF_LONG__ macro not
defined"
../gcc/include/unwind.h:256:4: error: #error "__SIZEOF_POINTER__ macro not
defined"
make[4]: *** [backtrace.lo] Error 1
make[3]: *** [all] Error 2
make[2]: *** [all-stage1-libbacktrace] Error 2
make[1]: *** [stage1-bubble] Error 2
make: *** [all] Error 2


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

* [Bug bootstrap/54834] bootstrap fails when building libbacktrace
  2012-10-06 10:16 [Bug bootstrap/54834] New: bootstrap fails when building libbacktrace tobi at gcc dot gnu.org
@ 2012-10-08 16:18 ` ian at airs dot com
  2012-10-08 16:19 ` ian at airs dot com
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: ian at airs dot com @ 2012-10-08 16:18 UTC (permalink / raw)
  To: gcc-bugs


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

Ian Lance Taylor <ian at airs dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ian at airs dot com

--- Comment #1 from Ian Lance Taylor <ian at airs dot com> 2012-10-08 16:18:04 UTC ---
What compiler are you using to build the stage 1 compiler?

It looks like the problem is that libbacktrace is picking up the header files
from the GCC you are building, not the header files from the compiler that is
doing the build.


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

* [Bug bootstrap/54834] bootstrap fails when building libbacktrace
  2012-10-06 10:16 [Bug bootstrap/54834] New: bootstrap fails when building libbacktrace tobi at gcc dot gnu.org
  2012-10-08 16:18 ` [Bug bootstrap/54834] " ian at airs dot com
@ 2012-10-08 16:19 ` ian at airs dot com
  2012-10-09 14:01 ` tobi at gcc dot gnu.org
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: ian at airs dot com @ 2012-10-08 16:19 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #2 from Ian Lance Taylor <ian at airs dot com> 2012-10-08 16:19:25 UTC ---
The error shows that libbacktrace is including ../gcc/include/unwind.h, but
that file should not exist at the time that libbacktrace is built.  I assume
that it does exist, but why?

Precisely how did you run configure?


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

* [Bug bootstrap/54834] bootstrap fails when building libbacktrace
  2012-10-06 10:16 [Bug bootstrap/54834] New: bootstrap fails when building libbacktrace tobi at gcc dot gnu.org
  2012-10-08 16:18 ` [Bug bootstrap/54834] " ian at airs dot com
  2012-10-08 16:19 ` ian at airs dot com
@ 2012-10-09 14:01 ` tobi at gcc dot gnu.org
  2012-10-09 14:06 ` tobi at gcc dot gnu.org
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: tobi at gcc dot gnu.org @ 2012-10-09 14:01 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #3 from Tobias Schlüter <tobi at gcc dot gnu.org> 2012-10-09 14:00:43 UTC ---
Created attachment 28399
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=28399
toplevel config.log

I'm attaching the toplevel config.log.  From it I read that the compiler is
configure:4103: gcc --version >&5
i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658)
(LLVM build 2336.1.00)
Copyright (C) 2007 Free Software Foundation, Inc.

The configure command was
  ../configure --enable-languages=c,c++,fortran
(my build directory is a subdirectory of the gcc directory)


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

* [Bug bootstrap/54834] bootstrap fails when building libbacktrace
  2012-10-06 10:16 [Bug bootstrap/54834] New: bootstrap fails when building libbacktrace tobi at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2012-10-09 14:01 ` tobi at gcc dot gnu.org
@ 2012-10-09 14:06 ` tobi at gcc dot gnu.org
  2012-10-10  7:45 ` tobi at gcc dot gnu.org
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: tobi at gcc dot gnu.org @ 2012-10-09 14:06 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #4 from Tobias Schlüter <tobi at gcc dot gnu.org> 2012-10-09 14:06:19 UTC ---
I ran make in a directory with a pre-existing build, ao maybe that include file
was an old leftover.  Please don't invest any further time in this now, I'll
try a clean build first.


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

* [Bug bootstrap/54834] bootstrap fails when building libbacktrace
  2012-10-06 10:16 [Bug bootstrap/54834] New: bootstrap fails when building libbacktrace tobi at gcc dot gnu.org
                   ` (3 preceding siblings ...)
  2012-10-09 14:06 ` tobi at gcc dot gnu.org
@ 2012-10-10  7:45 ` tobi at gcc dot gnu.org
  2012-10-13 10:42 ` tobi at gcc dot gnu.org
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: tobi at gcc dot gnu.org @ 2012-10-10  7:45 UTC (permalink / raw)
  To: gcc-bugs


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

Tobias Schlüter <tobi at gcc dot gnu.org> changed:

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

--- Comment #5 from Tobias Schlüter <tobi at gcc dot gnu.org> 2012-10-10 07:45:29 UTC ---
Ok, a clean build works.  Sorry for the noise, looks like unwind.h was a
leftover from some previous revision.


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

* [Bug bootstrap/54834] bootstrap fails when building libbacktrace
  2012-10-06 10:16 [Bug bootstrap/54834] New: bootstrap fails when building libbacktrace tobi at gcc dot gnu.org
                   ` (4 preceding siblings ...)
  2012-10-10  7:45 ` tobi at gcc dot gnu.org
@ 2012-10-13 10:42 ` tobi at gcc dot gnu.org
  2012-11-01 10:14 ` nico at josuttis dot de
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: tobi at gcc dot gnu.org @ 2012-10-13 10:42 UTC (permalink / raw)
  To: gcc-bugs


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

Tobias Schlüter <tobi at gcc dot gnu.org> changed:

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

--- Comment #6 from Tobias Schlüter <tobi at gcc dot gnu.org> 2012-10-13 10:41:44 UTC ---
I'm opening this again, as I find the same problem again after updating my git
tree, so it's not due to some changed dependencies in the libbacktrace merge:

libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../libbacktrace -I
../../libbacktrace/../include -I ../../libbacktrace/../libgcc -I ../libgcc -I
../gcc/include -I ../../gcc/include -funwind-tables -W -Wall -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition
-Wmissing-format-attribute -Wcast-qual -Werror -g -c ../../libbacktrace/state.c
-o state.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../libbacktrace -I
../../libbacktrace/../include -I ../../libbacktrace/../libgcc -I ../libgcc -I
../gcc/include -I ../../gcc/include -funwind-tables -W -Wall -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition
-Wmissing-format-attribute -Wcast-qual -Werror -g -c
../../libbacktrace/simple.c -o simple.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../libbacktrace -I
../../libbacktrace/../include -I ../../libbacktrace/../libgcc -I ../libgcc -I
../gcc/include -I ../../gcc/include -funwind-tables -W -Wall -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition
-Wmissing-format-attribute -Wcast-qual -Werror -g -c
../../libbacktrace/backtrace.c -o backtrace.o
In file included from ../../libbacktrace/backtrace.c:35:
../gcc/include/unwind.h:48: error: unknown machine mode 'unwind_word'
In file included from ../../libbacktrace/simple.c:35:
../gcc/include/unwind.h:48: error: unknown machine mode 'unwind_word'
../gcc/include/unwind.h:49: error: unknown machine mode 'unwind_word'
../gcc/include/unwind.h:49: error: unknown machine mode 'unwind_word'
In file included from ../../libbacktrace/simple.c:35:
../gcc/include/unwind.h:252:4: error: #error "__SIZEOF_LONG__ macro not
defined"
../gcc/include/unwind.h:256:4: error: #error "__SIZEOF_POINTER__ macro not
defined"
In file included from ../../libbacktrace/backtrace.c:35:
../gcc/include/unwind.h:252:4: error: #error "__SIZEOF_LONG__ macro not
defined"
../gcc/include/unwind.h:256:4: error: #error "__SIZEOF_POINTER__ macro not
defined"
make[4]: *** [simple.lo] Error 1
make[4]: *** Waiting for unfinished jobs....
make[4]: *** [backtrace.lo] Error 1
make[3]: *** [all] Error 2
make[2]: *** [all-stage1-libbacktrace] Error 2
make[1]: *** [stage1-bubble] Error 2
make: *** [all] Error 2

I could fix this by deleting all occurences of unwind.h in the build tree.  I
therefore assume that some dependencies are broken.


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

* [Bug bootstrap/54834] bootstrap fails when building libbacktrace
  2012-10-06 10:16 [Bug bootstrap/54834] New: bootstrap fails when building libbacktrace tobi at gcc dot gnu.org
                   ` (5 preceding siblings ...)
  2012-10-13 10:42 ` tobi at gcc dot gnu.org
@ 2012-11-01 10:14 ` nico at josuttis dot de
  2013-01-01 16:23 ` ian at gcc dot gnu.org
  2013-01-01 16:24 ` ian at airs dot com
  8 siblings, 0 replies; 10+ messages in thread
From: nico at josuttis dot de @ 2012-11-01 10:14 UTC (permalink / raw)
  To: gcc-bugs


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

Nicolai Josuttis <nico at josuttis dot de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |nico at josuttis dot de

--- Comment #7 from Nicolai Josuttis <nico at josuttis dot de> 2012-11-01 10:14:30 UTC ---
I got the same problem when switching from revision 1191942 (Oct 1st, 2012) to
revision 193061 (Nov 1st, 2012).
The effect was that the following files existed in the build tree:
 -rw-r--r-- 1 nico None 10659 Sep 21 10:16 gcc/include/unwind.h
 lrwxrwxrwx 1 nico None    36 Oct  2 00:04 i686-pc-cygwin/libgcc/unwind.h ->
../../../src/libgcc/unwind-generic.h

After removing 
 gcc/include/unwind.h
the problem disappeared.

As you can see, my environment was:
 CygWin under Windows 7 x64
 (i686-pc-cygwin)

Config settings were:
../src/configure \
 --enable-languages=c++ \
 --disable-bootstrap \
 --prefix=/cygdrive/p/gcc/gcc$VERSION \
 --program-suffix=$VERSION \
 --with-gxx-include-dir=/cygdrive/p/gcc/gcc$VERSION-include \
 --disable-lto \
 --disable-sjlj-exceptions \
  2>&1 | tee -a ../make.log


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

* [Bug bootstrap/54834] bootstrap fails when building libbacktrace
  2012-10-06 10:16 [Bug bootstrap/54834] New: bootstrap fails when building libbacktrace tobi at gcc dot gnu.org
                   ` (6 preceding siblings ...)
  2012-11-01 10:14 ` nico at josuttis dot de
@ 2013-01-01 16:23 ` ian at gcc dot gnu.org
  2013-01-01 16:24 ` ian at airs dot com
  8 siblings, 0 replies; 10+ messages in thread
From: ian at gcc dot gnu.org @ 2013-01-01 16:23 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #8 from ian at gcc dot gnu.org <ian at gcc dot gnu.org> 2013-01-01 16:23:11 UTC ---
Author: ian
Date: Tue Jan  1 16:23:03 2013
New Revision: 194770

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=194770
Log:
    PR bootstrap/54834
    * Makefile.am (AM_CPPFLAGS): Remove -I ../gcc/include and -I
    $(MULTIBUILDTOP)/../../gcc/include.
    * Makefile.in: Rebuild.

Modified:
    trunk/libbacktrace/ChangeLog
    trunk/libbacktrace/Makefile.am
    trunk/libbacktrace/Makefile.in


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

* [Bug bootstrap/54834] bootstrap fails when building libbacktrace
  2012-10-06 10:16 [Bug bootstrap/54834] New: bootstrap fails when building libbacktrace tobi at gcc dot gnu.org
                   ` (7 preceding siblings ...)
  2013-01-01 16:23 ` ian at gcc dot gnu.org
@ 2013-01-01 16:24 ` ian at airs dot com
  8 siblings, 0 replies; 10+ messages in thread
From: ian at airs dot com @ 2013-01-01 16:24 UTC (permalink / raw)
  To: gcc-bugs


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

Ian Lance Taylor <ian at airs dot com> changed:

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

--- Comment #9 from Ian Lance Taylor <ian at airs dot com> 2013-01-01 16:23:54 UTC ---
Should be fixed.


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

end of thread, other threads:[~2013-01-01 16:24 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-10-06 10:16 [Bug bootstrap/54834] New: bootstrap fails when building libbacktrace tobi at gcc dot gnu.org
2012-10-08 16:18 ` [Bug bootstrap/54834] " ian at airs dot com
2012-10-08 16:19 ` ian at airs dot com
2012-10-09 14:01 ` tobi at gcc dot gnu.org
2012-10-09 14:06 ` tobi at gcc dot gnu.org
2012-10-10  7:45 ` tobi at gcc dot gnu.org
2012-10-13 10:42 ` tobi at gcc dot gnu.org
2012-11-01 10:14 ` nico at josuttis dot de
2013-01-01 16:23 ` ian at gcc dot gnu.org
2013-01-01 16:24 ` ian at airs dot com

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