Intel® C++ Compiler
Community support and assistance for creating C++ code that runs on platforms based on Intel® processors.
7956 Discussions

error: type name is not allowed

samfux84
New Contributor I
2,931 Views

Hi,

 

I am trying to build SuiteSparse 5.10.1 with the "Intel parallel studio XE 2020 R0". The code compiles fine with GCC 6.3.0 and GCC 8.2.0 but when trying to compile it with the Intel compiler, then I get a lot of error messages:

 

/cluster/apps/spack/lib/spack/env/intel/icc -O3 -fPIC -fno-common -fexceptions -O3 -fexceptions -fPIC -I../Include -I../../COLAMD/Include -I../../AMD/Include -I../../SuiteSparse_config -c ../Source/slip_reach.c
../Source/slip_create_mpq_array.c(34): error: type name is not allowed
for (int64_t i = 0; i < n; i++)
^

../Source/slip_create_mpq_array.c(34): error: expected a ";"
for (int64_t i = 0; i < n; i++)
^

../Source/slip_create_mpq_array.c(34): error: identifier "i" is undefined
for (int64_t i = 0; i < n; i++)
^

../Source/slip_create_mpq_array.c(40): error: type name is not allowed
for (int64_t j = 0; j < n; j++)
^

../Source/slip_create_mpq_array.c(40): error: expected a ";"
for (int64_t j = 0; j < n; j++)
^

../Source/slip_create_mpq_array.c(40): error: identifier "j" is undefined
for (int64_t j = 0; j < n; j++)
^

../Source/slip_create_mpz_array.c(34): error: type name is not allowed
for (int64_t i = 0; i < n; i++)
^

../Source/slip_create_mpz_array.c(34): error: expected a ";"
for (int64_t i = 0; i < n; i++)
^

../Source/slip_create_mpz_array.c(34): error: identifier "i" is undefined
for (int64_t i = 0; i < n; i++)
^

../Source/slip_create_mpz_array.c(40): error: type name is not allowed
for (int64_t j = 0; j < n; j++)
^

../Source/slip_create_mpz_array.c(40): error: expected a ";"
for (int64_t j = 0; j < n; j++)
^

../Source/slip_create_mpz_array.c(40): error: identifier "j" is undefined
for (int64_t j = 0; j < n; j++)
^

../Source/slip_cast_array.c(93): error: type name is not allowed
for (int64_t k = 0 ; k < n ; k++)
^

../Source/slip_cast_array.c(93): error: expected a ";"
for (int64_t k = 0 ; k < n ; k++)
^

../Source/slip_cast_array.c(93): error: identifier "k" is undefined
for (int64_t k = 0 ; k < n ; k++)
^

../Source/slip_cast_array.c(120): error: type name is not allowed
for (int64_t k = 0 ; k < n ; k++)
^

../Source/slip_cast_array.c(120): error: expected a ";"

 

Any help is appreciated.

 

Thank you and best regards

 

Sam

0 Kudos
1 Solution
samfux84
New Contributor I
2,780 Views

As SuiteSparse 5.1.0 cannot be compiled with Intel 19.1.0, the solution for me was to switch to GCC, where the installation worked with versions 4.8.5, 6.3.0 and 8.2.0.

 

Please feel free to close this ticket as I could find a solution.

 

Best regards

 

Sam

View solution in original post

0 Kudos
6 Replies
VidyalathaB_Intel
Moderator
2,907 Views

Hi,

Thanks for reaching out to us.

>> when trying to compile it with the Intel compiler, then I get a lot of error messages:

We tried to compile the Suitesparse 5.10.1 with intel compiler(icc 2021.3.0) which comes with latest oneAPI toolkits and the compilation is successful.

>> I am trying to build SuiteSparse 5.10.1 with the "Intel parallel studio XE 2020 R0".

The Intel® oneAPI Toolkits are the next-generation software development tools from Intel, following and replacing the Intel® Parallel Studio XE toolkits.

https://software.intel.com/content/www/us/en/develop/tools/oneapi/commercial-base-hpc.html#gs.516ie0

So we suggest you to try the same by downloading the latest oneAPI toolkits 

Here are the links from where you can download the required toolkits

https://software.intel.com/content/www/us/en/develop/tools/oneapi/base-toolkit/download.html

https://software.intel.com/content/www/us/en/develop/tools/oneapi/hpc-toolkit/download.html

Kindly refer the below links for more details

https://software.intel.com/content/www/us/en/develop/documentation/get-started-with-intel-oneapi-base-linux/top.html

https://software.intel.com/content/www/us/en/develop/documentation/get-started-with-intel-oneapi-hpc-linux/top.html

Please upgrade to the latest (2021.3.0) version of oneAPI toolkits and do let us know your experience.

Thanks & Regards,

Vidya

 

0 Kudos
samfux84
New Contributor I
2,885 Views

Dear Vidya,

 

Thank you for your reply.

 

I am compiling software for an HPC cluster. Software is provided for different toolchains. I spent quite some time setting up 300 software packages with my Intel 19.1.0 toolchain (https://scicomp.ethz.ch/wiki/Euler_applications_and_libraries#Intel_19.1.0).  Therefore I would be interested in fixing the issue with SuiteSparse 5.1.0 when using Intel 19.1.0. Is there any possibility to get help with this?

 

Switching to a new Intel version would mean that I have again to start from scratch and reinstall all the software packages again, which is not feasible for me short-term.

 

Best regards

 

Sam

0 Kudos
VidyalathaB_Intel
Moderator
2,838 Views

Hi,

>> Therefore I would be interested in fixing the issue with SuiteSparse 5.1.0 when using Intel 19.1.0. Is there any possibility to get help with this?

 The kind of errors that you are getting while compiling with intel 19.1.0 , was fixed in update 2 release of intel compiler 19.1, so you need to update the intel compiler for successful compilation.

Here is a similar query and after updating it is resolved.

https://community.intel.com/t5/Intel-C-Compiler/quot-Error-type-name-is-not-allowed-quot-after-updating-Visual/m-p/1199701

 

Regards,

Vidya.

 

 

0 Kudos
VidyalathaB_Intel
Moderator
2,786 Views

Hi,

Reminder:

Could you please confirm if your issue is resolved ? so that we can close this thread from our end

Regards,

Vidya.


0 Kudos
samfux84
New Contributor I
2,781 Views

As SuiteSparse 5.1.0 cannot be compiled with Intel 19.1.0, the solution for me was to switch to GCC, where the installation worked with versions 4.8.5, 6.3.0 and 8.2.0.

 

Please feel free to close this ticket as I could find a solution.

 

Best regards

 

Sam

0 Kudos
VidyalathaB_Intel
Moderator
2,712 Views

Hi,

Thanks for the confirmation.

We will no longer monitor this thread, If you need any additional information, please submit a new question.

Regards,

Vidya.


0 Kudos
Reply