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

Re: [microblaze-uclinux] Kernel Compile error Now, segmentation fault



Mike,
 
thanks for the suggestions. I still get a segmentation fault. This is getting frustrating... I have been working on this for over a week and have got nowhere. Do you have a realease (uClinux) and toolchain that works? If you do, please send me an e-mail to apco25@yahoo.com and I can give you details of how to get it to me. As you know I am new to this. I am not apposed to doing research and reading. If you or someone out there has some good material on this sort of thing to troubleshoot this that would be great, I just don't know where to look. What can I read to figure out what all this stuff is? Where to begin? It seems like you and I are the only ones having trouble with this... Seems like others get it to build somehow. I have built other designs with this release (uClinux) for motorola and such and it works fine with my setup.
 
Thanks again,
Greg

Mike Smutek <msmutek@protiumtechnologies.com> wrote:
Greg,

I've only now gotten back to looking at this. The segmentation fault seems
to have been the result of the error at the end of the make for
libcrypt_old.a. When running the make manually ${RANLIB} was not defined.
Manually running "ranlib libcrypt_old.a" seemed to fix the segmentation
fault.

But that wasn't the end of the problems. Next were a missing zlib.h and then
a missing libz.a.

It seems like all the problems trace back to the two targets: jffs and
jffs2. Rather than sort out why those were broken, I simply removed them by
commenting them out of the "TARGETS =" line of
uClinux-dist/user/mtd-utils/Makefile. This may be a known problem -- I
haven't checked yet.

Anyway, with them gone the make of the kernel completed. I don't know yet if
the result works.

Mike

----- Original Message -----
From:! "Greg Miller"
To:
Sent: Saturday, January 01, 2005 5:14 PM
Subject: [microblaze-uclinux] Kernel Compile error Now, segmentation fault


> Mike/Everyone
>
> thanks. I think this new toolchain is way broken... I
> had to do two things:
> 1). Copy the libxil.a file into uClinux-dist
> 2). run make under the libcrypt_old directory
>
> Now, I get past those two errors, and I get the
> following:
>
> How do I get past this error now? None of this stuff
> is described in the documentation. Am I in general
> missing something here? I am not apposed to reading,
> but it seems like I am getting one error after
> another. Thanks to all who responded! It seems to me
> that everyone else can build this just fine.
>
> mb-gcc -Os -g -fomit-frame-pointer -fno-common -Wall
> -mno-xl-soft-mul -mxl-barrel-shift -mno-xl-soft-div
> -Dlinux -D__linux__ -Du nix -D__uClinux__ -DEMBED
> -nostdinc -I/mnt/sdb1/opt/uClinux-dist/include
> -I/mnt/sdb1/opt/uClinux-dist/include/include
> -fno-builtin -Wl,-elf2flt -nostartfiles
> /mnt/sdb1/opt/uClinux-dist/lib/crt0.o
> -L/mnt/sdb1/opt/uClinux-dist/lib -o boa alias.o auth.o
> boa.o cgi.o cgi_header.o config.o get.o hash.o
> globals.o log.o nls.o pipe.o queue.o read.o request.o
> response.o signals.o timestamp.o util.o - lcrypt_old
> -lc
>
/usr/local/microblaze-elf/bin/../lib/gcc-lib/microblaze/2.95.3-4/./libgcc.a
> /usr/local/microblaze-elf/bin/../lib/gcc
> -lib/microblaze/2.95.3-4/./../../../../microblaze/lib/libc_hard_shift.a
> -lc
> /usr/local/microblaze-elf/bin/mb-ld: line 156: 15998
> Segmentation fault $LINKER -r -d -o
> "$OFILE.elf2flt" $ARG1
> make[3]: *** [boa] Error 1
> make[3]: Leaving directory
> `/mnt/sdb1/opt/uClinux-dist/user/boa/src'
> make[2]: *** [all] Error 2
> make[2]: Leaving directory
> `/mnt/sdb1/opt/uClinux-dist/user/boa'
> make[1]: *** [all] Error 2
> make[1]: Leaving directory
> `/mnt/sdb1/opt/uClinux-dist/user'
> make: *** [subdirs] Error 1
>
>
>
> --- Mike Smutek
> wrote:
>
> > Hi Greg,
> >
> > I ran into the same error. In the uClinux-dist/lib
> > directory there is a libcrypt-old directory with a
> > README that has an explanation. If you simply type
> > "make" while in this directory, it will make the
> > libcrypt-old.a file that is needed. I seem to recall
> > the "make" terminated with an error, but the library
> > file seems ok.
> >
> > Mike Smutek
> >
> > ----- Original Message -----
> > From: Greg Miller
&! gt; > To: microblaze-uclinux@itee.uq.edu.au
> > Sent: Friday, December 31, 2004 9:16 PM
> > Subject: [microblaze-uclinux] Kernel Compile error
> > -lcrypt-old more details...
> >
> >
> > Hello,
> >
> > I am still trying to figure out this error. I have
> > built the kernel with just the default; following
> > the instructions exactly. I also tried the M5272C3
> > build from www.uclinux.org. That works fine, so I
> > know I can at least build a kernel.
> >
> > I looked on line and found this with reference to
> > -lcrypt-old as a proposal to be removed (or at
> > least have an option) :
> >
> http://mailman.uclinux.org/pipermail/uclinux-dev/2004-November/029974.html
> >
> > Is there a way to remove this as an option. Has
> > anyone tried the latest kernel with the toolchain on
> > the mb-u! clinux website. Could it be broken?
> >
> > Here is more detail on the error I get:
> > mb-gcc -Os -g -fomit-frame-pointer -fno-common
> > -Wall -mno-xl-soft-mul -mxl-ba rrel-shift
> > -mno-xl-soft-div -Dlinux -D__linux__ -Dunix
> > -D__uClinux__ -DEMBED -no stdinc
> > -I/mnt/sdb1/opt/uClinux-dist/include
> > -I/mnt/sdb1/opt/uClinux-dist/include /include
> > -fno-builtin -Wl,-elf2flt -nostartfiles
> > /mnt/sdb1/opt/uClinux-dist/lib/ crt0.o
> > -L/mnt/sdb1/opt/uClinux-dist/lib -o boa alias.o
> > auth.o boa.o cgi.o cgi_he ader.o config.o get.o
> > hash.o globals.o log.o nls.o pipe.o queue.o read.o
> > request .o response.o signals.o timestamp.o util.o
> > -lcrypt_old -lc /usr/local/microblaze
> >
> -elf/bin/../lib/gcc-lib/microblaze/2.95.3-4/./libgcc.a
> > /usr/local/microblaze-elf
> >
>
/bin/../lib/gcc-lib/microblaze/2.95.3-4/./../../../../microblaze/lib/libc_ha
rd_s
> > hift.a -lc
> > /usr/local/microblaze-elf/bin/mb-ld.real: cannot
> > find -lcrypt_old
> > make[3]: *** [boa] Error 1
> > make[3]: Leaving directory
> > `/mnt/sdb1/opt/uClinux-dist/user/boa/src'
> > make[2]: *** [all] Error 2
> > make[2]: Leaving di! rectory
> > `/mnt/sdb1/opt/uClinux-dist/user/boa'
> > make[1]: *** [all] Error 2
> > make[1]: Leaving directory
> > `/mnt/sdb1/opt/uClinux-dist/user'
> > make: *** [subdirs] Error 1
> > [root@localhost uClinux-dist]# mb-gcc -l
> > /usr/local/microblaze-elf/bin/mb-ld.real: cannot
> > find -l--library=gcc
> >
> >
> >
> > Greg Miller wrote:
> > Date: Tue, 28 Dec 2004 23:59:56 -0800 (PST)
> > From: Greg Miller
> ! > Subject: Kernel Compile error -lcrypt-old
> > To: majordomo@itee.uq.edu.au
> >
> >
> > Hello,
> >
> > I have been setting up everying I need to build
> > a MB kernel. I can get all the way though and then I
> > get the following error:
> >
> > .....
> > /bin/mb-ld.real: cannot find -lcrypt-old
> >
> > This happens after the last 'make' command.
> > Also, it happens after much processing of the Kernel
> > (I suppose it's at the end). I do not know if this
> > has been answered. Is there a way to search this
> > list?
> >
> > I am using the lasted Toolchain from the web.
> > I am using Fedora 3 with all the updates as of
> > today.
> >
> > Thanks,
> > Greg Miller
> >
>
> ___________________________
> microblaze-uclinux mailing list
&g! t; microblaze-uclinux@itee.uq.edu.au
> Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
> Mailing List Archive :
http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/
>
>
>


___________________________
microblaze-uclinux mailing list
microblaze-uclinux@itee.uq.edu.au
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/