cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Adventurer
Adventurer
3,414 Views
Registered: ‎03-03-2011

SDx 2016.3 Compilation errors

Jump to solution

Hello everyone,

 

I'm aware that similar questions have been asked, but for some reason the existing solutions don't do it for me.

When xocc is called (via the sdaccel gui, for any example project), I get the following:

 

/opt/Xilinx/SDx/2016.3/bin/../gnu/binutils/bin/ld: BFD (GNU Binutils) 2.22 internal error, aborting at ../../../src/lnx64/bfd/reloc.c line 1509 in _bfd_relocate_contents

Before this I had the usual linker errors of not being able to find crt1.o and such, which I solved via symlinks. For the record, I had done this before on another machine without issue, although that machine had SDAccel 2016.2 installed instead (I've noticed rather big changes in flow between 2016.2 and .3). Both machines are running Ubuntu (yes, I know its not officially supported).

 

Any way to fix this linker error? I'm assuming I symlinked to the wrong libs.

 

Thanks a lot,

bandit

0 Kudos
1 Solution

Accepted Solutions
Highlighted
Adventurer
Adventurer
5,207 Views
Registered: ‎03-03-2011

Ubuntu 16 64bit :p

 

Yes I know. But for the record, it's working now, 100%. For anyone running this OS:

 

1) Make these symlinks under /usr/lib64/

 

lrwxrwxrwx  1 root root   32 Dec 21 15:28 libc.a -> /usr/lib/x86_64-linux-gnu/libc.a
lrwxrwxrwx  1 root root   33 Dec 21 15:28 libc.so -> /usr/lib/x86_64-linux-gnu/libc.so
lrwxrwxrwx  1 root root   32 Dec 21 15:28 libm.a -> /usr/lib/x86_64-linux-gnu/libm.a
lrwxrwxrwx  1 root root   33 Dec 21 15:28 libm.so -> /usr/lib/x86_64-linux-gnu/libm.so
lrwxrwxrwx  1 root root   33 Nov 23 11:10 libusb.so -> ../lib/x86_64-linux-gnu/libusb.so

 

2) copy the the three crt[1in].o files from /usr/lib64/ on a Ubuntu 14 machine to the <installdir>/SDx/2016.3/Vivado_HLS/lnx64/tools/gcc/lib/gcc on your Ubuntu 16 machine.

 

Skip the last step if you're running Ubuntu 14.

 

 

 

 

View solution in original post

2 Replies
Highlighted
Xilinx Employee
Xilinx Employee
3,212 Views
Registered: ‎11-28-2007

Which Linux distribution and version are you running?

Cheers,
Jim
0 Kudos
Highlighted
Adventurer
Adventurer
5,208 Views
Registered: ‎03-03-2011

Ubuntu 16 64bit :p

 

Yes I know. But for the record, it's working now, 100%. For anyone running this OS:

 

1) Make these symlinks under /usr/lib64/

 

lrwxrwxrwx  1 root root   32 Dec 21 15:28 libc.a -> /usr/lib/x86_64-linux-gnu/libc.a
lrwxrwxrwx  1 root root   33 Dec 21 15:28 libc.so -> /usr/lib/x86_64-linux-gnu/libc.so
lrwxrwxrwx  1 root root   32 Dec 21 15:28 libm.a -> /usr/lib/x86_64-linux-gnu/libm.a
lrwxrwxrwx  1 root root   33 Dec 21 15:28 libm.so -> /usr/lib/x86_64-linux-gnu/libm.so
lrwxrwxrwx  1 root root   33 Nov 23 11:10 libusb.so -> ../lib/x86_64-linux-gnu/libusb.so

 

2) copy the the three crt[1in].o files from /usr/lib64/ on a Ubuntu 14 machine to the <installdir>/SDx/2016.3/Vivado_HLS/lnx64/tools/gcc/lib/gcc on your Ubuntu 16 machine.

 

Skip the last step if you're running Ubuntu 14.

 

 

 

 

View solution in original post