Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
9 years ago

Arria 10 OpenCL BSP Linux source build question

HI everyone

I got arria 10 OpenCL BSP for 15.1 from FAE,and I tried to compile official source code but have error message as below

lib/libpkg_editor.a(pkg_editor.o): In function `add_required_parts':

pkg_editor.c:(.text+0x16c4): undefined reference to `elfx_update_shstrndx'

collect2: ld returned 1 exit status

make[2]: *** [libaltera_a10_ref_mmd.so] Error 1

make[2]: Leaving directory `/home/tom/altera_pro/15.1/hld/board/a10_ref/source/host/mmd'

make[1]: *** [mmd] Error 2

make[1]: Leaving directory `/home/tom/altera_pro/15.1/hld/board/a10_ref/source/host'

make: *** [host] Error 2

I compile system is on Ubuntu 12.04 64 bit. Can anyone help me! Thank you!!

http://www.alteraforum.com/forum/attachment.php?attachmentid=12509&stc=1

2 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Check if libelf is on your ld_library_path. Also, you should have the .a for the elf library. That would be a start. I had similar issues with a CycloneV, but don't have access to it right now. I can look up the details for a cmake file if the above do not work.

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    I have a similar problem. Despite specifying libelf.so to the linker, symbol elfx_update_shstrndx is not found.

    Did you find a fix for your problem?