XFree86.spec not compiling for IMX 31

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

XFree86.spec not compiling for IMX 31

Jump to solution
6,157 Views
paiarunk
Contributor I
Hai

We have installed ltib-imx31ads-20071008 and trying to compile XFree86.spec for IMX31,

we are following the commands mentioned below

./ltib -p XFree86.spec -m prep
 and
after that if we run command

./ltib -p XFree86.spec -m scbuild

We are getting the following error

arun@arun-desktop:~/ftf/ltib-imx31ads-20071008$ ./ltib -p XFree86.spec -m scbuild

Processing: XFree86
=====================
rpmbuild --dbpath /home/arun/ftf/ltib-imx31ads-20071008/rpmdb --define '_unpackaged_files_terminate_build 0' --define '_target_cpu arm' --define '__strip strip' --define '_topdir /home/arun/ftf/ltib-imx31ads-20071008/rpm' --define '_prefix /usr' --define '_tmppath /home/arun/ftf/ltib-imx31ads-20071008/tmp' --define '_mandir /usr/share/man' --define '_sysconfdir /etc' --define '_localstatedir /var' -bc --short-circuit  /home/arun/ftf/ltib-imx31ads-20071008/dist/lfs-5.1/XFree86/XFree86.spec
Executing(%build): /bin/sh -e /home/arun/ftf/ltib-imx31ads-20071008/tmp/rpm-tmp.86485
+ umask 022
+ cd /home/arun/ftf/ltib-imx31ads-20071008/rpm/BUILD
+ cd /home/arun/ftf/ltib-imx31ads-20071008/rpm/BUILD/XFree86/xc
+ make World WORLDOPTS=

./config/util/printver.exe: 1: Syntax error: word unexpected (expecting ")")
Building XFree86.

I hope you checked the configuration parameters in ./config/cf
to see if you need to pass BOOTSTRAPCFLAGS.

Sun Nov 25 12:03:49 IST 2007

cd ./config/imake && make  -f Makefile.ini BOOTSTRAPCFLAGS="" CC="gcc" clean
make[1]: Entering directory `/home/arun/ftf/ltib-imx31ads-20071008/rpm/BUILD/XFree86/xc/config/imake'
rm -f ccimake imake.o imake
rm -f *.CKP *.ln *.BAK *.bak *.o core errs ,* *~ *.a tags TAGS make.log \#*
rm -f -r Makefile.proto Makefile Makefile.dep bootstrap
rm -f imakemdep_cpp.h
make[1]: Leaving directory `/home/arun/ftf/ltib-imx31ads-20071008/rpm/BUILD/XFree86/xc/config/imake'
make  Makefile.boot
make[1]: Entering directory `/home/arun/ftf/ltib-imx31ads-20071008/rpm/BUILD/XFree86/xc'
cd ./config/imake && make -w -f Makefile.ini BOOTSTRAPCFLAGS="" CC="gcc"
make[2]: Entering directory `/home/arun/ftf/ltib-imx31ads-20071008/rpm/BUILD/XFree86/xc/config/imake'
making imake with BOOTSTRAPCFLAGS= and CROSSCOMPILEFLAGS=-DCROSSCOMPILEDIR="" in config/imake
gcc -o ccimake -DCROSSCOMPILEDIR=\"\"  -O -I../../include -I../../imports/x11/include/X11 ccimake.c
if [ -n "" ] ; then \
        /cc -E `./ccimake` \
        -DCROSSCOMPILE_CPP imakemdep.h > imakemdep_cpp.h; \
        else touch imakemdep_cpp.h; fi
gcc -c  -O -I../../include -I../../imports/x11/include/X11 `./ccimake` imake.c
./ccimake: 1: Syntax error: word unexpected (expecting ")")
gcc -o imake  -O -I../../include -I../../imports/x11/include/X11 imake.o
make[2]: Leaving directory `/home/arun/ftf/ltib-imx31ads-20071008/rpm/BUILD/XFree86/xc/config/imake'
rm -f ./config/makedepend/Makefile.proto
./config/imake/imake -I./config/cf  -s ./config/makedepend/Makefile.proto -f ./config/makedepend/Imakefile -DTOPDIR=../.. -DCURDIR=./config/makedepend
./config/imake/imake: 1: Syntax error: word unexpected (expecting ")")
make[1]: *** [config/makedepend/Makefile.proto] Error 2
make[1]: Leaving directory `/home/arun/ftf/ltib-imx31ads-20071008/rpm/BUILD/XFree86/xc'
make: *** [World] Error 2
error: Bad exit status from /home/arun/ftf/ltib-imx31ads-20071008/tmp/rpm-tmp.86485 (%build)


RPM build errors:
    Bad exit status from /home/arun/ftf/ltib-imx31ads-20071008/tmp/rpm-tmp.86485 (%build)
Build time for XFree86: 3 seconds

Failed building XFree86


f_scbuild() returned an error, exiting
Exiting on error or interrupt
arun@arun-desktop:~/ftf/ltib-imx31ads-20071008$

please help

0 Kudos
1 Solution
1,567 Views
paiarunk
Contributor I
Hai ALL

I was able to successfully crosscompile Xorg 6.9.0 , and also able to run X applications connecting to a monitor

The steps to be followed are

  1. Download X11R6.9.0-src.tar.gz from ww.x.org
  2. Run make World CROSSCOMPILEDIR="/opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin" CROSS_COMPILE="arm-none-linux-gnueabi-" DESTDIR="/home/arm"
  3. After this command you will get errors,
  4. Copy contents in ltib~/rootfs/usr/lib and ltib~/rootfs/usr/include to the xc/exports folder
  5. Run make all CROSSCOMPILEDIR="/opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin" CROSS_COMPILE="arm-none-linux-gnueabi-" DESTDIR="/home/arm"
  6. After successful compilation make install CROSSCOMPILEDIR="/opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin" CROSS_COMPILE="arm-none-linux-gnueabi-" DESTDIR="/home/arm"

Regards

Arun Kumar

View solution in original post

0 Kudos
1 Reply
1,568 Views
paiarunk
Contributor I
Hai ALL

I was able to successfully crosscompile Xorg 6.9.0 , and also able to run X applications connecting to a monitor

The steps to be followed are

  1. Download X11R6.9.0-src.tar.gz from ww.x.org
  2. Run make World CROSSCOMPILEDIR="/opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin" CROSS_COMPILE="arm-none-linux-gnueabi-" DESTDIR="/home/arm"
  3. After this command you will get errors,
  4. Copy contents in ltib~/rootfs/usr/lib and ltib~/rootfs/usr/include to the xc/exports folder
  5. Run make all CROSSCOMPILEDIR="/opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin" CROSS_COMPILE="arm-none-linux-gnueabi-" DESTDIR="/home/arm"
  6. After successful compilation make install CROSSCOMPILEDIR="/opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin" CROSS_COMPILE="arm-none-linux-gnueabi-" DESTDIR="/home/arm"

Regards

Arun Kumar

0 Kudos