public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/39618]  New: trunk revision 145459 - The configure of libstdc++-v3 hangs while checking for PCH support
@ 2009-04-03  2:18 rob1weld at aol dot com
  2009-04-16 21:07 ` [Bug bootstrap/39618] " pinskia at gcc dot gnu dot org
  2009-04-16 21:07 ` pinskia at gcc dot gnu dot org
  0 siblings, 2 replies; 5+ messages in thread
From: rob1weld at aol dot com @ 2009-04-03  2:18 UTC (permalink / raw)
  To: gcc-bugs

The build is stuck in the Third Stage of configuring 'libstdc++-v3'.

I hope I selected the correct "Component", it is either 'bootstrap',
'pch' or 'c++' (still investigating). I had no such problem with the
previous stages and can build gcc 4.2.0 on this Platform using the
same ./configure options. I have an unsatisfactory workaround below.


# uname -a
OpenBSD openbsd.localdomain 4.5 GENERIC#19 i386


# gcc/xgcc -v
Using built-in specs.
Target: i386-unknown-openbsd4.5
Configured with: /home/user/gcc_trunk/configure --prefix=/usr/obj/gcc_installed
--enable-languages=c,c++,fortran,java,objc,obj-c++ --with-as=/usr/bin/as
--with-ld=/usr/bin/ld --with-gnu-as --with-gnu-ld --enable-sjlj-exceptions
--enable-shared --sysconfdir=/etc --mandir=/usr/local/man
--infodir=/usr/local/man --enable-multilib --disable-stage1-checking
--enable-checking=release --with-system-zlib --with-gmp=/usr/local
--with-mpfr=/usr/local
Thread model: single
gcc version 4.5.0 20090402 (experimental) [trunk revision 145459] (GCC)


The KDE Process Monitor says that the hung Process is gcc/cc1plus .
I have over 900MB free and am not using any swap.

Here is where it hangs, it has been stuck here for over half an hour:

Checking multilib configuration for libstdc++-v3...
mkdir i386-unknown-openbsd4.5/libstdc++-v3
Configuring in i386-unknown-openbsd4.5/libstdc++-v3
configure: creating cache ./config.cache
checking build system type... i386-unknown-openbsd4.5
...
checking whether the  /usr/gcc_build/./gcc/xgcc -shared-libgcc
-B/usr/gcc_build/./gcc -nostdinc++
-L/usr/gcc_build/i386-unknown-openbsd4.5/libstdc++-v3/src
-L/usr/gcc_build/i386-unknown-openbsd4.5/libstdc++-v3/src/.libs
-B/usr/obj/gcc_installed/i386-unknown-openbsd4.5/bin/
-B/usr/obj/gcc_installed/i386-unknown-openbsd4.5/lib/ -isystem
/usr/obj/gcc_installed/i386-unknown-openbsd4.5/include -isystem
/usr/obj/gcc_installed/i386-unknown-openbsd4.5/sys-include linker
(/usr/gcc_build/./gcc/collect-ld) supports shared libraries... yes
checking dynamic linker characteristics... cc1: warning: command line option
"-nostdinc++" is valid for C++/ObjC++ but not for C
openbsd4.5 ld.so
checking how to hardcode library paths into programs... immediate
checking for exception model to use... sjlj
checking for compiler with PCH support...        
[HUNG]


I killed the process and this is the result:

checking for compiler with PCH support... no
checking for enabled PCH... no
checking for thread model used by GCC... single
checking for atomic builtins for bool... no
...


I loose PCH support but the build and configury can now continue.
I'll see if I can go back and determine why this occurs once the
build is completed and "make -i check" is running.

Thanks,
Rob


-- 
           Summary: trunk revision 145459 - The configure of libstdc++-v3
                    hangs while checking for PCH support
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: blocker
          Priority: P3
         Component: bootstrap
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: rob1weld at aol dot com
 GCC build triplet: i386-unknown-openbsd4.5
  GCC host triplet: i386-unknown-openbsd4.5
GCC target triplet: i386-unknown-openbsd4.5


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


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

* [Bug bootstrap/39618] trunk revision 145459 - The configure of libstdc++-v3 hangs while checking for PCH support
  2009-04-03  2:18 [Bug bootstrap/39618] New: trunk revision 145459 - The configure of libstdc++-v3 hangs while checking for PCH support rob1weld at aol dot com
@ 2009-04-16 21:07 ` pinskia at gcc dot gnu dot org
  2009-04-16 21:07 ` pinskia at gcc dot gnu dot org
  1 sibling, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2009-04-16 21:07 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pinskia at gcc dot gnu dot org  2009-04-16 21:07 -------
Sounds like mmap is not working.


-- 


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


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

* [Bug bootstrap/39618] trunk revision 145459 - The configure of libstdc++-v3 hangs while checking for PCH support
  2009-04-03  2:18 [Bug bootstrap/39618] New: trunk revision 145459 - The configure of libstdc++-v3 hangs while checking for PCH support rob1weld at aol dot com
  2009-04-16 21:07 ` [Bug bootstrap/39618] " pinskia at gcc dot gnu dot org
@ 2009-04-16 21:07 ` pinskia at gcc dot gnu dot org
  1 sibling, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2009-04-16 21:07 UTC (permalink / raw)
  To: gcc-bugs



-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|blocker                     |normal


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


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

* [Bug bootstrap/39618] trunk revision 145459 - The configure of libstdc++-v3 hangs while checking for PCH support
       [not found] <bug-39618-4@http.gcc.gnu.org/bugzilla/>
  2011-11-20  6:05 ` kurt at intricatesoftware dot com
@ 2011-11-20  7:11 ` kurt at intricatesoftware dot com
  1 sibling, 0 replies; 5+ messages in thread
From: kurt at intricatesoftware dot com @ 2011-11-20  7:11 UTC (permalink / raw)
  To: gcc-bugs

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

Kurt Miller <kurt at intricatesoftware dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kurt at intricatesoftware
                   |                            |dot com

--- Comment #3 from Kurt Miller <kurt at intricatesoftware dot com> 2011-11-20 03:31:22 UTC ---
... since then without issues.

OpenBSD uses random mmap() return addresses. malloc uses mmap and the runtime
linker randomizes shared library load addresses, thus using mmap as a fixed
address is rather difficult on OpenBSD.


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

* [Bug bootstrap/39618] trunk revision 145459 - The configure of libstdc++-v3 hangs while checking for PCH support
       [not found] <bug-39618-4@http.gcc.gnu.org/bugzilla/>
@ 2011-11-20  6:05 ` kurt at intricatesoftware dot com
  2011-11-20  7:11 ` kurt at intricatesoftware dot com
  1 sibling, 0 replies; 5+ messages in thread
From: kurt at intricatesoftware dot com @ 2011-11-20  6:05 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Kurt Miller <kurt at intricatesoftware dot com> 2011-11-20 03:29:51 UTC ---
Created attachment 25864
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=25864
PCH Supoort for OpenBSD

Attached is a patch against gcc-4.6.2 which uses brk/sbrk for PCH support.
Since malloc uses mmap the heap is unused and at a fixed address (so long as
PIE is not enabled on gcc). I originally wrote this in 2008 for 4.2 and has
been in use


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

end of thread, other threads:[~2011-11-20  3:31 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-04-03  2:18 [Bug bootstrap/39618] New: trunk revision 145459 - The configure of libstdc++-v3 hangs while checking for PCH support rob1weld at aol dot com
2009-04-16 21:07 ` [Bug bootstrap/39618] " pinskia at gcc dot gnu dot org
2009-04-16 21:07 ` pinskia at gcc dot gnu dot org
     [not found] <bug-39618-4@http.gcc.gnu.org/bugzilla/>
2011-11-20  6:05 ` kurt at intricatesoftware dot com
2011-11-20  7:11 ` kurt at intricatesoftware 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).