[uClinux-dev] A "Segmentation fault" as below when "make menuconfig" after patched with uClinux-dist-20070130-20071101.patch.gz

Greg Ungerer gerg at snapgear.com
Wed Nov 7 19:23:07 EST 2007


Hi Mike,

Mike Wu wrote:
> I got a "Segmentation fault" as below when "make menuconfig" after 
> patched with uClinux-dist-20070130-20071101.patch.gz or
> uClinux-dist-20070130-20071017.patch.gz.
> I didn't try other older patches. At least, these two patches have 
> problems. Does anyone face the same problem as I do? The OS I use is 
> Sles10.1 .
> 
> # make CROSS_COMPILE=arm-uclinuxeabi-s menuconfig
> config/mkconfig > Kconfig
> CC=cc make -C /home/xxxx/Linux/uClinux-dist/config/kconfig mconf
> make[1]: Entering directory `/home/xxxx/Linux/uClinux-dist/config/kconfig'
> cc -DCURSES_LOC="<ncurses.h>"   -c -o mconf.o mconf.c
> cc -DCURSES_LOC="<ncurses.h>"   -c -o lxdialog/checklist.o 
> lxdialog/checklist.c
> cc -DCURSES_LOC="<ncurses.h>"   -c -o lxdialog/inputbox.o 
> lxdialog/inputbox.c
> cc -DCURSES_LOC="<ncurses.h>"   -c -o lxdialog/menubox.o lxdialog/menubox.c
> cc -DCURSES_LOC="<ncurses.h>"   -c -o lxdialog/textbox.o lxdialog/textbox.c
> cc -DCURSES_LOC="<ncurses.h >"   -c -o lxdialog/util.o lxdialog/util.c
> cc -DCURSES_LOC="<ncurses.h>"   -c -o lxdialog/yesno.o lxdialog/yesno.c
> cc   mconf.o zconf.tab.o lxdialog/checklist.o lxdialog/inputbox.o
> lxdialog/menubox.o lxdialog/textbox.o lxdialog/util.o lxdialog/yesno.o
>  -lncursesw -o mconf
> /usr/lib/gcc/i586-suse-linux/4.1.2/../../../../i586-suse-linux/bin/ld:
> warning: i386:x86-64 architecture of input file `zconf.tab.o' is
> incompatible with i386 output
> make[1]: Leaving directory `/home/xxxx/Linux/uClinux-dist/config/kconfig'
> /home/xxxx/Linux/uClinux-dist/config/kconfig/mconf Kconfig
> make: *** [menuconfig] Segmentation fault

I would say there is some object files left hanging around in
the patch that should have been removed. My build machine is
an x86-64, so I would say my patch generation script hasn't
cleaned out config/kconfig/zconf.tab.o

Clean out the objects in there after patching, so do:

     rm config/kconfig/*.o
     rm config/kconfig/conf

I expect you should be able to build after that.

Regards
Greg




> # gcc -v
> Using built-in specs.
> Target: i586-suse-linux
> Configured with: ../configure --enable-threads=posix --prefix=/usr
> --with-local-prefix=/usr/local --infodir=/usr/share/info
> --mandir=/usr/share/man --libdir=/usr/lib --libexecdir=/usr/lib
> --enable-languages=c,c++,objc,fortran,obj-c++,java,ada
> --enable-checking=release
> --with-gxx-include-dir=/usr/include/c++/4.1.2 --enable-ssp
> --disable-libssp --disable-libgcj --with-slibdir=/lib
> --with-system-zlib --enable-shared --enable-__cxa_atexit
> --enable-libstdcxx-allocator=new --program-suffix=
> --enable-version-specific-runtime-libs --without-system-libunwind
> --with-cpu=generic --host=i586-suse-linux
> Thread model: posix
> gcc version 4.1.2 20070115 (prerelease) (SUSE Linux)
> 
> # arm-uclinuxeabi-gcc -v
> Using built-in specs.
> Target: arm-uclinuxeabi
> Configured with: /scratch/paul/lite/uclinux/src/gcc-4.2/configure
> --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu
> --target=arm-uclinuxeabi --enable-threads --disable-libmudflap
> --disable-libssp --disable-libgomp --disable-libstdcxx-pch
> --with-gnu-as --with-gnu-ld --enable-languages=c,c++ --disable-shared
> --with-pkgversion=CodeSourcery Sourcery G++ Lite 2007q3-51
> --with-bugurl= https://support.codesourcery.com/GNUToolchain/
> --disable-nls 
> <https://support.codesourcery.com/GNUToolchain/--disable-nls> 
> --prefix=/opt/codesourcery
> --with-sysroot=/opt/codesourcery/arm-uclinuxeabi/libc
> --with-build-sysroot=/scratch/paul/lite/uclinux/install/arm-uclinuxeabi/libc 
> 
> --enable-poison-system-directories
> --with-build-time-tools=/scratch/paul/lite/uclinux/install/arm-uclinuxeabi/bin
> --with-build-time-tools=/scratch/paul/lite/uclinux/install/arm-uclinuxeabi/bin
> Thread model: single
> gcc version 4.2.1 (CodeSourcery Sourcery G++ Lite 2007q3-51)
>  
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> 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

-- 
------------------------------------------------------------------------
Greg Ungerer  --  Chief Software Dude       EMAIL:     gerg at snapgear.com
Secure Computing Corporation                PHONE:       +61 7 3435 2888
825 Stanley St,                             FAX:         +61 7 3891 3630
Woolloongabba, QLD, 4102, Australia         WEB: http://www.SnapGear.com


More information about the uClinux-dev mailing list