my problems were cross compiling on i686-pc-linux-gnu for powerpc-unknown-linux-gnu. The makefile is not properly coded to respect cross compiling. Also chrpfix.patch assumes that addnote was compiled for $CBUILD when in fact it should be compiling for $CHOST. The patch updates the makefile in such a way that it calls the newly built addnote which, when cross-compiling, will never execute. Also the strip section of the makefile does not respect cross compilation. My patch fixes this problem by setting CROSS = ${CHOST}- updating the linking flags to point to $SYSROOT and $ROOT incase they are different, setting HOSTCC = ${CBUILD}-gcc, adding a line to compile addnote a seccond time under the name addnote2 with HOSTCC and running this file instead of addnote (for CHOST), and last but not least, it appends ${CROSS} to all of the strip commands did I leave anything out? Reproducible: Always Steps to Reproduce: 1.cross-compile the package 2.it will bomb when the makefile calls ld instead of ${CHOST}-ld 3. Actual Results: failure Expected Results: success will attach patch
Created attachment 217279 [details, diff] cross-compile.patch this is my fix, tell me whacha think
*** Bug 301984 has been marked as a duplicate of this bug. ***
ok so I overlooked the fact that ROOT is set in the Makefile, I have amended the patch to remove the -L${ROOT}... parts of the linker flags (sorry for the accidental duplicate bug, this is my first time submitting a bug)
Created attachment 217281 [details, diff] cross-compile.patch