Sorry, you need to enable JavaScript to visit this website.

Vivado And SDK on Ubuntu 14.04.2 LTS

Unsolved
3 posts / 0 new
ferjuanse's picture
ferjuanse
Junior(0)
Vivado And SDK on Ubuntu 14.04.2 LTS

Hi

I just installed Vivado 2015.1 with SDK using the Web installer on UBUNTU 14.04.2 LTS 64bits running on a VMware workstation with windows 7 as host operating system.

I've been working with Vivado releases on Windows without anyproblem but on UBUTNU I can't even run a simple hello world project, it seems there is a problem with compiler settings. this are the errors I get in the console and so far haven't managed to solve:

10:44:30 **** Build of configuration Debug for project hello_world ****
make all
Building file: ../src/helloworld.c
Invoking: ARM gcc compiler
arm-xilinx-eabi-gcc -Wall -O0 -g3 -c -fmessage-length=0 -MT"src/helloworld.o" -I../../hello_world_bsp/ps7_cortexa9_0/include -MMD -MP -MF"src/helloworld.d" -MT"src/helloworld.d" -o "src/helloworld.o" "../src/helloworld.c"
Finished building: ../src/helloworld.c

Building file: ../src/platform.c
Invoking: ARM gcc compiler
arm-xilinx-eabi-gcc -Wall -O0 -g3 -c -fmessage-length=0 -MT"src/platform.o" -I../../hello_world_bsp/ps7_cortexa9_0/include -MMD -MP -MF"src/platform.d" -MT"src/platform.d" -o "src/platform.o" "../src/platform.c"
Finished building: ../src/platform.c

Building target: hello_world.elf
Invoking: ARM gcc linker
arm-xilinx-eabi-gcc -Wl,-T -Wl,../src/lscript.ld -L../../hello_world_bsp/ps7_cortexa9_0/lib -o "hello_world.elf" ./src/helloworld.o ./src/platform.o -Wl,--start-group,-lxil,-lgcc,-lc,--end-group
/opt/Xilinx/SDK/2015.1/gnu/arm/lin/bin/../lib/gcc/arm-xilinx-eabi/4.9.1/../../../../arm-xilinx-eabi/bin/ld: warning: cannot find entry symbol _vector_table; defaulting to 00000000
./src/helloworld.o: In function `main':
/home/sebastian/Dev/xilinx/hm/hm.sdk/hello_world/Debug/../src/helloworld.c:57: undefined reference to `print'
./src/platform.o: In function `disable_caches':
/home/sebastian/Dev/xilinx/hm/hm.sdk/hello_world/Debug/../src/platform.c:69: undefined reference to `Xil_DCacheDisable'
/home/sebastian/Dev/xilinx/hm/hm.sdk/hello_world/Debug/../src/platform.c:70: undefined reference to `Xil_ICacheDisable'
collect2: error: ld returned 1 exit status
make: *** [hello_world.elf] Error 1

10:44:31 Build Finished (took 619ms)

I've read that it might be due to lack of 32bits libraries which I installed and tried but this erors do not go, I would appreciate if anyone knows how to solve this problem.

Thanks

TroutChaser's picture
TroutChaser
Moderator(18)
Have you looked at Sven

Have you looked at Sven Andersson's blog: http://svenand.blogdrive.com/
 
He has been successfully using PetaLinux under Ubuntu 14.04 so you might want to see if his blog might be helpful.
 
-Gary

ferjuanse's picture
ferjuanse
Junior(0)
other solution

I came back to Vivado and set zynq system to Zedboard preset, exported the hardware again, back in SDK created a new stand alone application with a hello world template and compiled it without any problem.