- changed milestone to 2017.09.30 release
- changed component to Examples
-
assigned issue to
Makefile for programming guide tests is broken
Fails in the link step
Comments (15)
-
reporter -
This issue report lacks sufficient information to reproduce the problem.
Please attach a log of running the current UPCXX install command, so that we can see all the platform, compiler and version information it outputs.
-
- attached upcxx-sierra.txt
Here is a log of me installing and building the PG examples in the current develop head (3f95d6f) using the default /usr/bin/g++ compiler on the Sierra OS X 10.12.6 system in our machine room, which is running Xcode 8.3.3
-
reporter - attached typescript
Log has been added per Dan's request: typescript
-
You need to set CXX='c++ -std=c++11' when running the make command for the prog-guide, at least until we teach upcxx-meta to provide $CXX (which we really should).
baden@Scotts-iMac:~/upcxx/example/prog-guide?105> make c++ compute-pi.cpp -DUPCXX_BACKEND=gasnet1_seq -D_GNU_SOURCE=1 -DGASNET_SEQ -I/Users/baden/bin/upcxx/include -O3 --param max-inline-insns-single=35000 --param inline-unit-growth=10000 --param large-function-growth=200000 -Winline -Wno-unused -Wno-unused-parameter -Wno-address -Wl,-multiply_defined,suppress -Wl,-no_pie -L/Users/baden/bin/upcxx/lib -lupcxx -lgasnet-smp-seq -L/usr/local/lib/gcc/x86_64-apple-darwin15.0.0/5.2.0 -lgcc -o compute-pi In file included from compute-pi.cpp:4: In file included from /Users/baden/bin/upcxx/include/upcxx/upcxx.hpp:4: In file included from /Users/baden/bin/upcxx/include/upcxx/allocate.hpp:8: In file included from /Users/baden/bin/upcxx/include/upcxx/backend.hpp:8: In file included from /Users/baden/bin/upcxx/include/upcxx/future.hpp:4: In file included from /Users/baden/bin/upcxx/include/upcxx/future/core.hpp:5: ?[1m/Users/baden/bin/upcxx/include/upcxx/utility.hpp:21:35: warning: variadic templates are a C++11 extension [-Wc++11-extensions] template<typename Ret, typename ...Arg>
As a side note, the /usr/local/bin/g++ you are using is rather old (5.2.0) and has some known bugs on Darwin (all the __textcoal_nt crap). It's also a different compiler family from your MPI in /usr/local/Cellar/open-mpi/2.1.1/bin/mpicc, which is clang-based (this can cause subtle interop-problems, and definitely affects relative optimization performance).
It looks like you have clang 8.1.0 installed (probably in /usr/bin/ from Xcode 8.3). I'd recommend setting your $PATH or $CC/$CXX to use that compiler instead.
-
reporter That broke my current Makefile I comment out the line that set CXX The error is above as Log2.txt
-
reporter - attached Log2.txt
-
reporter The build for the programming examples fails as well Attached Log3.txt
-
reporter - attached Log3.txt
-
You need to use the same C/C++ compiler for both installing UPCXX and building applications. I believe you are mixing them, which will very likely break.
Please start over from scratch with CXX=/usr/bin/g++ CC=/usr/bin/gcc (which is actually clang).
-
reporter Will this work if I am using the C-shell and I specify the environment variables using the C-shell syntax?
-
Yes, the equivalent setenv commands will also work.
You can confirm it's working by looking at the build lines to see that everything is invoking the correct compiler.
-
reporter OK, I have no build problems now that the compiler business has been cleared up.
-
- changed status to resolved
-
reporter It has failed again. I wiped my local repo clean, and rebuilt. I've set the compiler variables to use Clang.
- Log in to comment