Discussion:
[uClinux-dev] Persistent seg-fault during build
Eric Fowler
2014-01-24 21:12:54 UTC
Permalink
I have the emcraft distro linux-M2S-1.12.0. I have successfully built and
booted this several times.
When I went into the linux directory and ran 'make menuconfig' to enable
the spi drivers, then ran 'make', I was confronted with:

CHK include/generated/compile.h
GEN usr/initramfs_data.cpio
/home/eric/linux-cortexm-1.12.0/linux/scripts/gen_initramfs_list.sh: line
329: 1957 Segmentation fault (core dumped) usr/gen_init_cpio
${cpio_list} > ${cpio_tfile}
make[1]: *** [usr/initramfs_data.cpio] Error 139
make: *** [usr] Error 2


Yuk. Since then I have not been able to get around this. I have done 'make
clean' and 'make oldconfig', which got me a build which failed to compile a
driver that I don't need. I once was able to get a new distro to build a
default kernel but that of course helps only a little. Now, bizarrely, the
build *always* does this, even after blowing away the whole tree, tools and
all, and rebuilding it. I have also run amuk in the /tmp directory.

Has anyone else seen this? Does anyone know the cause?

If all I want is SPI support, what do I need to tell menuconfig? I thought
my entries made sense.

Eric
--
cc:NSA
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.uclinux.org/pipermail/uclinux-dev/attachments/20140124/64661ae0/attachment.html>
Eric Fowler
2014-01-24 21:16:10 UTC
Permalink
I have the emcraft distro linux-M2S-1.12.0, a cortex-M2 ARM distro. I have successfully built and booted this several times.
When I went into the linux directory and ran 'make menuconfig' to enable the spi drivers, then ran 'make', I was confronted with:


? CHK ? ? include/generated/compile.h
? GEN ? ? usr/initramfs_data.cpio
/home/eric/linux-cortexm-1.12.0/linux/scripts/gen_initramfs_list.sh: line 329: ?1957 Segmentation fault ? ? ?(core dumped) usr/gen_init_cpio ${cpio_list} > ${cpio_tfile}
make[1]: *** [usr/initramfs_data.cpio] Error 139
make: *** [usr] Error 2


Yuk. Since then I have not been able to get around this. I have done 'make clean' and 'make oldconfig', which got me a build which failed to compile a driver that I don't need. I once was able to get a new distro to build a default kernel but that of course helps only a little. Now, bizarrely, the build *always* does this, even after blowing away the whole tree, tools and all, and rebuilding it. I have also run amuk in the /tmp directory.?

Has anyone else seen this? Does anyone know the cause??

If all I want is SPI support, what do I need to tell menuconfig? I thought my entries made sense.?

Eric
Eric Fowler
2014-01-24 21:17:58 UTC
Permalink
"I have also run amuk in the /tmp directory" ---> should be ------>" I have also run amuk in the /tmp directory, deleting any tmp files that I think the build has produced"

-----Original Message-----
From: uclinux-dev-bounces at uclinux.org [mailto:uclinux-dev-bounces at uclinux.org] On Behalf Of Eric Fowler
Sent: Friday, January 24, 2014 1:16 PM
To: uclinux-dev at uclinux.org
Subject: [uClinux-dev] Persistent seg-fault during build

I have the emcraft distro linux-M2S-1.12.0, a cortex-M2 ARM distro. I have successfully built and booted this several times.
When I went into the linux directory and ran 'make menuconfig' to enable the spi drivers, then ran 'make', I was confronted with:


? CHK ? ? include/generated/compile.h
? GEN ? ? usr/initramfs_data.cpio
/home/eric/linux-cortexm-1.12.0/linux/scripts/gen_initramfs_list.sh: line 329: ?1957 Segmentation fault ? ? ?(core dumped) usr/gen_init_cpio ${cpio_list} > ${cpio_tfile}
make[1]: *** [usr/initramfs_data.cpio] Error 139
make: *** [usr] Error 2


Yuk. Since then I have not been able to get around this. I have done 'make clean' and 'make oldconfig', which got me a build which failed to compile a driver that I don't need. I once was able to get a new distro to build a default kernel but that of course helps only a little. Now, bizarrely, the build *always* does this, even after blowing away the whole tree, tools and all, and rebuilding it. I have also run amuk in the /tmp directory.?

Has anyone else seen this? Does anyone know the cause??

If all I want is SPI support, what do I need to tell menuconfig? I thought my entries made sense.?

Eric

_______________________________________________
uClinux-dev mailing list
uClinux-dev at uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev at uclinux.org To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev

Loading...