wendellchao / opkg

Automatically exported from code.google.com/p/opkg
0 stars 0 forks source link

How to compile the opkg for the mips target #43

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,dear friends,

How can I complie the opkg for my mips ?
What steps will reproduce the problem?
1. Downloaded the source code from the trunk,and the version is r518.
2. configuring. But I want the opkg can work in my mips,so I did the 
following(all in one line):

AR=/opt/mips/bin/mips-linux-uclibc-ar AS="/opt/mips/bin/mips-linux-uclibc-
gcc -c -Os -pipe -mips32r2 -mtune=mips32r2 -funit-at-a-time -msoft-float" 
LD=/opt/mips/bin/mips-linux-uclibc-ld NM=/opt/mips/bin/mips-linux-uclibc-
nm 
CC="/opt/mips/bin/mips-linux-uclibc-gcc" CC="/opt/mips/bin/mips-linux-
uclibc-gcc" CXX="/opt/mips/bin/mips-linux-uclibc-g++" 
RANLIB=/opt/mips/bin/mips-linux-uclibc-ranlib STRIP=/opt/mips/bin/mips-
linux-uclibc-strip 
OBJCOPY=/opt/mips/bin/mips-linux-uclibc-objcopy OBJDUMP=/opt/mips/bin/mips-
linux-uclibc-objdump  
SIZE=/opt/mips/bin/mmips-linux-uclibc-size CFLAGS="-Os -pipe -mips32r2 -
mtune=mips32r2 -funit-at-a-time -msoft-float -Wno-array-bounds 
-I/home/test/openwrt/trunk/staging_dir/target-mips-linux-
uclibc/usr/include 
-I/home/test/openwrt/trunk/staging_dir/target-mips-linux-uclibc/include -
I/opt/mips/bin/usr/include 
-I/opt/mips/bin/include" CXXFLAGS="-Os -pipe -mips32r2 -mtune=mips32r2 -
funit-at-a-time -msoft-float -Wno-array-bounds 
-I/home/test/openwrt/trunk/staging_dir/target-mips-linux-uclibc/usr/include
-I/home/test/openwrt/trunk/staging_dir/target-mips-linux-uclibc/include -
I/opt/mips/bin/usr/include 
-I/opt/mips/bin/include" CPPFLAGS="-
I/home/test/openwrt/trunk/staging_dir/target-mips-linux-uclibc/usr/include 
-I/home/test/openwrt/trunk/staging_dir/target-mips-linux-uclibc/include -
I/opt/mips/bin/usr/include -I/opt/mips/bin/include " 
LDFLAGS="-L/home/test/openwrt/trunk/staging_dir/target-mips-linux-
uclibc/usr/lib 
-L/home/test/openwrt/trunk/staging_dir/target-mips-linux-uclibc/lib -
L/opt/mips/bin/usr/lib -L/opt/mips/bin/lib "   
./configure --target=mips-linux-uclibc --host=mips-linux-uclibc --
build=i386-redhat-linux --program-prefix="" --program-suffix="" --
prefix=/usr 
--exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --
libexecdir=/usr/lib --sysconfdir=/etc --datadir=/usr/share --
localstatedir=/var 
--mandir=/usr/man --infodir=/usr/info  --disable-curl --disable-nls, --
disable-ipv6 --disable-gpg --with-opkgetcdir=/etc --with-
opkglockfile=/var/lock/opkg.lock
3.

What is the expected output? What do you see instead?
I wanted the opkg will be complied, but i got the followings:
The result are the followings:
1 configure: WARNING: Unrecognized options: --disable-nls, --disable-ipv6
and
2 configure: error: C compiler cannot create executables

What version of the product are you using? On what operating system?
r518

Please provide any additional information below.
My Host:
Linux  2.6.27.5-117.fc10.i686
I can complie openwrt's other pkgs.

thanks.

Original issue reported on code.google.com by gierwu_h...@hotmail.com on 17 Jan 2010 at 10:47

GoogleCodeExporter commented 9 years ago
Try to add --disable-shave to the ./configure flags and tell me if it helps.

Original comment by pixdamix@gmail.com on 17 Jan 2010 at 6:58

GoogleCodeExporter commented 9 years ago
Can you include your config.log file?

Original comment by graham.g...@gmail.com on 17 Jan 2010 at 10:55

GoogleCodeExporter commented 9 years ago
Thanks  pixdamix and graham.gower. I've resolved this problem by the following:
1)delete "-Wno-array-bounds" from configure flag list, for my 
mips-linux-uclibc-gcc 
doesn't support this.
2)add "--disable-shave " into configure flag list. Without this flag, there 
would be 
error in compling time for "-fshave-mode=complie".
Maybe this problem is the bug of OPENWRT, not of OPKG.
Thanks again. 

Original comment by gierwu_h...@hotmail.com on 23 Jan 2010 at 8:33

GoogleCodeExporter commented 9 years ago
Closed as the user resolved this issue.

Original comment by graham.g...@gmail.com on 26 Jan 2010 at 10:59