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

Superfluous warnings from ranlib about libcellml.a having no symbols on macOS #532

Closed
agarny opened this issue Jan 28, 2020 · 3 comments
Closed

Comments

@agarny
Copy link
Contributor

agarny commented Jan 28, 2020

It doesn't seem to be possible (anymore?) to build a static version of libCellML. Here is what I tried and got on macOS:

cd <libCellML>
mkdir build && cd build && cmake -G Ninja -DLIBCELLML_BINDINGS_PYTHON=OFF -DLIBCELLML_BUILD_SHARED=OFF -DLIBCELLML_BUILD_TYPE=Release -DLIBCELLML_COVERAGE=OFF -DLIBCELLML_LLVM_COVERAGE=OFF -DLIBCELLML_UNIT_TESTS=OFF .. && ninja
-- The CXX compiler identification is AppleClang 11.0.0.11000033
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found Python: /usr/local/Frameworks/Python.framework/Versions/3.7/bin/python3.7 (found version "3.7.6") found components: Interpreter Development
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
-- Found Sphinx: /usr/local/opt/sphinx-doc/bin/sphinx-build
-- Found SWIG: /usr/local/bin/swig (found suitable version "4.0.1", minimum required is "3")
-- Performing Test LLVM_COVERAGE_COMPILER_FLAGS_OK
-- Performing Test LLVM_COVERAGE_COMPILER_FLAGS_OK - Success
-- Performing Test GCC_COVERAGE_COMPILER_FLAGS_OK
-- Performing Test GCC_COVERAGE_COMPILER_FLAGS_OK - Success
-- Found LibXml2: /usr/lib/libxml2.dylib (found version "2.9.4")
-- 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
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/Alan/libCellML/build
[26/26] Linking CXX static library src/libcellml.a
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: src/libcellml.a(debug.cpp.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: src/libcellml.a(debug.cpp.o) has no symbols
@agarny
Copy link
Contributor Author

agarny commented Jan 28, 2020

FWIW, I have tried using Make rather than Ninja, but no difference.

@hsorby
Copy link
Contributor

hsorby commented Jan 28, 2020

[26/26] Linking CXX static library src/libcellml.a

Doesn't that say it has built a static library?

@agarny
Copy link
Contributor Author

agarny commented Jan 29, 2020

Oops, my bad, you are right. I clearly got confused by those ranlib messages. It might be good to get rid of them. Maybe something like avast/retdec#349. Am going to give it a quick try.

agarny added a commit to agarny/libcellml that referenced this issue Jan 29, 2020
@agarny agarny changed the title Cannot build a static version? Superfluous warnings from ranlib about libcellml.a having no symbols on macOS Jan 29, 2020
@agarny agarny closed this as completed in c2596df Jan 30, 2020
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

2 participants