cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Teacher
Teacher
479 Views
Registered: ‎01-28-2008

XSDK cmake error building libmetal on Fedora 31

Jump to solution

Hi folks,

  I've come across an issue where building a BSP that includes the rfdc and libmetal, throws an error in the SDK log, as shown below. Keep in mind this is running an unsupported Fedora 31 Linux OS, so once in a while there's a little wrinkle.

12:11:30 ERROR	: (XSDB Server)ERROR: [Hsi 55-1545] Problem running tcl command ::sw_libmetal_v2_0::generate : Failed to generate cmake files.
    while executing
"error "Failed to generate cmake files.""
    (procedure "::sw_libmetal_v2_0::generate" line 74)
    invoked from within
"::sw_libmetal_v2_0::generate libmetal"
ERROR: [Hsi 55-1442] Error(s) while running TCL procedure generate()

Enabling more logging in SDK in Window/Preferences/Xilinx SDK/Log Information Level, and setting it to Debug, yields more log output and shows the root cause:

12:11:30 DEBUG	: (XSDB Server)/opt/Xilinx/SDK/2019.1/tps/lnx64/cmake-3.3.2/bin/cmake: error while loading shared libraries: libidn.so.11: cannot open shared object file: No such file or directory
child process exited abnormally

So, libidn is a shared library and cmake expects an older version to be in the system. In Fedora 31 the library is in /usr/lib64/libidn.so.12. Adding a soft link works around the issue:

$ sudo ln -s /usr/lib64/libidn.so.12 /usr/lib64/libidn.so.11

After this workaround, cmake and thus SDK builds the BSP correctly.

Thanks,

-Pat

 

 

Give kudos if helpful. Accept as solution if it solves your problem.
https://tuxengineering.com/blog

Tags (3)
1 Solution

Accepted Solutions
Teacher
Teacher
468 Views
Registered: ‎01-28-2008
Marked as solved

Give kudos if helpful. Accept as solution if it solves your problem.
https://tuxengineering.com/blog

View solution in original post

0 Kudos
Reply
1 Reply
Teacher
Teacher
469 Views
Registered: ‎01-28-2008
Marked as solved

Give kudos if helpful. Accept as solution if it solves your problem.
https://tuxengineering.com/blog

View solution in original post

0 Kudos
Reply