



Compiling MinSoC
by chiraag on Apr 26, 2011 |
chiraag
Posts: 6 Joined: Dec 26, 2009 Last seen: Feb 26, 2017 |
||
I have tried compiling the software for minsoc under the Ubuntu pre-compiled toolchain.
This results in the following error when compiling the support code: /opt/or32-elf-1.0rc1/bin/../libexec/gcc/or32-elf/4.5.1-or32-1.0rc4/cc1: error while loading shared libraries: libmpc.so.2: cannot open shared object file: No such file or directory However on a different machine when using a toolchain that I compiled from source, the above compilation goes through. Any ideas why? |
RE: Compiling MinSoC
by julius on Apr 26, 2011 |
julius
Posts: 363 Joined: Jul 1, 2008 Last seen: May 17, 2021 |
||
/opt/or32-elf-1.0rc1/bin/../libexec/gcc/or32-elf/4.5.1-or32-1.0rc4/cc1: error while loading shared libraries: libmpc.so.2: cannot open shared object file: No such file or directory
That's a shared library failing to be found. GCC requires the GMP, MPFR and MPC libraries to run. Try:
sudo apt-get -y install libmpfr-dev libgmp3-dev libmpc-dev
|
RE: Compiling MinSoC
by chiraag on Apr 26, 2011 |
chiraag
Posts: 6 Joined: Dec 26, 2009 Last seen: Feb 26, 2017 |
||
Thanks that worked out.
Now I was trying to update the adv_jtag_bridge. After modifying the Makefile (using the sed command), the make command fails: cable_xpc_dlc9.c:24:35: error: usb.h: No such file or directory Apart from this there are a few other errors but they will mostly get resolved if this one is. Any fixes? |
RE: Compiling MinSoC
by nyawn on Apr 27, 2011 |
nyawn
Posts: 173 Joined: Dec 19, 2008 Last seen: May 31, 2023 |
||
The default configuration for adv_jtag_bridge includes support for USB cables. Either you don't have libusb installed, or it's not where adv_jtag_bridge is expecting it. If you haven't installed libusb, do so (probably something like 'sudo apt-get install libusb-dev', but I'm not certain). If you have installed it, find where it put usb.h, and add that to the include paths defined in the Makefile. If you're compiling the driver for the Xilinx XPC DLC9, you'll also need libftdi.
Alternately, if you're going to use a parallel JTAG cable, you can edit the Makefile and set support for USB cables to false. |
RE: Compiling MinSoC
by kaminsky59 on Oct 15, 2013 |
kaminsky59
Posts: 1 Joined: Oct 7, 2013 Last seen: Oct 24, 2013 |
||
This is not directly related to MinSoc but I am trying to compile or32-elf-gcc and am getting the same error as stated above.
I used to command given in the response: sudo apt-get -y install libmpfr-dev libgmp3-dev libmpc-dev and get the following response: Reading package lists... Done Building dependency tree Reading state information... Done libgmp3-dev is already the newest version. libmpc-dev is already the newest version. libmpfr-dev is already the newest version. The following packages were automatically installed and are no longer required: linux-headers-3.5.0-23-generic linux-headers-3.5.0-23 thunderbird-globalmenu Use 'apt-get autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Which I am assuming means it has all of the latest packages. I cannot seem to figure out why I am still getting the error |



