This is the mail archive of the libffi-discuss@sourceware.org mailing list for the libffi project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Problem "opcode not supported on this processor" for mips64


Hello,
I am trying to build libffi for a MIPS64 big endian processor. A
Cavium Octeon one.
I managed to do it with the first version of the SDK I had (gcc v3.2,
I don't remember for other tools). I recently updated my SDK (gcc
v4.3) and now when I try to build libffi, I get the following error
during the compilation of the n32.S file :

> ../src/mips/n32.S: Assembler messages:
> ../src/mips/n32.S:115: Error: opcode not supported on this processor: octeon (mips64r2) `l.s $f12,0*8($25)'

And 50 others errors like that in the same file. It seems that all
errors come from load and store instructions. i attached log of the
configure and make process.

I tried putting flags to compile for n32 version (CFLAGS=-mabi=n32)
and I get same errors.
I tried with version 3.0.10rc8 and 3.0.9.
The weird point is that I managed to build it with my older version of the SDK.


Another weird thing I have seen is at the beginning of the make :
>
> make "AR_FLAGS=" "CC_FOR_BUILD=" "CFLAGS=-O3 -fomit-frame-pointer -fstrict-aliasing -ffast-math -Wall -fexceptions" "CXXFLAGS=" "CFLAGS_FOR_BUILD=" "CFLAGS_FOR_TARGET=" "INSTALL=/usr/bin/install -c" "INSTALL_DATA=/usr/bin/install -c -m 644" "INSTALL_PROGRAM=/usr/bin/install -c" "INSTALL_SCRIPT=/usr/bin/install -c" "JC1FLAGS=" "LDFLAGS=" "LIBCFLAGS=" "LIBCFLAGS_FOR_TARGET=" "MAKE=make" "MAKEINFO=/bin/bash /home/bertrand/Desktop/partagecarte/libffi-3.0.10rc8/missing --run makeinfo " "PICFLAG=" "PICFLAG_FOR_TARGET=" "RUNTESTFLAGS=" "SHELL=/bin/bash" "exec_prefix=/usr/local" "infodir=/usr/local/share/info" "libdir=/usr/local/lib" "mandir=/usr/local/share/man" "prefix=/usr/local" "AR=mips64-octeon-linux-gnu-ar" "AS=as" "CC=mips64-octeon-linux-gnu-gcc" "CXX=g++" "LD=/home/bertrand/Cavium_Networks/OCTEON-SDK/tools-gcc-4.3/mips64-octeon-linux-gnu/bin/ld" "NM=/home/bertrand/Cavium_Networks/OCTEON-SDK/tools/bin/mips64-octeon-linux-gnu-nm -B" "RANLIB=mips64-octeon-linux-gnu-ranlib" "DESTDIR=" all-recursive

Assembler used seems to be the one from my x86 system. I don't know if
it is normal.


Thank you very much in advance for your help.

Attachment: logconfigure.txt
Description: Text document

Attachment: logmake.txt
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]