ltib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Ltib] ltib. add GTK+ packet


From: Stuart Hughes
Subject: Re: [Ltib] ltib. add GTK+ packet
Date: Mon, 06 Jul 2009 08:52:29 +0100
User-agent: Thunderbird 2.0.0.16 (X11/20080707)

Hi Dimitry,

This is an issue with later arm kernels having moved the placement of
their include files, and it's not obvious how one should copy these out
now (there has been some discussion on the list).

For the time begin I've checked in a patch to avoid this, but I'm not
sure what the correct solution is (ARM experts?).  The patch I checked
in is as follows:

$ cvs diff dist/lfs-5.1/kernel/kernel-common.tmpl
Index: dist/lfs-5.1/kernel/kernel-common.tmpl
===================================================================
RCS file: /sources/ltib/ltib/dist/lfs-5.1/kernel/kernel-common.tmpl,v
retrieving revision 1.8
diff -u -r1.8 kernel-common.tmpl
--- dist/lfs-5.1/kernel/kernel-common.tmpl      18 Mar 2009 18:34:20 -0000      
1.8
+++ dist/lfs-5.1/kernel/kernel-common.tmpl      6 Jul 2009 07:50:56 -0000
@@ -314,8 +314,13 @@

     if [ "${LINTARCH}" = "arm" ]
     then
-        mkdir -p $RPM_BUILD_ROOT/%{pfx}/usr/src/linux/include/asm/arch
- cp -a $KBOUT/include/asm/arch/* $RPM_BUILD_ROOT/%{pfx}/usr/src/linux/include/asm/arch
+        if [ -d "$KBOUT/include/asm/arch" ]
+        then
+            mkdir -p $RPM_BUILD_ROOT/%{pfx}/usr/src/linux/include/asm/arch
+ cp -a $KBOUT/include/asm/arch/* $RPM_BUILD_ROOT/%{pfx}/usr/src/linux/include/asm/arch
+        else
+            echo "Don't know how to copy asm headers for this kernel"
+        fi
     fi
 fi


Regards, Stuart

Dmitry wrote:

I try to build the kernel to phytecLPC3250 board, if I add GTK+ to package list I receive following errors (see below).





address@hidden:~/LTIB/ltib$ ./ltib

Processing platform: Phytec 3250 board with the NXP LPC32XX SoC
=================================================================
using config/platform/phy3250/.config

Processing: fake-provides
===========================

Processing: u-boot-1.3.3-lpc32xx
==================================

Processing: kernel-2.6.27.8-lpc32xx
=====================================
Build path taken because: directory build, build key set, no prebuilt rpm,
scbuild/scdeploy already unpacked package

Processing: kernel-2.6.27.8-lpc32xx
=====================================
Build path taken because: directory build, build key set, no prebuilt rpm,

rpmbuild --dbpath /home/dima/LTIB/ltib/rootfs//var/lib/rpm --target arm --define '_unpackaged_files_terminate_build 0' --define '_target_cpu arm' --define '__strip strip' --define '_topdir /home/dima/LTIB/ltib/rpm' --define '_prefix /usr' --define '_tmppath /home/dima/LTIB/ltib/tmp' --define '_rpmdir /home/dima/LTIB/ltib/rpm/RPMS' --define '_mandir /usr/share/man' --define '_sysconfdir /etc' --define '_localstatedir /var' -bc --short-circuit /home/dima/LTIB/ltib/tmp/kernel-2.6.27.8-lpc32xx.spec
Building target platforms: arm
Building for target arm
Executing(%build): /bin/sh -e /home/dima/LTIB/ltib/tmp/rpm-tmp.91628
+ umask 022
+ cd /home/dima/LTIB/ltib/rpm/BUILD
+ cd linux-2.6.27.8
+ eval echo
+ echo
+ PKG_KERNEL_PATH_PRECONFIG=
+ eval echo
+ echo
+ PKG_KERNEL_KBUILD_PRECONFIG=
+ eval echo linux-2.6.27.8-phy3250.config
+ echo linux-2.6.27.8-phy3250.config
+ PKG_KERNEL_PRECONFIG=linux-2.6.27.8-phy3250.config
+ KSRC_DIR=/home/dima/LTIB/ltib/rpm/BUILD/linux-2.6.27.8
+ : arm
+ : ccache /usr/bin/gcc -B/usr/bin//
+ : linux-2.6.27.8-phy3250.config
+ : /home/dima/LTIB/ltib/config/platform/phy3250
+ : /home/dima/LTIB/ltib/rpm/BUILD/linux-2.6.27.8
+ rm -f /home/dima/LTIB/ltib/rpm/BUILD/linux
+ ln -s /home/dima/LTIB/ltib/rpm/BUILD/linux-2.6.27.8 /home/dima/LTIB/ltib/rpm/BUILD/linux
+ cd /home/dima/LTIB/ltib/rpm/BUILD/linux-2.6.27.8
+ KBOUT=
+ [ -n  -a  != . ]
+ KBOUT=.
+ KTARG=zImage
+ SYSCFG_KTARG=uImage
+ [ linux-2.6.27.8-phy3250.config = defconfig ]
+ [ -f /home/dima/LTIB/ltib/config/platform/phy3250/linux-2.6.27.8-phy3250.config.dev ] + CFG_PATH=/home/dima/LTIB/ltib/config/platform/phy3250/linux-2.6.27.8-phy3250.config.dev
+ break
+ [ -z /home/dima/LTIB/ltib/config/platform/phy3250/linux-2.6.27.8-phy3250.config.dev ]
+ [ arm = ppc -a -f arch/powerpc/Kconfig ]
+ [ -n  ]
+ [ -n /home/dima/LTIB/ltib/config/platform/phy3250/linux-2.6.27.8-phy3250.config.dev ] + cp -f /home/dima/LTIB/ltib/config/platform/phy3250/linux-2.6.27.8-phy3250.config.dev ./.config
+ [ -z  -a -n  -o -n  ]
+ [ -n /home/dima/LTIB/ltib/config/platform/phy3250/linux-2.6.27.8-phy3250.config.dev ]
+ yes
+ make ARCH=arm HOSTCC=ccache /usr/bin/gcc -B/usr/bin// oldconfig
scripts/kconfig/conf -o arch/arm/Kconfig
#
# configuration written to .config
#
+ [ -f /home/dima/LTIB/ltib/config/platform/phy3250/linux-2.6.27.8-phy3250.config.dev ] + diff -q ./.config /home/dima/LTIB/ltib/config/platform/phy3250/linux-2.6.27.8-phy3250.config.dev
+ [ -n  ]
+ [ %{kernel_series} = 2.4 ]
+ make ARCH=arm HOSTCC=ccache /usr/bin/gcc -B/usr/bin// uImage
scripts/kconfig/conf -s arch/arm/Kconfig
  CHK     include/linux/version.h
make[1]: `include/asm-arm/mach-types.h' is up to date.
  CHK     include/linux/utsrelease.h
  CALL    scripts/checksyscalls.sh
<stdin>:1097:2: warning: #warning syscall fadvise64 not implemented
<stdin>:1265:2: warning: #warning syscall migrate_pages not implemented
<stdin>:1321:2: warning: #warning syscall pselect6 not implemented
<stdin>:1325:2: warning: #warning syscall ppoll not implemented
<stdin>:1365:2: warning: #warning syscall epoll_pwait not implemented
  CHK     include/linux/compile.h
  GZIP    kernel/config_data.gz
  IKCFG   kernel/config_data.h
  CC      kernel/configs.o
  LD      kernel/built-in.o
  LD      vmlinux.o
  MODPOST vmlinux.o
WARNING: modpost: Found 1 section mismatch(es).
To see full details build your kernel with:
'make CONFIG_DEBUG_SECTION_MISMATCH=y'
  GEN     .version
  CHK     include/linux/compile.h
  UPD     include/linux/compile.h
  CC      init/version.o
  LD      init/built-in.o
  LD      .tmp_vmlinux1
  KSYM    .tmp_kallsyms1.S
  AS      .tmp_kallsyms1.o
  LD      .tmp_vmlinux2
  KSYM    .tmp_kallsyms2.S
  AS      .tmp_kallsyms2.o
  LD      vmlinux
  SYSMAP  System.map
  SYSMAP  .tmp_System.map
  OBJCOPY arch/arm/boot/Image
  Kernel: arch/arm/boot/Image is ready
  GZIP    arch/arm/boot/compressed/piggy.gz
  AS      arch/arm/boot/compressed/piggy.o
  LD      arch/arm/boot/compressed/vmlinux
  OBJCOPY arch/arm/boot/zImage
  Kernel: arch/arm/boot/zImage is ready
  UIMAGE  arch/arm/boot/uImage
Image Name:   Linux-2.6.27.8
Created:      Sun Jul  5 00:33:58 2009
Image Type:   ARM Linux Kernel Image (uncompressed)
Data Size:    1699120 Bytes = 1659.30 kB = 1.62 MB
Load Address: 0x80008000
Entry Point:  0x80008000
  Image arch/arm/boot/uImage is ready
+ grep -q ^CONFIG_MODULES= ./.config
+ make ARCH=arm HOSTCC=ccache /usr/bin/gcc -B/usr/bin// modules
  CHK     include/linux/version.h
make[1]: `include/asm-arm/mach-types.h' is up to date.
  CHK     include/linux/utsrelease.h
  CALL    scripts/checksyscalls.sh
<stdin>:1097:2: warning: #warning syscall fadvise64 not implemented
<stdin>:1265:2: warning: #warning syscall migrate_pages not implemented
<stdin>:1321:2: warning: #warning syscall pselect6 not implemented
<stdin>:1325:2: warning: #warning syscall ppoll not implemented
<stdin>:1365:2: warning: #warning syscall epoll_pwait not implemented
  Building modules, stage 2.
  MODPOST 4 modules
+ [ -n  ]
+ exit 0
Build time for kernel-2.6.27.8-lpc32xx: 35 seconds


Processing: kernel-2.6.27.8-lpc32xx
=====================================
Build path taken because: directory build, build key set, no prebuilt rpm,

rpmbuild --dbpath /home/dima/LTIB/ltib/rootfs//var/lib/rpm --target arm --define '_unpackaged_files_terminate_build 0' --define '_target_cpu arm' --define '__strip strip' --define '_topdir /home/dima/LTIB/ltib/rpm' --define '_prefix /usr' --define '_tmppath /home/dima/LTIB/ltib/tmp' --define '_rpmdir /home/dima/LTIB/ltib/rpm/RPMS' --define '_mandir /usr/share/man' --define '_sysconfdir /etc' --define '_localstatedir /var' -bi --short-circuit /home/dima/LTIB/ltib/tmp/kernel-2.6.27.8-lpc32xx.spec
Building target platforms: arm
Building for target arm
Executing(%install): /bin/sh -e /home/dima/LTIB/ltib/tmp/rpm-tmp.61128
+ umask 022
+ cd /home/dima/LTIB/ltib/rpm/BUILD
+ cd linux-2.6.27.8
+ eval echo
+ echo
+ PKG_KERNEL_PATH_PRECONFIG=
+ eval echo
+ echo
+ PKG_KERNEL_KBUILD_PRECONFIG=
+ eval echo
+ echo
+ DTC_NAMES=
+ eval echo
+ echo
+ SYSCFG_DTC_PATH=
+ DTC_PAD=%dtc_pad
+ [ %dtc_pad = %dtc_pad ]
+ DTC_PAD=1024
+ KSRC_DIR=/home/dima/LTIB/ltib/rpm/BUILD/linux-2.6.27.8
+ cd /home/dima/LTIB/ltib/rpm/BUILD/linux-2.6.27.8
+ KBOUT=
+ [ -n  ]
+ KBOUT=.
+ [ arm = ppc -a -f arch/powerpc/Kconfig ]
+ grep -q CONFIG_XIP_KERNEL=y ./.config
+ BOOT_KERNEL=arch/arm/boot/zImage
+ rm -rf /home/dima/LTIB/ltib/tmp/kernel
+ mkdir -p /home/dima/LTIB/ltib/tmp/kernel//opt/nxp/rootfs/arm/boot
+ grep -q ^CONFIG_MODULES= ./.config
+ make ARCH=arm HOSTCC=ccache /usr/bin/gcc -B/usr/bin// DEPMOD=/bin/true INSTALL_MOD_PATH=/home/dima/LTIB/ltib/tmp/kernel//opt/nxp/rootfs/arm modules_install
Warning: you may need to install module-init-tools
See http://www.codemonkey.org.uk/docs/post-halloween-2.6.txt
  INSTALL drivers/base/firmware_class.ko
  INSTALL drivers/scsi/scsi_wait_scan.ko
  INSTALL fs/nls/nls_ascii.ko
  INSTALL fs/nls/nls_utf8.ko
  DEPMOD  2.6.27.8
+ ls /home/dima/LTIB/ltib/tmp/kernel//opt/nxp/rootfs/arm/lib/modules
+ KERNEL_VER=2.6.27.8
+ rm -f /home/dima/LTIB/ltib/tmp/kernel//opt/nxp/rootfs/arm/lib/modules/2.6.27.8/build <http://2.6.27.8/build> + ln -s /usr/src/linux /home/dima/LTIB/ltib/tmp/kernel//opt/nxp/rootfs/arm/lib/modules/2.6.27.8/build <http://2.6.27.8/build> + rm -f /home/dima/LTIB/ltib/tmp/kernel//opt/nxp/rootfs/arm/lib/modules/2.6.27.8/source <http://2.6.27.8/source> + ln -s /usr/src/linux /home/dima/LTIB/ltib/tmp/kernel//opt/nxp/rootfs/arm/lib/modules/2.6.27.8/source <http://2.6.27.8/source>
+ SYSCFG_BOOT_KERNEL=arch/arm/boot/uImage
+ [ -n  ]
+ [ -n  ]
+ cp ./vmlinux /home/dima/LTIB/ltib/tmp/kernel//opt/nxp/rootfs/arm/boot
+ cp ./System.map /home/dima/LTIB/ltib/tmp/kernel//opt/nxp/rootfs/arm/boot
+ cp ./arch/arm/boot/uImage /home/dima/LTIB/ltib/tmp/kernel//opt/nxp/rootfs/arm/boot
+ basename arch/arm/boot/uImage
+ ln -s uImage /home/dima/LTIB/ltib/tmp/kernel//opt/nxp/rootfs/arm/boot/bootable_kernel + cp ./.config /home/dima/LTIB/ltib/tmp/kernel//opt/nxp/rootfs/arm/boot/linux.config
+ DTC_PATH=arch/arm/boot/dts
+ [ arm = powerpc -a -d arch/arm/boot/dts ]
+ [ -n y ]
+ mkdir -p /home/dima/LTIB/ltib/tmp/kernel//opt/nxp/rootfs/arm/usr/src/linux/include
+ [ -d include/asm-arm ]
+ cp -a include/asm-arm /home/dima/LTIB/ltib/tmp/kernel//opt/nxp/rootfs/arm/usr/src/linux/include
+ [ -d include/asm-generic ]
+ cp -a include/asm-generic /home/dima/LTIB/ltib/tmp/kernel//opt/nxp/rootfs/arm/usr/src/linux/include
+ [ -d include/config ]
+ cp -a include/config /home/dima/LTIB/ltib/tmp/kernel//opt/nxp/rootfs/arm/usr/src/linux/include
+ [ -d include/linux ]
+ cp -a include/linux /home/dima/LTIB/ltib/tmp/kernel//opt/nxp/rootfs/arm/usr/src/linux/include
+ [ -d include/math-emu ]
+ cp -a include/math-emu /home/dima/LTIB/ltib/tmp/kernel//opt/nxp/rootfs/arm/usr/src/linux/include
+ [ -d include/media ]
+ cp -a include/media /home/dima/LTIB/ltib/tmp/kernel//opt/nxp/rootfs/arm/usr/src/linux/include
+ [ -d include/mtd ]
+ cp -a include/mtd /home/dima/LTIB/ltib/tmp/kernel//opt/nxp/rootfs/arm/usr/src/linux/include
+ [ -d include/net ]
+ cp -a include/net /home/dima/LTIB/ltib/tmp/kernel//opt/nxp/rootfs/arm/usr/src/linux/include
+ [ -d include/pcmcia ]
+ cp -a include/pcmcia /home/dima/LTIB/ltib/tmp/kernel//opt/nxp/rootfs/arm/usr/src/linux/include
+ [ -d include/rxrpc ]
+ cp -a include/rxrpc /home/dima/LTIB/ltib/tmp/kernel//opt/nxp/rootfs/arm/usr/src/linux/include
+ [ -d include/scsi ]
+ cp -a include/scsi /home/dima/LTIB/ltib/tmp/kernel//opt/nxp/rootfs/arm/usr/src/linux/include
+ [ -d include/sound ]
+ cp -a include/sound /home/dima/LTIB/ltib/tmp/kernel//opt/nxp/rootfs/arm/usr/src/linux/include
+ [ -d include/video ]
+ cp -a include/video /home/dima/LTIB/ltib/tmp/kernel//opt/nxp/rootfs/arm/usr/src/linux/include
+ [ -d ./include/asm ]
+ cp -a ./include/asm /home/dima/LTIB/ltib/tmp/kernel//opt/nxp/rootfs/arm/usr/src/linux/include
+ [ -d ./include/config ]
+ cp -a ./include/config /home/dima/LTIB/ltib/tmp/kernel//opt/nxp/rootfs/arm/usr/src/linux/include
+ [ -d ./include/linux ]
+ cp -a ./include/linux /home/dima/LTIB/ltib/tmp/kernel//opt/nxp/rootfs/arm/usr/src/linux/include
+ [ arm = arm ]
+ mkdir -p /home/dima/LTIB/ltib/tmp/kernel//opt/nxp/rootfs/arm/usr/src/linux/include/asm/arch + cp -a ./include/asm/arch/* /home/dima/LTIB/ltib/tmp/kernel//opt/nxp/rootfs/arm/usr/src/linux/include/asm/arch
cp: cannot stat `./include/asm/arch/*': No such file or directory
error: Bad exit status from /home/dima/LTIB/ltib/tmp/rpm-tmp.61128 (%install)


RPM build errors:
    Bad exit status from /home/dima/LTIB/ltib/tmp/rpm-tmp.61128 (%install)
Build time for kernel-2.6.27.8-lpc32xx: 5 seconds

Failed building kernel-2.6.27.8-lpc32xx


f_buildrpms() returned an error, exiting
traceback:
 main:559


Started: Sun Jul  5 00:33:26 2009
Ended:   Sun Jul  5 00:34:07 2009
Elapsed: 41 seconds

These packages failed to build:
kernel-2.6.27.8-lpc32xx

Build Failed

Exiting on error or interrupt
address@hidden:~/LTIB/ltib$


--
Best Regards,
Dmitry.
Embedded Development Engineer
Israel.
Mobile:
  052 6 144 338
  0507 63 53 10


------------------------------------------------------------------------

_______________________________________________
LTIB home page: http://ltib.org

Ltib mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/ltib





reply via email to

[Prev in Thread] Current Thread [Next in Thread]