public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/10922] [Darwin] Internal error: Illegal instruction (program cc1plus)
[not found] <20030522014038.10922.rwgk@yahoo.com>
@ 2003-05-26 4:32 ` rwgk@yahoo.com
2003-05-26 6:34 ` dhazeghi@yahoo.com
` (12 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: rwgk@yahoo.com @ 2003-05-26 4:32 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10922
------- Additional Comments From rwgk@yahoo.com 2003-05-26 04:25 -------
All the code involved is unrestricted open source. However, to reproduce the
bug you'd need to install Python 2.3b1 (also open source) as root. If that's
acceptable I'd be happy to create a self-contained source code bundle incl.
instructions. I think it would be worth it because it brings to light some
other bugs:
- Undefined symbols while linking that (sometimes) go away if the code is
rearranged.
- Segmentation faults and bus errors when using -O3 instead of -O0.
You could also use our code to verify that the gcc 3.3 optimizer is broken
under Redhat 8 (where you could use the Python that comes with the OS).
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug target/10922] [Darwin] Internal error: Illegal instruction (program cc1plus)
[not found] <20030522014038.10922.rwgk@yahoo.com>
2003-05-26 4:32 ` [Bug target/10922] [Darwin] Internal error: Illegal instruction (program cc1plus) rwgk@yahoo.com
@ 2003-05-26 6:34 ` dhazeghi@yahoo.com
2003-05-26 14:43 ` pinskia@physics.uc.edu
` (11 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: dhazeghi@yahoo.com @ 2003-05-26 6:34 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10922
------- Additional Comments From dhazeghi@yahoo.com 2003-05-26 06:14 -------
Hello,
I can install the necessary python. If you can e-mail me (or attach to this report) the necessary
instructions, that'd be great. Thanks,
Dara
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug target/10922] [Darwin] Internal error: Illegal instruction (program cc1plus)
[not found] <20030522014038.10922.rwgk@yahoo.com>
2003-05-26 4:32 ` [Bug target/10922] [Darwin] Internal error: Illegal instruction (program cc1plus) rwgk@yahoo.com
2003-05-26 6:34 ` dhazeghi@yahoo.com
@ 2003-05-26 14:43 ` pinskia@physics.uc.edu
2003-05-27 6:27 ` rwgk@yahoo.com
` (10 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: pinskia@physics.uc.edu @ 2003-05-26 14:43 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10922
pinskia@physics.uc.edu changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |WAITING
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug target/10922] [Darwin] Internal error: Illegal instruction (program cc1plus)
[not found] <20030522014038.10922.rwgk@yahoo.com>
` (2 preceding siblings ...)
2003-05-26 14:43 ` pinskia@physics.uc.edu
@ 2003-05-27 6:27 ` rwgk@yahoo.com
2003-06-02 21:01 ` dhazeghi@yahoo.com
` (9 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: rwgk@yahoo.com @ 2003-05-27 6:27 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10922
------- Additional Comments From rwgk@yahoo.com 2003-05-27 06:22 -------
The full source for reproducing the internal compiler error is available here:
http://cci.lbl.gov/~rwgk/bugs/mac_os/scitbx_2003_05_26.tar.gz
Unpack and follow the instruction in the file README.
For the records, here is content of the README file:
Regarding:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10922
Under Mac OS 10.2 get and unpack the file
http://www.python.org/ftp/python/2.3/Python-2.3b1.tgz
and install with the commands:
./configure --enable-framework
make
make frameworkinstall
The last command requires root privileges because the target directory is:
/Library/Frameworks/Python.framework/Versions/2.3
"make frameworkinstall" will also create softlinks in /usr/local/bin.
In the following it is assumed that /usr/local/bin is on $PATH and that
the command "python" resolves to /usr/local/bin/python.
It is also assumed that g++ is gcc 3.3.
The internal compiler error is very elusive. Slight changes to the
header files make it go away for certain source code files, and make
it appear for others. Here is what I hope you can use to reproduce
the bug very quickly:
mkdir build
cd build
python ../libtbx/configure.py --build=quick cctbx
source setpaths.csh
libtbx.scons cctbx/sgtbx/boost_python/rt_mx.os
If this works for you try:
libtbx.scons -k .
This will take a while but hopefully you will see a failure for at
least one of the files. The output on my computer is in the file:
build.log
If for some odd reason everything works on your computer try this:
mkdir build
cd build
python ../libtbx/configure.py cctbx
source setpaths.csh
libtbx.scons -k .
This compiles with full optimization (-O3) and results in several
internal compiler errors on my computer.
If you get to the point where all files compile and link without
errors you can run our regression tests with this command:
python $SCITBX_DIST/run_tests.py
This should show many "OK". It is known to work under Redhat 8 with
both gcc 3.2 and gcc 3.3 (latter with -O0 only, -03 breaks one test).
It also works under Tru64 Unix and IRIX using the native C++ compilers.
About the source code:
- boost (http://www.boost.org/) is the CVS snapshot from 2003-05-26 ca.
2:15pm Pacific time.
- libtbx, boost_adaptbx, scitbx, cctbx are CVS snapshots of modules in
the http://cctbx.sourceforge.net/ project.
- scons == SCons 0.14, http://www.scons.org/
SCons is a build tool (replacing make) implemented in pure Python.
There is no C++ code in this directory.
I hope this is useful. It took me a long time to put everything together
in a clean way. Please don't hesitate to ask questions about this package:
rwgk@yahoo.com
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug target/10922] [Darwin] Internal error: Illegal instruction (program cc1plus)
[not found] <20030522014038.10922.rwgk@yahoo.com>
` (3 preceding siblings ...)
2003-05-27 6:27 ` rwgk@yahoo.com
@ 2003-06-02 21:01 ` dhazeghi@yahoo.com
2003-06-02 22:55 ` bangerth@dealii.org
` (8 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: dhazeghi@yahoo.com @ 2003-06-02 21:01 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10922
------- Additional Comments From dhazeghi@yahoo.com 2003-06-02 21:01 -------
Hello,
with g++ 3.4, here's the line that yields the first error:
template <class Data>
struct additional_instance_size
{
typedef instance<Data> instance_data;
typedef instance<char> instance_char;
BOOST_STATIC_CONSTANT(
std::size_t, value = sizeof(instance_data)
- BOOST_PYTHON_OFFSETOF(instance_char,storage));
};
When preprocessed, it becomes:
template <class Data>
struct additional_instance_size
{
typedef instance<Data> instance_data;
typedef instance<char> instance_char;
static const std::size_t value = sizeof(instance_data) - (reinterpret_cast <
size_t> (&reinterpret_cast <char &>(static_cast <instance_char *> (0)->storage))
);
Preprocessed output is attached to this...
Thanks,
Dara
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug target/10922] [Darwin] Internal error: Illegal instruction (program cc1plus)
[not found] <20030522014038.10922.rwgk@yahoo.com>
` (4 preceding siblings ...)
2003-06-02 21:01 ` dhazeghi@yahoo.com
@ 2003-06-02 22:55 ` bangerth@dealii.org
2003-06-03 1:34 ` bangerth@dealii.org
` (7 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: bangerth@dealii.org @ 2003-06-02 22:55 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10922
------- Additional Comments From bangerth@dealii.org 2003-06-02 22:55 -------
The ICE-on-mainline is now reported independently in PR 11070.
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug target/10922] [Darwin] Internal error: Illegal instruction (program cc1plus)
[not found] <20030522014038.10922.rwgk@yahoo.com>
` (5 preceding siblings ...)
2003-06-02 22:55 ` bangerth@dealii.org
@ 2003-06-03 1:34 ` bangerth@dealii.org
2003-06-03 1:36 ` bangerth@dealii.org
` (6 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: bangerth@dealii.org @ 2003-06-03 1:34 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10922
bangerth@dealii.org changed:
What |Removed |Added
----------------------------------------------------------------------------
BugsThisDependsOn| |11072
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug target/10922] [Darwin] Internal error: Illegal instruction (program cc1plus)
[not found] <20030522014038.10922.rwgk@yahoo.com>
` (6 preceding siblings ...)
2003-06-03 1:34 ` bangerth@dealii.org
@ 2003-06-03 1:36 ` bangerth@dealii.org
2003-06-22 18:55 ` pinskia at physics dot uc dot edu
` (5 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: bangerth@dealii.org @ 2003-06-03 1:36 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10922
------- Additional Comments From bangerth@dealii.org 2003-06-03 01:36 -------
The problem with offsetof is now treated in 11072. BTW, where did you read
that the result of offsetof is an integral constant expression? It is not
in my copy of the standard, or at least not at the places I looked at...
W.
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug target/10922] [Darwin] Internal error: Illegal instruction (program cc1plus)
[not found] <20030522014038.10922.rwgk@yahoo.com>
` (7 preceding siblings ...)
2003-06-03 1:36 ` bangerth@dealii.org
@ 2003-06-22 18:55 ` pinskia at physics dot uc dot edu
2003-06-25 16:53 ` rwgk at yahoo dot com
` (4 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: pinskia at physics dot uc dot edu @ 2003-06-22 18:55 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10922
------- Additional Comments From pinskia at physics dot uc dot edu 2003-06-22 18:50 -------
I think this problem is that Darwin (Mac OS X)'s stack limit is just set too low. I will try once I
download a 3.3.1 (snapshot) compiler. I know for 3.4 errors out saying you should raise th limit to
unlimited. With the limit at 512 I do not get an ICE (Illegal instruction) but it works but with the
limit set to 100 I do get the Illegal instruction ICE so this really looks like a too low stack limit.
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug target/10922] [Darwin] Internal error: Illegal instruction (program cc1plus)
[not found] <20030522014038.10922.rwgk@yahoo.com>
` (8 preceding siblings ...)
2003-06-22 18:55 ` pinskia at physics dot uc dot edu
@ 2003-06-25 16:53 ` rwgk at yahoo dot com
2003-06-25 18:32 ` bangerth at dealii dot org
` (3 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: rwgk at yahoo dot com @ 2003-06-25 16:53 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10922
------- Additional Comments From rwgk at yahoo dot com 2003-06-25 16:09 -------
In response to comment #17:
I've confirmed that the compilation of cctbx/sgtbx/boost_python/rt_mx.cpp (see
comment #5) crashes when using the default stacksize of 512k, but works
correctly after setting the stacksize to 8192k. -- Ouch!
Thank you very much Andrew!
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug target/10922] [Darwin] Internal error: Illegal instruction (program cc1plus)
[not found] <20030522014038.10922.rwgk@yahoo.com>
` (9 preceding siblings ...)
2003-06-25 16:53 ` rwgk at yahoo dot com
@ 2003-06-25 18:32 ` bangerth at dealii dot org
2003-07-02 14:40 ` nathan at gcc dot gnu dot org
` (2 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: bangerth at dealii dot org @ 2003-06-25 18:32 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10922
bangerth at dealii dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
------- Additional Comments From bangerth at dealii dot org 2003-06-25 17:57 -------
Darwin stack size limit. I really wonder why the set it so low...
W.
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug target/10922] [Darwin] Internal error: Illegal instruction (program cc1plus)
[not found] <20030522014038.10922.rwgk@yahoo.com>
` (10 preceding siblings ...)
2003-06-25 18:32 ` bangerth at dealii dot org
@ 2003-07-02 14:40 ` nathan at gcc dot gnu dot org
2003-07-05 19:36 ` dhazeghi at yahoo dot com
2003-07-10 2:20 ` pinskia at physics dot uc dot edu
13 siblings, 0 replies; 15+ messages in thread
From: nathan at gcc dot gnu dot org @ 2003-07-02 14:40 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10922
Bug 10922 depends on bug 11072, which changed state.
Bug 11072 Summary: [3.4 regression] Implementation of offsetof macro
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11072
What |Old Value |New Value
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug target/10922] [Darwin] Internal error: Illegal instruction (program cc1plus)
[not found] <20030522014038.10922.rwgk@yahoo.com>
` (11 preceding siblings ...)
2003-07-02 14:40 ` nathan at gcc dot gnu dot org
@ 2003-07-05 19:36 ` dhazeghi at yahoo dot com
2003-07-10 2:20 ` pinskia at physics dot uc dot edu
13 siblings, 0 replies; 15+ messages in thread
From: dhazeghi at yahoo dot com @ 2003-07-05 19:36 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10922
------- Additional Comments From dhazeghi at yahoo dot com 2003-07-05 19:36 -------
Yup, confirmed fixed when using ulimit unlimited. Note that the testcase still needed 184MB RAM
to compile. Ouch.
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug target/10922] [Darwin] Internal error: Illegal instruction (program cc1plus)
[not found] <20030522014038.10922.rwgk@yahoo.com>
` (12 preceding siblings ...)
2003-07-05 19:36 ` dhazeghi at yahoo dot com
@ 2003-07-10 2:20 ` pinskia at physics dot uc dot edu
13 siblings, 0 replies; 15+ messages in thread
From: pinskia at physics dot uc dot edu @ 2003-07-10 2:20 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10922
Bug 10922 depends on bug 11070, which changed state.
Bug 11070 Summary: [3.4 regression] ICE in regenerate_decl_from_template after forgotten template for disambiguation
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11070
What |Old Value |New Value
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug target/10922] [Darwin] Internal error: Illegal instruction (program cc1plus)
@ 2003-05-22 14:15 bangerth@dealii.org
0 siblings, 0 replies; 15+ messages in thread
From: bangerth@dealii.org @ 2003-05-22 14:15 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10922
bangerth@dealii.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|c++ |target
Summary|Internal error: Illegal |[Darwin] Internal error:
|instruction (program |Illegal instruction (program
|cc1plus) |cc1plus)
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 15+ messages in thread
end of thread, other threads:[~2003-07-10 2:20 UTC | newest]
Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <20030522014038.10922.rwgk@yahoo.com>
2003-05-26 4:32 ` [Bug target/10922] [Darwin] Internal error: Illegal instruction (program cc1plus) rwgk@yahoo.com
2003-05-26 6:34 ` dhazeghi@yahoo.com
2003-05-26 14:43 ` pinskia@physics.uc.edu
2003-05-27 6:27 ` rwgk@yahoo.com
2003-06-02 21:01 ` dhazeghi@yahoo.com
2003-06-02 22:55 ` bangerth@dealii.org
2003-06-03 1:34 ` bangerth@dealii.org
2003-06-03 1:36 ` bangerth@dealii.org
2003-06-22 18:55 ` pinskia at physics dot uc dot edu
2003-06-25 16:53 ` rwgk at yahoo dot com
2003-06-25 18:32 ` bangerth at dealii dot org
2003-07-02 14:40 ` nathan at gcc dot gnu dot org
2003-07-05 19:36 ` dhazeghi at yahoo dot com
2003-07-10 2:20 ` pinskia at physics dot uc dot edu
2003-05-22 14:15 bangerth@dealii.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).