GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Build failure on Ubuntu 18.04 with gcc 7.4.0 (default) · Issue #3 · luxonis/depthai-python

Build failure on Ubuntu 18.04 with gcc 7.4.0 (default) #3

New issue
Copy link
New issue
Copy link
Closed
Closed
Build failure on Ubuntu 18.04 with gcc 7.4.0 (default)#3
Copy link
Assignees
alex-luxonis

Description

@alex-luxonis
alex-luxonis
opened on Mar 11, 2020
Issue body actions

The final link step is failing with this error:

depthai-api/host/py_module/build$ make
[ 20%] Built target nlohmann_json_schema_validator
[ 24%] Linking CXX shared module depthai.cpython-36m-x86_64-linux-gnu.so
/usr/bin/ld: /tmp/ccMFU1de.ltrans0.ltrans.o: relocation R_X86_64_PC32 against symbol `_ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EEC1Ev' 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
CMakeFiles/depthai.dir/build.make:563: recipe for target 'depthai.cpython-36m-x86_64-linux-gnu.so' failed
make[2]: *** [depthai.cpython-36m-x86_64-linux-gnu.so] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/depthai.dir/all' failed
make[1]: *** [CMakeFiles/depthai.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2

Activity

  1. alex-luxonis
    self-assigned this
    on Mar 11, 2020
  2. alex-luxonis commented on Mar 11, 2020

    @alex-luxonis
    alex-luxonis
    on Mar 11, 2020
    ContributorAuthor
    More actions

    Compiler version when the failure occurred:
    g++ --version

    g++ (Ubuntu 7.4.0-1ubuntu1~18.04.1) 7.4.0

  3. alex-luxonis commented on Mar 11, 2020

    @alex-luxonis
    alex-luxonis
    on Mar 11, 2020
    ContributorAuthor
    More actions

    Upgrading to gcc/g++ 8 seems to be a solution/workaround for this issue:

    sudo apt install g++-8
    sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-8 70
    sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 70
    

    g++ --version

    g++ (Ubuntu 8.3.0-26ubuntu1~18.04) 8.3.0

    Will add this info in README.md as well.

    Reacted by Luxonis-Brandon
  4. alex-luxonis
    closed this as completedon Mar 11, 2020
  5. alex-luxonis
    changed the title [-]Build failure of Ubuntu 18.04 with gcc 7.4.0 (default)[/-] [+]Build failure on Ubuntu 18.04 with gcc 7.4.0 (default)[/+] on Mar 11, 2020
  6. VanDavv
    added a commit that references this issue on Sep 7, 2020

    test #3

    dbd9317
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @alex-luxonis
    alex-luxonis

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402520 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.