CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   SU2 Installation (https://www.cfd-online.com/Forums/su2-installation/)
-   -   Issue when I try to switch form branch master to develop (https://www.cfd-online.com/Forums/su2-installation/243742-issue-when-i-try-switch-form-branch-master-develop.html)

cristopher_morales July 4, 2022 06:47

Issue when I try to switch form branch master to develop
 
Dear all,

I hope you are doing well. I have the following issue when I compile SU2 in the cluster. When I compile SU2 in the branch master , it compiles successfully. However, when I try to compile in the branch develop , it shows me this error:

ninja: Entering directory `build'
[1/1008] Compiling C object externals/cgns/hdf5/H5detect.p/H5detect.c.o
FAILED: externals/cgns/hdf5/H5detect.p/H5detect.c.o
cc -Iexternals/cgns/hdf5/H5detect.p -Iexternals/cgns/hdf5 -I../externals/cgns/hdf5 -I/cm/shared/apps/openmpi/gcc/64/1.10.7/include -Wall -Winvalid-pch -Wextra -std=c99 -O3 -pthread -Wno-unused-result -Wno-unused-parameter -Wno-unused-variable -Wno-unused-but-set-variable -Wno-sign-compare -Wno-stringop-overflow -Wno-discarded-qualifiers -Wno-error=maybe-uninitialized -Wno-error=unused-function -Wno-error=unused-label -Wno-pedantic -Wno-error=stringop-truncation -Wno-error=cast-function-type -Wno-stringop-truncation -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -D_POSIX_C_SOURCE=200809L -D_GNU_SOURCE -MD -MQ externals/cgns/hdf5/H5detect.p/H5detect.c.o -MF externals/cgns/hdf5/H5detect.p/H5detect.c.o.d -o externals/cgns/hdf5/H5detect.p/H5detect.c.o -c ../externals/cgns/hdf5/H5detect.c
cc1: error: -Werror=stringop-truncation: no option -Wstringop-truncation
cc1: error: -Werror=cast-function-type: no option -Wcast-function-type
cc1: warning: unrecognized command line option "-Wno-stringop-truncation" [enabled by default]
cc1: warning: unrecognized command line option "-Wno-discarded-qualifiers" [enabled by default]
cc1: warning: unrecognized command line option "-Wno-stringop-overflow" [enabled by default]
[2/1008] Compiling C object externals/...e_libsettings.p/H5make_libsettings.c.o
FAILED: externals/cgns/hdf5/H5make_libsettings.p/H5make_libsettings.c.o
cc -Iexternals/cgns/hdf5/H5make_libsettings.p -Iexternals/cgns/hdf5 -I../externals/cgns/hdf5 -I/cm/shared/apps/openmpi/gcc/64/1.10.7/include -Wall -Winvalid-pch -Wextra -std=c99 -O3 -pthread -Wno-unused-result -Wno-unused-parameter -Wno-unused-variable -Wno-unused-but-set-variable -Wno-sign-compare -Wno-stringop-overflow -Wno-discarded-qualifiers -Wno-error=maybe-uninitialized -Wno-error=unused-function -Wno-error=unused-label -Wno-pedantic -Wno-error=stringop-truncation -Wno-error=cast-function-type -Wno-stringop-truncation -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -D_POSIX_C_SOURCE=200809L -D_GNU_SOURCE -MD -MQ externals/cgns/hdf5/H5make_libsettings.p/H5make_libsettings.c.o -MF externals/cgns/hdf5/H5make_libsettings.p/H5make_libsettings.c.o.d -o externals/cgns/hdf5/H5make_libsettings.p/H5make_libsettings.c.o -c ../externals/cgns/hdf5/H5make_libsettings.c
cc1: error: -Werror=stringop-truncation: no option -Wstringop-truncation
cc1: error: -Werror=cast-function-type: no option -Wcast-function-type
cc1: warning: unrecognized command line option "-Wno-stringop-truncation" [enabled by default]
cc1: warning: unrecognized command line option "-Wno-discarded-qualifiers" [enabled by default]
cc1: warning: unrecognized command line option "-Wno-stringop-overflow" [enabled by default]
[3/1008] Compiling C object externals/cgns/hdf5/libsu2hdf5.a.p/H5checksum.c.o
FAILED: externals/cgns/hdf5/libsu2hdf5.a.p/H5checksum.c.o
cc -Iexternals/cgns/hdf5/libsu2hdf5.a.p -Iexternals/cgns/hdf5 -I../externals/cgns/hdf5 -I/cm/shared/apps/openmpi/gcc/64/1.10.7/include -Wall -Winvalid-pch -Wextra -std=c99 -O3 -fPIC -pthread -Wno-unused-result -Wno-unused-parameter -Wno-unused-variable -Wno-unused-but-set-variable -Wno-sign-compare -Wno-stringop-overflow -Wno-discarded-qualifiers -Wno-error=maybe-uninitialized -Wno-error=unused-function -Wno-error=unused-label -Wno-pedantic -Wno-error=stringop-truncation -Wno-error=cast-function-type -Wno-stringop-truncation -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -D_POSIX_C_SOURCE=200809L -D_GNU_SOURCE -MD -MQ externals/cgns/hdf5/libsu2hdf5.a.p/H5checksum.c.o -MF externals/cgns/hdf5/libsu2hdf5.a.p/H5checksum.c.o.d -o externals/cgns/hdf5/libsu2hdf5.a.p/H5checksum.c.o -c ../externals/cgns/hdf5/H5checksum.c
cc1: error: -Werror=stringop-truncation: no option -Wstringop-truncation
cc1: error: -Werror=cast-function-type: no option -Wcast-function-type
cc1: warning: unrecognized command line option "-Wno-stringop-truncation" [enabled by default]
cc1: warning: unrecognized command line option "-Wno-discarded-qualifiers" [enabled by default]
cc1: warning: unrecognized command line option "-Wno-stringop-overflow" [enabled by default]
[4/1008] Compiling C object externals/cgns/hdf5/libsu2hdf5.a.p/H5dbg.c.o
FAILED: externals/cgns/hdf5/libsu2hdf5.a.p/H5dbg.c.o
cc -Iexternals/cgns/hdf5/libsu2hdf5.a.p -Iexternals/cgns/hdf5 -I../externals/cgns/hdf5 -I/cm/shared/apps/openmpi/gcc/64/1.10.7/include -Wall -Winvalid-pch -Wextra -std=c99 -O3 -fPIC -pthread -Wno-unused-result -Wno-unused-parameter -Wno-unused-variable -Wno-unused-but-set-variable -Wno-sign-compare -Wno-stringop-overflow -Wno-discarded-qualifiers -Wno-error=maybe-uninitialized -Wno-error=unused-function -Wno-error=unused-label -Wno-pedantic -Wno-error=stringop-truncation -Wno-error=cast-function-type -Wno-stringop-truncation -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -D_POSIX_C_SOURCE=200809L -D_GNU_SOURCE -MD -MQ externals/cgns/hdf5/libsu2hdf5.a.p/H5dbg.c.o -MF externals/cgns/hdf5/libsu2hdf5.a.p/H5dbg.c.o.d -o externals/cgns/hdf5/libsu2hdf5.a.p/H5dbg.c.o -c ../externals/cgns/hdf5/H5dbg.c
cc1: error: -Werror=stringop-truncation: no option -Wstringop-truncation
cc1: error: -Werror=cast-function-type: no option -Wcast-function-type
cc1: warning: unrecognized command line option "-Wno-stringop-truncation" [enabled by default]
cc1: warning: unrecognized command line option "-Wno-discarded-qualifiers" [enabled by default]
cc1: warning: unrecognized command line option "-Wno-stringop-overflow" [enabled by default]
[5/1008] Compiling C object externals/cgns/hdf5/libsu2hdf5.a.p/H5.c.o
FAILED: externals/cgns/hdf5/libsu2hdf5.a.p/H5.c.o
cc -Iexternals/cgns/hdf5/libsu2hdf5.a.p -Iexternals/cgns/hdf5 -I../externals/cgns/hdf5 -I/cm/shared/apps/openmpi/gcc/64/1.10.7/include -Wall -Winvalid-pch -Wextra -std=c99 -O3 -fPIC -pthread -Wno-unused-result -Wno-unused-parameter -Wno-unused-variable -Wno-unused-but-set-variable -Wno-sign-compare -Wno-stringop-overflow -Wno-discarded-qualifiers -Wno-error=maybe-uninitialized -Wno-error=unused-function -Wno-error=unused-label -Wno-pedantic -Wno-error=stringop-truncation -Wno-error=cast-function-type -Wno-stringop-truncation -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -D_POSIX_C_SOURCE=200809L -D_GNU_SOURCE -MD -MQ externals/cgns/hdf5/libsu2hdf5.a.p/H5.c.o -MF externals/cgns/hdf5/libsu2hdf5.a.p/H5.c.o.d -o externals/cgns/hdf5/libsu2hdf5.a.p/H5.c.o -c ../externals/cgns/hdf5/H5.c
cc1: error: -Werror=stringop-truncation: no option -Wstringop-truncation
cc1: error: -Werror=cast-function-type: no option -Wcast-function-type
cc1: warning: unrecognized command line option "-Wno-stringop-truncation" [enabled by default]
cc1: warning: unrecognized command line option "-Wno-discarded-qualifiers" [enabled by default]
cc1: warning: unrecognized command line option "-Wno-stringop-overflow" [enabled by default]
[6/1008] Compiling C object externals/cgns/hdf5/libsu2hdf5.a.p/H5mpi.c.o
FAILED: externals/cgns/hdf5/libsu2hdf5.a.p/H5mpi.c.o
cc -Iexternals/cgns/hdf5/libsu2hdf5.a.p -Iexternals/cgns/hdf5 -I../externals/cgns/hdf5 -I/cm/shared/apps/openmpi/gcc/64/1.10.7/include -Wall -Winvalid-pch -Wextra -std=c99 -O3 -fPIC -pthread -Wno-unused-result -Wno-unused-parameter -Wno-unused-variable -Wno-unused-but-set-variable -Wno-sign-compare -Wno-stringop-overflow -Wno-discarded-qualifiers -Wno-error=maybe-uninitialized -Wno-error=unused-function -Wno-error=unused-label -Wno-pedantic -Wno-error=stringop-truncation -Wno-error=cast-function-type -Wno-stringop-truncation -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -D_POSIX_C_SOURCE=200809L -D_GNU_SOURCE -MD -MQ externals/cgns/hdf5/libsu2hdf5.a.p/H5mpi.c.o -MF externals/cgns/hdf5/libsu2hdf5.a.p/H5mpi.c.o.d -o externals/cgns/hdf5/libsu2hdf5.a.p/H5mpi.c.o -c ../externals/cgns/hdf5/H5mpi.c
cc1: error: -Werror=stringop-truncation: no option -Wstringop-truncation
cc1: error: -Werror=cast-function-type: no option -Wcast-function-type
cc1: warning: unrecognized command line option "-Wno-stringop-truncation" [enabled by default]
cc1: warning: unrecognized command line option "-Wno-discarded-qualifiers" [enabled by default]
cc1: warning: unrecognized command line option "-Wno-stringop-overflow" [enabled by default]
ninja: build stopped: subcommand failed.

Also in my local machine I do not have this issue. I can compile SU2 successfully.
I would really appreciate if someone could give me some advices/guideline to figure out what can be the reason about this issue.

Thank you so much in advance :)

bigfootedrockmidget July 13, 2022 16:48

This problem seems to be solved in develop by PR #1704
https://github.com/su2code/SU2/pull/1704


All times are GMT -4. The time now is 22:40.