Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mr3smp fails to compile with clang #1

Open
GoogleCodeExporter opened this issue Nov 18, 2015 · 0 comments
Open

mr3smp fails to compile with clang #1

GoogleCodeExporter opened this issue Nov 18, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. download mp3smp-version-1.2
2. edit make.inc (change compiler from gcc to clang)
3. execute make

What I get:

niklas@niklas-desktop:~/hpmc-final/mr3smp-version-1.2$ make
cc -O3 -g -pthread  -I./INCLUDE -DNDEBUG   -c -o SRC/counter.o SRC/counter.c
cc -O3 -g -pthread  -I./INCLUDE -DNDEBUG   -c -o SRC/dense.o SRC/dense.c
cc -O3 -g -pthread  -I./INCLUDE -DNDEBUG   -c -o SRC/mrrr.o SRC/mrrr.c
cc -O3 -g -pthread  -I./INCLUDE -DNDEBUG   -c -o SRC/mrrr_val.o SRC/mrrr_val.c
clang: warning: argument unused during compilation: '-I ./INCLUDE'
cc -O3 -g -pthread  -I./INCLUDE -DNDEBUG   -c -o SRC/mrrr_vec.o SRC/mrrr_vec.c
clang: warning: argument unused during compilation: '-I ./INCLUDE'
cc -O3 -g -pthread  -I./INCLUDE -DNDEBUG   -c -o SRC/process_cluster.o 
SRC/process_cluster.c
clang: warning: argument unused during compilation: '-I ./INCLUDE'
cc -O3 -g -pthread  -I./INCLUDE -DNDEBUG   -c -o SRC/process_refinement.o 
SRC/process_refinement.c
clang: warning: argument unused during compilation: '-I ./INCLUDE'
cc -O3 -g -pthread  -I./INCLUDE -DNDEBUG   -c -o SRC/process_singleton.o 
SRC/process_singleton.c
clang: warning: argument unused during compilation: '-I ./INCLUDE'
cc -O3 -g -pthread  -I./INCLUDE -DNDEBUG   -c -o SRC/queue.o SRC/queue.c
clang: warning: argument unused during compilation: '-I ./INCLUDE'
cc -O3 -g -pthread  -I./INCLUDE -DNDEBUG   -c -o SRC/rrr.o SRC/rrr.c
clang: warning: argument unused during compilation: '-I ./INCLUDE'
In file included from SRC/process_singleton.c:1:
SRC/process_singleton.c:61:53: error: restrict requires a pointer or reference 
('double' is invalid)
static inline void mrrr_dscal(int*, double*, double restrict*, int *);
                                             ~~~~~~~^~~~~~~~
1 error generated.
make: *** [SRC/process_singleton.o] Fehler 1
make: *** Warte auf noch nicht beendete Prozesse...
clang: warning: argument unused during compilation: '-I ./INCLUDE'
clang: warning: argument unused during compilation: '-I ./INCLUDE'
clang: warning: argument unused during compilation: '-I ./INCLUDE'
niklas@niklas-desktop:~/hpmc-final/mr3smp-version-1.2$ vim make.inc 


What is the expected output?

Something along the lines of what I get with gcc, or in other words a working 
program.
niklas@niklas-desktop:~/hpmc-final/mr3smp-version-1.2$ make
gcc -O3 -g -pthread  -I./INCLUDE -DNDEBUG   -c -o SRC/process_singleton.o 
SRC/process_singleton.c
gcc -O3 -g -pthread  -I./INCLUDE -DNDEBUG   -c -o SRC/tasks.o SRC/tasks.c
/usr/bin/ar  rcs ./LIB/libmrrr.a ./SRC/counter.o ./SRC/dense.o ./SRC/mrrr.o 
./SRC/mrrr_val.o ./SRC/mrrr_vec.o ./SRC/process_cluster.o 
./SRC/process_refinement.o ./SRC/process_singleton.o ./SRC/queue.o ./SRC/rrr.o 
./SRC/tasks.o 


What version of the product are you using? On what operating system?
1.2 (the non-pure-c version, but this also appears with the c version). OS: 
ubuntu

Original issue reported on code.google.com by [email protected] on 15 Jul 2013 at 3:44

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant