[pypy-dev] A bug in cc? (was: "translation with --profopt fails")

Elmo Mäntynen elmo13 at jippii.fi
Sun Jul 23 20:43:05 CEST 2006


Elmo Mäntynen wrote:
> Elmo Mäntynen wrote:
>   
>> Armin Rigo wrote:
>>   
>>     
>>> Hi Elmo,
>>>
>>> On Wed, Jul 19, 2006 at 04:11:58PM +0300, Elmo M??ntynen wrote:
>>>   
>>>     
>>>       
>>>> Last lines of output (python translate.py --backend=c --profopt='-c
>>>> "from richards import *;main(iterations=1)"' --text --batch
>>>> targetpypystandalone.py):
>>>>     
>>>>       
>>>>         
>>> I have no clue how --profopt can affect the translation itself.  You
>>> don't get the same error without the --profopt option?
>>>
>>>
>>> A bientot,
>>>
>>> Armin
>>>   
>>>     
>>>       
>> Should've tested that, will do as soon as possible. benchmark.html on
>> snake shows something that says to me that the profopt executable
>> doesn't exist, which suggests that it wasn't built.
>>
>> Elmo
>>   
>>     
> Translation without profopt worked now, though there might have been
> something that got changed in between, will report after some more builds.
>   
Now I got an internal compiler error from cc:
"""
[cbuild:profopt] Gathering profile data from:
/tmp/usession-11/testing_1/testing_1 -c "from richards import
*;main(iterations=1)"
[cbuild:execute] cc -O2 -pthread -fprofile-use
-I/home/drayko/Workfolder/Security/Python/cvs/pypy-dist/pypy/translator/c
-I/usr/include/python2.4 -I/tmp/usession-11/testing_1 -c testing_1.c -o
testing_1.o
[cbuild:execute] cc -O2 -pthread -fprofile-use
-I/home/drayko/Workfolder/Security/Python/cvs/pypy-dist/pypy/translator/c
-I/usr/include/python2.4 -I/tmp/usession-11/testing_1 -c structimpl.c -o
structimpl.o
[cbuild:execute] cc -O2 -pthread -fprofile-use
-I/home/drayko/Workfolder/Security/Python/cvs/pypy-dist/pypy/translator/c
-I/usr/include/python2.4 -I/tmp/usession-11/testing_1 -c nonfuncnodes.c
-o nonfuncnodes.o
[cbuild:execute] cc -O2 -pthread -fprofile-use
-I/home/drayko/Workfolder/Security/Python/cvs/pypy-dist/pypy/translator/c
-I/usr/include/python2.4 -I/tmp/usession-11/testing_1 -c
nonfuncnodes_1.c -o nonfuncnodes_1.o
[cbuild:execute] cc -O2 -pthread -fprofile-use
-I/home/drayko/Workfolder/Security/Python/cvs/pypy-dist/pypy/translator/c
-I/usr/include/python2.4 -I/tmp/usession-11/testing_1 -c
nonfuncnodes_2.c -o nonfuncnodes_2.o
[cbuild:execute] cc -O2 -pthread -fprofile-use
-I/home/drayko/Workfolder/Security/Python/cvs/pypy-dist/pypy/translator/c
-I/usr/include/python2.4 -I/tmp/usession-11/testing_1 -c
nonfuncnodes_3.c -o nonfuncnodes_3.o
[cbuild:execute] cc -O2 -pthread -fprofile-use
-I/home/drayko/Workfolder/Security/Python/cvs/pypy-dist/pypy/translator/c
-I/usr/include/python2.4 -I/tmp/usession-11/testing_1 -c
nonfuncnodes_4.c -o nonfuncnodes_4.o
[cbuild:execute] cc -O2 -pthread -fprofile-use
-I/home/drayko/Workfolder/Security/Python/cvs/pypy-dist/pypy/translator/c
-I/usr/include/python2.4 -I/tmp/usession-11/testing_1 -c
nonfuncnodes_5.c -o nonfuncnodes_5.o
[cbuild:execute] cc -O2 -pthread -fprofile-use
-I/home/drayko/Workfolder/Security/Python/cvs/pypy-dist/pypy/translator/c
-I/usr/include/python2.4 -I/tmp/usession-11/testing_1 -c
nonfuncnodes_6.c -o nonfuncnodes_6.o
[cbuild:execute] cc -O2 -pthread -fprofile-use
-I/home/drayko/Workfolder/Security/Python/cvs/pypy-dist/pypy/translator/c
-I/usr/include/python2.4 -I/tmp/usession-11/testing_1 -c
nonfuncnodes_7.c -o nonfuncnodes_7.o
[cbuild:execute] cc -O2 -pthread -fprofile-use
-I/home/drayko/Workfolder/Security/Python/cvs/pypy-dist/pypy/translator/c
-I/usr/include/python2.4 -I/tmp/usession-11/testing_1 -c
nonfuncnodes_8.c -o nonfuncnodes_8.o
[cbuild:execute] cc -O2 -pthread -fprofile-use
-I/home/drayko/Workfolder/Security/Python/cvs/pypy-dist/pypy/translator/c
-I/usr/include/python2.4 -I/tmp/usession-11/testing_1 -c
nonfuncnodes_9.c -o nonfuncnodes_9.o
[cbuild:execute] cc -O2 -pthread -fprofile-use
-I/home/drayko/Workfolder/Security/Python/cvs/pypy-dist/pypy/translator/c
-I/usr/include/python2.4 -I/tmp/usession-11/testing_1 -c
nonfuncnodes_10.c -o nonfuncnodes_10.o
[cbuild:execute] cc -O2 -pthread -fprofile-use
-I/home/drayko/Workfolder/Security/Python/cvs/pypy-dist/pypy/translator/c
-I/usr/include/python2.4 -I/tmp/usession-11/testing_1 -c
nonfuncnodes_11.c -o nonfuncnodes_11.o
[cbuild:execute] cc -O2 -pthread -fprofile-use
-I/home/drayko/Workfolder/Security/Python/cvs/pypy-dist/pypy/translator/c
-I/usr/include/python2.4 -I/tmp/usession-11/testing_1 -c
nonfuncnodes_12.c -o nonfuncnodes_12.o
[cbuild:execute] cc -O2 -pthread -fprofile-use
-I/home/drayko/Workfolder/Security/Python/cvs/pypy-dist/pypy/translator/c
-I/usr/include/python2.4 -I/tmp/usession-11/testing_1 -c
nonfuncnodes_13.c -o nonfuncnodes_13.o
[cbuild:execute] cc -O2 -pthread -fprofile-use
-I/home/drayko/Workfolder/Security/Python/cvs/pypy-dist/pypy/translator/c
-I/usr/include/python2.4 -I/tmp/usession-11/testing_1 -c
nonfuncnodes_14.c -o nonfuncnodes_14.o
[cbuild:execute] cc -O2 -pthread -fprofile-use
-I/home/drayko/Workfolder/Security/Python/cvs/pypy-dist/pypy/translator/c
-I/usr/include/python2.4 -I/tmp/usession-11/testing_1 -c
nonfuncnodes_15.c -o nonfuncnodes_15.o
[cbuild:execute] cc -O2 -pthread -fprofile-use
-I/home/drayko/Workfolder/Security/Python/cvs/pypy-dist/pypy/translator/c
-I/usr/include/python2.4 -I/tmp/usession-11/testing_1 -c
nonfuncnodes_16.c -o nonfuncnodes_16.o
[cbuild:execute] cc -O2 -pthread -fprofile-use
-I/home/drayko/Workfolder/Security/Python/cvs/pypy-dist/pypy/translator/c
-I/usr/include/python2.4 -I/tmp/usession-11/testing_1 -c
nonfuncnodes_17.c -o nonfuncnodes_17.o
[cbuild:execute] cc -O2 -pthread -fprofile-use
-I/home/drayko/Workfolder/Security/Python/cvs/pypy-dist/pypy/translator/c
-I/usr/include/python2.4 -I/tmp/usession-11/testing_1 -c
nonfuncnodes_18.c -o nonfuncnodes_18.o
[cbuild:execute] cc -O2 -pthread -fprofile-use
-I/home/drayko/Workfolder/Security/Python/cvs/pypy-dist/pypy/translator/c
-I/usr/include/python2.4 -I/tmp/usession-11/testing_1 -c
nonfuncnodes_19.c -o nonfuncnodes_19.o
[cbuild:execute] cc -O2 -pthread -fprofile-use
-I/home/drayko/Workfolder/Security/Python/cvs/pypy-dist/pypy/translator/c
-I/usr/include/python2.4 -I/tmp/usession-11/testing_1 -c
nonfuncnodes_20.c -o nonfuncnodes_20.o
[cbuild:execute] cc -O2 -pthread -fprofile-use
-I/home/drayko/Workfolder/Security/Python/cvs/pypy-dist/pypy/translator/c
-I/usr/include/python2.4 -I/tmp/usession-11/testing_1 -c implement.c -o
implement.o
[cbuild:execute] cc -O2 -pthread -fprofile-use
-I/home/drayko/Workfolder/Security/Python/cvs/pypy-dist/pypy/translator/c
-I/usr/include/python2.4 -I/tmp/usession-11/testing_1 -c implement_1.c
-o implement_1.o
debug: entry point starting
debug: argv -> /tmp/usession-11/testing_1/testing_1
debug: argv -> -c "from richards import *;main(iterations=1)"
unrecognized option '-c "from richards import *;main(iterations=1)"'
usage: /tmp/usession-11/testing_1/testing_1 [options]
Try `/tmp/usession-11/testing_1/testing_1 -h` for more information.
implement_1.c: In function ‘pypy_g_get_len_of_range’:
implement_1.c:137183: internal compiler error: Floating point exception
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
For Debian GNU/Linux specific bug reporting instructions,
see <URL:file:///usr/share/doc/gcc-4.0/README.Bugs>.

[translation:ERROR] Error:
[translation:ERROR] Traceback (most recent call last):
[translation:ERROR] File "translate.py", line 349, in main
[translation:ERROR] drv.proceed(goals)
[translation:ERROR] File
"/home/drayko/Workfolder/Security/Python/cvs/pypy-dist/pypy/translator/driver.py",
line 508, in proceed
[translation:ERROR] return self._execute(goals, task_skip =
self._maybe_skip())
[translation:ERROR] File
"/home/drayko/Workfolder/Security/Python/cvs/pypy-dist/pypy/translator/tool/taskengine.py",
line 108, in _execute
[translation:ERROR] res = self._do(goal, taskcallable, *args, **kwds)
[translation:ERROR] File
"/home/drayko/Workfolder/Security/Python/cvs/pypy-dist/pypy/translator/driver.py",
line 197, in _do
[translation:ERROR] res = func()
[translation:ERROR] File
"/home/drayko/Workfolder/Security/Python/cvs/pypy-dist/pypy/translator/driver.py",
line 333, in task_compile_c
[translation:ERROR] cbuilder.compile()
[translation:ERROR] File
"/home/drayko/Workfolder/Security/Python/cvs/pypy-dist/pypy/translator/c/genc.py",
line 229, in compile
[translation:ERROR] compiler.build()
[translation:ERROR] File
"/home/drayko/Workfolder/Security/Python/cvs/pypy-dist/pypy/translator/tool/cbuild.py",
line 323, in build
[translation:ERROR] self._build()
[translation:ERROR] File
"/home/drayko/Workfolder/Security/Python/cvs/pypy-dist/pypy/translator/tool/cbuild.py",
line 353, in _build
[translation:ERROR] extra_preargs=self.compile_extra)
[translation:ERROR] File "/usr/lib/python2.4/distutils/ccompiler.py",
line 699, in compile
[translation:ERROR] self._compile(obj, src, ext, cc_args,
extra_postargs, pp_opts)
[translation:ERROR] File
"/usr/lib/python2.4/distutils/unixccompiler.py", line 115, in _compile
[translation:ERROR] raise CompileError, msg
[translation:ERROR] CompileError: command 'cc' failed with exit status 1
"""
If this really calls for a bugreport, it would be better if some one
more comfortable with the compiling process and the gcc toolset would do
it. Should I send some of the produced files?

Elmo



More information about the Pypy-dev mailing list