Re: error with mipsel cross compiler!!!

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




Hi,


I think it is enough to put the mipsel assembler instead of the
the 'as' which you already have. Because the mipsel-g++ seems to be using the
real (the one which you already had) 'as' instead of the mipsel as.


Try it


Regards
KK


On Friday 20 September 2002 10:05 am, Vishal wrote:
> Hi all,
>   I am trying to install the cross compiler for the MIPSEL arch on my
> i386 machine.
> i downloaded the 2 required tar's and did the following
> tar -zxvf mipsel-linux-gcc.2.7.2-3.tar.gz
> tar -zxvf mipsel-linux-binutils.2.7-3.tar.gz
> ///these two install the precompiled binaries and library files......
>
> [root@vishal cross_compilers]# ls
> /usr/local/bin/                                                          
> //mipsel-linux-g++ figures in this directory...... cpp                     
> mipsel-linux-gasp
> mips-linux-ar            mips-linux-protoize
> gcjh                     mipsel-linux-gcj
> mips-linux-as            mips-linux-ranlib
> gcov                     mipsel-linux-ld
> mips-linux-c++           mips-linux-readelf
> jcf-dump                 mipsel-linux-nm
> mips-linux-c++filt       mips-linux-size
> jv-scan                  mipsel-linux-objcopy
> mips-linux-chill         mips-linux-strings
> licq                     mipsel-linux-objdump
> mips-linux-g++           mips-linux-strip
> mipsel-linux-addr2line   mipsel-linux-protoize
> mips-linux-g77           mips-linux-unprotoize
> mipsel-linux-ar          mipsel-linux-ranlib
> mips-linux-gasp          viewurl-lynx.sh
> mipsel-linux-as          mipsel-linux-readelf
> mips-linux-gcc           viewurl-ncftp.sh
> mipsel-linux-c++         mipsel-linux-size
> mips-linux-gcj           viewurl-netscape.sh
> mipsel-linux-c++filt     mipsel-linux-strings
> mips-linux-ld            viewurl-w3m.sh
> mipsel-linux-chill       mipsel-linux-strip       mips-linux-nm
> mipsel-linux-g++         mipsel-linux-unprotoize  mips-linux-objcopy
> mipsel-linux-g77         mips-linux-addr2line     mips-linux-objdump
>
> [root@vishal cross_compilers]# mipsel-linux-g++  hello.c    //error!!!
> as: unrecognized option `-PIC'
>
> however if i do.......
> [root@vishal cross_compilers]#mipsel-linux-g++ -S hello.c
>   //a hello.S assembly lang file obtained....... hello.s
> [root@vishal cross_compilers]#mipsel-linux-as hello.s -o hello
> [root@vishal cross_compilers]#ls
> hello
> [root@vishal cross_compilers]#file hello
> hello: ELF 32-bit MSB mips-1 relocatable, MIPS R3000_BE, version 1
> (SYSV), not stripped
>
> boils down to a problem with the assembler being used i guess.....anyone
> knows what can be done to get rid of this??????
>
> regards,
> Vishal.
>
>
>
>
>
>
> ÿØÿà

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux