public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/28904] New: operand out of range on Linux/PowerPC
@ 2006-08-30 15:21 glibersat at linux62 dot org
2006-08-31 2:41 ` [Bug target/28904] " pinskia at gcc dot gnu dot org
` (9 more replies)
0 siblings, 10 replies; 11+ messages in thread
From: glibersat at linux62 dot org @ 2006-08-30 15:21 UTC (permalink / raw)
To: gcc-bugs
When trying to build CrystalSpace3d, which is a very big application, on
GNU/Linux, I get errors like this :
{standard input}:1236795: Error: operand out of range (0x0000000000008220 is
not between 0xffffffffffff8000 and 0x0000000000007fff)
(repeated about 300 times)
The file, cs_pyth.cpp generates a huge .S (45Mb).
Every error refers to a "lwz" instruction :
lwz 4,.LC42716-.LCTOC1(30)
lwz 4,.LC42718-.LCTOC1(30)
lwz 4,.LC42720-.LCTOC1(30)
lwz 4,.LC42722-.LCTOC1(30)
lwz 4,.LC42724-.LCTOC1(30)
lwz 4,.LC42726-.LCTOC1(30)
=========
Here's what I'm using :
[sakura>glibersat::crystal]$ g++ -v
Using built-in specs.
Target: powerpc-linux-gnu
Configured with: ../src/configure -v
--enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr
--enable-shared --with-system-zlib --libexecdir=/usr/lib
--without-included-gettext --enable-threads=posix --enable-nls
--program-suffix=-4.1 --enable-__cxa_atexit --enable-clocale=gnu
--enable-libstdcxx-debug --enable-mpfr --disable-softfloat
--enable-targets=powerpc-linux,powerpc64-linux --with-cpu=default32
--enable-checking=release powerpc-linux-gnu
Thread model: posix
gcc version 4.1.2 20060814 (prerelease) (Debian 4.1.1-11)
=========
The complete command line is :
g++ -c -o ./out/linuxppc/debug/plugins/cscript/cspython/cs_pyth.o -I.
-I./include -I./include -pipe -Wall -Wno-unknown-pragmas -I/usr/local/include
-fno-exceptions -g3 -DCS_DEBUG -fPIC -I/usr/include/python2.3 -DSWIG_GLOBAL
-Wno-unused -Wno-uninitialized -fno-strict-aliasing
./out/linuxppc/debug/plugins/cscript/cspython/cs_pyth.cpp
=========
I can't attach the .i file since it's really big. You can get it there :
http://glibersat.linux62.org/~glibersat/cs_pyth.ii
Thanks !
--
Summary: operand out of range on Linux/PowerPC
Product: gcc
Version: 4.1.2
Status: UNCONFIRMED
Severity: major
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: glibersat at linux62 dot org
GCC build triplet: powerpc-linux-gnu
GCC host triplet: powerpc-linux-gnu
GCC target triplet: powerpc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28904
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug target/28904] operand out of range on Linux/PowerPC
2006-08-30 15:21 [Bug c++/28904] New: operand out of range on Linux/PowerPC glibersat at linux62 dot org
@ 2006-08-31 2:41 ` pinskia at gcc dot gnu dot org
2006-08-31 4:31 ` pinskia at gcc dot gnu dot org
` (8 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-08-31 2:41 UTC (permalink / raw)
To: gcc-bugs
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|major |normal
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28904
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug target/28904] operand out of range on Linux/PowerPC
2006-08-30 15:21 [Bug c++/28904] New: operand out of range on Linux/PowerPC glibersat at linux62 dot org
2006-08-31 2:41 ` [Bug target/28904] " pinskia at gcc dot gnu dot org
@ 2006-08-31 4:31 ` pinskia at gcc dot gnu dot org
2006-08-31 4:34 ` pinskia at gcc dot gnu dot org
` (7 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-08-31 4:31 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from pinskia at gcc dot gnu dot org 2006-08-31 04:30 -------
Hmm, I am going to go out on a limb and say we should
produce about the following (hopefully I get the right macros):
la temp, ha16(.LC42716-.LCTOC1)(30)
lwz rn, lo16(.LC42716-.LCTOC1)(temp)
This is like what Darwin does for PIC.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28904
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug target/28904] operand out of range on Linux/PowerPC
2006-08-30 15:21 [Bug c++/28904] New: operand out of range on Linux/PowerPC glibersat at linux62 dot org
2006-08-31 2:41 ` [Bug target/28904] " pinskia at gcc dot gnu dot org
2006-08-31 4:31 ` pinskia at gcc dot gnu dot org
@ 2006-08-31 4:34 ` pinskia at gcc dot gnu dot org
2006-09-05 22:51 ` amodra at bigpond dot net dot au
` (6 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-08-31 4:34 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from pinskia at gcc dot gnu dot org 2006-08-31 04:34 -------
well, the syntax would be more like:
addis 9,(.LC42716-.LCTOC1)@ha(30)
lwz 0,.LC42716-.LCTOC1)@l(9)
But I don't know if this syntax will work.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28904
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug target/28904] operand out of range on Linux/PowerPC
2006-08-30 15:21 [Bug c++/28904] New: operand out of range on Linux/PowerPC glibersat at linux62 dot org
` (2 preceding siblings ...)
2006-08-31 4:34 ` pinskia at gcc dot gnu dot org
@ 2006-09-05 22:51 ` amodra at bigpond dot net dot au
2007-06-26 16:12 ` srm at schokokeks dot org
` (5 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: amodra at bigpond dot net dot au @ 2006-09-05 22:51 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from amodra at bigpond dot net dot au 2006-09-05 22:50 -------
This is a limitation of the -fPIC implementation used on powerpc-linux. You
get a maximum of 64K bytes of GOT entries per function (ie. 16K entries).
-fpic is even more limited, with only 64K bytes of GOT for the entire
executable. (-fpic used to be 32k for the entire executable until the linker
was enhanced.)
--
amodra at bigpond dot net dot au changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2006-09-05 22:50:51
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28904
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug target/28904] operand out of range on Linux/PowerPC
2006-08-30 15:21 [Bug c++/28904] New: operand out of range on Linux/PowerPC glibersat at linux62 dot org
` (3 preceding siblings ...)
2006-09-05 22:51 ` amodra at bigpond dot net dot au
@ 2007-06-26 16:12 ` srm at schokokeks dot org
2007-06-26 20:30 ` pinskia at gcc dot gnu dot org
` (4 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: srm at schokokeks dot org @ 2007-06-26 16:12 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from srm at schokokeks dot org 2007-06-26 16:12 -------
the same here on gentoo-ppc-2.6.21, using gcc-4.1.2
Powerbook G4(5,6)
trying to compile Crystalspace v1.2 --with-python
When ommiting -fPIC OR using --without-python, the build works.
I will see if a revert to 4.1.1 brings any advancement for 4.1.2 is marked as
testing on gentoo-ppc.
--
srm at schokokeks dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |srm at schokokeks dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28904
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug target/28904] operand out of range on Linux/PowerPC
2006-08-30 15:21 [Bug c++/28904] New: operand out of range on Linux/PowerPC glibersat at linux62 dot org
` (4 preceding siblings ...)
2007-06-26 16:12 ` srm at schokokeks dot org
@ 2007-06-26 20:30 ` pinskia at gcc dot gnu dot org
2007-06-26 20:36 ` srm at schokokeks dot org
` (3 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-06-26 20:30 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from pinskia at gcc dot gnu dot org 2007-06-26 20:30 -------
They have been improvements in 4.2.0 with respect of having a smaller GOT. Can
you try 4.2.0?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28904
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug target/28904] operand out of range on Linux/PowerPC
2006-08-30 15:21 [Bug c++/28904] New: operand out of range on Linux/PowerPC glibersat at linux62 dot org
` (5 preceding siblings ...)
2007-06-26 20:30 ` pinskia at gcc dot gnu dot org
@ 2007-06-26 20:36 ` srm at schokokeks dot org
2007-06-27 8:06 ` srm at schokokeks dot org
` (2 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: srm at schokokeks dot org @ 2007-06-26 20:36 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from srm at schokokeks dot org 2007-06-26 20:35 -------
(In reply to comment #5)
> They have been improvements in 4.2.0 with respect of having a smaller GOT. Can
> you try 4.2.0?
>
uh, i'd like to...give me a few days to figure out how i can do a proper
upgrade or setup a sandbox for testing.
I will check back with the results.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28904
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug target/28904] operand out of range on Linux/PowerPC
2006-08-30 15:21 [Bug c++/28904] New: operand out of range on Linux/PowerPC glibersat at linux62 dot org
` (6 preceding siblings ...)
2007-06-26 20:36 ` srm at schokokeks dot org
@ 2007-06-27 8:06 ` srm at schokokeks dot org
2007-07-07 13:37 ` srm at schokokeks dot org
2009-05-14 4:03 ` bje at gcc dot gnu dot org
9 siblings, 0 replies; 11+ messages in thread
From: srm at schokokeks dot org @ 2007-06-27 8:06 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from srm at schokokeks dot org 2007-06-27 08:06 -------
I have checked with 4.2.0 and it produces the same error.
Maybe i'd like to rebuild python too with 4.2?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28904
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug target/28904] operand out of range on Linux/PowerPC
2006-08-30 15:21 [Bug c++/28904] New: operand out of range on Linux/PowerPC glibersat at linux62 dot org
` (7 preceding siblings ...)
2007-06-27 8:06 ` srm at schokokeks dot org
@ 2007-07-07 13:37 ` srm at schokokeks dot org
2009-05-14 4:03 ` bje at gcc dot gnu dot org
9 siblings, 0 replies; 11+ messages in thread
From: srm at schokokeks dot org @ 2007-07-07 13:37 UTC (permalink / raw)
To: gcc-bugs
------- Comment #8 from srm at schokokeks dot org 2007-07-07 13:37 -------
crystalspace also has a bug report for this
(http://www.crystalspace3d.org/trac/CS/ticket/210)
as mentioned there, one could try this
http://www.crystalspace3d.org/trac/CS/ticket/258 which is using a special
branch for the python modules. using this branch, i had no problem building the
python modules. maybe it's worth a look for you :)
i dont really get the point...but, eager to...
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28904
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug target/28904] operand out of range on Linux/PowerPC
2006-08-30 15:21 [Bug c++/28904] New: operand out of range on Linux/PowerPC glibersat at linux62 dot org
` (8 preceding siblings ...)
2007-07-07 13:37 ` srm at schokokeks dot org
@ 2009-05-14 4:03 ` bje at gcc dot gnu dot org
9 siblings, 0 replies; 11+ messages in thread
From: bje at gcc dot gnu dot org @ 2009-05-14 4:03 UTC (permalink / raw)
To: gcc-bugs
------- Comment #9 from bje at gcc dot gnu dot org 2009-05-14 04:03 -------
The original reporter seems to have resolved this to their satisfaction in
their CrystalSpace3d bug report. This report was due to running up against a
limitation of the -fPIC implementation.
--
bje at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28904
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2009-05-14 4:03 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-08-30 15:21 [Bug c++/28904] New: operand out of range on Linux/PowerPC glibersat at linux62 dot org
2006-08-31 2:41 ` [Bug target/28904] " pinskia at gcc dot gnu dot org
2006-08-31 4:31 ` pinskia at gcc dot gnu dot org
2006-08-31 4:34 ` pinskia at gcc dot gnu dot org
2006-09-05 22:51 ` amodra at bigpond dot net dot au
2007-06-26 16:12 ` srm at schokokeks dot org
2007-06-26 20:30 ` pinskia at gcc dot gnu dot org
2007-06-26 20:36 ` srm at schokokeks dot org
2007-06-27 8:06 ` srm at schokokeks dot org
2007-07-07 13:37 ` srm at schokokeks dot org
2009-05-14 4:03 ` bje at gcc dot gnu dot 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).