Re: Configure problems with octave4.2.1 on redhat7

Markus Mützel <[email protected]>
Newsgroups gmane.comp.gnu.octave.general
Message-ID <trinity-845655b1-6b4b-4177-b008-b2ff6955465d-1606314414840@3c-app-gmx-bs42>
Am 25. November 2020 um 14:07 Uhr schrieb "Grunow, Ingo (EXTERN: ARkentec)"
> mkdir (/tmp/oct-mXl4i6)
> untar (/net/hfbf34/Benutzer/wr0itvr/04_Software/GNU_OCTAVE/mypkg/struct-1.0.16.tar.gz, /tmp/oct-mXl4i6)
> checking for mkoctfile... /appl/opensoft/octave/4.2.1/redhatel7/octave/4.2.1/bin/mkoctfile-4.2.1 --verbose
> checking for octave-config... /appl/opensoft/octave/4.2.1/redhatel7/octave/4.2.1/bin/octave-config-4.2.1
> checking for a sed that does not truncate output... /bin/sed
> checking whether the C++ compiler works... yes
> checking for C++ compiler default output file name... a.out
> checking for suffix of executables...
> checking whether we are cross compiling... no
> checking for suffix of object files... o
> checking whether we are using the GNU C++ compiler... yes
> checking whether g++ -m64 -O2 accepts -g... yes
> checking for gcc... gcc -m64 -O2
> checking whether we are using the GNU C compiler... yes
> checking whether gcc -m64 -O2 accepts -g... yes
> checking for gcc -m64 -O2 option to accept ISO C89... none needed
> checking how to run the C preprocessor... gcc -m64 -O2 -E
> checking for grep that handles long lines and -e... /bin/grep
> checking for egrep... /bin/grep -E
> checking for ANSI C header files... yes
> checking for sys/types.h... yes
> checking for sys/stat.h... yes
> checking for stdlib.h... yes
> checking for string.h... yes
> checking for memory.h... yes
> checking for strings.h... yes
> checking for inttypes.h... yes
> checking for stdint.h... yes
> checking for unistd.h... yes
> checking for stdbool.h that conforms to C99... yes
> checking for _Bool... yes
> checking for error_at_line... yes
> checking   is_map or isstruct...   is_map
> checking   octave_vformat or octave::vformat...   octave_vformat
> checking   octave_execution_exception or octave::execution_exception...   octave_execution_exception
> configure: creating ./config.status
> config.status: creating Makefile
> config.status: creating config.h
> make: Entering directory `/tmp/oct-iDwBT9/struct-1.0.16/src'
> CXXFLAGS=" -I/appl/opensoft/octave/4.2.1/redhatel7/octave/4.2.1/ext/libopenblas/0.2.18/include -I/appl/opensoft/octave/4.2.1/redhatel7/octave/4.2.1/ext/libreadline/6.3/include   -Wall " /appl/opensoft/octave/4.2.1/redhatel7/octave/4.2.1/bin/mkoctfile-4.2.1 --verbose -c error-helpers.cc
> g++ -m64 -O2 -c  -I/appl/opensoft/octave/4.2.1/redhatel7/octave/4.2.1/ext/libopenblas/0.2.18/include -I/appl/opensoft/octave/4.2.1/redhatel7/octave/4.2.1/ext/libreadline/6.3/include   -fPIC -I/appl/opensoft/octave/4.2.1/redhatel7/octave/4.2.1/include/octave-4.2.1/octave/.. -I/appl/opensoft/octave/4.2.1/redhatel7/octave/4.2.1/include/octave-4.2.1/octave -I/appl/opensoft/octave/4.2.1/redhatel7/octave/4.2.1/include  -pthread -fopenmp  -I/appl/opensoft/octave/4.2.1/redhatel7/octave/4.2.1/ext/libopenblas/0.2.18/include -I/appl/opensoft/octave/4.2.1/redhatel7/octave/4.2.1/ext/libreadline/6.3/include   -Wall     error-helpers.cc -o error-helpers.o
> /appl/opensoft/octave/4.2.1/redhatel7/octave/4.2.1/include/octave-4.2.1/octave/../octave/uint32NDArray.h:44:1: note: in expansion of macro ‘MARRAY_FORWARD_DEFS’
>  MARRAY_FORWARD_DEFS (MArray, uint32NDArray, octave_uint32)
>  ^
> /appl/opensoft/octave/4.2.1/redhatel7/octave/4.2.1/include/octave-4.2.1/octave/../octave/MArray.h:127:12: error: ‘uint8NDArray operator+=(uint8NDArray&, const octave_uint8&)’ previously defined here
>    inline R operator += (R& x, const T& y)                               \
>             ^
> /appl/opensoft/octave/4.2.1/redhatel7/octave/4.2.1/include/octave-4.2.1/octave/../octave/uint8NDArray.h:44:1: note: in expansion of macro ‘MARRAY_FORWARD_DEFS’
>  MARRAY_FORWARD_DEFS (MArray, uint8NDArray, octave_uint8)
>  ^
> /appl/opensoft/octave/4.2.1/redhatel7/octave/4.2.1/include/octave-4.2.1/octave/../octave/uint32NDArray.h: In function ‘uint32NDArray operator-=(uint32NDArray&, const octave_uint32&)’:
> /appl/opensoft/octave/4.2.1/redhatel7/octave/4.2.1/include/octave-4.2.1/octave/../octave/MArray.h:131:12: error: redefinition of ‘uint32NDArray operator-=(uint32NDArray&,const octave_uint32&)’
>    inline R operator -= (R& x, const T& y)                               \
>             ^
> /appl/opensoft/octave/4.2.1/redhatel7/octave/4.2.1/include/octave-4.2.1/octave/../octave/uint32NDArray.h:44:1: note: in expansion of macro ‘MARRAY_FORWARD_DEFS’
>  MARRAY_FORWARD_DEFS (MArray, uint32NDArray, octave_uint32)
>  ^
> /appl/opensoft/octave/4.2.1/redhatel7/octave/4.2.1/include/octave-4.2.1/octave/../octave/MArray.h:131:12: error: ‘uint8NDArray operator-=(uint8NDArray&, const octave_uint8&)’ previously defined here
>    inline R operator -= (R& x, const T& y)                               \
>             ^
[snip]

Thanks.
It might be that your compiler is not new enough.
What do you see for the following command?

system('g++ -v')

Markus
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.