public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug boehm-gc/47309] New: gcc-4.4.5 fails to build on darwin/ppc due to issues in boehm-gc GC_test_and_set
@ 2011-01-15 20:02 jeremyhu at macports dot org
2011-01-17 14:19 ` [Bug boehm-gc/47309] " rguenth at gcc dot gnu.org
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: jeremyhu at macports dot org @ 2011-01-15 20:02 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47309
Summary: gcc-4.4.5 fails to build on darwin/ppc due to issues
in boehm-gc GC_test_and_set
Product: gcc
Version: 4.4.5
Status: UNCONFIRMED
Severity: major
Priority: P3
Component: boehm-gc
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: jeremyhu@macports.org
temp work dir replaced with "..." for better readability:
libtool: compile: .../build/./gcc/xgcc -B.../build/./gcc/
-B/opt/local/ppc-apple-darwin9/bin/ -B/opt/local/ppc-apple-darwin9/lib/
-isystem /opt/local/ppc-apple-darwin9/include -isystem
/opt/local/ppc-apple-darwin9/sys-include -DHAVE_CONFIG_H
-I.../gcc-4.4.5/boehm-gc/include -fexceptions -Iinclude -I././targ-include
-I.//libc/include -g -pipe -ggdb3 -fexceptions -Iinclude -I././targ-include
-I.//libc/include -c ../../../gcc-4.4.5/boehm-gc/os_dep.c -fno-common -DPIC -o
.libs/os_dep.o
In file included from .../gcc-4.4.5/boehm-gc/include/private/gc_priv.h:98,
from ../../../gcc-4.4.5/boehm-gc/os_dep.c:17:
.../gcc-4.4.5/boehm-gc/include/private/gc_locks.h: In function
'GC_test_and_set':
.../gcc-4.4.5/boehm-gc/include/private/gc_locks.h:165: error: 'asm' operand has
impossible constraints
inline static int GC_test_and_set(volatile unsigned int *addr) {
int oldval;
int temp = 1; /* locked value */
__asm__ __volatile__(
"1:\tlwarx %0,0,%3\n" /* load and reserve */
"\tcmpwi %0, 0\n" /* if load is */
"\tbne 2f\n" /* non-zero, return already set */
"\tstwcx. %2,0,%1\n" /* else store conditional */
"\tbne- 1b\n" /* retry if lost reservation */
"\tsync\n" /* import barrier */
"2:\t\n" /* oldval is zero if we set */
: "=&r"(oldval), "=p"(addr)
: "r"(temp), "1"(addr)
: "cr0","memory");
return oldval;
}
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug boehm-gc/47309] gcc-4.4.5 fails to build on darwin/ppc due to issues in boehm-gc GC_test_and_set
2011-01-15 20:02 [Bug boehm-gc/47309] New: gcc-4.4.5 fails to build on darwin/ppc due to issues in boehm-gc GC_test_and_set jeremyhu at macports dot org
@ 2011-01-17 14:19 ` rguenth at gcc dot gnu.org
2011-03-15 19:02 ` elelay at macports dot org
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-01-17 14:19 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47309
Richard Guenther <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target| |powerpc-apple-darwin9
Status|UNCONFIRMED |WAITING
Last reconfirmed| |2011.01.17 13:53:07
Ever Confirmed|0 |1
--- Comment #1 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-01-17 13:53:07 UTC ---
How did you configure GCC? It seems you are building without bootstrap
and/or with custom CFLAGS (you lack any optimization).
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug boehm-gc/47309] gcc-4.4.5 fails to build on darwin/ppc due to issues in boehm-gc GC_test_and_set
2011-01-15 20:02 [Bug boehm-gc/47309] New: gcc-4.4.5 fails to build on darwin/ppc due to issues in boehm-gc GC_test_and_set jeremyhu at macports dot org
2011-01-17 14:19 ` [Bug boehm-gc/47309] " rguenth at gcc dot gnu.org
@ 2011-03-15 19:02 ` elelay at macports dot org
2011-04-01 18:53 ` elelay at macports dot org
2013-12-19 16:38 ` dominiq at lps dot ens.fr
3 siblings, 0 replies; 5+ messages in thread
From: elelay at macports dot org @ 2011-03-15 19:02 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47309
Eric Le Lay <elelay at macports dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |elelay at macports dot org
--- Comment #2 from Eric Le Lay <elelay at macports dot org> 2011-03-15 18:58:00 UTC ---
(In reply to comment #1)
> How did you configure GCC? It seems you are building without bootstrap
> and/or with custom CFLAGS (you lack any optimization).
Hi,
jumping in because I experience the same issue on Gentoo with a PPC32 ibook g4.
Here is my current gcc :
Target: powerpc-unknown-linux-gnu
Configuré avec: /var/tmp/portage/sys-devel/gcc-4.3.4/work/gcc-4.3.4/configure
--prefix=/usr --bindir=/usr/powerpc-unknown-linux-gnu/gcc-bin/4.3.4
--includedir=/usr/lib/gcc/powerpc-unknown-linux-gnu/4.3.4/include
--datadir=/usr/share/gcc-data/powerpc-unknown-linux-gnu/4.3.4
--mandir=/usr/share/gcc-data/powerpc-unknown-linux-gnu/4.3.4/man
--infodir=/usr/share/gcc-data/powerpc-unknown-linux-gnu/4.3.4/info
--with-gxx-include-dir=/usr/lib/gcc/powerpc-unknown-linux-gnu/4.3.4/include/g++-v4
--host=powerpc-unknown-linux-gnu --build=powerpc-unknown-linux-gnu
--enable-altivec --disable-fixed-point --enable-nls --without-included-gettext
--with-system-zlib --disable-werror --enable-secureplt --disable-multilib
--enable-libmudflap --disable-libssp --enable-libgomp --enable-checking=release
--disable-libgcj --enable-objc-gc
--enable-languages=c,c++,objc,treelang,fortran --enable-shared
--enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu
--with-bugurl=http://bugs.gentoo.org/ --with-pkgversion='Gentoo 4.3.4 p1.1,
pie-10.1.5'
Modèle de thread: posix
gcc version 4.3.4 (Gentoo 4.3.4 p1.1, pie-10.1.5)
Here is the configure command line
:/var/tmp/portage/sys-devel/gcc-4.4.5/work/gcc-4.4.5/configure --prefix=/usr
--bindir=/usr/powerpc-unknown-linux-gnu/gcc-bin/4.4.5
--includedir=/usr/lib/gcc/powerpc-unknown-linux-gnu/4.4.5/include
--datadir=/usr/share/gcc-data/powerpc-unknown-linux-gnu/4.4.5
--mandir=/usr/share/gcc-data/powerpc-unknown-linux-gnu/4.4.5/man
--infodir=/usr/share/gcc-data/powerpc-unknown-linux-gnu/4.4.5/info
--with-gxx-include-dir=/usr/lib/gcc/powerpc-unknown-linux-gnu/4.4.5/include/g++-v4
--host=powerpc-unknown-linux-gnu --build=powerpc-unknown-linux-gnu
--enable-altivec --disable-fixed-point --without-ppl --without-cloog
--enable-nls --without-included-gettext --with-system-zlib --disable-werror
--enable-secureplt --disable-multilib --enable-libmudflap --disable-libssp
--enable-libgomp
--with-python-dir=/share/gcc-data/powerpc-unknown-linux-gnu/4.4.5/python
--enable-checking=release --disable-libgcj --enable-objc-gc
--enable-languages=c,c++,objc,fortran --enable-shared --enable-threads=posix
--enable-__cxa_atexit --enable-clocale=gnu
--with-bugurl=http://bugs.gentoo.org/ --with-pkgversion=Gentoo 4.4.5 p1.2,
pie-0.4.5
I can attach the full log if it helps...
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug boehm-gc/47309] gcc-4.4.5 fails to build on darwin/ppc due to issues in boehm-gc GC_test_and_set
2011-01-15 20:02 [Bug boehm-gc/47309] New: gcc-4.4.5 fails to build on darwin/ppc due to issues in boehm-gc GC_test_and_set jeremyhu at macports dot org
2011-01-17 14:19 ` [Bug boehm-gc/47309] " rguenth at gcc dot gnu.org
2011-03-15 19:02 ` elelay at macports dot org
@ 2011-04-01 18:53 ` elelay at macports dot org
2013-12-19 16:38 ` dominiq at lps dot ens.fr
3 siblings, 0 replies; 5+ messages in thread
From: elelay at macports dot org @ 2011-04-01 18:53 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47309
--- Comment #3 from Eric Le Lay <elelay at macports dot org> 2011-04-01 18:53:01 UTC ---
well, after including -O2 in my CFLAGS, gcc 4.4.5 built without any issue
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug boehm-gc/47309] gcc-4.4.5 fails to build on darwin/ppc due to issues in boehm-gc GC_test_and_set
2011-01-15 20:02 [Bug boehm-gc/47309] New: gcc-4.4.5 fails to build on darwin/ppc due to issues in boehm-gc GC_test_and_set jeremyhu at macports dot org
` (2 preceding siblings ...)
2011-04-01 18:53 ` elelay at macports dot org
@ 2013-12-19 16:38 ` dominiq at lps dot ens.fr
3 siblings, 0 replies; 5+ messages in thread
From: dominiq at lps dot ens.fr @ 2013-12-19 16:38 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47309
Dominique d'Humieres <dominiq at lps dot ens.fr> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |RESOLVED
Resolution|--- |FIXED
--- Comment #4 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
> well, after including -O2 in my CFLAGS, gcc 4.4.5 built without any issue
Two and a half year later closing as fixed.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2013-12-19 16:38 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-15 20:02 [Bug boehm-gc/47309] New: gcc-4.4.5 fails to build on darwin/ppc due to issues in boehm-gc GC_test_and_set jeremyhu at macports dot org
2011-01-17 14:19 ` [Bug boehm-gc/47309] " rguenth at gcc dot gnu.org
2011-03-15 19:02 ` elelay at macports dot org
2011-04-01 18:53 ` elelay at macports dot org
2013-12-19 16:38 ` dominiq at lps dot ens.fr
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).