[mpich-discuss] error: make: ** [all-redirect] Erro 2

renato at dokfile.com renato at dokfile.com
Sat Nov 5 11:58:49 CDT 2011


Hi,

I have problems. Can you helpe-me!

I did one simple C++ program, and compile and link w/G++, see.

------------------------------------------------------------------------------------------------------------------------------------------
-bash-3.00# more main.cpp
#include <iostream>

int main()
{
 std::cout << "Test" << std::endl;

 return 0;
}


-bash-3.00# g++ -g main.cpp -o main
-bash-3.00# ./main
Test
-bash-3.00#
------------------------------------------------------------------------------------------------------------------------------------------

Then I did 
-bash-3.00# make distclean
-bash-3.00# ./configure CC=gcc CXX=g++ --disable-f77 --disable-fc --prefix=/MPICH/mpich2-install/ 2>&1 | tee c.txt
...
config.status: executing default-3 commands
Configuration completed.
-bash-3.00# make 2>&1 | tee m.txt
...
make: ** [all-redirect] Erro 2
-bash-3.00#

 In configuration pahse all appers to be Ok now, but make return error...

Any Idea?

Thaks !!!!




-----Original Message-----
From: Anthony Chan [mailto:chan at mcs.anl.gov]
Sent: Tuesday, November 1, 2011 02:00 PM
To: mpich-discuss at mcs.anl.gov
Subject: Re: [mpich-discuss] Fwd: configure: error: unable to determine matching C type for C++ bool

Use g++ to compile/link a simple program. Make sure it runs.If you still get the linker error of libstdc++.so.6, trysetting LD_LIBRARY_PATH to point to /usr/sfw/lib. If that works,set LD_LIBRARY_PATH in your environment and rerun configure again.Since you are doing an inpath build, be sure to do "make distclean"before runing configure again.A.Chan----- Original Message -----> Hi,> My libstdc++.so.6 is in /usr/sfw/lib> > -bash-3.00# ls /usr/sfw/lib/libstdc++.so*> /usr/sfw/lib/libstdc++.so /usr/sfw/lib/libstdc++.so.6.0.3> /usr/sfw/lib/libstdc++.so.6> -bash-3.00#> > How to I tell this to MPI configurator? Have any way?> > Thanks> > > -----Original Message-----> From: Anthony Chan [mailto:chan at mcs.anl.gov]> Sent: Tuesday, November 1, 2011 12:42 PM> To: mpich-discuss at mcs.anl.gov> Subject: Re: [mpich-discuss] Fwd: configure: error: unable to> determine matching C type for C++ bool> > Your g++ does not work either, same error as before. It is> possibleyour c++ is just g++. If you don't need C++ support, you could> disableit by adding --disable-cxx to your configure command. If you do> need C++support, you need to find out why libstdc++.so.6 isn't> there...configure:40496: g++ -o conftest -O2> -I/MPICH/Source/mpich2-1.4.1p1/src/mpl/include> -I/MPICH/Source/mpich2-1.4.1p1/src/mpl/include> -I/MPICH/Source/mpich2-1.4.1p1/src/openpa/src> -I/MPICH/Source/mpich2-1.4.1p1/src/openpa/src conftest.cpp> >&5configure:40500: $? = 0configure:40506: ./conftestld.so.1:> conftest: fatal: libstdc++.so.6: open failed: No such file or> directory./configure: line 40508: 2921 Killed> ./conftest$ac_exeextconfigure:40510: $? = 137configure: program exited> with status 137A.Chan----- Original Message -----> Sorry again,> >> Follows...> > -----Original Message-----> From: Anthony Chan> [mailto:chan at mcs.anl.gov]> Sent: Tuesday, November 1, 2011 11:59 AM>> To: mpich-discuss at mcs.anl.gov> Subject: Re: [mpich-discuss] Fwd:> configure: error: unable to> determine matching C type for C++ bool> >> ----- Original Message -----> > -bash-3.00# ./configure CC=gcc> CXX=g++> --disable-f77 --disable-fc> --prefix=/MPICH/mpich2-install/> 2>&1 | tee> c.txt> > This is correct?> > Dont work :0(You need to send> us your> c.txt and config.log to show what went>> wrong.A.Chan_______________________________________________mpich-discuss>> mailing list mpich-discuss at mcs.anl.govTo manage subscription options>> or>> unsubscribe:https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss>> > _______________________________________________> mpich-discuss> mailing list mpich-discuss at mcs.anl.gov> To manage subscription options> or unsubscribe:>> https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss_______________________________________________mpich-discuss> mailing list mpich-discuss at mcs.anl.govTo manage subscription options> or> unsubscribe:https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss> > _______________________________________________> mpich-discuss mailing list mpich-discuss at mcs.anl.gov> To manage subscription options or unsubscribe:> https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss_______________________________________________mpich-discuss mailing list mpich-discuss at mcs.anl.govTo manage subscription options or unsubscribe:https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/mpich-discuss/attachments/20111105/d880f55c/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: c.txt
Type: application/octet-stream
Size: 125909 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/mpich-discuss/attachments/20111105/d880f55c/attachment-0004.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: m.txt
Type: application/octet-stream
Size: 32524 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/mpich-discuss/attachments/20111105/d880f55c/attachment-0005.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: config.log
Type: application/octet-stream
Size: 319318 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/mpich-discuss/attachments/20111105/d880f55c/attachment-0006.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: config.log
Type: application/octet-stream
Size: 53318 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/mpich-discuss/attachments/20111105/d880f55c/attachment-0007.obj>


More information about the mpich-discuss mailing list