Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
580 views
in Technique[技术] by (71.8m points)

mips - how to cross compile uClibc0.9.28 to mips64 n32

I have a router firmware, but there is no libuClibc-0.9.28.so in it. so i'm thinking to compile the so by myself, the router is based on mips64 n32. i download the source code from uclibc,when i cross compile, there are two problems:

1.there is no way to set the abi to n32 in menuconfig

2.cpp can't find the limits.h

for the fisrt one, i just to append the option "-mabi=n32" to the Rules.mak, just like this: enter image description here

for the second, it's a bit complex, the error like this:

enter image description here

as you can see, in fact, the cpp can't find the second limits.h, the search paths is:

enter image description here

so i use "-isystem" to add a path where there is a "limits.h":

enter image description here

finally, it reports a error:

enter image description here

it said "#error mips32 code being compiled for mips64!", what is it mean? how to find the mips32 code ? i'm new to cross compile, Can anyone help me


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

1.4m articles

1.4m replys

5 comments

56.9k users

...