On Mon, Sep 28, 2009 at 5:11 PM, Stuart Hughes
<address@hidden> wrote:
Hi Francesco,
Looking at it it seems the kernel you're building might not work with Ubuntu's dash kernel. Dash does not support expansions like: etc/hotplug/{*.{agent,rc},hotplug.functions}
First, check that you are running dash (ls -l /bin/sh and/or echo $SHELL). If you are you need to mail the kernel mailing list and ask whether or not they intend it to be possible to build kernels if your shell is dash. If they won't change it or don't support dash your next best option is it switch the systems default shell to bash.
Regards, Stuart
Francesco wrote:
Here is full error output, i tried also with kernel 2.6.27.35, no luck.
Hope this could help, otherwise I will try another way to crosscompile kernel for that MPC8377EWLAN board.
Processing: hotplug
=====================
Build path taken because: directory build, build key set, no
prebuilt rpm,
rpmbuild --dbpath
/home/francesco/Desktop/ltib-mpc837xerdb-20090826/rootfs//var/lib/rpm
--target ppc --define '_unpackaged_files_terminate_build 0' --define
'_target_cpu ppc' --define '__strip strip' --define '_topdir
/home/francesco/Desktop/ltib-mpc837xerdb-20090826/rpm' --define
'_prefix /usr' --define '_tmppath
/home/francesco/Desktop/ltib-mpc837xerdb-20090826/tmp' --define
'_rpmdir
/home/francesco/Desktop/ltib-mpc837xerdb-20090826/rpm/RPMS' --define '_mandir /usr/share/man' --define '_sysconfdir /etc'
--define '_localstatedir /var' -bi --short-circuit /home/francesco/Desktop/ltib-mpc837xerdb-20090826/dist/lfs-5.1/hotplug/hotplug.spec
Building target platforms: ppc
Building for target ppc
Executing(%install): /bin/sh -e
/home/francesco/Desktop/ltib-mpc837xerdb-20090826/tmp/rpm-tmp.23217
+ umask 022
+ cd /home/francesco/Desktop/ltib-mpc837xerdb-20090826/rpm/BUILD
+ cd hotplug-2004_03_29
+ rm -rf /home/francesco/Desktop/ltib-mpc837xerdb-20090826/tmp/hotplug
+ make install
prefix=/home/francesco/Desktop/ltib-mpc837xerdb-20090826/tmp/hotplug//opt/freescale/rootfs/ppc
/usr/bin/install -c -D sbin/hotplug
/home/francesco/Desktop/ltib-mpc837xerdb-20090826/tmp/hotplug//opt/freescale/rootfs/ppc/sbin/hotplug
/usr/bin/install -c -d
/home/francesco/Desktop/ltib-mpc837xerdb-20090826/tmp/hotplug//opt/freescale/rootfs/ppc/etc/hotplug/{usb,pci}
/usr/bin/install -c -D etc/hotplug.d/default/default.hotplug
/home/francesco/Desktop/ltib-mpc837xerdb-20090826/tmp/hotplug//opt/freescale/rootfs/ppc/etc/hotplug.d/default/default.hotplug
for F in etc/hotplug/{*.{agent,rc},hotplug.functions} ; do \
/usr/bin/install -c $F
/home/francesco/Desktop/ltib-mpc837xerdb-20090826/tmp/hotplug//opt/freescale/rootfs/ppc/etc/hotplug
; \
done
/usr/bin/install: cannot stat
`etc/hotplug/{*.{agent,rc},hotplug.functions}': No such file or
directory
make: *** [install] Error 1
error: Bad exit status from
/home/francesco/Desktop/ltib-mpc837xerdb-20090826/tmp/rpm-tmp.23217
(%install)
RPM build errors:
Bad exit status from
/home/francesco/Desktop/ltib-mpc837xerdb-20090826/tmp/rpm-tmp.23217
(%install)
Build time for hotplug: 0 seconds
Failed building hotplug
f_buildrpms() returned an error, exiting
traceback:
main:560
Started: Mon Sep 28 16:24:38 2009
Ended: Mon Sep 28 16:48:57 2009
Elapsed: 1459 seconds
These packages failed to build:
hotplug
Build Failed
Exiting on error or interrupt
--
Francesco Cappuccio