Hi George,

I'm not sure, whether you are able to see my reply of the ticket 1214...

.......
For building VT on cross-platforms it's possible to build the compiler wrappers (vtcc, vtcxx, vtf77, and vtf90) and the OPARI binary for the front-end. Therefor the user should set the variable CXX_FOR_BUILD to the 'native' compiler on the front-end. That means that the compiler wrappers and OPARI will be built with the CXX_FOR_BUILD instead of the cross-compiler (CXX). Futhermore, the user can set compiler and linker flags for the front-end compiler (e.g. CXXFLAGS_FOR_BUILD). The Makefile.am's for the compiler wrappers (tools/compwrap) and OPARI (tools/opari) overwrite the user-variables (e.g. CXXFLAGS) by the *_FOR_BUILD stuff. Unfortunately, the variables AM_CXXFLAGS, AM_CPPFLAGS, and AM_LDFLAGS cannot be used for do that, because these variables don't overwrite the user-variables but they will be append. This could means that unsupported compiler flags will be passed to the front-end compiler.

Example: configure CXX_FOR_BUILD=g++ CXXFLAGS_FOR_BUILD=-m64 CC=cross-xlc CXX=cross-xlC CFLAGS=-q64 CXXFLAGS=-q64 ...

In this case the compiler flag -q64 is not supported by g++, so CXXFLAGS_FOR_BUILD should be used instead of CXXFLAGS.

So, please ignore the warnings from Automake... Currently, I see no better solution ;-)
.......

Regards,
Matthias


On Di, 2008-02-12 at 11:27 -0500, George Bosilca wrote:
I keep getting some warnings when I compile with gcc-4.2 on MAC OS X.

tools/compwrap/Makefile.am:38: `CXXFLAGS' is a user variable, you  
should not override it;
tools/compwrap/Makefile.am:38: use `AM_CXXFLAGS' instead.
tools/compwrap/Makefile.am:40: `CPPFLAGS' is a user variable, you  
should not override it;
tools/compwrap/Makefile.am:40: use `AM_CPPFLAGS' instead.
tools/compwrap/Makefile.am:41: `LDFLAGS' is a user variable, you  
should not override it;
tools/compwrap/Makefile.am:41: use `AM_LDFLAGS' instead.
tools/opari/tool/Makefile.am:8: `CXXFLAGS' is a user variable, you  
should not override it;
tools/opari/tool/Makefile.am:8: use `AM_CXXFLAGS' instead.
tools/opari/tool/Makefile.am:10: `CPPFLAGS' is a user variable, you  
should not override it;
tools/opari/tool/Makefile.am:10: use `AM_CPPFLAGS' instead.
tools/opari/tool/Makefile.am:11: `LDFLAGS' is a user variable, you  
should not override it;
tools/opari/tool/Makefile.am:11: use `AM_LDFLAGS' instead.

   Thanks,
     george.

_______________________________________________
devel mailing list
devel@open-mpi.org
http://www.open-mpi.org/mailman/listinfo.cgi/devel
--
Matthias Jurenz,
Center for Information Services and
High Performance Computing (ZIH), TU Dresden,
Willersbau A106, Zellescher Weg 12, 01062 Dresden
phone +49-351-463-31945, fax +49-351-463-37773