Re: ADV: Error on compile
Tobias Matt <[email protected]>
| Newsgroups | gmane.linux.lib.dietlibc |
|---|---|
| Message-ID | <[email protected]> |
>> 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. If I run gdb bin-arm/diet I get this output: $ gdb bin-arm/diet GNU gdb 6.8-debian Copyright (C) 2008 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "arm-linux-gnueabi"... (no debugging symbols found) (gdb) r Starting program: /home/tobias/fefe/dietlibc/bin-arm/diet diet version dietlibc-0.33 (non-install version in source tree) usage: diet [-v] [-Os] gcc command line e.g. diet -Os gcc -c t.c or diet sparc-linux-gcc -o foo foo.c bar.o Program exited with code 01. Also I tried make DEBUG=1 without a make clean. Then I get the following output: $ gdb bin-arm/diet GNU gdb 6.8-debian Copyright (C) 2008 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "arm-linux-gnueabi"... (no debugging symbols found) (gdb) r Starting program: /home/tobias/fefe/dietlibc/bin-arm/diet Program received signal SIGSEGV, Segmentation fault. 0x622f81a8 in ?? () I hope it helps a little bit. Tobias