OpenCores
no use no use 1/1 no use no use
Fail to run orpsocv2 RTL tests on CentOS 5.5
by xschen on Apr 27, 2011
xschen
Posts: 11
Joined: Apr 11, 2011
Last seen: Jan 20, 2012
Hi,

I'm now trying to evaluate the orpsocv2 on CentOS 5.5 and meeting some problems. The RTL tests always fail with the following messages.

/export/opt/openrisc/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
make[3]: *** [lib-utils.o] Error

It seems that libmpc.so.2 is missing. Meanwhile, I can not find enough information on how to install this specific package on CentOS 5. Could anybody help me?

Thanks ahead.
puppy

PS:
1. My orpsoc project is downloaded from SVN.
svn co http://opencores.org/ocsvn/openrisc/openrisc/trunk/orpsocv2

2. uname -a
Linux Shatin 2.6.18-194.32.1.el5xen #1 SMP Wed Jan 5 18:44:24 EST 2011 x86_64 x86_64 x86_64 GNU/Linux
cat /proc/version
Linux version 2.6.18-194.32.1.el5xen (mockbuild@builder10.centos.org) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-48)) #1 SMP Wed Jan 5 18:44:24 EST 2011





RE: Fail to run orpsocv2 RTL tests on CentOS 5.5
by julius on Apr 27, 2011
julius
Posts: 363
Joined: Jul 1, 2008
Last seen: May 17, 2021
I think there's no easy way to install the MPC library under CentOS5. You have to download, compile and install the required library.

This has been coming up a bit lately. There are some prerequisites for GCC outlined here: http://gcc.gnu.org/install/prerequisites.html

The following most commonly missing when running or building on a new machine:

GNU Multiple Precision Library (GMP) version 4.3.2 (or later)
Necessary to build GCC. If you do not have it installed in your library search path, you will have to configure with the --with-gmp configure option. See also --with-gmp-lib and --with-gmp-include. Alternatively, if a GMP source distribution is found in a subdirectory of your GCC sources named gmp, it will be built together with GCC.
MPFR Library version 2.4.2 (or later)
Necessary to build GCC. It can be downloaded from http://www.mpfr.org/. The --with-mpfr configure option should be used if your MPFR Library is not installed in your default library search path. See also --with-mpfr-lib and --with-mpfr-include. Alternatively, if a MPFR source distribution is found in a subdirectory of your GCC sources named mpfr, it will be built together with GCC.
MPC Library version 0.8.1 (or later)
Necessary to build GCC. It can be downloaded from http://www.multiprecision.org/. The --with-mpc configure option should be used if your MPC Library is not installed in your default library search path. See also --with-mpc-lib and --with-mpc-include. Alternatively, if an MPC source distribution is found in a subdirectory of your GCC sources named mpc, it will be built together with GCC.


But in your case, I guess you will just want to build and install it.

As far as I can tell this should be as easy as:

mkdir build-mpc && cd build-mpc
wget http://multiprecision.org/mpc/download/mpc-0.8.2.tar.gz
tar xzf mpc-0.8.2.tar.gz
cd mpc-0.8.2
./configure
make
sudo make install


That should be it. If this doesn't work the maybe the version is too new, and try a different one.

Also, see my post, http://opencores.org/forum,OpenRISC,0,3974,0#1288787679 , for downloading, building and installing the MPFR and GMP libraries.
RE: Fail to run orpsocv2 RTL tests on CentOS 5.5
by xschen on Apr 29, 2011
xschen
Posts: 11
Joined: Apr 11, 2011
Last seen: Jan 20, 2012
Julius, Thanks for your reply.

I agree with you that there is no easy way to install all required library on CentOS 5.5. For my trials these two days, I have to install the following libraries one by one to solve the problem. And some troubles happened during the compilation from source so that it almost took me over one day to finish it. I could share my experience here if anybody needed.

gmp-4.3.2
mpfr-3.0.1
mpc-0.9

But another problem came out accordingly.

I still failed to build the source by or32-elf-gcc. For example, while I used "make rtl-tests", the Makefile involved or32-elf-gcc to compile the source and then get the following errors.

/tmp/ccf3Q0JR.s: Assembler messages:
/tmp/ccf3Q0JR.s:11: Error: unknown pseudo-op: `.proc'
/tmp/ccf3Q0JR.s:19: Error: invalid character '.' in mnemonic
/tmp/ccf3Q0JR.s:20: Error: invalid character '.' in mnemonic
/tmp/ccf3Q0JR.s:21: Error: invalid character '.' in mnemonic
/tmp/ccf3Q0JR.s:22: Error: invalid character '.' in mnemonic
/tmp/ccf3Q0JR.s:26: Error: invalid character '.' in mnemonic
/tmp/ccf3Q0JR.s:27: Error: invalid character '.' in mnemonic
/tmp/ccf3Q0JR.s:29: Error: invalid character '.' in mnemonic
/tmp/ccf3Q0JR.s:30: Error: invalid character '.' in mnemonic
/tmp/ccf3Q0JR.s:32: Error: invalid character '.' in mnemonic
/tmp/ccf3Q0JR.s:33: Error: invalid character '.' in mnemonic
/tmp/ccf3Q0JR.s:34: Error: invalid character '.' in mnemonic
/tmp/ccf3Q0JR.s:37: Error: invalid character '.' in mnemonic
/tmp/ccf3Q0JR.s:38: Error: invalid character '.' in mnemonic

It seemed that the tool called incorrect complier to compile the assembly code. So I had the experiment below.

Let's say there is a C source code named 'dhry.c'.
1. If I used command "or32-elf-gcc -c dhry.c", a lot of "invalid character '.' in mnemonic" errors were reported.
2. If I used command "or32-elf-gcc -S dhry.c", it was able to get "dhry.s". And then executed "or32-elf-as dhry.s", the final binary file "dhry.o" was generated successfully.

Do you know how I can solve this problem? Or somebody else met such kind of problems before.

Thanks and regards,
xschen







RE: Fail to run orpsocv2 RTL tests on CentOS 5.5
by xschen on Apr 29, 2011
xschen
Posts: 11
Joined: Apr 11, 2011
Last seen: Jan 20, 2012
Julius, Thanks for your reply.

I agree with you that there is no easy way to install all required library on CentOS 5.5. For my trials these two days, I have to install the following libraries one by one to solve the problem. And some troubles happened during the compilation from source so that it almost took me over one day to finish it. I could share my experience here if anybody needed.

gmp-4.3.2
mpfr-3.0.1
mpc-0.9

But another problem came out accordingly.

I still failed to build the source by or32-elf-gcc. For example, while I used "make rtl-tests", the Makefile involved or32-elf-gcc to compile the source and then get the following errors.

/tmp/ccf3Q0JR.s: Assembler messages:
/tmp/ccf3Q0JR.s:11: Error: unknown pseudo-op: `.proc'
/tmp/ccf3Q0JR.s:19: Error: invalid character '.' in mnemonic
/tmp/ccf3Q0JR.s:20: Error: invalid character '.' in mnemonic
/tmp/ccf3Q0JR.s:21: Error: invalid character '.' in mnemonic
/tmp/ccf3Q0JR.s:22: Error: invalid character '.' in mnemonic
/tmp/ccf3Q0JR.s:26: Error: invalid character '.' in mnemonic
/tmp/ccf3Q0JR.s:27: Error: invalid character '.' in mnemonic
/tmp/ccf3Q0JR.s:29: Error: invalid character '.' in mnemonic
/tmp/ccf3Q0JR.s:30: Error: invalid character '.' in mnemonic
/tmp/ccf3Q0JR.s:32: Error: invalid character '.' in mnemonic
/tmp/ccf3Q0JR.s:33: Error: invalid character '.' in mnemonic
/tmp/ccf3Q0JR.s:34: Error: invalid character '.' in mnemonic
/tmp/ccf3Q0JR.s:37: Error: invalid character '.' in mnemonic
/tmp/ccf3Q0JR.s:38: Error: invalid character '.' in mnemonic

It seemed that the tool called incorrect complier to compile the assembly code. So I had the experiment below.

Let's say there is a C source code named 'dhry.c'.
1. If I used command "or32-elf-gcc -c dhry.c", a lot of "invalid character '.' in mnemonic" errors were reported.
2. If I used command "or32-elf-gcc -S dhry.c", it was able to get "dhry.s". And then executed "or32-elf-as dhry.s", the final binary file "dhry.o" was generated successfully.

Do you know how I can solve this problem? Or somebody else met such kind of problems before.

Thanks and regards,
xschen







RE: Fail to run orpsocv2 RTL tests on CentOS 5.5
by xschen on Apr 29, 2011
xschen
Posts: 11
Joined: Apr 11, 2011
Last seen: Jan 20, 2012
Julius, Thanks for your reply.

I agree with you that there is no easy way to install all required library on CentOS 5.5. For my trials these two days, I have to install the following libraries one by one to solve the problem. And some troubles happened during the compilation from source so that it almost took me over one day to finish it. I could share my experience here if anybody needed.

gmp-4.3.2
mpfr-3.0.1
mpc-0.9

But another problem came out accordingly.

I still failed to build the source by or32-elf-gcc. For example, while I used "make rtl-tests", the Makefile involved or32-elf-gcc to compile the source and then get the following errors.

/tmp/ccf3Q0JR.s: Assembler messages:
/tmp/ccf3Q0JR.s:11: Error: unknown pseudo-op: `.proc'
/tmp/ccf3Q0JR.s:19: Error: invalid character '.' in mnemonic
/tmp/ccf3Q0JR.s:20: Error: invalid character '.' in mnemonic
/tmp/ccf3Q0JR.s:21: Error: invalid character '.' in mnemonic
/tmp/ccf3Q0JR.s:22: Error: invalid character '.' in mnemonic
/tmp/ccf3Q0JR.s:26: Error: invalid character '.' in mnemonic
/tmp/ccf3Q0JR.s:27: Error: invalid character '.' in mnemonic
/tmp/ccf3Q0JR.s:29: Error: invalid character '.' in mnemonic
/tmp/ccf3Q0JR.s:30: Error: invalid character '.' in mnemonic
/tmp/ccf3Q0JR.s:32: Error: invalid character '.' in mnemonic
/tmp/ccf3Q0JR.s:33: Error: invalid character '.' in mnemonic
/tmp/ccf3Q0JR.s:34: Error: invalid character '.' in mnemonic
/tmp/ccf3Q0JR.s:37: Error: invalid character '.' in mnemonic
/tmp/ccf3Q0JR.s:38: Error: invalid character '.' in mnemonic

It seemed that the tool called incorrect complier to compile the assembly code. So I had the experiment below.

Let's say there is a C source code named 'dhry.c'.
1. If I used command "or32-elf-gcc -c dhry.c", a lot of "invalid character '.' in mnemonic" errors were reported.
2. If I used command "or32-elf-gcc -S dhry.c", it was able to get "dhry.s". And then executed "or32-elf-as dhry.s", the final binary file "dhry.o" was generated successfully.

Do you know how I can solve this problem? Or somebody else met such kind of problems before.

Thanks and regards,
xschen







RE: Fail to run orpsocv2 RTL tests on CentOS 5.5
by xschen on Apr 29, 2011
xschen
Posts: 11
Joined: Apr 11, 2011
Last seen: Jan 20, 2012
Julius, Thanks for your reply.

I agree with you that there is no easy way to install all required library on CentOS 5.5. For my trials these two days, I have to install the following libraries one by one to solve the problem. And some troubles happened during the compilation from source so that it almost took me over one day to finish it. I could share my experience here if anybody needed.

gmp-4.3.2
mpfr-3.0.1
mpc-0.9

But another problem came out accordingly.

I still failed to build the source by or32-elf-gcc. For example, while I used "make rtl-tests", the Makefile involved or32-elf-gcc to compile the source and then get the following errors.

/tmp/ccf3Q0JR.s: Assembler messages:
/tmp/ccf3Q0JR.s:11: Error: unknown pseudo-op: `.proc'
/tmp/ccf3Q0JR.s:19: Error: invalid character '.' in mnemonic
/tmp/ccf3Q0JR.s:20: Error: invalid character '.' in mnemonic
/tmp/ccf3Q0JR.s:21: Error: invalid character '.' in mnemonic
/tmp/ccf3Q0JR.s:22: Error: invalid character '.' in mnemonic
/tmp/ccf3Q0JR.s:26: Error: invalid character '.' in mnemonic
/tmp/ccf3Q0JR.s:27: Error: invalid character '.' in mnemonic
/tmp/ccf3Q0JR.s:29: Error: invalid character '.' in mnemonic
/tmp/ccf3Q0JR.s:30: Error: invalid character '.' in mnemonic
/tmp/ccf3Q0JR.s:32: Error: invalid character '.' in mnemonic
/tmp/ccf3Q0JR.s:33: Error: invalid character '.' in mnemonic
/tmp/ccf3Q0JR.s:34: Error: invalid character '.' in mnemonic
/tmp/ccf3Q0JR.s:37: Error: invalid character '.' in mnemonic
/tmp/ccf3Q0JR.s:38: Error: invalid character '.' in mnemonic

It seemed that the tool called incorrect complier to compile the assembly code. So I had the experiment below.

Let's say there is a C source code named 'dhry.c'.
1. If I used command "or32-elf-gcc -c dhry.c", a lot of "invalid character '.' in mnemonic" errors were reported.
2. If I used command "or32-elf-gcc -S dhry.c", it was able to get "dhry.s". And then executed "or32-elf-as dhry.s", the final binary file "dhry.o" was generated successfully.

Do you know how I can solve this problem? Or somebody else met such kind of problems before.

Thanks and regards,
xschen







RE: Fail to run orpsocv2 RTL tests on CentOS 5.5
by xschen on Apr 29, 2011
xschen
Posts: 11
Joined: Apr 11, 2011
Last seen: Jan 20, 2012
Julius, Thanks for your reply.

I agree with you that there is no easy way to install all required library on CentOS 5.5. For my trials these two days, I have to install the following libraries one by one to solve the problem. And some troubles happened during the compilation from source so that it almost took me over one day to finish it. I could share my experience here if anybody needed.

gmp-4.3.2
mpfr-3.0.1
mpc-0.9

But another problem came out accordingly.

I still failed to build the source by or32-elf-gcc. For example, while I used "make rtl-tests", the Makefile involved or32-elf-gcc to compile the source and then get the following errors.

/tmp/ccf3Q0JR.s: Assembler messages:
/tmp/ccf3Q0JR.s:11: Error: unknown pseudo-op: `.proc'
/tmp/ccf3Q0JR.s:19: Error: invalid character '.' in mnemonic
/tmp/ccf3Q0JR.s:20: Error: invalid character '.' in mnemonic
/tmp/ccf3Q0JR.s:21: Error: invalid character '.' in mnemonic
/tmp/ccf3Q0JR.s:22: Error: invalid character '.' in mnemonic
/tmp/ccf3Q0JR.s:26: Error: invalid character '.' in mnemonic
/tmp/ccf3Q0JR.s:27: Error: invalid character '.' in mnemonic
/tmp/ccf3Q0JR.s:29: Error: invalid character '.' in mnemonic
/tmp/ccf3Q0JR.s:30: Error: invalid character '.' in mnemonic
/tmp/ccf3Q0JR.s:32: Error: invalid character '.' in mnemonic
/tmp/ccf3Q0JR.s:33: Error: invalid character '.' in mnemonic
/tmp/ccf3Q0JR.s:34: Error: invalid character '.' in mnemonic
/tmp/ccf3Q0JR.s:37: Error: invalid character '.' in mnemonic
/tmp/ccf3Q0JR.s:38: Error: invalid character '.' in mnemonic

It seemed that the tool called incorrect complier to compile the assembly code. So I had the experiment below.

Let's say there is a C source code named 'dhry.c'.
1. If I used command "or32-elf-gcc -c dhry.c", a lot of "invalid character '.' in mnemonic" errors were reported.
2. If I used command "or32-elf-gcc -S dhry.c", it was able to get "dhry.s". And then executed "or32-elf-as dhry.s", the final binary file "dhry.o" was generated successfully.

Do you know how I can solve this problem? Or somebody else met such kind of problems before.

Thanks and regards,
xschen







RE: Fail to run orpsocv2 RTL tests on CentOS 5.5
by xschen on Apr 29, 2011
xschen
Posts: 11
Joined: Apr 11, 2011
Last seen: Jan 20, 2012
Julius, Thanks for your reply.

I agree with you that there is no easy way to install all required library on CentOS 5.5. For my trials these two days, I have to install the following libraries one by one to solve the problem. And some troubles happened during the compilation from source so that it almost took me over one day to finish it. I could share my experience here if anybody needed.

gmp-4.3.2
mpfr-3.0.1
mpc-0.9

But another problem came out accordingly.

I still failed to build the source by or32-elf-gcc. For example, while I used "make rtl-tests", the Makefile involved or32-elf-gcc to compile the source and then get the following errors.

/tmp/ccf3Q0JR.s: Assembler messages:
/tmp/ccf3Q0JR.s:11: Error: unknown pseudo-op: `.proc'
/tmp/ccf3Q0JR.s:19: Error: invalid character '.' in mnemonic
/tmp/ccf3Q0JR.s:20: Error: invalid character '.' in mnemonic
/tmp/ccf3Q0JR.s:21: Error: invalid character '.' in mnemonic
/tmp/ccf3Q0JR.s:22: Error: invalid character '.' in mnemonic
/tmp/ccf3Q0JR.s:26: Error: invalid character '.' in mnemonic
/tmp/ccf3Q0JR.s:27: Error: invalid character '.' in mnemonic
/tmp/ccf3Q0JR.s:29: Error: invalid character '.' in mnemonic
/tmp/ccf3Q0JR.s:30: Error: invalid character '.' in mnemonic
/tmp/ccf3Q0JR.s:32: Error: invalid character '.' in mnemonic
/tmp/ccf3Q0JR.s:33: Error: invalid character '.' in mnemonic
/tmp/ccf3Q0JR.s:34: Error: invalid character '.' in mnemonic
/tmp/ccf3Q0JR.s:37: Error: invalid character '.' in mnemonic
/tmp/ccf3Q0JR.s:38: Error: invalid character '.' in mnemonic

It seemed that the tool called incorrect complier to compile the assembly code. So I had the experiment below.

Let's say there is a C source code named 'dhry.c'.
1. If I used command "or32-elf-gcc -c dhry.c", a lot of "invalid character '.' in mnemonic" errors were reported.
2. If I used command "or32-elf-gcc -S dhry.c", it was able to get "dhry.s". And then executed "or32-elf-as dhry.s", the final binary file "dhry.o" was generated successfully.

Do you know how I can solve this problem? Or somebody else met such kind of problems before.

Thanks and regards,
xschen







RE: Fail to run orpsocv2 RTL tests on CentOS 5.5
by xschen on Apr 29, 2011
xschen
Posts: 11
Joined: Apr 11, 2011
Last seen: Jan 20, 2012
Julius, Thanks for your reply.

I agree with you that there is no easy way to install all required library on CentOS 5.5. For my trials these two days, I have to install the following libraries one by one to solve the problem. And some troubles happened during the compilation from source so that it almost took me over one day to finish it. I could share my experience here if anybody needed.

gmp-4.3.2
mpfr-3.0.1
mpc-0.9

But another problem came out accordingly.

I still failed to build the source by or32-elf-gcc. For example, while I used "make rtl-tests", the Makefile involved or32-elf-gcc to compile the source and then get the following errors.

/tmp/ccf3Q0JR.s: Assembler messages:
/tmp/ccf3Q0JR.s:11: Error: unknown pseudo-op: `.proc'
/tmp/ccf3Q0JR.s:19: Error: invalid character '.' in mnemonic
/tmp/ccf3Q0JR.s:20: Error: invalid character '.' in mnemonic
/tmp/ccf3Q0JR.s:21: Error: invalid character '.' in mnemonic
/tmp/ccf3Q0JR.s:22: Error: invalid character '.' in mnemonic
/tmp/ccf3Q0JR.s:26: Error: invalid character '.' in mnemonic
/tmp/ccf3Q0JR.s:27: Error: invalid character '.' in mnemonic
/tmp/ccf3Q0JR.s:29: Error: invalid character '.' in mnemonic
/tmp/ccf3Q0JR.s:30: Error: invalid character '.' in mnemonic
/tmp/ccf3Q0JR.s:32: Error: invalid character '.' in mnemonic
/tmp/ccf3Q0JR.s:33: Error: invalid character '.' in mnemonic
/tmp/ccf3Q0JR.s:34: Error: invalid character '.' in mnemonic
/tmp/ccf3Q0JR.s:37: Error: invalid character '.' in mnemonic
/tmp/ccf3Q0JR.s:38: Error: invalid character '.' in mnemonic

It seemed that the tool called incorrect complier to compile the assembly code. So I had the experiment below.

Let's say there is a C source code named 'dhry.c'.
1. If I used command "or32-elf-gcc -c dhry.c", a lot of "invalid character '.' in mnemonic" errors were reported.
2. If I used command "or32-elf-gcc -S dhry.c", it was able to get "dhry.s". And then executed "or32-elf-as dhry.s", the final binary file "dhry.o" was generated successfully.

Do you know how I can solve this problem? Or somebody else met such kind of problems before.

Thanks and regards,
xschen






RE: Fail to run orpsocv2 RTL tests on CentOS 5.5
by xschen on Apr 29, 2011
xschen
Posts: 11
Joined: Apr 11, 2011
Last seen: Jan 20, 2012
Julius, Thanks for your reply.

I agree with you that there is no easy way to install all required library on CentOS 5.5. For my trials these two days, I have to install the following libraries one by one to solve the problem. And some troubles happened during the compilation from source so that it almost took me over one day to finish it. I could share my experience here if anybody needed.

gmp-4.3.2
mpfr-3.0.1
mpc-0.9

But another problem came out accordingly.

I still failed to build the source by or32-elf-gcc. For example, while I used "make rtl-tests", the Makefile involved or32-elf-gcc to compile the source and then get the following errors.

/tmp/ccf3Q0JR.s: Assembler messages:
/tmp/ccf3Q0JR.s:11: Error: unknown pseudo-op: `.proc'
/tmp/ccf3Q0JR.s:19: Error: invalid character '.' in mnemonic
/tmp/ccf3Q0JR.s:20: Error: invalid character '.' in mnemonic
/tmp/ccf3Q0JR.s:21: Error: invalid character '.' in mnemonic
/tmp/ccf3Q0JR.s:22: Error: invalid character '.' in mnemonic
/tmp/ccf3Q0JR.s:26: Error: invalid character '.' in mnemonic
/tmp/ccf3Q0JR.s:27: Error: invalid character '.' in mnemonic
/tmp/ccf3Q0JR.s:29: Error: invalid character '.' in mnemonic
/tmp/ccf3Q0JR.s:30: Error: invalid character '.' in mnemonic
/tmp/ccf3Q0JR.s:32: Error: invalid character '.' in mnemonic
/tmp/ccf3Q0JR.s:33: Error: invalid character '.' in mnemonic
/tmp/ccf3Q0JR.s:34: Error: invalid character '.' in mnemonic
/tmp/ccf3Q0JR.s:37: Error: invalid character '.' in mnemonic
/tmp/ccf3Q0JR.s:38: Error: invalid character '.' in mnemonic

It seemed that the tool called incorrect complier to compile the assembly code. So I had the experiment below.

Let's say there is a C source code named 'dhry.c'.
1. If I used command "or32-elf-gcc -c dhry.c", a lot of "invalid character '.' in mnemonic" errors were reported.
2. If I used command "or32-elf-gcc -S dhry.c", it was able to get "dhry.s". And then executed "or32-elf-as dhry.s", the final binary file "dhry.o" was generated successfully.

Do you know how I can solve this problem? Or somebody else met such kind of problems before.

Thanks and regards,
xschen
RE: Fail to run orpsocv2 RTL tests on CentOS 5.5
by xschen on Apr 29, 2011
xschen
Posts: 11
Joined: Apr 11, 2011
Last seen: Jan 20, 2012
I'm sorry that this reply was posted for so many times due to the network problem.

Julius, Thanks for your reply.

I agree with you that there is no easy way to install all required library on CentOS 5.5. For my trials these two days, I have to install the following libraries one by one to solve the problem. And some troubles happened during the compilation from source so that it almost took me over one day to finish it. I could share my experience here if anybody needed.

gmp-4.3.2
mpfr-3.0.1
mpc-0.9

But another problem came out accordingly.

I still failed to build the source by or32-elf-gcc. For example, while I used "make rtl-tests", the Makefile involved or32-elf-gcc to compile the source and then get the following errors.

/tmp/ccf3Q0JR.s: Assembler messages:
/tmp/ccf3Q0JR.s:11: Error: unknown pseudo-op: `.proc'
/tmp/ccf3Q0JR.s:19: Error: invalid character '.' in mnemonic
/tmp/ccf3Q0JR.s:20: Error: invalid character '.' in mnemonic
/tmp/ccf3Q0JR.s:21: Error: invalid character '.' in mnemonic
/tmp/ccf3Q0JR.s:22: Error: invalid character '.' in mnemonic
/tmp/ccf3Q0JR.s:26: Error: invalid character '.' in mnemonic
/tmp/ccf3Q0JR.s:27: Error: invalid character '.' in mnemonic
/tmp/ccf3Q0JR.s:29: Error: invalid character '.' in mnemonic
/tmp/ccf3Q0JR.s:30: Error: invalid character '.' in mnemonic
/tmp/ccf3Q0JR.s:32: Error: invalid character '.' in mnemonic
/tmp/ccf3Q0JR.s:33: Error: invalid character '.' in mnemonic
/tmp/ccf3Q0JR.s:34: Error: invalid character '.' in mnemonic
/tmp/ccf3Q0JR.s:37: Error: invalid character '.' in mnemonic
/tmp/ccf3Q0JR.s:38: Error: invalid character '.' in mnemonic

It seemed that the tool called incorrect complier to compile the assembly code. So I had the experiment below.

Let's say there is a C source code named 'dhry.c'.
1. If I used command "or32-elf-gcc -c dhry.c", a lot of "invalid character '.' in mnemonic" errors were reported.
2. If I used command "or32-elf-gcc -S dhry.c", it was able to get "dhry.s". And then executed "or32-elf-as dhry.s", the final binary file "dhry.o" was generated successfully.

Do you know how I can solve this problem? Or somebody else met such kind of problems before.

Thanks and regards,
xschen
RE: Fail to run orpsocv2 RTL tests on CentOS 5.5
by samahsaeed on Jul 16, 2013
samahsaeed
Posts: 4
Joined: Jun 22, 2013
Last seen: Nov 22, 2022
Hi,

I have the same problem. When I try to run orpsocv2 RTL tests on CentOS 5.5, I received the same error that says : libmpc.so.2: cannot open shared object file: No such file or directory

I installed all the required libraries that are mentioned above as well as the ones in the installation steps. However, I still can't compile the libraries.

Do you know how to resolve this issue?

Thanks,
RE: Fail to run orpsocv2 RTL tests on CentOS 5.5
by jeremybennett on Jul 18, 2013
jeremybennett
Posts: 815
Joined: May 29, 2008
Last seen: Jun 13, 2019

Hi samahsaeed

You too are missing the MPC library. It is a known issue with Red Hat Enterprise Linux (of which Centos is a clone). Package libmpc-devel is listed as a pre-requisite (see http://opencores.org/or1k/OpenRISC_GNU_tool_chain#Prerequisites), but not available on these systems.

You can install this package as explained by Julius Baxter above. Alternatively you can just unpack the source code into a directory named mpc in the GCC source tree, and GCC will build it automatically as part of the tool chain build.

HTH,

Jeremy

--
Tel: +44 (1590) 610184
Cell: +44 (7970) 676050
SkypeID: jeremybennett
Email: jeremy.bennett@embecosm.com
Web: www.embecosm.com

RE: Fail to run orpsocv2 RTL tests on CentOS 5.5
by samahsaeed on Jul 24, 2013
samahsaeed
Posts: 4
Joined: Jun 22, 2013
Last seen: Nov 22, 2022
jeremybennett, thank you very much. It works.

Best regards,
Samah Saeed
no use no use 1/1 no use no use
© copyright 1999-2025 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.