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

[BUILD] make error with gnu compiler on macos #1996

Open
Akshaybshekhawat opened this issue Jan 15, 2025 · 0 comments
Open

[BUILD] make error with gnu compiler on macos #1996

Akshaybshekhawat opened this issue Jan 15, 2025 · 0 comments

Comments

@Akshaybshekhawat
Copy link

Environment

Operating System: macOS-15.1.1
Version: openvdb-12.0.0
CMake Version: 3.31.4
Compiler: Homebrew GCC 14.2.0_1

Describe the problem

make fails when using gnu compiler.

To Reproduce

Steps to reproduce the behavior:

  1. downloaded 12.0.0
  2. cmake .. -DCMAKE_CXX_COMPILER=g++-14
  3. make -j4
  4. See error
    [ 98%] Linking CXX shared library libopenvdb.dylib
    Undefined symbols for architecture arm64:
    "boost::iostreams::file_descriptor::seek(long, std::_Ios_Seekdir)", referenced from:
    boost::iostreams::detail::indirect_streambuf<boost::iostreams::file_descriptor_sink, std::char_traits, std::allocator, boost::iostreams::output_seekable>::seekoff(long long, std::_Ios_Seekdir, std::_Ios_Openmode) in TempFile.cc.o
    boost::iostreams::detail::indirect_streambuf<boost::iostreams::file_descriptor_sink, std::char_traits, std::allocator, boost::iostreams::output_seekable>::seekoff(long long, std::_Ios_Seekdir, std::_Ios_Openmode) in TempFile.cc.o
    boost::iostreams::detail::indirect_streambuf<boost::iostreams::file_descriptor_sink, std::char_traits, std::allocator, boost::iostreams::output_seekable>::seekpos(std::fpos<__mbstate_t>, std::_Ios_Openmode) in TempFile.cc.o
    ld: symbol(s) not found for architecture arm64
    collect2: error: ld returned 1 exit status
    make[2]: *** [openvdb/openvdb/libopenvdb.12.0.0.dylib] Error 1
    make[1]: *** [openvdb/openvdb/CMakeFiles/openvdb_shared.dir/all] Error 2
    make: *** [all] Error 2

Additional context

build is successful with AppleClang 16.0.0.16000026 compiler

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