WindRiver-Labs / wrlinux-x

setup tool for Wind River Linux (10.x) - start HERE!
GNU General Public License v2.0
161 stars 67 forks source link

sota-tools-native-git-r0 do_fetch: failed to fetch URL #11

Open arrascue opened 3 years ago

arrascue commented 3 years ago

I was following this tutorial https://docs.windriver.com/bundle/Wind_River_Linux_Tutorial_Using_OSTree_for_Updates_at_Run_Time_LTS_19/page/vpu1573077211787.html to try OSTree using WRLINUX_10_19_BASE_UPDATE0014 as the starting point. I could not build the image sucecsfully because of the error mentioned in the title. I tried to fix it by updating a couple of entries in the recipe "sota-tools_git.bb" located in $WIND_RIVER/layers/wr-ostree/recipes-sota/sota-tools.

I updated the License LIC_FILES_CHKSUM = "file://LICENSE;md5=815ca599c9df247a0c7f619bab123dad" and repository SRC_URI = "gitsm://github.com/advancedtelematic/aktualizr.git;branch=master"

I did not install the patch file://0001-tools-CMakeLists.txt-append-boost_log_setup-to-Boost.patch since that gave an error

However, I got another error: Could NOT find LibArchive (missing: LibArchive_LIBRARY

This is the error message logged in CMakeError.log in $WIND_RIVER/build/tmp-glibc/work/x86_64-linux/sota-tools-native/git-r0/build/CMakeFiles:

Run Build Command(s):ninja cmTC_52a77 && [1/2] Building C object CMakeFiles/cmTC_52a77.dir/src.c.o
[2/2] Linking C executable cmTC_52a77
FAILED: cmTC_52a77 
: && [...]/build/tmp-glibc/hosttools/gcc -isystem[...]/build/tmp-glibc/work/x86_64-linux/sota-tools-native/git-r0/recipe-sysroot-native/usr/include -O2 -pipe -DCMAKE_HAVE_LIBC_PTHREAD   -isystem[...]/build/tmp-glibc/work/x86_64-linux/sota-tools-native/git-r0/recipe-sysroot-native/usr/include -L[...]/build/tmp-glibc/work/x86_64-linux/sota-tools-native/git-r0/recipe-sysroot-native/usr/lib                         -L[...]/build/tmp-glibc/work/x86_64-linux/sota-tools-native/git-r0/recipe-sysroot-native/lib                         -Wl,--enable-new-dtags                         -Wl,-rpath-link,[...]/build/tmp-glibc/work/x86_64-linux/sota-tools-native/git-r0/recipe-sysroot-native/usr/lib                         -Wl,-rpath-link,[...]/build/tmp-glibc/work/x86_64-linux/sota-tools-native/git-r0/recipe-sysroot-native/lib                         -Wl,-rpath,[...]/build/tmp-glibc/work/x86_64-linux/sota-tools-native/git-r0/recipe-sysroot-native/usr/lib                         -Wl,-rpath,[...]/build/tmp-glibc/work/x86_64-linux/sota-tools-native/git-r0/recipe-sysroot-native/lib                         -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=[...]/build/tmp-glibc/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 -L[...]/build/tmp-glibc/work/x86_64-linux/sota-tools-native/git-r0/recipe-sysroot-native/usr/lib                         -L[...]/build/tmp-glibc/work/x86_64-linux/sota-tools-native/git-r0/recipe-sysroot-native/lib                         -Wl,--enable-new-dtags                         -Wl,-rpath-link,[...]/build/tmp-glibc/work/x86_64-linux/sota-tools-native/git-r0/recipe-sysroot-native/usr/lib                         -Wl,-rpath-link,[...]/build/tmp-glibc/work/x86_64-linux/sota-tools-native/git-r0/recipe-sysroot-native/lib                         -Wl,-rpath,[...]/build/tmp-glibc/work/x86_64-linux/sota-tools-native/git-r0/recipe-sysroot-native/usr/lib                         -Wl,-rpath,[...]/build/tmp-glibc/work/x86_64-linux/sota-tools-native/git-r0/recipe-sysroot-native/lib                         -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=[...]/build/tmp-glibc/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 CMakeFiles/cmTC_52a77.dir/src.c.o  -o cmTC_52a77   && :
CMakeFiles/cmTC_52a77.dir/src.c.o: In function `main':
src.c:(.text.startup+0x23): undefined reference to `pthread_create'
src.c:(.text.startup+0x2c): undefined reference to `pthread_detach'
src.c:(.text.startup+0x37): undefined reference to `pthread_join'
src.c:(.text.startup+0x42): undefined reference to `pthread_atfork'
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.

I am not sure how to solve this problem. Best, Anthony