discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: gmp and mpir missing package when Cross-Compiling gr-ettus


From: Marcus Müller
Subject: Re: gmp and mpir missing package when Cross-Compiling gr-ettus
Date: Wed, 26 Oct 2022 18:02:11 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.0

Hey Jorge,

saw it :)
Still a bit confused by it, because:
while you only need *either* GMP *or* MPIR (basically, the same thing), that should be in there as dependency of GNU Radio.

Best,
 Marcus

On 26.10.22 16:15, JORGE GONZALEZ ORELLANA via GNU Radio, the Free & Open-Source Toolkit for Software Radio wrote:
in case that you couldn't see what it says in the screenshot, here is it:

{{{
uno@uno-laptop:~$  . ~/rfnoc/src/e3xx_e310_sdk_default-v4.2.0.1/OE_SDK/environment-setup-cortexa9t2hf-neon-oe-linux-gnueabi
Your environment is misconfigured, you probably need to 'unset LD_LIBRARY_PATH'
but please check why this was set in the first place and that it's safe to 
unset.
The SDK will not operate correctly in most cases when LD_LIBRARY_PATH is set.
For more references see:
http://tldp.org/HOWTO/Program-Library-HOWTO/shared-libraries.html#AEN80 <http://tldp.org/HOWTO/Program-Library-HOWTO/shared-libraries.html#AEN80> http://xahlee.info/UnixResource_dir/_/ldpath.html <http://xahlee.info/UnixResource_dir/_/ldpath.html>
uno@uno-laptop:~$ ^C
uno@uno-laptop:~$ unset LD_LIBRARY_PATH
uno@uno-laptop:~$  . ~/rfnoc/src/e3xx_e310_sdk_default-v4.2.0.1/OE_SDK/environment-setup-cortexa9t2hf-neon-oe-linux-gnueabi
uno@uno-laptop:~$ which cmake
/home/uno/rfnoc/src/e3xx_e310_sdk_default-v4.2.0.1/OE_SDK/sysroots/x86_64-oesdk-linux/usr/bin/cmake
uno@uno-laptop:~$ echo $CC
arm-oe-linux-gnueabi-gcc -mthumb -mfpu=neon -mfloat-abi=hard -mcpu=cortex-a9 --sysroot=/home/uno/rfnoc/src/e3xx_e310_sdk_default-v4.2.0.1/OE_SDK/sysroots/cortexa9t2hf-neon-oe-linux-gnueabi
uno@uno-laptop:~$ gnuradio --version
bash: gnuradio: orden no encontrada
uno@uno-laptop:~$ gnuradio-config-info --version
3.8.5.0
uno@uno-laptop:~$ cd ~/rfnoc/src/gr-ettus/build-arm
uno@uno-laptop:~/rfnoc/src/gr-ettus/build-arm$ cmake -DCMAKE_TOOLCHAIN_FILE=~/rfnoc/src/gnuradio/cmake/Toolchains/oe-sdk_cross.cmake -DCMAKE_INSTALL_PREFIX=/usr ..
-- Build type not specified: defaulting to release.
-- Checking for module 'gmp'
--   No package 'gmp' found
-- Checking for module 'mpir >= 3.0'
--   No package 'mpir' found
-- Could NOT find MPIR (missing: MPIRXX_LIBRARY MPIR_LIBRARY MPIR_INCLUDE_DIR)
-- User set python executable /__w/83/build/tmp-glibc/work/cortexa9t2hf-neon-oe-linux-gnueabi/gnuradio/3.8.3.0-r0/recipe-sysroot-native/usr/bin/python3-native/python3 CMake Error at /home/uno/rfnoc/src/e3xx_e310_sdk_default-v4.2.0.1/OE_SDK/sysroots/cortexa9t2hf-neon-oe-linux-gnueabi/usr/lib/cmake/gnuradio/GrPython.cmake:40 (if):
   if given arguments:

     "VERSION_EQUAL" "3"

   Unknown arguments specified
Call Stack (most recent call first):
/home/uno/rfnoc/src/e3xx_e310_sdk_default-v4.2.0.1/OE_SDK/sysroots/cortexa9t2hf-neon-oe-linux-gnueabi/usr/lib/cmake/gnuradio/GnuradioConfig.cmake:51 (include)
   CMakeLists.txt:59 (find_package)


-- Configuring incomplete, errors occurred!
See also "/home/uno/rfnoc/src/gr-ettus/build-arm/CMakeFiles/CMakeOutput.log".
See also "/home/uno/rfnoc/src/gr-ettus/build-arm/CMakeFiles/CMakeError.log".
uno@uno-laptop:~/rfnoc/src/gr-ettus/build-arm$

}}}

this was the SDK that i download:

{{{
wget https://files.ettus.com/binaries/cache/e3xx/meta-ettus-v4.2.0.1/e3xx_e310_sdk_default-v4.2.0.1.zip <https://files.ettus.com/binaries/cache/e3xx/meta-ettus-v4.2.0.1/e3xx_e310_sdk_default-v4.2.0.1.zip>
}}}

It is different from the one in the guide I'm following.

{{{
https://kb.ettus.com/Software_Development_on_the_E3xx_USRP_-_Building_RFNoC_UHD_/_GNU_Radio_/_gr-ettus_from_Source#Cross-Compiling_gr-ettus
 
<https://kb.ettus.com/Software_Development_on_the_E3xx_USRP_-_Building_RFNoC_UHD_/_GNU_Radio_/_gr-ettus_from_Source#Cross-Compiling_gr-ettus>
}}}


thanks for your time

El mar, 25 oct 2022 a las 17:07, Marcus Müller (<mmueller@gnuradio.org <mailto:mmueller@gnuradio.org>>) escribió:

    Don't worry at all :) I'm happy we're having this conversation!

    On 25.10.22 21:33, JORGE GONZALEZ ORELLANA via GNU Radio, the Free & 
Open-Source Toolkit
    for Software Radio wrote:
     > sorry i reply to you directly before.
     > here is the text from the screenshot
     >
     > {{{
     > uno@uno-laptop:~$  .
     >
    
~/rfnoc/src/e3xx_e310_sdk_default-v4.2.0.1/OE_SDK/environment-setup-cortexa9t2hf-neon-oe-linux-gnueabi
     > Your environment is misconfigured, you probably need to 'unset 
LD_LIBRARY_PATH'
     > but please check why this was set in the first place and that it's safe 
to unset.
     > The SDK will not operate correctly in most cases when LD_LIBRARY_PATH is 
set.
     > For more references see:
     > http://tldp.org/HOWTO/Program-Library-HOWTO/shared-libraries.html#AEN80
    <http://tldp.org/HOWTO/Program-Library-HOWTO/shared-libraries.html#AEN80>
     > <http://tldp.org/HOWTO/Program-Library-HOWTO/shared-libraries.html#AEN80
    <http://tldp.org/HOWTO/Program-Library-HOWTO/shared-libraries.html#AEN80>>
     > http://xahlee.info/UnixResource_dir/_/ldpath.html
    <http://xahlee.info/UnixResource_dir/_/ldpath.html>
     > <http://xahlee.info/UnixResource_dir/_/ldpath.html
    <http://xahlee.info/UnixResource_dir/_/ldpath.html>>
     > uno@uno-laptop:~$ ^C
     > uno@uno-laptop:~$ unset LD_LIBRARY_PATH
     > uno@uno-laptop:~$  .
     >
    
~/rfnoc/src/e3xx_e310_sdk_default-v4.2.0.1/OE_SDK/environment-setup-cortexa9t2hf-neon-oe-linux-gnueabi
     > uno@uno-laptop:~$ which cmake
     >
    
/home/uno/rfnoc/src/e3xx_e310_sdk_default-v4.2.0.1/OE_SDK/sysroots/x86_64-oesdk-linux/usr/bin/cmake
     > uno@uno-laptop:~$ echo $CC
     > arm-oe-linux-gnueabi-gcc -mthumb -mfpu=neon -mfloat-abi=hard 
-mcpu=cortex-a9
     >
    
--sysroot=/home/uno/rfnoc/src/e3xx_e310_sdk_default-v4.2.0.1/OE_SDK/sysroots/cortexa9t2hf-neon-oe-linux-gnueabi
     > uno@uno-laptop:~$ gnuradio --version
     > bash: gnuradio: orden no encontrada
     > uno@uno-laptop:~$ gnuradio-config-info --version
     > 3.8.5.0
     > uno@uno-laptop:~$ cd ~/rfnoc/src/gr-ettus/build-arm
     > uno@uno-laptop:~/rfnoc/src/gr-ettus/build-arm$ cmake
     > 
-DCMAKE_TOOLCHAIN_FILE=~/rfnoc/src/gnuradio/cmake/Toolchains/oe-sdk_cross.cmake
     > -DCMAKE_INSTALL_PREFIX=/usr ..
     > -- Build type not specified: defaulting to release.
     > -- Checking for module 'gmp'
     > --   No package 'gmp' found
     > -- Checking for module 'mpir >= 3.0'
     > --   No package 'mpir' found
     > -- Could NOT find MPIR (missing: MPIRXX_LIBRARY MPIR_LIBRARY 
MPIR_INCLUDE_DIR)
     > -- User set python executable
     >
    
/__w/83/build/tmp-glibc/work/cortexa9t2hf-neon-oe-linux-gnueabi/gnuradio/3.8.3.0-r0/recipe-sysroot-native/usr/bin/python3-native/python3
     > CMake Error at
     >
    
/home/uno/rfnoc/src/e3xx_e310_sdk_default-v4.2.0.1/OE_SDK/sysroots/cortexa9t2hf-neon-oe-linux-gnueabi/usr/lib/cmake/gnuradio/GrPython.cmake:40
 (if):
     >    if given arguments:
     >
     >      "VERSION_EQUAL" "3"
     >
     >    Unknown arguments specified
     > Call Stack (most recent call first):
     >
     >
    
/home/uno/rfnoc/src/e3xx_e310_sdk_default-v4.2.0.1/OE_SDK/sysroots/cortexa9t2hf-neon-oe-linux-gnueabi/usr/lib/cmake/gnuradio/GnuradioConfig.cmake:51
 (include)
     >    CMakeLists.txt:59 (find_package)
     >
     >
     > -- Configuring incomplete, errors occurred!
     > See also 
"/home/uno/rfnoc/src/gr-ettus/build-arm/CMakeFiles/CMakeOutput.log".
     > See also 
"/home/uno/rfnoc/src/gr-ettus/build-arm/CMakeFiles/CMakeError.log".
     > uno@uno-laptop:~/rfnoc/src/gr-ettus/build-arm$
     > }}}
     >
     > El mar, 25 oct 2022 a las 16:27, Marcus Müller (<marcus.mueller@ettus.com
    <mailto:marcus.mueller@ettus.com>
     > <mailto:marcus.mueller@ettus.com <mailto:marcus.mueller@ettus.com>>>) 
escribió:
     >
     >     Hi Jorge,
     >
     >     hope you don't mind me replying on the list itself - as this is 
really just the
    same
     >     email as before :)
     >
     >     So, yes, you'll need one of gmp or mpir. But these should be there, 
since you
    already
     >     seem to have built GNU Radio for the ARM target, right?
     >
     >     That's what's confusing me.
     >
     >     Best regards,
     >     Marcus
     >
     >     On 25.10.22 19:20, JORGE GONZALEZ ORELLANA wrote:
     >>     sure, here is the text of the screenshot:
     >>
     >>     {{{
     >>     uno@uno-laptop:~$  .
>>  ~/rfnoc/src/e3xx_e310_sdk_default-v4.2.0.1/OE_SDK/environment-setup-cortexa9t2hf-neon-oe-linux-gnueabi
     >>     Your environment is misconfigured, you probably need to 'unset 
LD_LIBRARY_PATH'
     >>     but please check why this was set in the first place and that it's 
safe to unset.
     >>     The SDK will not operate correctly in most cases when 
LD_LIBRARY_PATH is set.
     >>     For more references see:
     >> http://tldp.org/HOWTO/Program-Library-HOWTO/shared-libraries.html#AEN80
    <http://tldp.org/HOWTO/Program-Library-HOWTO/shared-libraries.html#AEN80>
     >>     
<http://tldp.org/HOWTO/Program-Library-HOWTO/shared-libraries.html#AEN80
    <http://tldp.org/HOWTO/Program-Library-HOWTO/shared-libraries.html#AEN80>>
     >> http://xahlee.info/UnixResource_dir/_/ldpath.html
    <http://xahlee.info/UnixResource_dir/_/ldpath.html>
     >>     <http://xahlee.info/UnixResource_dir/_/ldpath.html
    <http://xahlee.info/UnixResource_dir/_/ldpath.html>>
     >>     uno@uno-laptop:~$ ^C
     >>     uno@uno-laptop:~$ unset LD_LIBRARY_PATH
     >>     uno@uno-laptop:~$  .
>>  ~/rfnoc/src/e3xx_e310_sdk_default-v4.2.0.1/OE_SDK/environment-setup-cortexa9t2hf-neon-oe-linux-gnueabi
     >>     uno@uno-laptop:~$ which cmake
>>  /home/uno/rfnoc/src/e3xx_e310_sdk_default-v4.2.0.1/OE_SDK/sysroots/x86_64-oesdk-linux/usr/bin/cmake
     >>     uno@uno-laptop:~$ echo $CC
     >>     arm-oe-linux-gnueabi-gcc -mthumb -mfpu=neon -mfloat-abi=hard 
-mcpu=cortex-a9
>>  --sysroot=/home/uno/rfnoc/src/e3xx_e310_sdk_default-v4.2.0.1/OE_SDK/sysroots/cortexa9t2hf-neon-oe-linux-gnueabi
     >>     uno@uno-laptop:~$ gnuradio --version
     >>     bash: gnuradio: orden no encontrada
     >>     uno@uno-laptop:~$ gnuradio-config-info --version
     >>     3.8.5.0
     >>     uno@uno-laptop:~$ cd ~/rfnoc/src/gr-ettus/build-arm
     >>     uno@uno-laptop:~/rfnoc/src/gr-ettus/build-arm$ cmake
     >>     
-DCMAKE_TOOLCHAIN_FILE=~/rfnoc/src/gnuradio/cmake/Toolchains/oe-sdk_cross.cmake
     >>     -DCMAKE_INSTALL_PREFIX=/usr ..
     >>     -- Build type not specified: defaulting to release.
     >>     -- Checking for module 'gmp'
     >>     --   No package 'gmp' found
     >>     -- Checking for module 'mpir >= 3.0'
     >>     --   No package 'mpir' found
     >>     -- Could NOT find MPIR (missing: MPIRXX_LIBRARY MPIR_LIBRARY 
MPIR_INCLUDE_DIR)
     >>     -- User set python executable
>>  /__w/83/build/tmp-glibc/work/cortexa9t2hf-neon-oe-linux-gnueabi/gnuradio/3.8.3.0-r0/recipe-sysroot-native/usr/bin/python3-native/python3
     >>     CMake Error at
>>  /home/uno/rfnoc/src/e3xx_e310_sdk_default-v4.2.0.1/OE_SDK/sysroots/cortexa9t2hf-neon-oe-linux-gnueabi/usr/lib/cmake/gnuradio/GrPython.cmake:40 (if):
     >>       if given arguments:
     >>
     >>         "VERSION_EQUAL" "3"
     >>
     >>       Unknown arguments specified
     >>     Call Stack (most recent call first):
>>  /home/uno/rfnoc/src/e3xx_e310_sdk_default-v4.2.0.1/OE_SDK/sysroots/cortexa9t2hf-neon-oe-linux-gnueabi/usr/lib/cmake/gnuradio/GnuradioConfig.cmake:51 (include)
     >>       CMakeLists.txt:59 (find_package)
     >>
     >>
     >>     -- Configuring incomplete, errors occurred!
     >>     See also 
"/home/uno/rfnoc/src/gr-ettus/build-arm/CMakeFiles/CMakeOutput.log".
     >>     See also 
"/home/uno/rfnoc/src/gr-ettus/build-arm/CMakeFiles/CMakeError.log".
     >>     uno@uno-laptop:~/rfnoc/src/gr-ettus/build-arm$
     >>     }}}
     >>
     >>     El mar, 25 oct 2022 a las 14:14, Marcus Müller 
(<marcus.mueller@ettus.com
    <mailto:marcus.mueller@ettus.com>
     >>     <mailto:marcus.mueller@ettus.com 
<mailto:marcus.mueller@ettus.com>>>) escribió:
     >>
     >>         Hi Jorge,
     >>
     >>         I sadly can't read your screenshot. Would you mind Copy and 
Pasting the text?
     >>         GMP and MPIR are the same thing. You only need one of them, not 
both!
     >>
     >>         Best regards,
     >>         Marcus
     >>
     >>
     >>         On 25.10.22 18:57, Marcus D. Leech wrote:
     >>         > On 2022-10-25 12:17, JORGE GONZALEZ ORELLANA via GNU Radio, the 
Free &
     >>         Open-Source Toolkit
     >>         > for Software Radio wrote:
     >>         >> hi, i'm trying to install a usrp E312 using the follow guide:
     >>         >>
     >>         >> {{{
     >>         >>
     >>
    
https://kb.ettus.com/Software_Development_on_the_E3xx_USRP_-_Building_RFNoC_UHD_/_GNU_Radio_/_gr-ettus_from_Source#Cross-Compiling_gr-ettus
 
<https://kb.ettus.com/Software_Development_on_the_E3xx_USRP_-_Building_RFNoC_UHD_/_GNU_Radio_/_gr-ettus_from_Source#Cross-Compiling_gr-ettus>
 
<https://kb.ettus.com/Software_Development_on_the_E3xx_USRP_-_Building_RFNoC_UHD_/_GNU_Radio_/_gr-ettus_from_Source#Cross-Compiling_gr-ettus
 
<https://kb.ettus.com/Software_Development_on_the_E3xx_USRP_-_Building_RFNoC_UHD_/_GNU_Radio_/_gr-ettus_from_Source#Cross-Compiling_gr-ettus>>
     >>         >> }}}
     >>         >>
     >>         >> when i get to the cross-compiling gr-ettus step i get this 
error:
     >>         >>
     >>         >> image.png
     >>         >>
     >>         >> I make sure to set the environment correctly to use the SDK, 
and as far
    as i
     >>         know, the
     >>         >> gmp and mpir package are installed, so if someone can help 
me, i will
     >>         appreciate it a lot.
     >>         >>
     >>         >> thanks for your time
     >>         >>
     >>         >> JGO
     >>         > Are those two packages installed into your *HOST* environment 
or your
    *CROSS DEV*
     >>         > environment?
     >>         >
     >>         >
     >>

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature


reply via email to

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