AnsweredAssumed Answered

Can't build LTIB with zlib (MCP8313, RHEL6 64 Bit)

Question asked by David Pauli on Sep 14, 2011
Latest reply on Sep 14, 2011 by David Pauli

Hey,

 

I can't build an image with LTIB with the zlib-Library. Build without this library works fine. But I need the libpng and, for this, zlib.

 

After making

./ltib

 the console prints the following

Processing platform: Freescale MPC8313E RDB PowerPC board===========================================================using config/platform/mpc8313erdb/.configProcessing: fake-provides===========================Processing: u-boot-1.3.0-mpc8313erdb_revc===========================================Processing: kernel-2.6.23-mpc8313erdb_revc============================================Processing: skell===================Processing: dev=================Processing: base_libs=======================Processing: busybox=====================Processing: zlib==================Build path taken because: no prebuilt rpm, rpmbuild --dbpath /usr/LTIB/ltib-mpc8313erdb-20081222/rootfs//var/lib/rpm --target ppc --define '_unpackaged_files_terminate_build 0' --define '_target_cpu ppc' --define '__strip strip' --define '_topdir /usr/LTIB/ltib-mpc8313erdb-20081222/rpm' --define '_prefix /usr' --define '_tmppath /usr/LTIB/ltib-mpc8313erdb-20081222/tmp' --define '_mandir /usr/share/man' --define '_sysconfdir /etc' --define '_localstatedir /var' -bb --clean --rmsource  /usr/LTIB/ltib-mpc8313erdb-20081222/dist/lfs-5.1/zlib/zlib.specBuilding target platforms: ppcBuilding for target ppcExecuting(%prep): /bin/sh -e /usr/LTIB/ltib-mpc8313erdb-20081222/tmp/rpm-tmp.3941+ umask 022+ cd /usr/LTIB/ltib-mpc8313erdb-20081222/rpm/BUILD+ cd /usr/LTIB/ltib-mpc8313erdb-20081222/rpm/BUILD+ rm -rf zlib-1.2.3+ tar -xvvf -+ /usr/bin/bzip2 -dc /usr/LTIB/ltib-mpc8313erdb-20081222/rpm/SOURCES/zlib-1.2.3.tar.bz2[...]+ STATUS=0+ '[' 0 -ne 0 ']'+ cd zlib-1.2.3+ echo 'Patch #1 (zlib-1.2.3-arflags-1.patch):'Patch #1 (zlib-1.2.3-arflags-1.patch):+ patch -p1 -s+ exit 0Executing(%build): /bin/sh -e /usr/LTIB/ltib-mpc8313erdb-20081222/tmp/rpm-tmp.3941+ umask 022+ cd /usr/LTIB/ltib-mpc8313erdb-20081222/rpm/BUILD+ cd zlib-1.2.3+ ./configure --prefix=/usr --sharedChecking for shared library support...No shared library support; try without defining CC and CFLAGSBuilding static library libz.a version 1.2.3 with gcc.Checking for unistd.h... No.Checking whether to use vs[n]printf() or s[n]printf()... using s[n]printf()Checking for snprintf() in stdio.h... No.  WARNING: snprintf() not found, falling back to sprintf(). zlib  can build but will be open to possible buffer-overflow security  vulnerabilities.Checking for return value of sprintf()... No.  WARNING: apparently sprintf() does not return a value. zlib  can build but will be open to possible string-format security  vulnerabilities.Checking for errno.h... No.Checking for mmap support... No.+ mv Makefile Makefile.shared+ ./configure --prefix=/usrBuilding static library libz.a version 1.2.3 with gcc.Checking for unistd.h... No.Checking whether to use vs[n]printf() or s[n]printf()... using s[n]printf()Checking for snprintf() in stdio.h... No.  WARNING: snprintf() not found, falling back to sprintf(). zlib  can build but will be open to possible buffer-overflow security  vulnerabilities.Checking for return value of sprintf()... No.  WARNING: apparently sprintf() does not return a value. zlib  can build but will be open to possible string-format security  vulnerabilities.Checking for errno.h... No.Checking for mmap support... No.+ mv Makefile Makefile.static+ make -f Makefile.sharedgcc -O -DNO_snprintf -DHAS_sprintf_void -DNO_ERRNO_H   -c -o example.o example.cCan't exec "powerpc-e300c3-linux-gnu-gcc": No such file or directory at /opt/freescale/ltib/usr/spoof/gcc line 74.exec(powerpc-e300c3-linux-gnu-gcc -B /usr/LTIB/ltib-mpc8313erdb-20081222/rootfs/usr/lib// -idirafter /usr/LTIB/ltib-mpc8313erdb-20081222/rootfs/usr/include -iwithprefix include -O -DNO_snprintf -DHAS_sprintf_void -DNO_ERRNO_H -c -o example.o example.c) at /opt/freescale/ltib/usr/spoof/gcc line 74.make: *** [example.o] Error 2error: Bad exit status from /usr/LTIB/ltib-mpc8313erdb-20081222/tmp/rpm-tmp.3941 (%build)RPM build errors:    Bad exit status from /usr/LTIB/ltib-mpc8313erdb-20081222/tmp/rpm-tmp.3941 (%build)Build time for zlib: 1 secondsFailed building zlibf_buildrpms() returned an error, exitingtraceback: main:501Started: Wed Sep 14 11:33:47 2011Ended:   Wed Sep 14 11:33:49 2011Elapsed: 2 secondsThese packages failed to build:zlib Build FailedExiting on error or interrupt

 

I guess the problem appears because I used 64 Bit. What could I do?

 

So long, David

Outcomes