On 2012-08-20 AM 6:44, Jiří Paleček wrote:
Hello,
I tried to run "make check-c++" from the top directory of the source
code. During the run, all of the libgomp tests run by it failed. From
the log file, you can see that the gcc from the system (rather than the
gcc currently built) was run:
Executing on host: gcc
-B/mnt/extras/src/gcc2/i686-pc-linux-gnu/libgomp/ -B/mnt/extras/src ...
...
gcc: error: unrecognized command line option '-fno-diagnostics-show-caret'
Other tests (like libstdc++) correctly use the currently built gcc:
Executing on host: /mnt/extras/src/gcc2/host-i686-pc-linux-gnu/gcc/g++
-shared-libgcc ...
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Any ideas how this could be fixed?
Regards
Jiri Palecek
You need to modify Makefile to export CC,CXX variables so that dejagnu
can execute built compiler.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51498 has similar workaround.
--
Regards.