Code Monkey home page Code Monkey logo

Comments (15)

jk-arm avatar jk-arm commented on May 22, 2024 1

i have not tried, but you can close this ticket as of now.

from mbed-edge.

whygoyal avatar whygoyal commented on May 22, 2024

@jk-arm can you make sure dependencies and build tool dependencies are installed on that system? Looks like pthread library is missing on that platform.

To be able to recreate please always provide more details of the platform and the toolchain you are using.

Paste the output of the following commands -
$ lsb_release -a
$ uname -a
$ cmake --version
$ gcc --version

from mbed-edge.

jk-arm avatar jk-arm commented on May 22, 2024

all dependencies are already installed, i was using the same machine for multiple demos and other builds, it was working fine.

from mbed-edge.

jk-arm avatar jk-arm commented on May 22, 2024

if i add this as part of the cmakelist file then it goes ok.

set(CMAKE_THREAD_LIBS_INIT "-lpthread")
set(CMAKE_HAVE_THREADS_LIBRARY 1)
set(CMAKE_USE_WIN32_THREADS_INIT 0)
set(CMAKE_USE_PTHREADS_INIT 1)
set(THREADS_PREFER_PTHREAD_FLAG ON)

but the make error for string operations

from mbed-edge.

whygoyal avatar whygoyal commented on May 22, 2024

I cannot recreate this on my machine so I need to know the environment you are running this on. Please paste the output of the following commands -
$ lsb_release -a
$ uname -a
$ cmake --version
$ gcc --version

from mbed-edge.

jk-arm avatar jk-arm commented on May 22, 2024

jotman01@a076074:/docker/dockertest/nginx/mbed-edge/build$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 19.04
Release: 19.04
Codename: disco
jotman01@a076074:
/docker/dockertest/nginx/mbed-edge/build$ uname -a
Linux a076074 5.0.0-37-generic #40-Ubuntu SMP Thu Nov 14 00:14:01 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
jotman01@a076074:~/docker/dockertest/nginx/mbed-edge/build$ cmake --version
cmake version 3.13.4

CMake suite maintained and supported by Kitware (kitware.com/cmake).
jotman01@a076074:~/docker/dockertest/nginx/mbed-edge/build$ gcc --version
gcc (Ubuntu 8.3.0-6ubuntu1) 8.3.0
Copyright (C) 2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

from mbed-edge.

jk-arm avatar jk-arm commented on May 22, 2024

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 19.04
Release: 19.04
Codename: disco
$ uname -a
Linux a076074 5.0.0-37-generic #40-Ubuntu SMP Thu Nov 14 00:14:01 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
cmake --version
cmake version 3.13.4

CMake suite maintained and supported by Kitware (kitware.com/cmake).
jotman01@a076074:~/docker/dockertest/nginx/mbed-edge/build$ gcc --version
gcc (Ubuntu 8.3.0-6ubuntu1) 8.3.0
Copyright (C) 2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

from mbed-edge.

whygoyal avatar whygoyal commented on May 22, 2024

@jk-arm I am spinning up a VM with 19.04 to verify this. FYI, Ubuntu 19.04 is no longer supported, EOL Jan 23, 2020. ref- https://wiki.ubuntu.com/Releases

Could you try upgrading to 19.10 or latest LTS and verify if its working on that?

from mbed-edge.

jk-arm avatar jk-arm commented on May 22, 2024

from mbed-edge.

whygoyal avatar whygoyal commented on May 22, 2024

@jk-arm I have replicated the same setup

yashgoyal@yashgoyal-VirtualBox:~/mbed-edge/build$ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 19.04
Release:	19.04
Codename:	disco
yashgoyal@yashgoyal-VirtualBox:~/mbed-edge/build$ cmake --version
cmake version 3.13.4

CMake suite maintained and supported by Kitware (kitware.com/cmake).
yashgoyal@yashgoyal-VirtualBox:~/mbed-edge/build$ gcc --version
gcc (Ubuntu 8.3.0-6ubuntu1) 8.3.0
Copyright (C) 2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

yashgoyal@yashgoyal-VirtualBox:~/mbed-edge/build$ uname -a
Linux yashgoyal-VirtualBox 5.0.0-38-generic #41-Ubuntu SMP Tue Dec 3 00:27:35 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

and it successfully built edge-core by running following commands -

    1  sudo apt install git
    2  git clone https://github.com/armMbed/mbed-edge
    3  cd mbed-edge/
    4  sudo apt install cmake
    5  git submodule update --init --recursive
    6  mkdir build
    7  cd build/
    8  cmake -DFIRMWARE_UPDATE=OFF ..
    9  make

edge-core successfully running on ubuntu 19.04

2020-02-28 12:17:21.066 tid:   6482 [INFO][edgecc]: Edge-core got registered to the cloud

2020-02-28 12:17:21.066 tid:   6482 [INFO][edgecc]: Endpoint id : 01708d045e9d0000000000010013990a, name : 01708d045e9d0000000000010013990a 

from mbed-edge.

whygoyal avatar whygoyal commented on May 22, 2024

Can you try installing the build-essentials again? Looks like something else removed the pthread library from your machine.

apt-get install build-essential

from mbed-edge.

whygoyal avatar whygoyal commented on May 22, 2024

Can you also run this command on your machine and paste the output of it?

sudo find / -name 'libpthread.so' -print

and

locate pthread.so

from mbed-edge.

jk-arm avatar jk-arm commented on May 22, 2024

/home/sanpan02/manifest-pelion-edge_RPi3B/build/poky/build/tmp/work/raspberrypi3-poky-linux-gnueabi/linux-raspberrypi/1_4.14.98+gitAUTOINC+5d63a4595d-r0/recipe-sysroot/usr/lib/libpthread.so
/home/sanpan02/yocto/rpi0/build/poky/build/tmp/sysroots-components/arm1176jzfshf-vfp/glibc/lib/libpthread.so.0
/home/sanpan02/yocto/rpi0/build/poky/build/tmp/sysroots-components/arm1176jzfshf-vfp/glibc/usr/lib/libpthread.so
/home/sanpan02/yocto/rpi0/build/poky/build/tmp/sysroots-components/arm1176jzfshf-vfp/glibc-stash-locale/lib/libpthread.so.0
/home/sanpan02/yocto/rpi0/build/poky/build/tmp/sysroots-components/arm1176jzfshf-vfp/glibc-stash-locale/usr/lib/libpthread.so
/home/sanpan02/yocto/rpi0/build/poky/build/tmp/sysroots-components/arm1176jzfshf-vfp/ltrace/usr/share/ltrace/libpthread.so-types.conf
/home/sanpan02/yocto/rpi0/build/poky/build/tmp/sysroots-components/arm1176jzfshf-vfp/ltrace/usr/share/ltrace/libpthread.so.conf
/home/sanpan02/yocto/rpi0/build/poky/build/tmp/sysroots-uninative/x86_64-linux/lib/libpthread.so.0
/home/sanpan02/yocto/rpi0/build/poky/build/tmp/work/raspberrypi0_wifi-poky-linux-gnueabi/linux-raspberrypi/1_4.14.98+gitAUTOINC+5d63a4595d-r0/recipe-sysroot/lib/libpthread.so.0
/home/sanpan02/yocto/rpi0/build/poky/build/tmp/work/raspberrypi0_wifi-poky-linux-gnueabi/linux-raspberrypi/1_4.14.98+gitAUTOINC+5d63a4595d-r0/recipe-sysroot/usr/lib/libpthread.so
/snap/core/8592/lib/i386-linux-gnu/libpthread.so.0
/snap/core/8592/lib/x86_64-linux-gnu/libpthread.so.0
/snap/core/8689/lib/i386-linux-gnu/libpthread.so.0
/snap/core/8689/lib/x86_64-linux-gnu/libpthread.so.0
/usr/lib/i386-linux-gnu/libpthread.so
/usr/lib/i386-linux-gnu/libpthread.so.0
/usr/lib/x86_64-linux-gnu/libgpgme-pthread.so.11
/usr/lib/x86_64-linux-gnu/libpthread.so
/usr/lib/x86_64-linux-gnu/libpthread.so.0
/usr/lib32/libpthread.so
/usr/lib32/libpthread.so.0
/usr/libx32/libpthread.so
/usr/libx32/libpthread.so.0
/var/lib/docker/overlay2/0c8ea1f480fbe5077d633ecb05ed4faa98ae559f42545727e57f64ff1ecf1aef/diff/lib32/libpthread.so.0
/var/lib/docker/overlay2/0c8ea1f480fbe5077d633ecb05ed4faa98ae559f42545727e57f64ff1ecf1aef/diff/libx32/libpthread.so.0
/var/lib/docker/overlay2/0c8ea1f480fbe5077d633ecb05ed4faa98ae559f42545727e57f64ff1ecf1aef/diff/usr/lib/x86_64-linux-gnu/libpthread.so
/var/lib/docker/overlay2/0c8ea1f480fbe5077d633ecb05ed4faa98ae559f42545727e57f64ff1ecf1aef/diff/usr/lib32/libpthread.so
/var/lib/docker/overlay2/0c8ea1f480fbe5077d633ecb05ed4faa98ae559f42545727e57f64ff1ecf1aef/diff/usr/libx32/libpthread.so
/var/lib/docker/overlay2/0e901bdec95b98edd18b9eecb6a81489cb425f975efc5f1f40bc00d553bd94e0/diff/lib/i386-linux-gnu/libpthread.so.0
/var/lib/docker/overlay2/0e901bdec95b98edd18b9eecb6a81489cb425f975efc5f1f40bc00d553bd94e0/diff/usr/lib/i386-linux-gnu/libpthread.so
/var/lib/docker/overlay2/15f5496cc8bdc881046b0dbfa02be558cefe5bebe797e15f522cd2dc3fb41ae4/diff/lib32/libpthread.so.0
/var/lib/docker/overlay2/15f5496cc8bdc881046b0dbfa02be558cefe5bebe797e15f522cd2dc3fb41ae4/diff/libx32/libpthread.so.0
/var/lib/docker/overlay2/15f5496cc8bdc881046b0dbfa02be558cefe5bebe797e15f522cd2dc3fb41ae4/diff/usr/lib/x86_64-linux-gnu/libpthread.so
/var/lib/docker/overlay2/15f5496cc8bdc881046b0dbfa02be558cefe5bebe797e15f522cd2dc3fb41ae4/diff/usr/lib32/libpthread.so
/var/lib/docker/overlay2/15f5496cc8bdc881046b0dbfa02be558cefe5bebe797e15f522cd2dc3fb41ae4/diff/usr/libx32/libpthread.so
/var/lib/docker/overlay2/177fc3529c8981460685fce2aab1a5e82df9c87a5b5a044505b6cdadb3098901/diff/lib32/libpthread.so.0
/var/lib/docker/overlay2/177fc3529c8981460685fce2aab1a5e82df9c87a5b5a044505b6cdadb3098901/diff/libx32/libpthread.so.0
/var/lib/docker/overlay2/177fc3529c8981460685fce2aab1a5e82df9c87a5b5a044505b6cdadb3098901/diff/usr/lib/x86_64-linux-gnu/libpthread.so
/var/lib/docker/overlay2/177fc3529c8981460685fce2aab1a5e82df9c87a5b5a044505b6cdadb3098901/diff/usr/lib32/libpthread.so
/var/lib/docker/overlay2/177fc3529c8981460685fce2aab1a5e82df9c87a5b5a044505b6cdadb3098901/diff/usr/libx32/libpthread.so
/var/lib/docker/overlay2/2d78eb816f508ed07586d1d3bc5bf943009ff334622db39bd4f33efec3ad66ae/diff/lib32/libpthread.so.0
/var/lib/docker/overlay2/2d78eb816f508ed07586d1d3bc5bf943009ff334622db39bd4f33efec3ad66ae/diff/libx32/libpthread.so.0
/var/lib/docker/overlay2/2d78eb816f508ed07586d1d3bc5bf943009ff334622db39bd4f33efec3ad66ae/diff/usr/lib/x86_64-linux-gnu/libpthread.so
/var/lib/docker/overlay2/2d78eb816f508ed07586d1d3bc5bf943009ff334622db39bd4f33efec3ad66ae/diff/usr/lib32/libpthread.so
/var/lib/docker/overlay2/2d78eb816f508ed07586d1d3bc5bf943009ff334622db39bd4f33efec3ad66ae/diff/usr/libx32/libpthread.so
/var/lib/docker/overlay2/3533ce678f96fabeef69973532bd9e49de55c927b71ce0d95ecc9477769736c2/diff/usr/lib/x86_64-linux-gnu/libpthread.so.0
/var/lib/docker/overlay2/40b416af489855bd7af7cfbb2ec16b5f2cb6e30ac12b68cb0c53c03320ddb1ca/diff/lib/i386-linux-gnu/libpthread.so.0
/var/lib/docker/overlay2/40b416af489855bd7af7cfbb2ec16b5f2cb6e30ac12b68cb0c53c03320ddb1ca/diff/usr/lib/i386-linux-gnu/libpthread.so
/var/lib/docker/overlay2/4587a20c69a1826e165d1b4ce26c3706801d8e600c8171aa4cdd5538e043d245/diff/lib32/libpthread.so.0
/var/lib/docker/overlay2/4587a20c69a1826e165d1b4ce26c3706801d8e600c8171aa4cdd5538e043d245/diff/libx32/libpthread.so.0
/var/lib/docker/overlay2/4587a20c69a1826e165d1b4ce26c3706801d8e600c8171aa4cdd5538e043d245/diff/usr/lib/x86_64-linux-gnu/libpthread.so
/var/lib/docker/overlay2/4587a20c69a1826e165d1b4ce26c3706801d8e600c8171aa4cdd5538e043d245/diff/usr/lib32/libpthread.so
/var/lib/docker/overlay2/4587a20c69a1826e165d1b4ce26c3706801d8e600c8171aa4cdd5538e043d245/diff/usr/libx32/libpthread.so
/var/lib/docker/overlay2/5af7e1c24c8f386d2f230a3657e0f59960511deac8929236051347c0b671ced8/diff/lib/x86_64-linux-gnu/libpthread.so.0
/var/lib/docker/overlay2/76d0fad2048f1cfa2f74a67168e352c172f3cf8a8f3648fd38992bb3735efa1b/diff/lib/i386-linux-gnu/libpthread.so.0
/var/lib/docker/overlay2/76d0fad2048f1cfa2f74a67168e352c172f3cf8a8f3648fd38992bb3735efa1b/diff/usr/lib/i386-linux-gnu/libpthread.so
/var/lib/docker/overlay2/8b17fd97f570107ca6b48dfb47c6fd467e0b5d9458e136dbe3506a340e2fefcc/diff/lib32/libpthread.so.0
/var/lib/docker/overlay2/8b17fd97f570107ca6b48dfb47c6fd467e0b5d9458e136dbe3506a340e2fefcc/diff/libx32/libpthread.so.0
/var/lib/docker/overlay2/8b17fd97f570107ca6b48dfb47c6fd467e0b5d9458e136dbe3506a340e2fefcc/diff/usr/lib/x86_64-linux-gnu/libpthread.so
/var/lib/docker/overlay2/8b17fd97f570107ca6b48dfb47c6fd467e0b5d9458e136dbe3506a340e2fefcc/diff/usr/lib32/libpthread.so
/var/lib/docker/overlay2/8b17fd97f570107ca6b48dfb47c6fd467e0b5d9458e136dbe3506a340e2fefcc/diff/usr/libx32/libpthread.so
/var/lib/docker/overlay2/9a2e1b5b24b55701b70ebc6fed5c5f1059288ea81e9918b64ac5efbe96d5053e/diff/lib/i386-linux-gnu/libpthread.so.0
/var/lib/docker/overlay2/9a2e1b5b24b55701b70ebc6fed5c5f1059288ea81e9918b64ac5efbe96d5053e/diff/usr/lib/i386-linux-gnu/libpthread.so
/var/lib/docker/overlay2/9a9cef3076b55249cc1c3cb0c4e44af478a5f8bb1d5c05b7965a5a5304abe0ee/diff/lib/i386-linux-gnu/libpthread.so.0
/var/lib/docker/overlay2/9a9cef3076b55249cc1c3cb0c4e44af478a5f8bb1d5c05b7965a5a5304abe0ee/diff/usr/lib/i386-linux-gnu/libpthread.so
/var/lib/docker/overlay2/a09d4e176fe71f625524a46a37da425d20450ee5ab14b8eaae96ceb688d5c9a0/diff/lib/i386-linux-gnu/libpthread.so.0
/var/lib/docker/overlay2/a09d4e176fe71f625524a46a37da425d20450ee5ab14b8eaae96ceb688d5c9a0/diff/usr/lib/i386-linux-gnu/libpthread.so
/var/lib/docker/overlay2/ad4eac46383cff83134ea95db367df4cf2f2988aea17c8e6f76556dd3533b6b4/diff/lib/i386-linux-gnu/libpthread.so.0
/var/lib/docker/overlay2/ad4eac46383cff83134ea95db367df4cf2f2988aea17c8e6f76556dd3533b6b4/diff/usr/lib/i386-linux-gnu/libpthread.so
/var/lib/docker/overlay2/c83d01566e158ae8c458356c0fea42703584a762179dbc859add04c01365be59/diff/lib/x86_64-linux-gnu/libpthread.so.0
/var/lib/docker/overlay2/cd6bb1e57ae7e9bc48ad38fa20f82e6e6f7e45f1045706d01eb66834e83da041/diff/lib/i386-linux-gnu/libpthread.so.0
/var/lib/docker/overlay2/cd6bb1e57ae7e9bc48ad38fa20f82e6e6f7e45f1045706d01eb66834e83da041/diff/usr/lib/i386-linux-gnu/libpthread.so
/var/lib/docker/overlay2/db5952d67c70feb48e9a0821e04234c75545bc8634c0db3077bb83f5c7a9b5e2/diff/lib/i386-linux-gnu/libpthread.so.0
/var/lib/docker/overlay2/db5952d67c70feb48e9a0821e04234c75545bc8634c0db3077bb83f5c7a9b5e2/diff/usr/lib/i386-linux-gnu/libpthread.so
/var/lib/docker/overlay2/taagogo0ynlsin8sndgl7qfzo/diff/lib32/libpthread.so.0
/var/lib/docker/overlay2/taagogo0ynlsin8sndgl7qfzo/diff/libx32/libpthread.so.0
/var/lib/docker/overlay2/taagogo0ynlsin8sndgl7qfzo/diff/usr/lib/x86_64-linux-gnu/libpthread.so
/var/lib/docker/overlay2/taagogo0ynlsin8sndgl7qfzo/diff/usr/lib32/libpthread.so
/var/lib/docker/overlay2/taagogo0ynlsin8sndgl7qfzo/diff/usr/libx32/libpthread.so
/var/lib/docker/overlay2/tv2ccxq7ib5siz82vs0ep6ebm/diff/lib/i386-linux-gnu/libpthread.so.0
/var/lib/docker/overlay2/tv2ccxq7ib5siz82vs0ep6ebm/diff/usr/lib/i386-linux-gnu/libpthread.so
/var/lib/docker/overlay2/vkjxmk8rhoiw7c0amjcfkltoq/diff/lib32/libpthread.so.0
/var/lib/docker/overlay2/vkjxmk8rhoiw7c0amjcfkltoq/diff/libx32/libpthread.so.0
/var/lib/docker/overlay2/vkjxmk8rhoiw7c0amjcfkltoq/diff/usr/lib/x86_64-linux-gnu/libpthread.so
/var/lib/docker/overlay2/vkjxmk8rhoiw7c0amjcfkltoq/diff/usr/lib32/libpthread.so
/var/lib/docker/overlay2/vkjxmk8rhoiw7c0amjcfkltoq/diff/usr/libx32/libpthread.so
/var/lib/docker/overlay2/wt09r7p7404766azs6xi3tnu5/diff/lib/i386-linux-gnu/libpthread.so.0
/var/lib/docker/overlay2/wt09r7p7404766azs6xi3tnu5/diff/usr/lib/i386-linux-gnu/libpthread.so

from mbed-edge.

ciarmcom avatar ciarmcom commented on May 22, 2024

ARM Internal Ref: IOTGW-1072

from mbed-edge.

whygoyal avatar whygoyal commented on May 22, 2024

@jk-arm were you able to reproduce this? are you still facing this problem?

from mbed-edge.

Related Issues (12)

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.