Package Details: gr-osmosdr-xtrx-git r435.778cf41-1

Git Clone URL: https://aur.archlinux.org/gr-osmosdr-xtrx-git.git (read-only, click to copy)
Package Base: gr-osmosdr-xtrx-git
Description: gr-osmosdr distribution with XTRX support
Upstream URL: https://github.com/xtrx-sdr/gr-osmosdr
Licenses: GPL3
Conflicts: gnuradio-osmosdr, gnuradio-osmosdr-gqrx-git, gr-osmosdr-git, gr-osmosdr-nonfree-git, gr-osmosdr-xtrx
Provides: gnuradio-osmosdr, gr-osmosdr, gr-osmosdr-xtrx
Submitter: lainpants
Maintainer: lainpants
Last Packager: lainpants
Votes: 0
Popularity: 0.000000
First Submitted: 2019-07-28 00:03
Last Updated: 2020-05-26 18:39

Dependencies (14)

Required by (14)

Sources (1)

Latest Comments

lainpants commented on 2020-06-01 17:35

Please show the output of:

cd ~/.cache/yay/gr-osmosdr-xtrx-git/src/gr-osmosdr/build
cmake -Wno-dev ..

plushvoxel commented on 2020-05-28 21:42

running yay -S gr-osmosdr-xtrx-git results in

-- Configuring incomplete, errors occurred!
See also "/home/marble/.cache/yay/gr-osmosdr-xtrx-git/src/gr-osmosdr/build/CMakeFiles/CMakeOutput.log".
See also "/home/marble/.cache/yay/gr-osmosdr-xtrx-git/src/gr-osmosdr/build/CMakeFiles/CMakeError.log".
==> ERROR: A failure occurred in build().
    Aborting...
Error making: gr-osmosdr-xtrx-git

The content of /home/marble/.cache/yay/gr-osmosdr-xtrx-git/src/gr-osmosdr/build/CMakeFiles/CMakeError.log is

Performing C SOURCE FILE Test CMAKE_HAVE_LIBC_PTHREAD failed with the following output:
Change Dir: /home/marble/.cache/yay/gr-osmosdr-xtrx-git/src/gr-osmosdr/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make cmTC_16d49/fast && /usr/bin/make  -f CMakeFiles/cmTC_16d49.dir/build.make CMakeFiles/cmTC_16d49.dir/build
make[1]: Entering directory '/home/marble/.cache/yay/gr-osmosdr-xtrx-git/src/gr-osmosdr/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_16d49.dir/src.c.o
/usr/bin/cc   -D_FORTIFY_SOURCE=2 -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -DCMAKE_HAVE_LIBC_PTHREAD   -o CMakeFiles/cmTC_16d49.dir/src.c.o   -c /home/marble/.cache/yay/gr-osmosdr-xtrx-git/src/gr-osmosdr/build/CMakeFiles/CMakeTmp/src.c
Linking C executable cmTC_16d49
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_16d49.dir/link.txt --verbose=1
/usr/bin/cc -D_FORTIFY_SOURCE=2 -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -DCMAKE_HAVE_LIBC_PTHREAD  -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now  -rdynamic CMakeFiles/cmTC_16d49.dir/src.c.o  -o cmTC_16d49 
/usr/bin/ld: CMakeFiles/cmTC_16d49.dir/src.c.o: in function `main':
src.c:(.text.startup+0x24): undefined reference to `pthread_create'
/usr/bin/ld: src.c:(.text.startup+0x2e): undefined reference to `pthread_detach'
/usr/bin/ld: src.c:(.text.startup+0x38): undefined reference to `pthread_cancel'
/usr/bin/ld: src.c:(.text.startup+0x44): undefined reference to `pthread_join'
collect2: error: ld returned 1 exit status
make[1]: *** [CMakeFiles/cmTC_16d49.dir/build.make:107: cmTC_16d49] Error 1
make[1]: Leaving directory '/home/marble/.cache/yay/gr-osmosdr-xtrx-git/src/gr-osmosdr/build/CMakeFiles/CMakeTmp'
make: *** [Makefile:141: cmTC_16d49/fast] Error 2


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/marble/.cache/yay/gr-osmosdr-xtrx-git/src/gr-osmosdr/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make cmTC_1f139/fast && /usr/bin/make  -f CMakeFiles/cmTC_1f139.dir/build.make CMakeFiles/cmTC_1f139.dir/build
make[1]: Entering directory '/home/marble/.cache/yay/gr-osmosdr-xtrx-git/src/gr-osmosdr/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_1f139.dir/CheckFunctionExists.c.o
/usr/bin/cc   -D_FORTIFY_SOURCE=2 -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -DCHECK_FUNCTION_EXISTS=pthread_create   -o CMakeFiles/cmTC_1f139.dir/CheckFunctionExists.c.o   -c /usr/share/cmake-3.17/Modules/CheckFunctionExists.c
Linking C executable cmTC_1f139
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_1f139.dir/link.txt --verbose=1
/usr/bin/cc -D_FORTIFY_SOURCE=2 -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -DCHECK_FUNCTION_EXISTS=pthread_create  -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now  -rdynamic CMakeFiles/cmTC_1f139.dir/CheckFunctionExists.c.o  -o cmTC_1f139  -lpthreads 
/usr/bin/ld: cannot find -lpthreads
collect2: error: ld returned 1 exit status
make[1]: *** [CMakeFiles/cmTC_1f139.dir/build.make:107: cmTC_1f139] Error 1
make[1]: Leaving directory '/home/marble/.cache/yay/gr-osmosdr-xtrx-git/src/gr-osmosdr/build/CMakeFiles/CMakeTmp'
make: *** [Makefile:141: cmTC_1f139/fast] Error 2

lainpants commented on 2020-05-26 18:41

Looks like they accepted my patch upstream. I've fixed the PKGBUILD.

Unfortunately I can't test because Arch has moved to gnuradio 3.8 which this won't build against. Anyone know how to get this building?

plushvoxel commented on 2020-05-26 00:26

the patch doesn't apply correctly.

130 marble@x270 ~/repos/gr-osmosdr/build (git)-[libxtrx] % yay -S gr-osmosdr-xtrx-git                :(
:: Checking for conflicts...
:: Checking for inner conflicts...
[Aur: 1]  gr-osmosdr-xtrx-git-r434.44ed8d7-1

  1 gr-osmosdr-xtrx-git                      (Build Files Exist)
==> Packages to cleanBuild?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==> A
:: Deleting (1/1): /home/marble/.cache/yay/gr-osmosdr-xtrx-git
:: Downloaded PKGBUILD (1/1): gr-osmosdr-xtrx-git
  1 gr-osmosdr-xtrx-git                      (Build Files Exist)
==> Diffs to show?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==>
:: Parsing SRCINFO (1/1): gr-osmosdr-xtrx-git
==> Making package: gr-osmosdr-xtrx-git r434.44ed8d7-1 (2020-05-26T02:23:59 CEST)
==> Retrieving sources...
  -> Cloning gr-osmosdr git repo...
Cloning into bare repository '/home/marble/.cache/yay/gr-osmosdr-xtrx-git/gr-osmosdr'...
remote: Enumerating objects: 2, done.
remote: Counting objects: 100% (2/2), done.
remote: Compressing objects: 100% (2/2), done.
remote: Total 4270 (delta 0), reused 1 (delta 0), pack-reused 4268
Receiving objects: 100% (4270/4270), 1.18 MiB | 13.00 KiB/s, done.
Resolving deltas: 100% (2905/2905), done.
  -> Found 0001-Replace-xtrx_open_list-call-with-xtrx_open_string.patch
==> Validating source files with md5sums...
    gr-osmosdr ... Skipped
    0001-Replace-xtrx_open_list-call-with-xtrx_open_string.patch ... Passed
==> Making package: gr-osmosdr-xtrx-git r434.44ed8d7-1 (2020-05-26T02:25:32 CEST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Updating gr-osmosdr git repo...
Fetching origin
  -> Found 0001-Replace-xtrx_open_list-call-with-xtrx_open_string.patch
==> Validating source files with md5sums...
    gr-osmosdr ... Skipped
    0001-Replace-xtrx_open_list-call-with-xtrx_open_string.patch ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Creating working copy of gr-osmosdr git repo...
Cloning into 'gr-osmosdr'...
done.
==> Starting prepare()...
Applying: Replace xtrx_open_list call with xtrx_open_string.
error: patch failed: lib/xtrx/xtrx_obj.cc:68
error: lib/xtrx/xtrx_obj.cc: patch does not apply
Patch failed at 0001 Replace xtrx_open_list call with xtrx_open_string.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".
==> ERROR: A failure occurred in prepare().
    Aborting...
Error making: gr-osmosdr-xtrx-git