Skip to content

./buid_avida gives me several errors and warnings #97

@DRIJF002

Description

@DRIJF002

warning: ‘-mfused-madd’ is deprecated; use ‘-ffp-contract=’ instead

warning: left shift of negative value [-Wshift-negative-value] 105 | const int64 kint64min = ( ((( int64) kint32min) << 32) | 0 );

warning: this use of "defined" may not be portable [-Wexpansion-to-defined]
35 | #elif APTO_PLATFORM(UNIX)

error: ‘PTHREAD_ONCE_INIT’ was not declared in this scope
160 | static pthread_once_t module_init = PTHREAD_ONCE_INIT;

error: ‘pthread_once’ was not declared in this scope; did you mean ‘pthread_once_t’?
168 | pthread_once(&module_init, InitModule);

error: ‘pthread_once’ was not declared in this scope; did you mean ‘pthread_once_t’?
190 | pthread_once(&module_init, InitModule);

make[2]: *** [libs/tcmalloc-1.4/CMakeFiles/tcmalloc-1.4.dir/build.make:132: libs/tcmalloc-1.4/CMakeFiles/tcmalloc-1.4.dir/src/malloc_extension.cc.o] Error 1

[CMakeFiles/Makefile2:296: libs/tcmalloc-1.4/CMakeFiles/tcmalloc-1.4.dir/all] Error 2

/usr/include/c++/14/bits/stl_numeric.h:88:5: error: redefinition of ‘template<class _ForwardIterator, class _Tp> void std::iota(_ForwardIterator, _ForwardIterator, _Tp)’
88 | iota(_ForwardIterator __first, _ForwardIterator __last, _Tp __value)

make[2]: *** [avida-core/CMakeFiles/avidacore.dir/build.make:132: avida-core/CMakeFiles/avidacore.dir/source/actions/PopulationActions.cc.o] Error 1

make[1]: *** [CMakeFiles/Makefile2:322: avida-core/CMakeFiles/avidacore.dir/all] Error 2
make: *** [Makefile:136: all] Error 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions