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

Installation not working with Intel #29

Open
sdpb opened this issue Oct 7, 2021 · 1 comment
Open

Installation not working with Intel #29

sdpb opened this issue Oct 7, 2021 · 1 comment

Comments

@sdpb
Copy link

sdpb commented Oct 7, 2021

I'm trying to compile RASPA2 using Intel 20.0.4 in an HPC cluster, however, I get some errors when intel get statistics.c at line 3417.
It gets me something like this

...

/bin/sh ../libtool --tag=CC   --mode=compile icc -DPACKAGE_NAME=\"RASPA\" -DPACKAGE_TARNAME=\"raspa\" -DPACKAGE_VERSION=\"2.0\" -DPACKAGE_STRING=\"RASPA\ 2.0\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"raspa\" -DVERSION=\"2.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_MATH_H=1 -DHAVE_STRING_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -I.     -Wall -fast -MT statistics.lo -MD -MP -MF .deps/statistics.Tpo -c -o statistics.lo statistics.c
libtool: compile:  icc -DPACKAGE_NAME=\"RASPA\" -DPACKAGE_TARNAME=\"raspa\" -DPACKAGE_VERSION=\"2.0\" "-DPACKAGE_STRING=\"RASPA 2.0\"" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"raspa\" -DVERSION=\"2.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_MATH_H=1 -DHAVE_STRING_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -I. -Wall -fast -MT statistics.lo -MD -MP -MF .deps/statistics.Tpo -c statistics.c  -fPIC -DPIC -o .libs/statistics.o
statistics.c(3417): error: expected an expression
    for(int i=0;i<NR_BLOCKS;i++)
        ^

statistics.c(3417): error: identifier "i" is undefined
    for(int i=0;i<NR_BLOCKS;i++)
                ^

statistics.c(3442): error: expected an expression
        for(int i=0;i<NR_BLOCKS;i++)
            ^

statistics.c(3468): error: expected an expression
        for(int i=0;i<NR_BLOCKS;i++)

...

I'm using the instructions provided in README.md in a script to configure the makefile as follows:

#!/bin/sh

module load intel/20.0.4 qt/4.8.7_intel-2017_update-1

rm -rf autom4te.cache
mkdir m4
aclocal
autoreconf -i
automake --add-missing
autoconf

rm config.cache
export CFLAGS="-Wall -fast"
export CC="icc"
./configure --prefix=${HOME}/iRASPA2/icc

Complete log file: make_RASPA2.log

@sdpb
Copy link
Author

sdpb commented Oct 11, 2021

About the problem, it was solved by changing the Intel One API version and adding -std=c99 in the compiler options as follows in the script:

#!/bin/sh

module load intel/19.0.4 qt/4.8.7_intel-2017_update-1

...

export CFLAGS="-std=c99 -Wall -fast"

...

However, it triggers another problem related to the linker: ld: attempted static link of dynamic object './.libs/libraspa2.so'

...

mv -f .deps/main.Tpo .deps/main.Po
/bin/sh ../libtool --tag=CC   --mode=link icc  -std=c99 -Wall -fast   -o simulate main.o libraspa2.la -lblas
libtool: link: icc -std=c99 -Wall -fast -o .libs/simulate main.o  ./.libs/libraspa2.so -lm -lblas -Wl,-rpath -Wl,/home/sdpalaciob/iRASPA2/icc/lib
ld: attempted static link of dynamic object `./.libs/libraspa2.so'
make[1]: *** [simulate] Error 1

...

Complete log file: second_make_RASPA2.log

@sdpb sdpb changed the title Installation not working with Intel 20.0.4 Installation not working with Intel Oct 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant