Macaulay2 / homebrew-tap

The Macaulay2 tap for Homebrew
7 stars 6 forks source link

trying to brew csdp #92

Closed eisenbud closed 2 years ago

eisenbud commented 3 years ago

Here is the end of the log in a (failing) attempt to brew csdp

CMAKE_PREFIX_PATH: /opt/homebrew
CMAKE_INCLUDE_PATH: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers
CMAKE_LIBRARY_PATH: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenGL.framework/Versions/Current/Libraries
PKG_CONFIG_LIBDIR: /usr/lib/pkgconfig:/opt/homebrew/Library/Homebrew/os/mac/pkgconfig/11
HOMEBREW_GIT: git
HOMEBREW_SDKROOT: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk
ACLOCAL_PATH: /opt/homebrew/share/aclocal
PATH: /opt/homebrew/Library/Homebrew/shims/mac/super:/usr/bin:/bin:/usr/sbin:/sbin

Error: macaulay2/tap/csdp 6.2.0 did not build
eisenbud commented 3 years ago

Here is the full output:

de@Davids-MacBook-Air curves % brew install --verbose --keep-tmp --build-bottle macaulay2/tap/csdp

Updating Homebrew...
==> Installing csdp from macaulay2/tap
==> Downloading https://raw.githubusercontent.com/Macaulay2/M2/1f99f71a1308318679412de7f20e940b05f80be6/M2/libraries/csdp/patch-6.2.0
Already downloaded: /Users/de/Library/Caches/Homebrew/downloads/3502d46bdfc627a4d2dd452c2bf7e15efbbf546591d07240043326fe5f64df8e--patch-6.2.0
==> Verifying checksum for '3502d46bdfc627a4d2dd452c2bf7e15efbbf546591d07240043326fe5f64df8e--patch-6.2.0'
==> Downloading https://github.com/coin-or/Csdp/archive/releases/6.2.0.tar.gz
Already downloaded: /Users/de/Library/Caches/Homebrew/downloads/49d31940eb27a9babe8061a83fed6d3b764e7d86091ebbd31a2ce4b559baa31c--Csdp-releases-6.2.0.tar.gz
==> Verifying checksum for '49d31940eb27a9babe8061a83fed6d3b764e7d86091ebbd31a2ce4b559baa31c--Csdp-releases-6.2.0.tar.gz'
/usr/bin/sandbox-exec -f /private/tmp/homebrew20210620-58452-17h34je.sb nice ruby -W1 -- /opt/homebrew/Library/Homebrew/build.rb /opt/homebrew/Library/Taps/macaulay2/homebrew-tap/Formula/csdp.rb --build-bottle --verbose --keep-tmp
tar --extract --no-same-owner --file /Users/de/Library/Caches/Homebrew/downloads/49d31940eb27a9babe8061a83fed6d3b764e7d86091ebbd31a2ce4b559baa31c--Csdp-releases-6.2.0.tar.gz --directory /private/tmp/d20210620-58453-8xwiln
cp -pR /private/tmp/d20210620-58453-8xwiln/Csdp-releases-6.2.0/. /private/tmp/csdp-20210620-58453-wss9p5/Csdp-releases-6.2.0
chmod -Rf +w /private/tmp/d20210620-58453-8xwiln
==> Patching
cp -p /Users/de/Library/Caches/Homebrew/downloads/3502d46bdfc627a4d2dd452c2bf7e15efbbf546591d07240043326fe5f64df8e--patch-6.2.0 /private/tmp/csdp--patch-20210620-58453-dcrh0h/patch-6.2.0
==> Applying patch-6.2.0
patch -g 0 -f -p1 -i /private/tmp/csdp--patch-20210620-58453-dcrh0h/patch-6.2.0
patching file Makefile
patching file example/Makefile
patching file lib/user_exit.c
patching file solver/Makefile
patching file theta/Makefile
patching file theta/rand_graph.c
==> make CC=clang ${OpenMP_C_FLAGS} ${CFLAGS} LDLIBS=${OpenMP_C_LDLIBS} LIBS=-L../lib -lsdp ${LA_LIBRARIES} -lm
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C lib libsdp.a
clang -Xpreprocessor -fopenmp -I/opt/homebrew/opt/libomp/include -ansi -Wall -DUSEOPENMP -DSETNUMTHREADS -DUSESIGTERM -DUSEGETTIME -I../include -ansi -Wall -DUSEOPENMP -DSETNUMTHREADS -DUSESIGTERM -DUSEGETTIME -I../include   -c -o readprob.o readprob.c
clang -Xpreprocessor -fopenmp -I/opt/homebrew/opt/libomp/include -ansi -Wall -DUSEOPENMP -DSETNUMTHREADS -DUSESIGTERM -DUSEGETTIME -I../include -ansi -Wall -DUSEOPENMP -DSETNUMTHREADS -DUSESIGTERM -DUSEGETTIME -I../include   -c -o sdp.o sdp.c
clang -Xpreprocessor -fopenmp -I/opt/homebrew/opt/libomp/include -ansi -Wall -DUSEOPENMP -DSETNUMTHREADS -DUSESIGTERM -DUSEGETTIME -I../include -ansi -Wall -DUSEOPENMP -DSETNUMTHREADS -DUSESIGTERM -DUSEGETTIME -I../include   -c -o op_o.o op_o.c
clang -Xpreprocessor -fopenmp -I/opt/homebrew/opt/libomp/include -ansi -Wall -DUSEOPENMP -DSETNUMTHREADS -DUSESIGTERM -DUSEGETTIME -I../include -ansi -Wall -DUSEOPENMP -DSETNUMTHREADS -DUSESIGTERM -DUSEGETTIME -I../include   -c -o psd_feas.o psd_feas.c
clang -Xpreprocessor -fopenmp -I/opt/homebrew/opt/libomp/include -ansi -Wall -DUSEOPENMP -DSETNUMTHREADS -DUSESIGTERM -DUSEGETTIME -I../include -ansi -Wall -DUSEOPENMP -DSETNUMTHREADS -DUSESIGTERM -DUSEGETTIME -I../include   -c -o op_a.o op_a.c
clang -Xpreprocessor -fopenmp -I/opt/homebrew/opt/libomp/include -ansi -Wall -DUSEOPENMP -DSETNUMTHREADS -DUSESIGTERM -DUSEGETTIME -I../include -ansi -Wall -DUSEOPENMP -DSETNUMTHREADS -DUSESIGTERM -DUSEGETTIME -I../include   -c -o op_at.o op_at.c
clang -Xpreprocessor -fopenmp -I/opt/homebrew/opt/libomp/include -ansi -Wall -DUSEOPENMP -DSETNUMTHREADS -DUSESIGTERM -DUSEGETTIME -I../include -ansi -Wall -DUSEOPENMP -DSETNUMTHREADS -DUSESIGTERM -DUSEGETTIME -I../include   -c -o Fnorm.o Fnorm.c
clang -Xpreprocessor -fopenmp -I/opt/homebrew/opt/libomp/include -ansi -Wall -DUSEOPENMP -DSETNUMTHREADS -DUSESIGTERM -DUSEGETTIME -I../include -ansi -Wall -DUSEOPENMP -DSETNUMTHREADS -DUSESIGTERM -DUSEGETTIME -I../include   -c -o calc_pobj.o calc_pobj.c
clang -Xpreprocessor -fopenmp -I/opt/homebrew/opt/libomp/include -ansi -Wall -DUSEOPENMP -DSETNUMTHREADS -DUSESIGTERM -DUSEGETTIME -I../include -ansi -Wall -DUSEOPENMP -DSETNUMTHREADS -DUSESIGTERM -DUSEGETTIME -I../include   -c -o calc_dobj.o calc_dobj.c
clang -Xpreprocessor -fopenmp -I/opt/homebrew/opt/libomp/include -ansi -Wall -DUSEOPENMP -DSETNUMTHREADS -DUSESIGTERM -DUSEGETTIME -I../include -ansi -Wall -DUSEOPENMP -DSETNUMTHREADS -DUSESIGTERM -DUSEGETTIME -I../include   -c -o trace_prod.o trace_prod.c
clang -Xpreprocessor -fopenmp -I/opt/homebrew/opt/libomp/include -ansi -Wall -DUSEOPENMP -DSETNUMTHREADS -DUSESIGTERM -DUSEGETTIME -I../include -ansi -Wall -DUSEOPENMP -DSETNUMTHREADS -DUSESIGTERM -DUSEGETTIME -I../include   -c -o zero_mat.o zero_mat.c
clang -Xpreprocessor -fopenmp -I/opt/homebrew/opt/libomp/include -ansi -Wall -DUSEOPENMP -DSETNUMTHREADS -DUSESIGTERM -DUSEGETTIME -I../include -ansi -Wall -DUSEOPENMP -DSETNUMTHREADS -DUSESIGTERM -DUSEGETTIME -I../include   -c -o mat_mult.o mat_mult.c
clang -Xpreprocessor -fopenmp -I/opt/homebrew/opt/libomp/include -ansi -Wall -DUSEOPENMP -DSETNUMTHREADS -DUSESIGTERM -DUSEGETTIME -I../include -ansi -Wall -DUSEOPENMP -DSETNUMTHREADS -DUSESIGTERM -DUSEGETTIME -I../include   -c -o sym_mat.o sym_mat.c
clang -Xpreprocessor -fopenmp -I/opt/homebrew/opt/libomp/include -ansi -Wall -DUSEOPENMP -DSETNUMTHREADS -DUSESIGTERM -DUSEGETTIME -I../include -ansi -Wall -DUSEOPENMP -DSETNUMTHREADS -DUSESIGTERM -DUSEGETTIME -I../include   -c -o copy_mat.o copy_mat.c
clang -Xpreprocessor -fopenmp -I/opt/homebrew/opt/libomp/include -ansi -Wall -DUSEOPENMP -DSETNUMTHREADS -DUSESIGTERM -DUSEGETTIME -I../include -ansi -Wall -DUSEOPENMP -DSETNUMTHREADS -DUSESIGTERM -DUSEGETTIME -I../include   -c -o addscaledmat.o addscaledmat.c
clang -Xpreprocessor -fopenmp -I/opt/homebrew/opt/libomp/include -ansi -Wall -DUSEOPENMP -DSETNUMTHREADS -DUSESIGTERM -DUSEGETTIME -I../include -ansi -Wall -DUSEOPENMP -DSETNUMTHREADS -DUSESIGTERM -DUSEGETTIME -I../include   -c -o user_exit.o user_exit.c
clang -Xpreprocessor -fopenmp -I/opt/homebrew/opt/libomp/include -ansi -Wall -DUSEOPENMP -DSETNUMTHREADS -DUSESIGTERM -DUSEGETTIME -I../include -ansi -Wall -DUSEOPENMP -DSETNUMTHREADS -DUSESIGTERM -DUSEGETTIME -I../include   -c -o make_i.o make_i.c
clang -Xpreprocessor -fopenmp -I/opt/homebrew/opt/libomp/include -ansi -Wall -DUSEOPENMP -DSETNUMTHREADS -DUSESIGTERM -DUSEGETTIME -I../include -ansi -Wall -DUSEOPENMP -DSETNUMTHREADS -DUSESIGTERM -DUSEGETTIME -I../include   -c -o allocmat.o allocmat.c
clang -Xpreprocessor -fopenmp -I/opt/homebrew/opt/libomp/include -ansi -Wall -DUSEOPENMP -DSETNUMTHREADS -DUSESIGTERM -DUSEGETTIME -I../include -ansi -Wall -DUSEOPENMP -DSETNUMTHREADS -DUSESIGTERM -DUSEGETTIME -I../include   -c -o initsoln.o initsoln.c
clang -Xpreprocessor -fopenmp -I/opt/homebrew/opt/libomp/include -ansi -Wall -DUSEOPENMP -DSETNUMTHREADS -DUSESIGTERM -DUSEGETTIME -I../include -ansi -Wall -DUSEOPENMP -DSETNUMTHREADS -DUSESIGTERM -DUSEGETTIME -I../include   -c -o initparams.o initparams.c
clang -Xpreprocessor -fopenmp -I/opt/homebrew/opt/libomp/include -ansi -Wall -DUSEOPENMP -DSETNUMTHREADS -DUSESIGTERM -DUSEGETTIME -I../include -ansi -Wall -DUSEOPENMP -DSETNUMTHREADS -DUSESIGTERM -DUSEGETTIME -I../include   -c -o add_mat.o add_mat.c
clang -Xpreprocessor -fopenmp -I/opt/homebrew/opt/libomp/include -ansi -Wall -DUSEOPENMP -DSETNUMTHREADS -DUSESIGTERM -DUSEGETTIME -I../include -ansi -Wall -DUSEOPENMP -DSETNUMTHREADS -DUSESIGTERM -DUSEGETTIME -I../include   -c -o writesol.o writesol.c
clang -Xpreprocessor -fopenmp -I/opt/homebrew/opt/libomp/include -ansi -Wall -DUSEOPENMP -DSETNUMTHREADS -DUSESIGTERM -DUSEGETTIME -I../include -ansi -Wall -DUSEOPENMP -DSETNUMTHREADS -DUSESIGTERM -DUSEGETTIME -I../include   -c -o readsol.o readsol.c
clang -Xpreprocessor -fopenmp -I/opt/homebrew/opt/libomp/include -ansi -Wall -DUSEOPENMP -DSETNUMTHREADS -DUSESIGTERM -DUSEGETTIME -I../include -ansi -Wall -DUSEOPENMP -DSETNUMTHREADS -DUSESIGTERM -DUSEGETTIME -I../include   -c -o easysdp.o easysdp.c
clang -Xpreprocessor -fopenmp -I/opt/homebrew/opt/libomp/include -ansi -Wall -DUSEOPENMP -DSETNUMTHREADS -DUSESIGTERM -DUSEGETTIME -I../include -ansi -Wall -DUSEOPENMP -DSETNUMTHREADS -DUSESIGTERM -DUSEGETTIME -I../include   -c -o writeprob.o writeprob.c
clang -Xpreprocessor -fopenmp -I/opt/homebrew/opt/libomp/include -ansi -Wall -DUSEOPENMP -DSETNUMTHREADS -DUSESIGTERM -DUSEGETTIME -I../include -ansi -Wall -DUSEOPENMP -DSETNUMTHREADS -DUSESIGTERM -DUSEGETTIME -I../include   -c -o solvesys.o solvesys.c
clang -Xpreprocessor -fopenmp -I/opt/homebrew/opt/libomp/include -ansi -Wall -DUSEOPENMP -DSETNUMTHREADS -DUSESIGTERM -DUSEGETTIME -I../include -ansi -Wall -DUSEOPENMP -DSETNUMTHREADS -DUSESIGTERM -DUSEGETTIME -I../include   -c -o makefill.o makefill.c
clang -Xpreprocessor -fopenmp -I/opt/homebrew/opt/libomp/include -ansi -Wall -DUSEOPENMP -DSETNUMTHREADS -DUSESIGTERM -DUSEGETTIME -I../include -ansi -Wall -DUSEOPENMP -DSETNUMTHREADS -DUSESIGTERM -DUSEGETTIME -I../include   -c -o mat_multsp.o mat_multsp.c
clang -Xpreprocessor -fopenmp -I/opt/homebrew/opt/libomp/include -ansi -Wall -DUSEOPENMP -DSETNUMTHREADS -DUSESIGTERM -DUSEGETTIME -I../include -ansi -Wall -DUSEOPENMP -DSETNUMTHREADS -DUSESIGTERM -DUSEGETTIME -I../include   -c -o norms.o norms.c
clang -Xpreprocessor -fopenmp -I/opt/homebrew/opt/libomp/include -ansi -Wall -DUSEOPENMP -DSETNUMTHREADS -DUSESIGTERM -DUSEGETTIME -I../include -ansi -Wall -DUSEOPENMP -DSETNUMTHREADS -DUSESIGTERM -DUSEGETTIME -I../include   -c -o linesearch.o linesearch.c
clang -Xpreprocessor -fopenmp -I/opt/homebrew/opt/libomp/include -ansi -Wall -DUSEOPENMP -DSETNUMTHREADS -DUSESIGTERM -DUSEGETTIME -I../include -ansi -Wall -DUSEOPENMP -DSETNUMTHREADS -DUSESIGTERM -DUSEGETTIME -I../include   -c -o matvec.o matvec.c
clang -Xpreprocessor -fopenmp -I/opt/homebrew/opt/libomp/include -ansi -Wall -DUSEOPENMP -DSETNUMTHREADS -DUSESIGTERM -DUSEGETTIME -I../include -ansi -Wall -DUSEOPENMP -DSETNUMTHREADS -DUSESIGTERM -DUSEGETTIME -I../include   -c -o chol.o chol.c
clang -Xpreprocessor -fopenmp -I/opt/homebrew/opt/libomp/include -ansi -Wall -DUSEOPENMP -DSETNUMTHREADS -DUSESIGTERM -DUSEGETTIME -I../include -ansi -Wall -DUSEOPENMP -DSETNUMTHREADS -DUSESIGTERM -DUSEGETTIME -I../include   -c -o qreig.o qreig.c
clang -Xpreprocessor -fopenmp -I/opt/homebrew/opt/libomp/include -ansi -Wall -DUSEOPENMP -DSETNUMTHREADS -DUSESIGTERM -DUSEGETTIME -I../include -ansi -Wall -DUSEOPENMP -DSETNUMTHREADS -DUSESIGTERM -DUSEGETTIME -I../include   -c -o tweakgap.o tweakgap.c
clang -Xpreprocessor -fopenmp -I/opt/homebrew/opt/libomp/include -ansi -Wall -DUSEOPENMP -DSETNUMTHREADS -DUSESIGTERM -DUSEGETTIME -I../include -ansi -Wall -DUSEOPENMP -DSETNUMTHREADS -DUSESIGTERM -DUSEGETTIME -I../include   -c -o freeprob.o freeprob.c
clang -Xpreprocessor -fopenmp -I/opt/homebrew/opt/libomp/include -ansi -Wall -DUSEOPENMP -DSETNUMTHREADS -DUSESIGTERM -DUSEGETTIME -I../include -ansi -Wall -DUSEOPENMP -DSETNUMTHREADS -DUSESIGTERM -DUSEGETTIME -I../include   -c -o packed.o packed.c
clang -Xpreprocessor -fopenmp -I/opt/homebrew/opt/libomp/include -ansi -Wall -DUSEOPENMP -DSETNUMTHREADS -DUSESIGTERM -DUSEGETTIME -I../include -ansi -Wall -DUSEOPENMP -DSETNUMTHREADS -DUSESIGTERM -DUSEGETTIME -I../include   -c -o sortentries.o sortentries.c
ar cr libsdp.a  readprob.o sdp.o op_o.o psd_feas.o op_a.o op_at.o  Fnorm.o calc_pobj.o calc_dobj.o trace_prod.o zero_mat.o mat_mult.o sym_mat.o copy_mat.o addscaledmat.o  user_exit.o make_i.o allocmat.o initsoln.o initparams.o add_mat.o writesol.o readsol.o easysdp.o writeprob.o solvesys.o makefill.o mat_multsp.o norms.o linesearch.o matvec.o chol.o qreig.o tweakgap.o freeprob.o packed.o sortentries.o
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C solver csdp
clang -Xpreprocessor -fopenmp -I/opt/homebrew/opt/libomp/include -ansi -Wall -DUSEOPENMP -DSETNUMTHREADS -DUSESIGTERM -DUSEGETTIME -I../include -ansi -Wall -DUSEOPENMP -DSETNUMTHREADS -DUSESIGTERM -DUSEGETTIME -I../include   -c -o csdp.o csdp.c
clang -Xpreprocessor -fopenmp -I/opt/homebrew/opt/libomp/include -ansi -Wall -DUSEOPENMP -DSETNUMTHREADS -DUSESIGTERM -DUSEGETTIME -I../include -ansi -Wall -DUSEOPENMP -DSETNUMTHREADS -DUSESIGTERM -DUSEGETTIME -I../include csdp.o  /opt/homebrew/opt/libomp/lib/libomp.a -L../lib -lsdp -framework Accelerate -lm -o csdp
Undefined symbols for architecture arm64:
  "__kmp_itt_reset()", referenced from:
      __kmp_atfork_child() in libomp.a(z_Linux_util.cpp.o)
  "__kmp_itt_destroy()", referenced from:
      ___kmp_runtime_destroy in libomp.a(z_Linux_util.cpp.o)
  "__kmp_itt_initialize()", referenced from:
      ___kmp_runtime_initialize in libomp.a(z_Linux_util.cpp.o)
  "int __kmp_execute_tasks_64<false, true>(kmp_info*, int, kmp_flag_64<false, true>*, int, int*, int)", referenced from:
      ___kmp_wait_64 in libomp.a(kmp_wait_release.cpp.o)
  "___kmp_barrier_domain_count", referenced from:
      __kmp_itt_frame_submit(int, unsigned long long, unsigned long long, int, ident*, int, int) in libomp.a(kmp_barrier.cpp.o)
  "___kmp_forkjoin_frames_mode", referenced from:
      void __kmp_dispatch_init<int>(ident*, int, sched_type, int, int, traits_t<int>::signed_t, traits_t<int>::signed_t, int) in libomp.a(kmp_dispatch.cpp.o)
      void __kmp_dispatch_init<unsigned int>(ident*, int, sched_type, unsigned int, unsigned int, traits_t<unsigned int>::signed_t, traits_t<unsigned int>::signed_t, int) in libomp.a(kmp_dispatch.cpp.o)
      void __kmp_dispatch_init<long long>(ident*, int, sched_type, long long, long long, traits_t<long long>::signed_t, traits_t<long long>::signed_t, int) in libomp.a(kmp_dispatch.cpp.o)
      void __kmp_dispatch_init<unsigned long long>(ident*, int, sched_type, unsigned long long, unsigned long long, traits_t<unsigned long long>::signed_t, traits_t<unsigned long long>::signed_t, int) in libomp.a(kmp_dispatch.cpp.o)
      void __kmp_dispatch_init_algorithm<int>(ident*, int, dispatch_private_info_template<int>*, sched_type, int, int, traits_t<int>::signed_t, unsigned long long*, traits_t<int>::signed_t, int, int) in libomp.a(kmp_dispatch.cpp.o)
      void __kmp_dispatch_init_algorithm<unsigned int>(ident*, int, dispatch_private_info_template<unsigned int>*, sched_type, unsigned int, unsigned int, traits_t<unsigned int>::signed_t, unsigned long long*, traits_t<unsigned int>::signed_t, unsigned int, unsigned int) in libomp.a(kmp_dispatch.cpp.o)
      void __kmp_dispatch_init_algorithm<long long>(ident*, int, dispatch_private_info_template<long long>*, sched_type, long long, long long, traits_t<long long>::signed_t, unsigned long long*, traits_t<long long>::signed_t, long long, long long) in libomp.a(kmp_dispatch.cpp.o)
      ...
  "___kmp_itt_barrier_domains", referenced from:
      __kmp_itt_frame_submit(int, unsigned long long, unsigned long long, int, ident*, int, int) in libomp.a(kmp_barrier.cpp.o)
  "___kmp_itt_domain_create_ptr__3_0", referenced from:
      __kmp_itt_metadata_loop(ident*, unsigned long long, unsigned long long, unsigned long long) in libomp.a(kmp_dispatch.cpp.o)
      __kmp_itt_frame_submit(int, unsigned long long, unsigned long long, int, ident*, int, int) in libomp.a(kmp_barrier.cpp.o)
      __kmp_itt_metadata_imbalance(int, unsigned long long, unsigned long long, unsigned long long, unsigned long long) in libomp.a(kmp_barrier.cpp.o)
  "___kmp_itt_frame_submit_v3_ptr__3_0", referenced from:
      ___kmp_barrier in libomp.a(kmp_barrier.cpp.o)
      ___kmp_barrier_gomp_cancel in libomp.a(kmp_barrier.cpp.o)
      __kmp_join_barrier(int) in libomp.a(kmp_barrier.cpp.o)
      __kmp_itt_frame_submit(int, unsigned long long, unsigned long long, int, ident*, int, int) in libomp.a(kmp_barrier.cpp.o)
  "___kmp_itt_fsync_acquired_ptr__3_0", referenced from:
      ___kmp_wait_4 in libomp.a(kmp_dispatch.cpp.o)
      ___kmp_wait_4_ptr in libomp.a(kmp_dispatch.cpp.o)
      unsigned int __kmp_wait<unsigned int>(unsigned int volatile*, unsigned int, unsigned int (*)(unsigned int, unsigned int), void*) in libomp.a(kmp_dispatch.cpp.o)
      unsigned long long __kmp_wait<unsigned long long>(unsigned long long volatile*, unsigned long long, unsigned int (*)(unsigned long long, unsigned long long), void*) in libomp.a(kmp_dispatch.cpp.o)
      ___kmp_acquire_tas_lock in libomp.a(kmp_lock.cpp.o)
      ___kmp_test_tas_lock in libomp.a(kmp_lock.cpp.o)
      ___kmp_acquire_nested_tas_lock in libomp.a(kmp_lock.cpp.o)
      ...
  "___kmp_itt_fsync_cancel_ptr__3_0", referenced from:
      __kmp_invoke_task(int, kmp_task*, kmp_taskdata*) in libomp.a(kmp_tasking.cpp.o)
  "___kmp_itt_fsync_prepare_ptr__3_0", referenced from:
      ___kmp_wait_4 in libomp.a(kmp_dispatch.cpp.o)
      ___kmp_wait_4_ptr in libomp.a(kmp_dispatch.cpp.o)
      unsigned int __kmp_wait<unsigned int>(unsigned int volatile*, unsigned int, unsigned int (*)(unsigned int, unsigned int), void*) in libomp.a(kmp_dispatch.cpp.o)
      unsigned long long __kmp_wait<unsigned long long>(unsigned long long volatile*, unsigned long long, unsigned int (*)(unsigned long long, unsigned long long), void*) in libomp.a(kmp_dispatch.cpp.o)
      ___kmp_acquire_tas_lock in libomp.a(kmp_lock.cpp.o)
      ___kmp_acquire_nested_tas_lock in libomp.a(kmp_lock.cpp.o)
      int __kmp_acquire_queuing_lock_timed_template<false>(kmp_queuing_lock*, int) in libomp.a(kmp_lock.cpp.o)
      ...
  "___kmp_itt_fsync_releasing_ptr__3_0", referenced from:
      void __kmp_dispatch_dxo<unsigned int>(int*, int*, ident*) in libomp.a(kmp_dispatch.cpp.o)
      void __kmp_dispatch_dxo<unsigned long long>(int*, int*, ident*) in libomp.a(kmp_dispatch.cpp.o)
      ___kmp_release_tas_lock in libomp.a(kmp_lock.cpp.o)
      ___kmp_release_queuing_lock in libomp.a(kmp_lock.cpp.o)
      ___kmp_release_drdpa_lock in libomp.a(kmp_lock.cpp.o)
      ___kmp_release_nested_drdpa_lock in libomp.a(kmp_lock.cpp.o)
      __kmp_release_drdpa_lock_with_checks(kmp_drdpa_lock*, int) in libomp.a(kmp_lock.cpp.o)
      ...
  "___kmp_itt_get_timestamp_ptr__3_0", referenced from:
      ___kmp_barrier in libomp.a(kmp_barrier.cpp.o)
      ___kmp_barrier_gomp_cancel in libomp.a(kmp_barrier.cpp.o)
      __kmp_join_barrier(int) in libomp.a(kmp_barrier.cpp.o)
      __kmp_hyper_barrier_gather(barrier_type, kmp_info*, int, int, void (*)(void*, void*), void*) in libomp.a(kmp_barrier.cpp.o)
      __kmp_hierarchical_barrier_gather(barrier_type, kmp_info*, int, int, void (*)(void*, void*), void*) in libomp.a(kmp_barrier.cpp.o)
      __kmp_tree_barrier_gather(barrier_type, kmp_info*, int, int, void (*)(void*, void*), void*) in libomp.a(kmp_barrier.cpp.o)
      __kmp_linear_barrier_gather(barrier_type, kmp_info*, int, int, void (*)(void*, void*), void*) in libomp.a(kmp_barrier.cpp.o)
      ...
  "___kmp_itt_imbalance_domains", referenced from:
      __kmp_itt_frame_submit(int, unsigned long long, unsigned long long, int, ident*, int, int) in libomp.a(kmp_barrier.cpp.o)
  "___kmp_itt_metadata_add_ptr__3_0", referenced from:
      void __kmp_dispatch_init<int>(ident*, int, sched_type, int, int, traits_t<int>::signed_t, traits_t<int>::signed_t, int) in libomp.a(kmp_dispatch.cpp.o)
      void __kmp_dispatch_init<unsigned int>(ident*, int, sched_type, unsigned int, unsigned int, traits_t<unsigned int>::signed_t, traits_t<unsigned int>::signed_t, int) in libomp.a(kmp_dispatch.cpp.o)
      void __kmp_dispatch_init<long long>(ident*, int, sched_type, long long, long long, traits_t<long long>::signed_t, traits_t<long long>::signed_t, int) in libomp.a(kmp_dispatch.cpp.o)
      void __kmp_dispatch_init<unsigned long long>(ident*, int, sched_type, unsigned long long, unsigned long long, traits_t<unsigned long long>::signed_t, traits_t<unsigned long long>::signed_t, int) in libomp.a(kmp_dispatch.cpp.o)
      void __kmp_dispatch_init_algorithm<int>(ident*, int, dispatch_private_info_template<int>*, sched_type, int, int, traits_t<int>::signed_t, unsigned long long*, traits_t<int>::signed_t, int, int) in libomp.a(kmp_dispatch.cpp.o)
      __kmp_itt_metadata_loop(ident*, unsigned long long, unsigned long long, unsigned long long) in libomp.a(kmp_dispatch.cpp.o)
      void __kmp_dispatch_init_algorithm<unsigned int>(ident*, int, dispatch_private_info_template<unsigned int>*, sched_type, unsigned int, unsigned int, traits_t<unsigned int>::signed_t, unsigned long long*, traits_t<unsigned int>::signed_t, unsigned int, unsigned int) in libomp.a(kmp_dispatch.cpp.o)
      ...
  "___kmp_itt_prepare_delay", referenced from:
      ___kmp_wait_4 in libomp.a(kmp_dispatch.cpp.o)
      ___kmp_wait_4_ptr in libomp.a(kmp_dispatch.cpp.o)
      unsigned int __kmp_wait<unsigned int>(unsigned int volatile*, unsigned int, unsigned int (*)(unsigned int, unsigned int), void*) in libomp.a(kmp_dispatch.cpp.o)
      unsigned long long __kmp_wait<unsigned long long>(unsigned long long volatile*, unsigned long long, unsigned int (*)(unsigned long long, unsigned long long), void*) in libomp.a(kmp_dispatch.cpp.o)
      kmp_flag_64<false, true>::wait(kmp_info*, int, void*) in libomp.a(kmp_barrier.cpp.o)
      kmp_flag_oncore::wait(kmp_info*, int) in libomp.a(kmp_barrier.cpp.o)
      kmp_flag_64<true, false>::wait(kmp_info*, int, void*) in libomp.a(kmp_barrier.cpp.o)
      ...
  "___kmp_itt_string_handle_create_ptr__3_0", referenced from:
      __kmp_itt_metadata_loop(ident*, unsigned long long, unsigned long long, unsigned long long) in libomp.a(kmp_dispatch.cpp.o)
      __kmp_itt_metadata_imbalance(int, unsigned long long, unsigned long long, unsigned long long, unsigned long long) in libomp.a(kmp_barrier.cpp.o)
  "___kmp_itt_suppress_pop_ptr__3_0", referenced from:
      __kmp_itt_metadata_loop(ident*, unsigned long long, unsigned long long, unsigned long long) in libomp.a(kmp_dispatch.cpp.o)
      __kmp_itt_frame_submit(int, unsigned long long, unsigned long long, int, ident*, int, int) in libomp.a(kmp_barrier.cpp.o)
      __kmp_itt_metadata_imbalance(int, unsigned long long, unsigned long long, unsigned long long, unsigned long long) in libomp.a(kmp_barrier.cpp.o)
  "___kmp_itt_suppress_push_ptr__3_0", referenced from:
      __kmp_itt_metadata_loop(ident*, unsigned long long, unsigned long long, unsigned long long) in libomp.a(kmp_dispatch.cpp.o)
      __kmp_itt_frame_submit(int, unsigned long long, unsigned long long, int, ident*, int, int) in libomp.a(kmp_barrier.cpp.o)
      __kmp_itt_metadata_imbalance(int, unsigned long long, unsigned long long, unsigned long long, unsigned long long) in libomp.a(kmp_barrier.cpp.o)
  "___kmp_itt_sync_acquired_ptr__3_0", referenced from:
      ___kmp_barrier in libomp.a(kmp_barrier.cpp.o)
      ___kmp_barrier_gomp_cancel in libomp.a(kmp_barrier.cpp.o)
      __kmp_join_barrier(int) in libomp.a(kmp_barrier.cpp.o)
      __kmp_fork_barrier(int, int) in libomp.a(kmp_barrier.cpp.o)
      ___kmpc_omp_taskwait in libomp.a(kmp_tasking.cpp.o)
      __kmpc_omp_taskwait_ompt(ident*, int, void*, void*) in libomp.a(kmp_tasking.cpp.o)
      ___kmpc_omp_taskyield in libomp.a(kmp_tasking.cpp.o)
      ...
  "___kmp_itt_sync_cancel_ptr__3_0", referenced from:
      ___kmp_barrier_gomp_cancel in libomp.a(kmp_barrier.cpp.o)
      __kmp_hyper_barrier_release(barrier_type, kmp_info*, int, int, int, void*) in libomp.a(kmp_barrier.cpp.o)
      __kmp_tree_barrier_release(barrier_type, kmp_info*, int, int, int, void*) in libomp.a(kmp_barrier.cpp.o)
      __kmp_linear_barrier_release(barrier_type, kmp_info*, int, int, int, void*) in libomp.a(kmp_barrier.cpp.o)
      int __kmp_execute_tasks_32<false, true>(kmp_info*, int, kmp_flag_32<false, true>*, int, int*, void*, int) in libomp.a(kmp_tasking.cpp.o)
      __kmp_execute_tasks_oncore(kmp_info*, int, kmp_flag_oncore*, int, int*, void*, int) in libomp.a(kmp_tasking.cpp.o)
      int __kmp_execute_tasks_32<false, false>(kmp_info*, int, kmp_flag_32<false, false>*, int, int*, void*, int) in libomp.a(kmp_tasking.cpp.o)
      ...
  "___kmp_itt_sync_create_ptr__3_0", referenced from:
      void __kmp_dispatch_init<int>(ident*, int, sched_type, int, int, traits_t<int>::signed_t, traits_t<int>::signed_t, int) in libomp.a(kmp_dispatch.cpp.o)
      void __kmp_dispatch_init<unsigned int>(ident*, int, sched_type, unsigned int, unsigned int, traits_t<unsigned int>::signed_t, traits_t<unsigned int>::signed_t, int) in libomp.a(kmp_dispatch.cpp.o)
      void __kmp_dispatch_init<long long>(ident*, int, sched_type, long long, long long, traits_t<long long>::signed_t, traits_t<long long>::signed_t, int) in libomp.a(kmp_dispatch.cpp.o)
      void __kmp_dispatch_init<unsigned long long>(ident*, int, sched_type, unsigned long long, unsigned long long, traits_t<unsigned long long>::signed_t, traits_t<unsigned long long>::signed_t, int) in libomp.a(kmp_dispatch.cpp.o)
      ___kmp_barrier in libomp.a(kmp_barrier.cpp.o)
      ___kmp_barrier_gomp_cancel in libomp.a(kmp_barrier.cpp.o)
      __kmp_hyper_barrier_release(barrier_type, kmp_info*, int, int, int, void*) in libomp.a(kmp_barrier.cpp.o)
      ...
  "___kmp_itt_sync_destroy_ptr__3_0", referenced from:
      ___kmpc_omp_taskwait in libomp.a(kmp_tasking.cpp.o)
      __kmpc_omp_taskwait_ompt(ident*, int, void*, void*) in libomp.a(kmp_tasking.cpp.o)
      ___kmpc_omp_taskyield in libomp.a(kmp_tasking.cpp.o)
      ___kmpc_end_taskgroup in libomp.a(kmp_tasking.cpp.o)
  "___kmp_itt_sync_prepare_ptr__3_0", referenced from:
      ___kmp_barrier in libomp.a(kmp_barrier.cpp.o)
      ___kmp_barrier_gomp_cancel in libomp.a(kmp_barrier.cpp.o)
      __kmp_hyper_barrier_release(barrier_type, kmp_info*, int, int, int, void*) in libomp.a(kmp_barrier.cpp.o)
      __kmp_tree_barrier_release(barrier_type, kmp_info*, int, int, int, void*) in libomp.a(kmp_barrier.cpp.o)
      __kmp_linear_barrier_release(barrier_type, kmp_info*, int, int, int, void*) in libomp.a(kmp_barrier.cpp.o)
      __kmp_join_barrier(int) in libomp.a(kmp_barrier.cpp.o)
      ___kmpc_omp_taskwait in libomp.a(kmp_tasking.cpp.o)
      ...
  "___kmp_itt_sync_releasing_ptr__3_0", referenced from:
      ___kmp_barrier in libomp.a(kmp_barrier.cpp.o)
      ___kmp_barrier_gomp_cancel in libomp.a(kmp_barrier.cpp.o)
      __kmp_join_barrier(int) in libomp.a(kmp_barrier.cpp.o)
      __kmp_fork_barrier(int, int) in libomp.a(kmp_barrier.cpp.o)
  "___kmp_itt_thr_name_set_ptr__3_0", referenced from:
      __kmp_launch_worker(void*) in libomp.a(z_Linux_util.cpp.o)
  "_metadata_domain", referenced from:
      __kmp_itt_metadata_loop(ident*, unsigned long long, unsigned long long, unsigned long long) in libomp.a(kmp_dispatch.cpp.o)
      __kmp_itt_metadata_imbalance(int, unsigned long long, unsigned long long, unsigned long long, unsigned long long) in libomp.a(kmp_barrier.cpp.o)
  "_string_handle_imbl", referenced from:
      __kmp_itt_metadata_loop(ident*, unsigned long long, unsigned long long, unsigned long long) in libomp.a(kmp_dispatch.cpp.o)
      __kmp_itt_metadata_imbalance(int, unsigned long long, unsigned long long, unsigned long long, unsigned long long) in libomp.a(kmp_barrier.cpp.o)
  "_string_handle_loop", referenced from:
      __kmp_itt_metadata_loop(ident*, unsigned long long, unsigned long long, unsigned long long) in libomp.a(kmp_dispatch.cpp.o)
      __kmp_itt_metadata_imbalance(int, unsigned long long, unsigned long long, unsigned long long, unsigned long long) in libomp.a(kmp_barrier.cpp.o)
  "_string_handle_sngl", referenced from:
      __kmp_itt_metadata_loop(ident*, unsigned long long, unsigned long long, unsigned long long) in libomp.a(kmp_dispatch.cpp.o)
      __kmp_itt_metadata_imbalance(int, unsigned long long, unsigned long long, unsigned long long, unsigned long long) in libomp.a(kmp_barrier.cpp.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [csdp] Error 1
make: *** [all] Error 2
==> Temporary files retained at:
/private/tmp/csdp-20210620-58453-wss9p5

==> Formula
Tap: macaulay2/tap
Path: /opt/homebrew/Library/Taps/macaulay2/homebrew-tap/Formula/csdp.rb
==> Configuration
HOMEBREW_VERSION: 3.1.12
ORIGIN: https://github.com/Homebrew/brew
HEAD: 33e71c99dc40c0a134a236fffe2594ae6572d83c
Last commit: 10 days ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: 01044cd89c4000461553b3dfbea73afba5aa8172
Core tap last commit: 2 hours ago
Core tap branch: master
HOMEBREW_PREFIX: /opt/homebrew
HOMEBREW_CASK_OPTS: []
HOMEBREW_MAKE_JOBS: 8
Homebrew Ruby: 2.6.3 => /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby
CPU: octa-core 64-bit arm_firestorm_icestorm
Clang: 12.0.5 build 1205
Git: 2.30.1 => /Applications/Xcode.app/Contents/Developer/usr/bin/git
Curl: 7.64.1 => /usr/bin/curl
macOS: 11.4-arm64
CLT: 12.5.0.0.1.1617976050
Xcode: 12.5
Rosetta 2: false
==> ENV
HOMEBREW_CC: clang
HOMEBREW_CXX: clang++
MAKEFLAGS: -j8
CMAKE_PREFIX_PATH: /opt/homebrew
CMAKE_INCLUDE_PATH: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers
CMAKE_LIBRARY_PATH: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenGL.framework/Versions/Current/Libraries
PKG_CONFIG_LIBDIR: /usr/lib/pkgconfig:/opt/homebrew/Library/Homebrew/os/mac/pkgconfig/11
HOMEBREW_GIT: git
HOMEBREW_SDKROOT: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk
ACLOCAL_PATH: /opt/homebrew/share/aclocal
PATH: /opt/homebrew/Library/Homebrew/shims/mac/super:/usr/bin:/bin:/usr/sbin:/sbin

Error: macaulay2/tap/csdp 6.2.0 did not build
Logs:
     /Users/de/Library/Logs/Homebrew/csdp/01.make
     /Users/de/Library/Logs/Homebrew/csdp/00.options.out
     /Users/de/Library/Logs/Homebrew/csdp/01.make.cc
Do not report this issue to Homebrew/brew or Homebrew/core!

Traceback (most recent call last):
    26: from /opt/homebrew/Library/Homebrew/build.rb:229:in `<main>'
    25: from /opt/homebrew/Library/Homebrew/build.rb:133:in `install'
    24: from /opt/homebrew/Library/Homebrew/utils.rb:558:in `with_env'
    23: from /opt/homebrew/Library/Homebrew/build.rb:138:in `block in install'
    22: from /opt/homebrew/Library/Homebrew/formula.rb:1259:in `brew'
    21: from /opt/homebrew/Library/Homebrew/formula.rb:2344:in `stage'
    20: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/forwardable.rb:230:in `stage'
    19: from /opt/homebrew/Library/Homebrew/resource.rb:91:in `stage'
    18: from /opt/homebrew/Library/Homebrew/resource.rb:116:in `unpack'
    17: from /opt/homebrew/Library/Homebrew/resource.rb:199:in `mktemp'
    16: from /opt/homebrew/Library/Homebrew/mktemp.rb:63:in `run'
    15: from /opt/homebrew/Library/Homebrew/mktemp.rb:63:in `chdir'
    14: from /opt/homebrew/Library/Homebrew/mktemp.rb:63:in `block in run'
    13: from /opt/homebrew/Library/Homebrew/resource.rb:117:in `block in unpack'
    12: from /opt/homebrew/Library/Homebrew/download_strategy.rb:102:in `stage'
    11: from /opt/homebrew/Library/Homebrew/download_strategy.rb:115:in `chdir'
    10: from /opt/homebrew/Library/Homebrew/download_strategy.rb:115:in `chdir'
     9: from /opt/homebrew/Library/Homebrew/resource.rb:121:in `block (2 levels) in unpack'
     8: from /opt/homebrew/Library/Homebrew/formula.rb:2364:in `block in stage'
     7: from /opt/homebrew/Library/Homebrew/utils.rb:558:in `with_env'
     6: from /opt/homebrew/Library/Homebrew/formula.rb:2365:in `block (2 levels) in stage'
     5: from /opt/homebrew/Library/Homebrew/formula.rb:1266:in `block in brew'
     4: from /opt/homebrew/Library/Homebrew/build.rb:178:in `block (2 levels) in install'
     3: from /opt/homebrew/Library/Taps/macaulay2/homebrew-tap/Formula/csdp.rb:37:in `install'
     2: from /opt/homebrew/Library/Homebrew/formula.rb:2135:in `system'
     1: from /opt/homebrew/Library/Homebrew/formula.rb:2135:in `open'
/opt/homebrew/Library/Homebrew/formula.rb:2199:in `block in system': Failed executing: make CC=clang\ ${OpenMP_C_FLAGS}\ ${CFLAGS} LDLIBS=${OpenMP_C_LDLIBS} LIBS=-L../lib\ -lsdp\ ${LA_LIBRARIES}\ -lm (BuildError)
    9: from /opt/homebrew/Library/Homebrew/brew.rb:155:in `<main>'
    8: from /opt/homebrew/Library/Homebrew/brew.rb:167:in `rescue in <main>'
    7: from /opt/homebrew/Library/Homebrew/exceptions.rb:494:in `dump'
    6: from /opt/homebrew/Library/Homebrew/exceptions.rb:440:in `issues'
    5: from /opt/homebrew/Library/Homebrew/exceptions.rb:444:in `fetch_issues'
    4: from /opt/homebrew/Library/Homebrew/utils/github.rb:67:in `issues_for_formula'
    3: from /opt/homebrew/Library/Homebrew/utils/github.rb:36:in `search_issues'
    2: from /opt/homebrew/Library/Homebrew/utils/github.rb:166:in `search'
    1: from /opt/homebrew/Library/Homebrew/utils/github/api.rb:234:in `open_rest'
/opt/homebrew/Library/Homebrew/utils/github/api.rb:306:in `raise_error': curl failed!   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current (GitHub::API::Error)
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0Warning: Transient problem: timeout Will retry in 1 seconds. 3 retries left.
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0Warning: Transient problem: timeout Will retry in 2 seconds. 2 retries left.
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0Warning: Transient problem: timeout Will retry in 4 seconds. 1 retries left.
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0curl: (6) Could not resolve host: api.github.com
de@Davids-MacBook-Air curves % 
mahrud commented 3 years ago

Thanks, this is helpful! It seems like it's a problem with the libomp library. @tom111 @moorewf have you run into issues with linking with libomp on M1?

tom111 commented 3 years ago

have you run into issues with linking with libomp on M1?

No, not on M1 specifically. Also, I'm M1-less again, so I won't be able to test for a while :/

moorewf commented 3 years ago

I haven't run into libomp trouble, at least when I am building using cmake with brew taking care of dependencies.

mahrud commented 3 years ago

The issue seems to be in the bottled version of libomp. The workaround is as follows:

brew uninstall --ignore-dependencies libomp
brew install --build-bottle libomp

then building the rest of the libraries and M2 itself seemed to go smoothly.