



Ubuntu, pre-build, or32-elf, error message
by tobil on Jan 5, 2014 |
tobil
Posts: 17 Joined: Jun 22, 2008 Last seen: Nov 22, 2018 |
||
Hi,
I'm trying to use the pre-builds on Ubuntu 13.04 (rev789 and gcc-or1k-elf-4.8.1-ubuntu-13.04-x86.tat.bz2). I always get the following error after running �or32-elf-cpp main.cpp� [start] /opt/openrisc/or32-elf-1.0rc1-x86/or32-elf-1.0rc1/bin/../libexec/gcc/or32-elf/4.5.1-or32-1.0rc4/cc1plus: error while loading shared libraries: libmpfr.so.1: can not open shared object file: No such file or directory [end] Same is true for or32-elf-gcc etc. Is there anyone who can help me with this ? Sorry if this question has already been asked, but the openrisc forum is hard to search through. Thanks a lot in advance, Cheers, Tobias |
RE: Ubuntu, pre-build, or32-elf, error message
by Nable80 on Jan 5, 2014 |
Nable80
Posts: 10 Joined: Dec 28, 2011 Last seen: Oct 13, 2024 |
||
> Is there anyone who can help me with this ?
At least, I'll try. Btw, if you tried reading the error message you'll notice that it contains the main idea: 'can not open shared object file: No such file or directory'. I.e. some executable (cc1plus that is part of a compiler) couldn't be loaded because OS failed to find one of its libraries (libmpfr.so.1). One may even remember that this library is required to build and run the [cross-]compiler. The problem is simple: either you didn't install this library at all/didn't provide right path for it, or you have quite different version of this library in system path. To solve this problem you can: 1) install the package that provides this file (note: this file is not the only dependency) OR 2) if this file is shipped with prebuilt version of crosscompiler, you should specify LD_LIBRARY_PATH environment variable to point to directories with required libraries OR 3) you can install libmpc-dev + libmpfr-dev + libgmp-dev + possibly some other development packages and build your OWN crosscompiler. That's a good exercise, seriously. > Sorry if this question has already been asked, but the openrisc forum is hard to search through. No, it's not hard at all, see my previous message in http://opencores.org/forum,Other,0,5368 For example, https://www.google.com/search?q=libmpfr+site:http://opencores.org/forum gives you a lot relevant of answers. It's just google'ing skill, nothing more. I hope that it'll help you. |
RE: Ubuntu, pre-build, or32-elf, error message
by tobil on Jan 6, 2014 |
tobil
Posts: 17 Joined: Jun 22, 2008 Last seen: Nov 22, 2018 |
||
Nable80,
sure, I can read the message. But I was hoping that the pre-build include all the necessary files, and I was hoping that the releases from the oc-team are tested or that reported bugs lead to better pre-builds. I didn't expect to add files, debug, ln, search database etc � With my question I was hoping to trigger a better quality of the releases ;-) google skills, �, well, based on your link I see that I'm not the only one asking for a search function. I guess it is simple to include this string in a auto-search field on the webpage, without the need to manually add it. I was hoping to trigger this with my thread ;-) user feedback helps improve quality, � Cheers, Tobias |



