Open njh80 opened 3 weeks ago
Hi njh80,
Thanks for the report! I haven't used homebrew to compile Einsums before. I'll have to give it a try. I tend to use conda for the dependency management.
Hi Justin,
Fantastic, thanks for replying! The compile was with Clang – I’m not sure how you compile for homebrew directly but worth a go to for easy installs.
From: Justin Turney @.> Date: Saturday, 9 November 2024 at 13:28 To: Einsums/Einsums @.> Cc: Nathan Harmer @.>, Author @.> Subject: Re: [Einsums/Einsums] External Compile Linkers (Issue #94)
Hi njh80,
Thanks for the report! I haven't used homebrew to compile Einsums before. I'll have to give it a try. I tend to use conda for the dependency management.
— Reply to this email directly, view it on GitHubhttps://github.com/Einsums/Einsums/issues/94#issuecomment-2466214640, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BEHEHS7JMJ35NYCSO7PUXP3Z7YEYJAVCNFSM6AAAAABRPCZOPSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINRWGIYTINRUGA. You are receiving this because you authored the thread.Message ID: @.***>
Hi Authors of Einsums,
Love this package! I'm using in a module of Psi4 that I'm currently building for CCSD-F12b.
I'm a CPP novice so there's a chance this is just an environment/localised issue but I thought I'd post in case anyone had the same problem.
During a Einsums compile (from v0.6.1) using AppleClang 15.0.0.15000040, hdf5 1.14.4, and OpenMP 5.0, the linkers fail to compile without some fine tuning. Firstly, the HDF5-Library defaults to -lhdf5-shared instead of -lhdf5 (easy to correct via cache) but then the library needs to be explicitly_ included in the Clang call (i.e. /usr/bin/clang/ ... -L/opt/brew/hdf5/lib -L/opt/brew/omp/lib ...) otherwise the error linker build fails. I've bypassed this for the time being with CMAKE_CXX_FLAGS='-L/opt/brew/hdf5/lib -L/opt/brew/omp/lib -lomp -lhdf5' but it would nice if this were automatic.
ChatGPT suggested to amend the target_link_libraries(test-timing PRIVATE ${HDF5_LIBRARIES} ${OpenMP_libomp_LIBRARY}) in test-timing and libeinsums.a?
Hope this feedback helps future development!