Xilinx error while compiling hello world, missing library - Ubuntu 14.04 - xilinx

I'm am pretty new with Xilinx, so it might be a simple problem.
I'm am trying to make a program written in c, with the editor xsdk for a microblaze, I'm am running Ubuntu 14.04 64 bit.
When I'm trying to compile the c program i comes with an error:
/opt/Xilinx/14.7/ISE_DS/EDK/gnu/microblaze/lin/bin/../lib/gcc/microblaze-xilinx-elf/4.6.4/../../../../microblaze-xilinx-elf/bin/as:
error while loading shared libraries: libz.so.1:
cannot open shared object file: No such file or directory
make: *** [src/helloworld.o] Error 1
The program I'm trying to compile is the standard example hello world, so this should not course any problems.
Any help would be appreciated

It seems like installing the package rpm fixed the problem - honestly i don't know why.

Related

Problem with OpenCV C++ Ubuntu 16.04-/usr/bin/ld: cannot find -lopencv_*

I am new to Ubuntu. I installed OpenCV following http://milq.github.io/install-opencv-ubuntu-debian/. Note that opencv_contrib are not installed. I had an error initially that opencv4.pc file was not found which I corrected by creating a new opencv4.pc in usr/local/lib and making appropriate changes in ~/.bashrc file. Now the error while compiling using c++ file from :
https://cv-tricks.com/installation/opencv-4-1-ubuntu18-04/.
This is the error I got:
.
I tried to locate the missing files in other locations but I was unable to find them. Please help me solve my problem.

How to install and run PyPy on beaglebone black?

I have been stuck with this for some time now. Everytime I run ./pypy I get the error:
./pypy: error while loading shared libraries: /lib/libffi.so.5: file too short
I need PyPy for its JIT compiler can you guide me here? My system runs on AM335x (Beaglebone balck).

Lambdanative can compile for OSX but not iOS

I'm running Sierra with XCode 8.3 including command line tools. I can use Gambit to compile to OSX native code. I can use lambdanative to compile the test Calculator app to OSX but when I try to configure and then compile for iOS I get the following error in verbose mode:
checking whether the C compiler works... no
configure: error: in `/Users/querist/.lambdanative/tmp_install/gambc-v4_7_9':
configure: error: C compiler cannot create executables
See `config.log' for more details
ERROR: failed with exit code 77
There is no config.log to read. I've done a search for it and there is not one related to this project.
Any ideas? I really like the idea of being able to develop iOS apps in Scheme.
Thanks.
I realize this may be too late, but in case somebody else stumbles upon this, I though I'd try to explain.
config.log is placed in the library output directory, not your working folder. You can look for it by running find ~/Library/ -name 'config.log'.
In my case, config.log revealed the problem is that it can't find some version of a crt library. This problem is addressed here.
I edited my ./SETUP file from my lamdbanative working directory folder, so that IOSVERSION went from the 5.1.1 default to 6.0. That solved the problem for me.

Error installing llvm and clang from source in Linux

I am trying to install clang from source following the instructions as given in http://clang.llvm.org/get_started.html ( Steps 1-4 and 7) in Ubuntu 14.04
Inside the build directory , I ran make which succeeded. I wasn't sure what to do after that , so I ran make install inside the build directory, following which I got this cmake error:
There is no executable named clang in /build/bin folder anyway, but I can find others like clang-check, clang-query, etc. What's going wrong?
PS: My main requirment is to experiment with alpha security checkers of clang analyzer and also write my own checker later.

warnings being treated as errors in rails

I have the following error when i try to make "bundle install" in my rails projects
C:/Ruby22/bin/ruby.exe -r ./siteconf20150427-5772-lng4pk.rb extconf.rb
creating Makefile
make "DESTDIR=" clean
make "DESTDIR="
generating byebug-i386-mingw32.def
compiling breakpoint.c
cc1.exe: warnings being treated as errors
In file included from c:/Ruby22/include/ruby-2.2.0/ruby/defines.h:163:0,
from c:/Ruby22/include/ruby-2.2.0/ruby/ruby.h:29,
from c:/Ruby22/include/ruby-2.2.0/ruby.h:33,
from ./byebug.h:4,
from breakpoint.c:1:
c:/Ruby22/include/ruby-2.2.0/ruby/win32.h:319:44: error: 'struct timespec' declared inside parameter list
c:/Ruby22/include/ruby-2.2.0/ruby/win32.h:319:44: error: its scope is only this definition or declaration, which is probably not what you want
c:/Ruby22/include/ruby-2.2.0/ruby/win32.h:320:43: error: 'struct timespec' declared inside parameter list
make: *** [breakpoint.o] Error 1
make failed, exit code 2
i'm on windows 7, after research a lot, i find that i have to unset the option of take warnings as errors. Anyone knows where i can unset such option (in the makefile isn't possible because the makefile is a generated file)
This may not be what you want to hear. But I had this error a lot when I was developing RoR applications out of windows. I also had a plethora of other issues that have nothing to do with rails, and more to do with how Ruby interacts with the Windows OS. Ruby is very "Linuxy" in it's nature. Because of this, I would recommend using a virtual machine running linux ubuntu when developing using Ruby and Rails.
There is a great linux virtual machine called "Vagrant". It has been wonderful to use Ruby in. They have documentation on how to get up and running with Ruby found here:
https://www.vagrantup.com/
I hope this helps. I know switching to the Vagrant virtual machine helped me solve a lot of these futile problems that had nothing to do with writing the actual code.

Resources