GithubHelp home page GithubHelp logo

p4ls's People

Contributors

dmakarov avatar gitter-badger avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

p4ls's Issues

Build instructions for Ubuntu 16.04

I am not able to compile with the scripts used in the CICD pipelines and also not with the homebrew setup mentioned in the README.

I also tried using gcc-9 with g++-9, but that didnt work either.

Output from the compile step:

-- [hunter] ZLIB_ROOT: /home/p4/.hunter/_Base/c2296fd/278e076/5022c31/Install (ver.: 1.2.11-p1) CMake Error at /home/p4/.hunter/_Base/c2296fd/278e076/5022c31/Install/lib/cmake/ZLIB/ZLIBConfig.cmake:36 (add_library): add_library cannot create ALIAS target "ZLIB::ZLIB" because target "ZLIB::zlib" is IMPORTED.

Compilation failed on Debian 11

Hi !
Tried to compile p4ls on Debian 11 (bullseye) and it failed at lining process.

I had to install beforehand all boost pacakge and rapidjson: (and maybe other i forgot)

sudo apt -y install libboost-all-dev rapidjson-dev

I also had to remove all occurence of -Werror in build.ninja otherwise it stopped at dispatcher.cpp.o compilation.
(Warnings considered as error ...)

Build succeeds but fails at linking process. Here is CMakeError.log:

Performing C SOURCE FILE Test CMAKE_HAVE_LIBC_PTHREAD failed with the following output:
Change Dir: /home/floui/p4ls/build/ninja/release/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/ninja cmTC_dfb29 && [1/2] Building C object CMakeFiles/cmTC_dfb29.dir/src.c.o
[2/2] Linking C executable cmTC_dfb29
FAILED: cmTC_dfb29
: && /usr/bin/cc -Wno-error -DCMAKE_HAVE_LIBC_PTHREAD  CMakeFiles/cmTC_dfb29.dir/src.c.o -o cmTC_dfb29   && :
/usr/bin/ld: CMakeFiles/cmTC_dfb29.dir/src.c.o: in function `main':
src.c:(.text+0x2f): undefined reference to `pthread_create'
/usr/bin/ld: src.c:(.text+0x3b): undefined reference to `pthread_detach'
/usr/bin/ld: src.c:(.text+0x47): undefined reference to `pthread_cancel'
/usr/bin/ld: src.c:(.text+0x58): undefined reference to `pthread_join'
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.


Source file was:
#include <pthread.h>

void* test_func(void* data)
{
  return data;
}

int main(void)
{
  pthread_t thread;
  pthread_create(&thread, NULL, test_func, NULL);
  pthread_detach(thread);
  pthread_cancel(thread);
  pthread_join(thread, NULL);
  pthread_atfork(NULL, NULL, NULL);
  pthread_exit(NULL);

  return 0;
}

Determining if the function pthread_create exists in the pthreads failed with the following output:
Change Dir: /home/floui/p4ls/build/ninja/release/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/ninja cmTC_fae13 && [1/2] Building C object CMakeFiles/cmTC_fae13.dir/CheckFunctionExists.c.o
[2/2] Linking C executable cmTC_fae13
FAILED: cmTC_fae13
: && /usr/bin/cc -Wno-error -DCHECK_FUNCTION_EXISTS=pthread_create  CMakeFiles/cmTC_fae13.dir/CheckFunctionExists.c.o -o cmTC_fae13  -lpthreads && :
/usr/bin/ld: cannot find -lpthreads
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.

Any idea on how to solved this ?
I tred to use my favorite search engine and all resources afferent to CMake and pthreads but no luck.

Thanks for your help !
Frederic

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.