EPCCed / exaflow-exags-upc

UPC version of the ExaGS library developed by The ExaFLOW project which has received funding from the European Union Horizon 2020 Framework Programme (H2020) under grant agreement number 671571
http://www.exaflow-project.eu
Other
0 stars 0 forks source link

Fails to compile with Berkeley UPC #3

Open njansson opened 7 years ago

njansson commented 7 years ago

Fails due to unknown type T (which is properly defined in sort.upc)

upcc -DPACKAGE_NAME=\"ExaGS\" -DPACKAGE_TARNAME=\"exags\" -DPACKAGE_VERSION=\"0.0.1\" -DPACKAGE_STRING=\"ExaGS\ 0.0.1\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"exags\" -DVERSION=\"0.0.1\" -I.     -DPREFIX=jl_ -DNO_NEK_EXITT -DUSE_NAIVE_BLAS -c -o sort.o sort.upc
upcc: error compiling translated C code: 
In file included from sort.trans.c:25:0:
sort_imp.h:2:2: error: #error sort_imp.h not meant to be compiled by itself
 #error sort_imp.h not meant to be compiled by itself
  ^
sort_imp.h:27:18: error: unknown type name 'T'
 typedef struct { T v; uint i; } sort_data;

...and several more similar errors...
njansson commented 7 years ago

Inspecting the translator's upcc -trans output reveals that all definitions are lost.