From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11281 invoked by alias); 21 Jun 2014 01:59:41 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 10423 invoked by uid 48); 21 Jun 2014 01:58:07 -0000 From: "kumba at gentoo dot org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/61538] g++ compiled binary, linked to glibc libpthread, hangs on SGI MIPS R1x000 systems on Linux Date: Sat, 21 Jun 2014 01:59:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 4.9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: major X-Bugzilla-Who: kumba at gentoo dot org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-06/txt/msg01712.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D61538 --- Comment #11 from Joshua Kinard --- I also have another test case from glibc itself, where when compiling glibc-2.19 w/ gcc-4.8.x or greater, at the end, it creates a statically-lin= ked version of 'ln' as 'sln', and tries to run that. That binary also hangs, b= ut it hangs in glibc-specific code: nptl/sysdeps/unix/sysv/linux/lowlevellock.c: >=C2=A632 while (atomic_exchange_acq (futex, 2) !=3D 0) =C2=A633 lll_futex_wait (futex, 2, LLL_PRIVATE); =C2=A634 } Which looks like it's hanging in lll_futex_wait(). If I set a breakpoint on that address in the asm layout, I can see this: Breakpoint 1, 0x00423bf4 in __lll_lock_wait_private (futex=3D0x4a215c <_IO_stdfile_1_lock>) at ../nptl/sysdeps/unix/sysv/linux/lowlevellock.c:33 =C2=A60x423be0 <__lll_lock_wait_private+32> 0x7c03e83b =C2=A60x423be4 <__lll_lock_wait_private+36> li a2,2 =C2=A60x423be8 <__lll_lock_wait_private+40> lw a1,-29832(v1) =C2=A60x423bec <__lll_lock_wait_private+44> move a3,zero =C2=A60x423bf0 <__lll_lock_wait_private+48> li v0,4238 B+>=C2=A60x423bf4 <__lll_lock_wait_private+52> syscall (gdb) x/6i 0x4a215c 0x4a215c <_IO_stdfile_1_lock>: srl zero,zero,0x0 0x4a2160 <_IO_stdfile_1_lock+4>: nop 0x4a2164 <_IO_stdfile_1_lock+8>: nop 0x4a2168 <_IO_stdfile_0_lock>: nop 0x4a216c <_IO_stdfile_0_lock+4>: nop 0x4a2170 <_IO_stdfile_0_lock+8>: nop I did find two very recent patches on libc-alpha that deal specifically with lowlevellock.h, by replacing it (and all other arch-specific variants) with= a generic lowlevellock.h file: https://sourceware.org/ml/libc-alpha/2014-06/msg00174.html https://sourceware.org/ml/libc-alpha/2014-06/msg00419.html And this interesting comment: https://sourceware.org/ml/libc-alpha/2014-06/msg00184.html I am going to try rebuilding glibc with those and see if I am still getting hangs or not. >>From gcc-bugs-return-454631-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Jun 21 08:00:51 2014 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 23592 invoked by alias); 21 Jun 2014 08:00:50 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 23561 invoked by uid 48); 21 Jun 2014 08:00:43 -0000 From: "FBergemann at web dot de" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/61577] New: [4.9.0] can't compile on hp-ux v3 ia64 Date: Sat, 21 Jun 2014 08:00:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 4.9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: blocker X-Bugzilla-Who: FBergemann at web dot de X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cf_gcctarget Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-06/txt/msg01713.txt.bz2 Content-length: 11882 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61577 Bug ID: 61577 Summary: [4.9.0] can't compile on hp-ux v3 ia64 Product: gcc Version: 4.9.0 Status: UNCONFIRMED Severity: blocker Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: FBergemann at web dot de Target: HP-UX v3 ia64 I cannot compile gcc-4.9.0 on a hp-ux B.11.31 (v3) ia64 machine. I used following component: > ls -tlr total 40 drwxr-xr-x 18 frank os_int 8192 Jun 17 09:40 binutils-2.24 drwxr-xr-x 16 frank os_int 8192 Jun 17 15:31 gmp-6.0.0 drwxr-xr-x 10 frank os_int 8192 Jun 17 15:34 mpfr-3.1.2 drwxr-xr-x 7 frank os_int 8192 Jun 17 15:35 mpc-1.0.2 drwxr-xr-x 35 frank os_int 8192 Jun 21 09:31 gcc-4.9.0 +) binutis had been compiled separately first into a /gs/frank/hp-ux/gcc-4.9.0/ dir) +) gmp, mpfr and mpc source directories had been linked below gcc directory. +) $PATH had been set to select /usr/local/gcc-4.7.2 for compilation (compiler provided by HP) +) compilation is for 32bit +) ../configure --prefix=/gs/frank/hp-ux/gcc-4.9.0 --enable-languages=c,c++ --with-gnu-as --with-as=/gs/frank/hp-ux/gcc-4.9.0/bin/as --without-gnu-ld --disable-nls --disable-shared > cat configure.out.fbe checking build system type... ia64-hp-hpux11.31 checking host system type... ia64-hp-hpux11.31 checking target system type... ia64-hp-hpux11.31 checking for a BSD-compatible install... /usr/local/bin/install -c checking whether ln works... yes checking whether ln -s works... yes checking for a sed that does not truncate output... /usr/local/bin/sed checking for gawk... gawk checking for libatomic support... yes checking for libcilkrts support... no checking for libitm support... no checking for libsanitizer support... no checking for libvtv support... no checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking whether g++ accepts -static-libstdc++ -static-libgcc... yes checking for gnatbind... no checking for gnatmake... no checking whether compiler driver understands Ada... no checking how to compare bootstrapped objects... cmp --ignore-initial=16 $$f1 $$f2 checking for objdir... .libs checking for version 0.10 of ISL... no checking for version 0.11 of ISL... no checking for version 0.12 of ISL... no *** This configuration is not supported in the following subdirectories: target-libcilkrts target-libitm target-libsanitizer target-libvtv gnattools target-libada target-libgfortran target-libgo target-libffi target-libbacktrace target-zlib target-libjava target-libobjc target-boehm-gc (Any other directories should still work fine.) checking for default BUILD_CONFIG... bootstrap-debug checking for --enable-vtable-verify... no checking for bison... bison -y checking for bison... bison checking for gm4... no checking for gnum4... no checking for m4... m4 checking for flex... flex checking for flex... flex checking for makeinfo... makeinfo checking for expect... expect checking for runtest... no checking for ar... ar checking for as... as checking for dlltool... no checking for ld... (cached) /usr/ccs/bin/ld checking for lipo... no checking for nm... nm checking for ranlib... ranlib checking for strip... strip checking for windres... no checking for windmc... no checking for objcopy... objcopy checking for objdump... objdump checking for readelf... readelf checking for cc... cc checking for c++... c++ checking for gcc... gcc checking for gcj... no checking for gfortran... no checking for gccgo... no checking for ar... /gs/frank/hp-ux/gcc-4.9.0/ia64-hp-hpux11.31/bin/ar checking for as... /gs/frank/hp-ux/gcc-4.9.0/ia64-hp-hpux11.31/bin/as checking for dlltool... no checking for dlltool... no checking for ld... no checking for ld... ld checking for lipo... no checking for lipo... no checking for nm... /gs/frank/hp-ux/gcc-4.9.0/ia64-hp-hpux11.31/bin/nm checking for objdump... /gs/frank/hp-ux/gcc-4.9.0/ia64-hp-hpux11.31/bin/objdump checking for ranlib... /gs/frank/hp-ux/gcc-4.9.0/ia64-hp-hpux11.31/bin/ranlib checking for readelf... no checking for readelf... readelf checking for strip... /gs/frank/hp-ux/gcc-4.9.0/ia64-hp-hpux11.31/bin/strip checking for windres... no checking for windres... no checking for windmc... no checking for windmc... no checking where to find the target ar... pre-installed in /gs/frank/hp-ux/gcc-4.9.0/ia64-hp-hpux11.31/bin checking where to find the target as... pre-installed in /gs/frank/hp-ux/gcc-4.9.0/ia64-hp-hpux11.31/bin checking where to find the target cc... just compiled checking where to find the target c++... just compiled checking where to find the target c++ for libstdc++... just compiled checking where to find the target dlltool... host tool checking where to find the target gcc... just compiled checking where to find the target gcj... host tool checking where to find the target gfortran... host tool checking where to find the target gccgo... host tool checking where to find the target ld... host tool checking where to find the target lipo... host tool checking where to find the target nm... pre-installed in /gs/frank/hp-ux/gcc-4.9.0/ia64-hp-hpux11.31/bin checking where to find the target objdump... pre-installed in /gs/frank/hp-ux/gcc-4.9.0/ia64-hp-hpux11.31/bin checking where to find the target ranlib... pre-installed in /gs/frank/hp-ux/gcc-4.9.0/ia64-hp-hpux11.31/bin checking where to find the target readelf... host tool checking where to find the target strip... pre-installed in /gs/frank/hp-ux/gcc-4.9.0/ia64-hp-hpux11.31/bin checking where to find the target windres... host tool checking where to find the target windmc... host tool checking whether to enable maintainer-specific portions of Makefiles... no configure: creating ./config.status config.status: creating Makefile ERROR: make[3]: Entering directory `/tmp/FBE/gcc-4.9.0/obj/gcc' g++ -DUSE_LIBUNWIND_EXCEPTIONS -g -DIN_GCC -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-format -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -fno-common -DHAVE_CONFIG_H -static-libstdc++ -static-libgcc -lunwind -o cc1plus \ cp/cp-lang.o c-family/stub-objc.o cp/call.o cp/decl.o cp/expr.o cp/pt.o cp/typeck2.o cp/class.o cp/decl2.o cp/error.o cp/lex.o cp/parser.o cp/ptree.o cp/rtti.o cp/typeck.o cp/cvt.o cp/except.o cp/friend.o cp/init.o cp/method.o cp/search.o cp/semantics.o cp/tree.o cp/repo.o cp/dump.o cp/optimize.o cp/mangle.o cp/cp-objcp-common.o cp/name-lookup.o cp/cxx-pretty-print.o cp/cp-cilkplus.o cp/cp-gimplify.o cp/cp-array-notation.o cp/lambda.o cp/vtable-class-hierarchy.o attribs.o incpath.o c-family/c-common.o c-family/c-cppbuiltin.o c-family/c-dump.o c-family/c-format.o c-family/c-gimplify.o c-family/c-lex.o c-family/c-omp.o c-family/c-opts.o c-family/c-pch.o c-family/c-ppoutput.o c-family/c-pragma.o c-family/c-pretty-print.o c-family/c-semantics.o c-family/c-ada-spec.o c-family/c-cilkplus.o c-family/array-notation-common.o c-family/cilk.o c-family/c-ubsan.o ia64-c.o default-c.o cc1plus-checksum.o libbackend.a main.o tree-browser.o libcommon-target.a libcommon.a ../libcpp/libcpp.a ../libdecnumber/libdecnumber.a libcommon.a ../libcpp/libcpp.a ../libbacktrace/.libs/libbacktrace.a ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a -L/tmp/FBE/gcc-4.9.0/obj/./gmp/.libs -L/tmp/FBE/gcc-4.9.0/obj/./mpfr/src/.libs -L/tmp/FBE/gcc-4.9.0/obj/./mpc/src/.libs -lmpc -lmpfr -lgmp -L../zlib -lz ld: The value 0xfffffffffdf68820 does not fit when applying the relocation PCREL21B for symbol ".text" at offset 0x102 in section index 74 of file libbackend.a[function.o] ld: The value 0xfffffffffdee13b0 does not fit when applying the relocation PCREL21B for symbol ".text" at offset 0x102 in section index 79 of file libbackend.a[function.o] ld: The value 0xfffffffffdfd2f10 does not fit when applying the relocation PCREL21B for symbol ".text" at offset 0x102 in section index 60 of file libbackend.a[gimple.o] ld: The value 0xfffffffffdf4bab0 does not fit when applying the relocation PCREL21B for symbol ".text" at offset 0x102 in section index 65 of file libbackend.a[gimple.o] ld: The value 0xfffffffffde42460 does not fit when applying the relocation PCREL21B for symbol ".text" at offset 0x22 in section index 207 of file libbackend.a[gimple.o] ld: The value 0xfffffffffde40a60 does not fit when applying the relocation PCREL21B for symbol ".text" at offset 0x22 in section index 212 of file libbackend.a[gimple.o] ld: The value 0xfffffffffdffdbe0 does not fit when applying the relocation PCREL21B for symbol ".text" at offset 0x102 in section index 54 of file libbackend.a[gimple-expr.o] ld: The value 0xfffffffffdf767a0 does not fit when applying the relocation PCREL21B for symbol ".text" at offset 0x102 in section index 59 of file libbackend.a[gimple-expr.o] ld: The value 0xfffffffffde79210 does not fit when applying the relocation PCREL21B for symbol ".text" at offset 0x22 in section index 21 of file libbackend.a[gimple-iterator.o] ld: The value 0xfffffffffde77cc0 does not fit when applying the relocation PCREL21B for symbol ".text" at offset 0x22 in section index 26 of file libbackend.a[gimple-iterator.o] ld: The value 0xfffffffffdf8b270 does not fit when applying the relocation PCREL21B for symbol ".text" at offset 0x102 in section index 85 of file libbackend.a[gimple-fold.o] ld: The value 0xfffffffffde82160 does not fit when applying the relocation PCREL21B for symbol ".text" at offset 0x22 in section index 106 of file libbackend.a[gimple-fold.o] ld: The value 0xfffffffffde807c0 does not fit when applying the relocation PCREL21B for symbol ".text" at offset 0x22 in section index 111 of file libbackend.a[gimple-fold.o] ld: The value 0xfffffffffdeb9900 does not fit when applying the relocation PCREL21B for symbol ".text" at offset 0x22 in section index 172 of file libbackend.a[gimple-pretty-print.o] ld: The value 0xfffffffffdfe2cd0 does not fit when applying the relocation PCREL21B for symbol ".text" at offset 0xc2 in section index 91 of file libbackend.a[ipa-inline-analysis.o] ld: The value 0xfffffffffdfdd7c0 does not fit when applying the relocation PCREL21B for symbol ".text" at offset 0x172 in section index 96 of file libbackend.a[ipa-inline-analysis.o] ld: The value 0xfffffffffdfdcf90 does not fit when applying the relocation PCREL21B for symbol ".text" at offset 0x842 in section index 96 of file libbackend.a[ipa-inline-analysis.o] ld: The value 0xfffffffffdfdcef0 does not fit when applying the relocation PCREL21B for symbol ".text" at offset 0x8e2 in section index 96 of file libbackend.a[ipa-inline-analysis.o] ld: The value 0xfffffffffdfdcce0 does not fit when applying the relocation PCREL21B for symbol ".text" at offset 0xaf2 in section index 96 of file libbackend.a[ipa-inline-analysis.o] ld: The value 0xfffffffffdfd6b60 does not fit when applying the relocation PCREL21B for symbol ".text" at offset 0x62 in section index 20 of file libbackend.a[ira-color.o] 20 errors. collect2: error: ld returned 1 exit status make[3]: *** [cc1plus] Error 1 make[3]: Leaving directory `/tmp/FBE/gcc-4.9.0/obj/gcc' make[2]: *** [all-stage1-gcc] Error 2 make[2]: Leaving directory `/tmp/FBE/gcc-4.9.0/obj' make[1]: *** [stage1-bubble] Error 2 make[1]: Leaving directory `/tmp/FBE/gcc-4.9.0/obj' make: *** [all] Error 2