Apt compiling problem!
Hello!
I have a problem with cross compiling of apt-5.28.6. I tried other
versions and always had the same problem.
I`am compiling on x86 to powerPc 405 on Xilinx2.
I build cross compiler from crosstools.
I tested my cross-compiler with simple programs and it works good.
I`am using next environment variables:
export CC=/opt/ppc405/bin/powerpc-405-linux-gnu-gcc
export CXX=/opt/ppc405/bin/powerpc-405-linux-gnu-c++
export CPP=/opt/ppc405/bin/powerpc-405-linux-gnu-cpp
export CFLAGS=-O2
export LDFLAGS='-L/usr/lib
-L/opt/ppc405/lib/gcc/powerpc-405-linux-gnu/3.4.1
-L/opt/ppc405/powerpc-405-linux-gnu/lib'
export CPPFLAGS='-I/usr/include
-I/opt/ppc405/include/c++/3.4.1/powerpc-405-linux-gnu/bits
-I/opt/ppc405/include/c++/3.4.1
-I/opt/ppc405/powerpc-405-linux-gnu/include
-I/opt/ppc405/powerpc-405-linux-gnu/sys-include'
CXXFLAGS=-O2
And configure with this:
./configure --prefix=/home/ivan/downloads/debian/apt
--exec-prefix=/home/ivan/downloads/debian/aptExe --host=x86
--target=powerpc
After make i have an error:
Compiling contrib/fileutl.cc to
/home/ivan/downloads/debian/apt-0.5.28.6/obj/apt-pkg/fileutl.o
contrib/fileutl.cc: In function `bool WaitFd(int, bool, long unsigned int)':
contrib/fileutl.cc:272: error: impossible constraint in `asm'
make[2]: ***
[/home/ivan/downloads/debian/apt-0.5.28.6/obj/apt-pkg/fileutl.o] Error 1
make[1]: *** [all] Error 2
make: *** [all] Error 2
I tried to change source code but it didn`t help me.
Please, help to compile program!
Thank you!
===================
Best regards
Kirilenkov Ivan
ivan@mail.rosta.ru
Reply to: