Home page logo

nmap-dev logo Nmap Development mailing list archives

Cross-compiling error
From: Nuno Gonçalves <nunojpg () gmail com>
Date: Sun, 25 Dec 2011 11:40:18 +0000

At revision 27637 (and for a while back) I'm getting a cross-compilation error:

mips-openwrt-linux-uclibc-gcc -Os -pipe -mips32r2 -mtune=mips32r2
-fno-caller-saves -fhonour-copts -msoft-float  -fno-builtin -fno-rtti
-Wall -fno-strict-aliasing   -c dscal.c
cc1: warning: command line option "-fno-rtti" is valid for C++/ObjC++
but not for C
mips-openwrt-linux-uclibc-ar blas.a dnrm2.o daxpy.o ddot.o dscal.o
mips-openwrt-linux-uclibc-ar: illegal option -- .
Usage: mips-openwrt-linux-uclibc-ar [emulation options]
[-]{dmpqrstx}[abcfilNoPsSuvV] [member-name] [count] archive-file
       mips-openwrt-linux-uclibc-ar -M [<mri-script]

I guess this is caused by the $(AR) variable to be replaced during compilation.

Since liblinear/blas/Makefile defines

AR     = ar rcv

The "rcv" flags are not used and so the error.

For me it was enough to edit this Makefile:

-- AR     = ar rcv


--      $(AR) blas.a $(FILES)
++     $(AR) rcv blas.a $(FILES)

I don't include a patch because I don't know anything about Makefiles
and I'm afraid this solution might not be ok, while it works for me.

+ Nuno Gonçalves
+ nunojpg () gmail com
+ http://nunoassimassim.blogspot.com/
E-mail sent directly from Google Mail webmail using HTTPS on behalf of
Nuno João Pinto Gonçalves, birth date 1986-11-16. This e-mail header
MUST contain a DKIM signature. If you require additional security, I
may provide on request X509 electronic signature under Portuguese
government chain.
Se precisar de assinatura digital do Cartão de Cidadão, de uma apitadela.
Sent through the nmap-dev mailing list
Archived at http://seclists.org/nmap-dev/

  By Date           By Thread  

Current thread:
  • Cross-compiling error Nuno Gonçalves (Dec 25)
[ Nmap | Sec Tools | Mailing Lists | Site News | About/Contact | Advertising | Privacy ]