discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] I can't get my gsl to link


From: Vasil Velichkov
Subject: Re: [Discuss-gnuradio] I can't get my gsl to link
Date: Fri, 6 Sep 2019 16:40:10 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0

Hi Alen,

On 06/09/2019 00.45, Alan Corey wrote:
> I think this is a low level problem, it gets through cmake and all
> that, but when it gets down to make and ld I get:
> 
> [ 49%] Built target fft_qa_fft_shift
> [ 49%] Linking CXX shared library libgnuradio-filter.so
> /usr/bin/ld: error: cannot find -lgsl
> /usr/bin/ld: error: cannot find -lgslcblas
> collect2: error: ld returned 1 exit status
> gr-fec/lib/CMakeFiles/gnuradio-fec.dir/build.make:824: recipe for target 
> 'gr-fec
> /lib/libgnuradio-fec.so.3.9.0.0-git' failed
> make[2]: *** [gr-fec/lib/libgnuradio-fec.so.3.9.0.0-git] Error 1
> CMakeFiles/Makefile2:4691: recipe for target 
> 'gr-fec/lib/CMakeFiles/gnuradio-fec
> .dir/all' failed
> make[1]: *** [gr-fec/lib/CMakeFiles/gnuradio-fec.dir/all] Error 2
> make[1]: *** Waiting for unfinished jobs....
> [ 52%] Built target gnuradio-filter
> Makefile:140: recipe for target 'all' failed
> make: *** [all] Error 2

Post the output of 

    ld --verbose | grep SEARCH_DIR | tr -s ' ;' \\012
    make VERBOSE=1

> Yet ldconfig -p | grep gsl says
>       libgslcblas.so.0 (libc6,AArch64) => /usr/local/lib/libgslcblas.so.0
>       libgslcblas.so (libc6,AArch64) => /usr/local/lib/libgslcblas.so
>       libgsl.so.25 (libc6,AArch64) => /usr/local/lib/libgsl.so.25
>       libgsl.so (libc6,AArch64) => /usr/local/lib/libgsl.so

The ldconfig cache is used only by the runtime linker and is not used when you 
build a program or library, e.g. not used by /usr/bin/ld. 
https://stackoverflow.com/a/21610523/2315085

> What's maybe odd is that ls -al | grep gsl in /usr/local/lib looks like this:
> -rw-r--r--  1 root staff 22783350 Sep  3 21:19 libgsl.a
> -rw-r--r--  1 root staff  1885346 Sep  3 21:19 libgslcblas.a
> -rwxr-xr-x  1 root staff      949 Sep  3 21:19 libgslcblas.la
> lrwxrwxrwx  1 root staff       20 Sep  3 21:19 libgslcblas.so ->
> libgslcblas.so.0.0.0
> lrwxrwxrwx  1 root staff       20 Sep  3 21:19 libgslcblas.so.0 ->
> libgslcblas.so.0.0.0
> -rwxr-xr-x  1 root staff  1121320 Sep  3 21:19 libgslcblas.so.0.0.0
> -rwxr-xr-x  1 root staff      918 Sep  3 21:19 libgsl.la
> lrwxrwxrwx  1 root staff       16 Sep  3 21:19 libgsl.so -> libgsl.so.25.0.0
> lrwxrwxrwx  1 root staff       16 Sep  3 21:19 libgsl.so.25 -> 
> libgsl.so.25.0.0
> -rwxr-xr-x  1 root staff 12949992 Sep  3 21:19 libgsl.so.25.0.0
> 
> Only the symlinks to the real files end up in the ld.so cache,
> ldfonfig doesn't pick up the actual files (libgsl.so.25.0.0 and
> libgslcblas.so.0.0.0) at all.  That may not be important.

That is normal.

> Are the permissions wrong?  They installed this way.
> 
> I installed gsl 2.6 from a tarball from http://ftp.gnu.org/gnu/gsl/, I
> fetched Gnuradio by doing git clone --recursive
> https://github.com/gnuradio/gnuradio.git

>From the ldconfig output it looks like you are building it on an 64bit ARM 
>platform (AArch64). What device do you use and which Linux distribution?

Regards,
Vasil



reply via email to

[Prev in Thread] Current Thread [Next in Thread]