This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/10922] [Darwin] Internal error: Illegal instruction (program cc1plus)
- From: "rwgk at yahoo dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 27 May 2003 06:22:58 -0000
- Subject: [Bug target/10922] [Darwin] Internal error: Illegal instruction (program cc1plus)
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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.