Re: ADV: Error on compile

Tilman Sauerbeck <[email protected]>
Newsgroups gmane.linux.lib.dietlibc
Message-ID <[email protected]>
Tobias Matt [2010-07-06 18:22]:
> >> I tried to compile dietlibc on my little Debian Server an became the
> >> following error:
> >
> >> bin-arm/diet gcc -D__dietlibc__ -pipe -nostdinc -Os
> >> -fomit-frame-pointer -fstrict-aliasing -mabi=aapcs-linux
> >> -mfloat-abi=soft -mno-thumb-interwork -W -Wall -Wextra
> >> -Wchar-subscripts -Wmissing-prototypes -Wmissing-declarations
> >> -Wno-switch -Wno-unused -Wredundant-decls -o bin-arm/elftrunc
> >> contrib/elftrunc.c
> >> make: *** [bin-arm/elftrunc] Speicherzugriffsfehler
> >
> >> I have no idea, what's the problem. Can someone give me a hint?
> >
> > That indicates an error in the startup code.
> > Can you please do this:
> >
> >  $ make clean
> >  $ make DEBUG=1
> >
> > It should crash at the same point but this time you have debug symbols.
> > Then do this:
> >
> >  $ gdb bin-arm/diet
> >  [...]
> >  (gdb) r
> >
> > it should tell you the program crashed, and where.  Then send us that
> > information.
> 
> Ok, I tried this, but then I don't become the error. (make => Error,
> make DEBUG=1 => No Error). I tried it a lot of times.

Same here. On my test system (armv5tel-softfloat-linux-gnueabi), the
second alloca() in diet.c seems to fail (diet.c:100), causing the
following strcpy() to die.

Regards,
Tilman

-- 
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.