Giter Site home page Giter Site logo

Fix compile issues on MacOS about terarkdb HOT 7 CLOSED

bytedance avatar bytedance commented on September 4, 2024
Fix compile issues on MacOS

from terarkdb.

Comments (7)

jackwener avatar jackwener commented on September 4, 2024

@royguo Hi, Does this issue still exist?
I complie project still failed.

from terarkdb.

skyzh avatar skyzh commented on September 4, 2024

@royguo Hi, Does this issue still exist?
I complie project still failed.

Would you please attach some detailed compile errors?

from terarkdb.

jackwener avatar jackwener commented on September 4, 2024

The following directory should be added to compiler include paths:
/terarkdb/third-party/terark-zip/3rdparty/boost-include
The following directory should be added to linker library paths:
/terarkdb/third-party/terark-zip/3rdparty/boost-include/stage/lib
[ 16%] Completed 'boost-project'
[ 16%] Built target boost-project
make: *** [all] Error 2

Here is log outputed in the end.

from terarkdb.

jackwener avatar jackwener commented on September 4, 2024

What's more, it maybe also occurred in the Linux.
I have found that it happened in the CI build.
@skyzh

from terarkdb.

skyzh avatar skyzh commented on September 4, 2024

The failure happens long before the program exits.

/usr/bin/ld: zstdcli.o: in function `usage_advanced':
zstdcli.c:(.text+0x458): undefined reference to `ZSTD_maxCLevel'
/usr/bin/ld: zstdcli.o: in function `main':
zstdcli.c:(.text.startup+0x12d4): undefined reference to `ZSTD_maxCLevel'
/usr/bin/ld: ../lib/compress/zstdmt_compress.o: in function `ZSTDMT_compressChunk':
zstdmt_compress.c:(.text+0x3c): undefined reference to `ZSTD_compressBegin_usingCDict'
/usr/bin/ld: zstdmt_compress.c:(.text+0x79): undefined reference to `ZSTD_compressContinue'
/usr/bin/ld: zstdmt_compress.c:(.text+0xa1): undefined reference to `ZSTD_compressEnd'
/usr/bin/ld: zstdmt_compress.c:(.text+0xd6): undefined reference to `ZSTD_compressBegin_advanced'
/usr/bin/ld: zstdmt_compress.c:(.text+0x105): undefined reference to `ZSTD_compressContinue'
/usr/bin/ld: zstdmt_compress.c:(.text+0x136): undefined reference to `ZSTD_setCCtxParameter'
/usr/bin/ld: zstdmt_compress.c:(.text+0x154): undefined reference to `ZSTD_invalidateRepCodes'

Seems to be some linker errors.

from terarkdb.

skyzh avatar skyzh commented on September 4, 2024

I just found out that you are creating a pull request on master branch in #102. It turns out that our main branch is dev.1.4.

from terarkdb.

orca-zhang avatar orca-zhang commented on September 4, 2024

I found the same problem and come from #163 .

from terarkdb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.