I forgot to Reply All in previous email and thus didn't put it on the mailing list.... (newbie of mailing list actually)
In previous email, you've mentioned about Makefile(s) that might contain "hostcc" and "buildcc", but i couldn't find it. Let me attach the Makefile here and also i extract the top part of it:
######################################## #export STP_MODULE_PATH = $(top_builddir)/src/main/.libs:$(top_builddir)/src/main #export STP_DATA_PATH = $(top_srcdir)/src/xml
This program (Gutenprint) has multiple Makefile for different modules of the program. So, the error part of it is a sub-folder (gutenprint-5.2.8/src/xml/) and the main program that caused the problem is the ./extrac-strings which is compiled during the building process and run to generate some data files. Here's the log extract when error occurs:
############################################## gcc -DHAVE_CONFIG_H -I. -I../.. -I../../include -I../../include -Wall -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wwrite-strings -Werror-implicit-function-declaration -Winline -Wformat=2 -finline-limit=131072 -Disfinite=finite -O6 -MT extract-strings.o -MD -MP -MF .deps/extract-strings.Tpo -c -o extract-strings.o extract-strings.c
mv -f .deps/extract-strings.Tpo .deps/extract-strings.Po /bin/bash ../../libtool --tag=CC --mode=link gcc -Disfinite=finite -O6 -o extract-strings extract-strings.o ../../src/main/libgutenprint.la
gcc -Disfinite=finite -O6 -o .libs/extract-strings extract-strings.o ../../src/main/.libs/libgutenprint.so -lm creating extract-strings ./extract-strings `cat xml-stamp | sed -e 's;^;./;'` > xmli18n-tmp.h.tmp
./extract-strings: line 119: /home/hongjet-vm1/ltib/rpm/BUILD/gutenprint-5.2.3/src/xml/.libs/lt-extract-strings: cannot execute binary file ./extract-strings: line 119: /home/hongjet-vm1/ltib/rpm/BUILD/gutenprint-5.2.3/src/xml/.libs/lt-extract-strings: Success
make[4]: *** [xmli18n-tmp.h] Error 1 make[4]: Leaving directory `/home/hongjet-vm1/ltib/rpm/BUILD/gutenprint-5.2.3/src/xml' ###############################################
As you can see here, initially it cannot execute the binary file, then it seems to have 2nd attempt to execute it and Success followed. However, when it tries to generate that "xmli18n-tmp.h" file, Error 1 came in...
From the Makefile and Error Log attached here, could anyone tells if this program is cross-compiler aware and i have the luck to cross-compile it with LTIB??
Thanks again!! Andy
On Tue, Jan 24, 2012 at 11:49 PM, Stuart Hughes <address@hidden> wrote:
Hi Andy,
Unless you keep questions on the list, I won't answer (and no one
else can).
You need to look at configure, not the other automake scripts. You
should not need to run automake, you should use configure as-is.
After looking at the makefile.am, there's no clue about
hostcc and buildcc. However, in makefile.in, there's
build_triplets and host_triplets, but i suppose it's generated
from *.am via ./configure right?
If it's not cross-compiler aware, what could i modify to
differentiate the hostcc and buildcc? Could you please give me
some hints?
Besides, in LTIB exisitng packages, do you know which one has
these hostcc and buildcc feature? I might be able to pick up some
information from its makefile or even specfile....
Thanks,
Andy
On Mon, Jan 23, 2012 at 10:04 PM, Stuart
Hughes <address@hidden>
wrote:
Hi Andy,
You need to look in the Makefile(s) and see if they have
anything to differentiate the build host from the target
host. Often this may be something like HOSTCC or BUILDCC.
Sometimes though there's nothing if the file is not tailored
for cross compiling.
Regards, Stuart
On 22/01/12 18:05, Andy Yew wrote:
Hi all,
Has anyone successfully build/LTIB Gutenprint?
Here are the log file of "./ltib -m scbuild -p
gutenprint.spec" and the .spec file i've generated
from template.
It seems like there's slight problem running binary
file within the building/making process. It's trying
to run the binary and generate the xmli18n-tmp.h file
in /src/xml folder.
Any idea to suppress this kind of problem where make
process involves running binary programs to generate
data??
RPM build errors:
Build time for gutenprint: 41 seconds
######################################################################################################