From: Hichem B. <bou...@ya...> - 2009-05-17 20:41:18
|
Hi all, It is the first time that I use ltp and I am having some troubles trying to cross compile it. I have seen a cross compilation example in the installation manual. It is about cross compiling for a powerpc processor. CROSS_COMPILER=/opt/ppc64/powerpc64-linux/bin/powerpc64-linux- CROSS_CFLAGS= -mpowerpc64 LDFLAGS=-static LOADLIBES=-lpthread -lc -lresolv -lnss_dns -lnss_files -lm -lc LIB_DIR=/lib64 export LOADLIBES LIB_DIR In my case, I a compiling for an arm processor. I tried to do the same by the specifying the toolchain prefix, the CC, LD, AR and the LIB_DIR. But, I get always this error when cross compiling : getdelays.c: In function 'print_delayacct': getdelays.c:215: error: 'struct taskstats' has no member named 'freepages_count' getdelays.c:216: error: 'struct taskstats' has no member named 'freepages_delay_total' make[5]: *** [getdelays] Erreur 1 In fact, I omitted the libraries nss_dns and lnss_files since didn't find them in the lib directories of my toolchain. I am not sure about that, but I don't think the problem is related to this libraries since they do not exist in my host machine either, and here, the compilation of ltp worked well. Perhaps, the problem is due to the fact that I didn't put any option in the CROSS_CFLAGS since I found nowhere how to get this information. If someone knows any thing about this or succeeded to cross compile ltp, it would be really nice if he could tell me, because I am really stuck now :-) Thanks, -- Hichem BOUSSETTA Elève ingénieur Ecole Polytechnique de Tunisie |