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

test_fields fail on Apple M2 #1975

Open
thilinarmtb opened this issue Sep 24, 2023 · 0 comments
Open

test_fields fail on Apple M2 #1975

thilinarmtb opened this issue Sep 24, 2023 · 0 comments

Comments

@thilinarmtb
Copy link
Member

thilinarmtb commented Sep 24, 2023

test_fields fails for me on an Apple M2 machine.

  • OS information with uname -a:
Darwin M2-Pro.local 22.6.0 Darwin Kernel Version 22.6.0: Wed Jul  5 22:21:53 PDT 2023; root:xnu-8796.141.3~6/RELEASE_ARM64_T6020 arm64
  • Below are the steps I followed to build symengine and run the tests:
conda install -c conda-forge install -y gmp

git clone https://github.com/symengine/symengine.git
cd symengine

mkdir build; cd build
cmake -DCMAKE_PREFIX_PATH=${CONDA_PREFIX}/ \
  -DCMAKE_C_COMPILER=gcc \
  -DCMAKE_CXX_COMPILER=g++ \
  -DBUILD_SHARED_LIBS=yes \
  ..
make -j8

ctest
  • Below is the configuration summary:
-- The C compiler identification is AppleClang 15.0.0.15000040                                                                                                                                                                                                 
-- The CXX compiler identification is AppleClang 15.0.0.15000040                                                                                                                                                                                               
-- Detecting C compiler ABI info                                                                                                                                                                                                                               
-- Detecting C compiler ABI info - done                                                                                                                                                                                                                        
-- Check for working C compiler: /usr/bin/gcc - skipped                                                                                                                                                                                                        
-- Detecting C compile features                                                                                                                                                                                                                                
-- Detecting C compile features - done                                                                                                                                                                                                                         
-- Detecting CXX compiler ABI info                                                                                                                                                                                                                             
-- Detecting CXX compiler ABI info - done                                                                                                                                                                                                                      
-- Check for working CXX compiler: /usr/bin/g++ - skipped                                                                                                                                                                                                      
-- Detecting CXX compile features                                                                                                                                                                                                                              
-- Detecting CXX compile features - done                                                                                                                                                                                                                       
-- Linker does not support --exclude-libs                                                                                                                                                                                                                      
-- Linker supports -unexported_symbol                                                                                                                                                                                                                          
-- Looking for sys/types.h                                                                                                                                                                                                                                     
-- Looking for sys/types.h - found                                                                                                                                                                                                                             
-- Looking for stdint.h                                                                                                                                                                                                                                        
-- Looking for stdint.h - found                                                                                                                                                                                                                                
-- Looking for stddef.h                                                                                                                                                                                                                                        
-- Looking for stddef.h - found                                                                                                                                                                                                                                
-- Check size of long double
-- Check size of long double - done
-- Found GMP: /Users/thili/miniconda3/envs/parilu-dev/lib/libgmp.dylib  
-- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY
-- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY - Success
-- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY
-- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY - Success
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR - Success
--------------------------------------------------------------------------------
+-------------------------------+
| Configuration results SUMMARY |
+-------------------------------+

CMAKE_C_COMPILER:   /usr/bin/gcc
CMAKE_CXX_COMPILER: /usr/bin/g++
CMAKE_BUILD_TYPE: Release
CMAKE_CONFIGURATION_TYPES: 
CMAKE_C_FLAGS:           
CMAKE_CXX_FLAGS:         -std=c++11  -fPIC -D__extern_always_inline=inline
CMAKE_CXX_FLAGS_DEBUG:   -Wall -Wextra -Wno-unused-parameter -g -ggdb -Wno-unknown-pragmas
CMAKE_CXX_FLAGS_RELEASE: -Wall -Wextra -Wno-unused-parameter -O3 -funroll-loops -Wno-unknown-pragmas
CMAKE_INSTALL_PREFIX: /Users/thili/miniconda3/envs/parilu-dev
BUILD_SHARED_LIBS: yes
INTEGER_CLASS : GMP
HAVE_SYMENGINE_GMP: yes
WITH_SYMENGINE_ASSERT: no
WITH_SYMENGINE_RCP: yes
WITH_SYMENGINE_TEUCHOS: no
WITH_COTIRE: no
WITH_GENERATE_PARSER: no
HAVE_GCC_ABI_DEMANGLE: yes
HAVE_C_FUNCTION_NOT_FUNC: no
HAVE_DEFAULT_CONSTRUCTORS: yes
HAVE_SYMENGINE_NOEXCEPT: yes
HAVE_SYMENGINE_IS_CONSTRUCTIBLE: yes
HAVE_SYMENGINE_RESERVE: yes
HAVE_SYMENGINE_STD_TO_STRING: TRUE
WITH_SYMENGINE_THREAD_SAFE: no
BUILD_TESTS: yes
BUILD_BENCHMARKS: yes
BUILD_BENCHMARKS_GOOGLE: no
WITH_GMP: yes
GMP_INCLUDE_DIRS: /Users/thili/miniconda3/envs/parilu-dev/include
GMP_LIBRARIES: /Users/thili/miniconda3/envs/parilu-dev/lib/libgmp.dylib
WITH_BFD: no
WITH_ECM: no
WITH_PRIMESIEVE: no
WITH_FLINT: no
WITH_ARB: no
WITH_MPFR: no
WITH_PIRANHA: no
WITH_LLVM: no
WITH_BOOST: no
WITH_PTHREAD: no
WITH_MPC: no
WITH_TCMALLOC: no
WITH_OPENMP: no
WITH_VIRTUAL_TYPEID: no
LIBS: gmp

--------------------------------------------------------------------------------
  • Here is the ctest --rerun-failed --output-on-failure output:
Test project /Users/thili/Repos/symengine/build
    Start 18: test_fields
1/1 Test #18: test_fields ......................Subprocess aborted***Exception:   0.04 sec


0% tests passed, 1 tests failed out of 1

Total Test time (real) =   0.04 sec

The following tests FAILED:
         18 - test_fields (Subprocess aborted)
Errors while running CTest
  • test_ntheory fails sporadically.

Not sure if this is an issue on my end. Happy to help root causing the issue if others can reproduce it.

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