问题描述
我目前在PowerPC Mac G4机器上运行Linux 2.4.27(Debian Sarge).我需要为在PowerPC 405机器上运行的Linux 2.4.18编写软件,并且在运行G. 3.3.5和GCC 2.95.3(均已安装)的同时运行2.4.27的Mac G4上生成的二进制文件具有问题;我在两个2.4.18 PowerPC 405计算机上运行时,都使用两个编译器构建了一个静态版本的cURL.我注意到,二进制文件是在2.4.18内核上构建的,并且具有交叉编译器功能(x86-> PPC).不幸的是,制作这些二进制文件的机器对我来说是不可用的,我真的在努力使Mac成为这一开发工作中的一站式服务"(我希望能够在这台机器上进行测试并运行). /p>
我在任何地方都找不到用于PowerPC的2.4.18 Linux发行版.给定运行2.4.27内核的PowerPC Mac G4,我该怎么做才能在运行Linux 2.4.18的PowerPC 405计算机上运行二进制文件?是要为2.2.5构建GLIBC并设置编译器以使用它的答案,还是我必须以某种方式构建2.4.18的整个内核来支持我想做的事情?
几周后,看来sessyargc.jp用户建议的解决方案确实是使用交叉编译器.我接受我的答案只是因为我想结束这个问题,而且我无法找到sessyargc.jp的名称,因为他/她只发表了评论.不过,仍然感谢sessyargc.jp指明了方向!
I presently run Linux 2.4.27 (Debian Sarge) on a PowerPC Mac G4 machine. I need to write software for Linux 2.4.18 running on a PowerPC 405 machine, and the binaries I am producing on my Mac G4 running 2.4.27 with both GCC 3.3.5 and GCC 2.95.3 (I have both installed) are having problems; I have built a static version of cURL with both compilers that segfaults when run on this 2.4.18 PowerPC 405 machine. I have noticed that binaries built on a 2.4.18 kernel with a cross compiler work (x86->PPC), however. Unfortunately, the machine that makes those binaries is unavailable to me, and I am really trying to get the Mac to be the "one stop shop" in this development effort (I want to be able to test and run on this machine).
I cannot find a 2.4.18 distribution of Linux for PowerPC anywhere. What can I do to build binaries that will work on a PowerPC 405 machine running Linux 2.4.18 given a PowerPC Mac G4 running a 2.4.27 kernel? Is building GLIBC for 2.2.5 and setting the compilers to use it the answer, or do I have to somehow build a whole kernel of 2.4.18 to support what I am trying to do?
Several weeks later, it appears that the solution suggested by user sessyargc.jp was indeed to use a cross compiler. I am accepting my answer only because I want to close this question out and I can find no way to give sessyargc.jp credit, since he/she only made a comment. Still, thank you sessyargc.jp for pointing the way!
这篇关于适用于运行Linux 2.4.18和Mac G4运行2.4.27的PowerPC 405机器的构建的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!