hello. I was just trying to compile wrf using Intel compiler. Everything went well until I got to Jasper. When compiling, it shows me this error:
Making all in src
make[1]: Entering directory '/home/rhyme/Documents/LIBRARIES/jasper-1.900.29/src'
Making all in libjasper
make[2]: Entering directory '/home/rhyme/Documents/LIBRARIES/jasper-1.900.29/src/libjasper'
Making all in include
make[3]: Entering directory '/home/rhyme/Documents/LIBRARIES/jasper-1.900.29/src/libjasper/include'
Making all in jasper
make[4]: Entering directory '/home/rhyme/Documents/LIBRARIES/jasper-1.900.29/src/libjasper/include/jasper'
make all-am
make[5]: Entering directory '/home/rhyme/Documents/LIBRARIES/jasper-1.900.29/src/libjasper/include/jasper'
make[5]: Leaving directory '/home/rhyme/Documents/LIBRARIES/jasper-1.900.29/src/libjasper/include/jasper'
make[4]: Leaving directory '/home/rhyme/Documents/LIBRARIES/jasper-1.900.29/src/libjasper/include/jasper'
make[4]: Entering directory '/home/rhyme/Documents/LIBRARIES/jasper-1.900.29/src/libjasper/include'
make[4]: Nothing to be done for 'all-am'.
make[4]: Leaving directory '/home/rhyme/Documents/LIBRARIES/jasper-1.900.29/src/libjasper/include'
make[3]: Leaving directory '/home/rhyme/Documents/LIBRARIES/jasper-1.900.29/src/libjasper/include'
Making all in base
make[3]: Entering directory '/home/rhyme/Documents/LIBRARIES/jasper-1.900.29/src/libjasper/base'
/bin/bash ../../../libtool --tag=CC --mode=compile icx -DHAVE_CONFIG_H -I. -I../../../src/libjasper/include/jasper -I../../../src/libjasper/include -I../../../src/libjasper/include -I/home/rhyme/Documents/LIBRARIES/include -I/home/rhyme/Documents/LIBRARIES/NETCDF/include -I/home/rhyme/Documents/LIBRARIES/grib2/include -O2 -std=c11 -pedantic -Wall -Wno-unused -pedantic-errors -MT jas_cm.lo -MD -MP -MF .deps/jas_cm.Tpo -c -o jas_cm.lo jas_cm.c
libtool: compile: icx -DHAVE_CONFIG_H -I. -I../../../src/libjasper/include/jasper -I../../../src/libjasper/include -I../../../src/libjasper/include -I/home/rhyme/Documents/LIBRARIES/include -I/home/rhyme/Documents/LIBRARIES/NETCDF/include -I/home/rhyme/Documents/LIBRARIES/grib2/include -O2 -std=c11 -pedantic -Wall -Wno-unused -pedantic-errors -MT jas_cm.lo -MD -MP -MF .deps/jas_cm.Tpo -c jas_cm.c -fPIC -DPIC -o .libs/jas_cm.o
In file included from jas_cm.c:77:
../../../src/libjasper/include/jasper/jas_math.h:143:15: warning: shifting a negative signed value is undefined [-Wshift-negative-value]
143 | assert(((-1) << 1) == -2);
| ~~~~ ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
109 | ((expr) \
| ^~~~
In file included from jas_cm.c:77:
../../../src/libjasper/include/jasper/jas_math.h:169:39: warning: shifting a negative signed value is undefined [-Wshift-negative-value]
169 | assert(((JAS_CAST(int_fast32_t, -1)) << 1) == JAS_CAST(int_fast32_t, -2));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
109 | ((expr) \
| ^~~~
jas_cm.c:175:43: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
175 | static jas_cmprof_t *jas_cmprof_createsycc()
| ^
| void
jas_cm.c:312:39: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
312 | static jas_cmprof_t *jas_cmprof_create()
| ^
| void
jas_cm.c:594:49: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
594 | static jas_cmpxformseq_t *jas_cmpxformseq_create()
| ^
| void
jas_cm.c:728:44: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
728 | static jas_cmpxform_t *jas_cmpxform_create0()
| ^
| void
jas_cm.c:757:50: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
757 | static jas_cmpxform_t *jas_cmpxform_createshapmat()
| ^
| void
2 warnings and 5 errors generated.
make[3]: *** [Makefile:473: jas_cm.lo] Error 1
make[3]: Leaving directory '/home/rhyme/Documents/LIBRARIES/jasper-1.900.29/src/libjasper/base'
make[2]: *** [Makefile:588: all-recursive] Error 1
make[2]: Leaving directory '/home/rhyme/Documents/LIBRARIES/jasper-1.900.29/src/libjasper'
make[1]: *** [Makefile:426: all-recursive] Error 1
make[1]: Leaving directory '/home/rhyme/Documents/LIBRARIES/jasper-1.900.29/src'
make: *** [Makefile:469: all-recursive] Error 1
i have also attatched the config.log file below.
how should i overcome this?
Making all in src
make[1]: Entering directory '/home/rhyme/Documents/LIBRARIES/jasper-1.900.29/src'
Making all in libjasper
make[2]: Entering directory '/home/rhyme/Documents/LIBRARIES/jasper-1.900.29/src/libjasper'
Making all in include
make[3]: Entering directory '/home/rhyme/Documents/LIBRARIES/jasper-1.900.29/src/libjasper/include'
Making all in jasper
make[4]: Entering directory '/home/rhyme/Documents/LIBRARIES/jasper-1.900.29/src/libjasper/include/jasper'
make all-am
make[5]: Entering directory '/home/rhyme/Documents/LIBRARIES/jasper-1.900.29/src/libjasper/include/jasper'
make[5]: Leaving directory '/home/rhyme/Documents/LIBRARIES/jasper-1.900.29/src/libjasper/include/jasper'
make[4]: Leaving directory '/home/rhyme/Documents/LIBRARIES/jasper-1.900.29/src/libjasper/include/jasper'
make[4]: Entering directory '/home/rhyme/Documents/LIBRARIES/jasper-1.900.29/src/libjasper/include'
make[4]: Nothing to be done for 'all-am'.
make[4]: Leaving directory '/home/rhyme/Documents/LIBRARIES/jasper-1.900.29/src/libjasper/include'
make[3]: Leaving directory '/home/rhyme/Documents/LIBRARIES/jasper-1.900.29/src/libjasper/include'
Making all in base
make[3]: Entering directory '/home/rhyme/Documents/LIBRARIES/jasper-1.900.29/src/libjasper/base'
/bin/bash ../../../libtool --tag=CC --mode=compile icx -DHAVE_CONFIG_H -I. -I../../../src/libjasper/include/jasper -I../../../src/libjasper/include -I../../../src/libjasper/include -I/home/rhyme/Documents/LIBRARIES/include -I/home/rhyme/Documents/LIBRARIES/NETCDF/include -I/home/rhyme/Documents/LIBRARIES/grib2/include -O2 -std=c11 -pedantic -Wall -Wno-unused -pedantic-errors -MT jas_cm.lo -MD -MP -MF .deps/jas_cm.Tpo -c -o jas_cm.lo jas_cm.c
libtool: compile: icx -DHAVE_CONFIG_H -I. -I../../../src/libjasper/include/jasper -I../../../src/libjasper/include -I../../../src/libjasper/include -I/home/rhyme/Documents/LIBRARIES/include -I/home/rhyme/Documents/LIBRARIES/NETCDF/include -I/home/rhyme/Documents/LIBRARIES/grib2/include -O2 -std=c11 -pedantic -Wall -Wno-unused -pedantic-errors -MT jas_cm.lo -MD -MP -MF .deps/jas_cm.Tpo -c jas_cm.c -fPIC -DPIC -o .libs/jas_cm.o
In file included from jas_cm.c:77:
../../../src/libjasper/include/jasper/jas_math.h:143:15: warning: shifting a negative signed value is undefined [-Wshift-negative-value]
143 | assert(((-1) << 1) == -2);
| ~~~~ ^
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
109 | ((expr) \
| ^~~~
In file included from jas_cm.c:77:
../../../src/libjasper/include/jasper/jas_math.h:169:39: warning: shifting a negative signed value is undefined [-Wshift-negative-value]
169 | assert(((JAS_CAST(int_fast32_t, -1)) << 1) == JAS_CAST(int_fast32_t, -2));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/assert.h:109:7: note: expanded from macro 'assert'
109 | ((expr) \
| ^~~~
jas_cm.c:175:43: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
175 | static jas_cmprof_t *jas_cmprof_createsycc()
| ^
| void
jas_cm.c:312:39: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
312 | static jas_cmprof_t *jas_cmprof_create()
| ^
| void
jas_cm.c:594:49: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
594 | static jas_cmpxformseq_t *jas_cmpxformseq_create()
| ^
| void
jas_cm.c:728:44: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
728 | static jas_cmpxform_t *jas_cmpxform_create0()
| ^
| void
jas_cm.c:757:50: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
757 | static jas_cmpxform_t *jas_cmpxform_createshapmat()
| ^
| void
2 warnings and 5 errors generated.
make[3]: *** [Makefile:473: jas_cm.lo] Error 1
make[3]: Leaving directory '/home/rhyme/Documents/LIBRARIES/jasper-1.900.29/src/libjasper/base'
make[2]: *** [Makefile:588: all-recursive] Error 1
make[2]: Leaving directory '/home/rhyme/Documents/LIBRARIES/jasper-1.900.29/src/libjasper'
make[1]: *** [Makefile:426: all-recursive] Error 1
make[1]: Leaving directory '/home/rhyme/Documents/LIBRARIES/jasper-1.900.29/src'
make: *** [Makefile:469: all-recursive] Error 1
i have also attatched the config.log file below.
how should i overcome this?