Git Product home page Git Product logo

influxdb-cpp-cpm's People

Contributors

pegasust avatar

Watchers

 avatar

influxdb-cpp-cpm's Issues

CPM & building: must call `cmake -S all -B build` twice before `cmake --build build` become successful

rm -rf build && cmake -S all -B build && cmake --build build fails at cmake --build build:

[  5%] Building CXX object _deps/fmt-build/CMakeFiles/fmt.dir/src/format.cc.o
[ 10%] Building CXX object _deps/fmt-build/CMakeFiles/fmt.dir/src/os.cc.o
[ 15%] Linking CXX static library libfmt.a
[ 15%] Built target fmt
[ 21%] Building CXX object _deps/greeter-build/CMakeFiles/Greeter.dir/source/greeter.cpp.o
[ 26%] Linking CXX shared library libGreeter.so
/usr/bin/ld: ../fmt-build/libfmt.a(format.cc.o): relocation R_X86_64_PC32 against symbol `_ZTVN3fmt2v812format_errorE' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: bad value
collect2: error: ld returned 1 exit status
make[2]: *** [_deps/greeter-build/CMakeFiles/Greeter.dir/build.make:98: _deps/greeter-build/libGreeter.so] Error 1
make[1]: *** [CMakeFiles/Makefile2:340: _deps/greeter-build/CMakeFiles/Greeter.dir/all] Error 2
make: *** [Makefile:166: all] Error 2

But rm -rf build && cmake -S all -B build && cmake -S all -B build && cmake --build build succeeds.

My guess

When building InfluxDB-CXX, there's something awry about the building process that sets or unsets some flags on the environment variable level. These environment variables carry onto the next build stage and makes it fail somehow.

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.