Re: Problem running the libgomp testsuite

2012-08-22 Thread Hans-Peter Nilsson
On Thu, 23 Aug 2012, jojelino wrote:
> 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.

No, that's wrong.  "make check-c++" should just work out of the
box and does for most people, specifically native builds.

> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51498 has similar workaround.

That PR lacks analysis and comments with requests are
unanswered, though it's suggesting the same thing somewhat out
of the blue.  If you're the author of that report, please fill
in details asked for in the comments.  I'm guessing it's rather
an issue with the canadian cygwin/mingw32 environment (in
contrast with the native GNU/Linux in this message).

brgds, H-P

Re: Problem running the libgomp testsuite

2012-08-22 Thread jojelino

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.



Re: Problem running the libgomp testsuite

2012-08-20 Thread Dodji Seketeli
Hello Jiří,

I think this question should be directed at gcc-h...@gcc.gnu.org.
Please send any response to this email there.

Jiří Paleček  a écrit:

> I tried to run "make check-c++" from the top directory of the source
> code.

Quoted from http://gcc.gnu.org/install/configure.html:

we highly recommend that GCC be built into a separate directory from
the sources which does not reside within the source tree.

> 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?

I guess you should try to use a build directory separate from the
sources and follow closely the instructions on the link above.

Cheers.

-- 
Dodji


Problem running the libgomp testsuite

2012-08-19 Thread Jiří Paleček

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