Skip to content

mr3smp fails to compile with clang #1

@GoogleCodeExporter

Description

@GoogleCodeExporter
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 nikla...@googlemail.com on 15 Jul 2013 at 3:44

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions