| View previous topic :: View next topic |
| Author |
Message |
fabtar Sage

Joined: 04 Feb 2004 Posts: 1575 Location: Italy
|
|
| Back to top |
|
 |
satinz neophyte
Joined: 07 Apr 2008 Posts: 13
|
Posted: Thu Apr 17, 2008 7:45 am Post subject: |
|
|
| Thanks Fabtar - I'll take a look at it as soon as I get the time for it. |
|
| Back to top |
|
 |
fabtar Sage

Joined: 04 Feb 2004 Posts: 1575 Location: Italy
|
Posted: Thu Apr 17, 2008 9:52 am Post subject: |
|
|
| satinz wrote: | Yes, I tried to do it without gcc, and I doesn't work (just like Spiral said )
|
Have You failed in order to "make" the executable or has the "./configure" phase failed?
In case you have succesfully done the ./configure of mldonkey, can you redirect configure output to a file and send it to me(with rapidshare)?
I suppose that such output could contain valuable informrations on your synology enviroment, libraires and features.
| Code: |
./configure > configureoutput.txt
|
Regards _________________ ARM,ARMEL,MIPS,MIPSEL,POWERPC mldonkey cores: http://fabtar.ygrek.org.ua/ |
|
| Back to top |
|
 |
satinz neophyte
Joined: 07 Apr 2008 Posts: 13
|
Posted: Thu Apr 17, 2008 10:33 am Post subject: |
|
|
Ok, here's my first results. Not very uplifting
Core - w/o libs:
| Code: | GH4NAS> ./mlnet
Illegal instruction (core dumped) |
core - w/o libs, w/ strace:
| Code: | GH4NAS> strace ./mlnet
execve("./mlnet", ["./mlnet"], [/* 14 vars */]) = 0
uname({sys="Linux", node="GH4NAS", ...}) = 0
--- SIGILL (Illegal instruction) @ 0 (0) ---
+++ killed by SIGILL (core dumped) +++ |
core - w/ libs:
| Code: | GH4NAS> ./mlnet2.sh
Illegal instruction (core dumped) |
So basically no change at all.
Could it be some missing package? Ipkg is used to install packages. Currently I have the following installed:
amule - 2.1.3-10 - non-gui part of aMule ed2k client (amuled,amulweb,amulecmd)
apr - 1.2.11-1 - Apache Portable Runtime library
apr-util - 1.2.10-4 - Apache Portable Runtime utilities library
atop - 1.21-1 - A better top with history monitoring
autoconf - 2.61-2 - Creating scripts to configure source code packages using templates
bzip2 - 1.0.5-1 - Very high-quality data compression program
cyrus-sasl-libs - 2.1.22-2 - Provides client or server side authentication (see RFC 2222).
distcc - 2.18.3-2 -
e2fslibs - 1.40.3-4 - Ext2 Filesystem Libraries
e2fsprogs - 1.40.3-4 - Ext2 Filesystem Utilities
expat - 2.0.1-1 - XML Parser library
fontconfig - 2.5.0-0 - Font configuration library
freetype - 2.1.10-4 - Free truetype library
gdbm - 1.8.3-2 - GNU dbm is a set of database routines that use extensible hashing. It works similar to the standard UNIX dbm routines.
inetutils - 1.5-5 - A set of common daemons and clients found on commercial UNIX systems.
joe - 3.5-1 - Joe's own editor. A text editor with wordstar-like and emacs-like keybindings.
libcurl - 7.18.1-2 - Curl is a command line tool for transferring files with URL syntax, supporting FTP, FTPS, HTTP, HTTPS, GOPHER, TELNET, DICT, FI
libdb - 4.2.52-3 - Berkeley DB Libraries
libgd - 2.0.35-2 - An ANSI C library for the dynamic creation of images
libjpeg - 6b-2 - collection of jpeg tools
libpng - 1.2.26-1 - Portable Network Graphics Libraries
libstdc++ - 6.0.3-6 - Standard C++ library, needed for dynamically linked C++ programs
libxml2 - 2.6.31-1 - Libxml2 is the XML C parser and toolkit developed for the Gnome project.
m4 - 1.4.8-1 - gnu macro processor and compiler front end
make - 3.81-1 - examines files and runs commands necessary for compilation
nano - 2.1.1-1 - A pico like editor
ncurses - 5.6-3 - NCurses libraries
neon - 0.24.7-2 - an HTTP and WebDAV client library, with a C interface
ocaml - 3.10.2-1 - Objective Caml system is the main implementation of the Caml language.
openldap-libs - 2.3.38-1 - Open Lightweight Directory Access Protocol
openssl - 0.9.7m-3 -
readline - 5.2-2 - The GNU Readline library provides a set of functions for use by applications that allow users to edit command lines as they are
strace - 4.5.16-1 - Traces all system calls a program makes.
svn - 1.4.6-1 - a compelling replacement for CVS
tar - 1.18-3 -
termcap - 1.3.1-2 - Terminal emulation library
wget-ssl - 1.10.2-4 -
wxbase - 2.8.0-5 - wxbase is a basic (non-windows) part of wxWidget toolkit
zlib - 1.2.3-2 - zlib is a library implementing the 'deflate' compression system.
@Fabtar: Could you try to compile a basic HelloWorld-program, that I could then try to execute? Just to see if it's some very basic difference between your build setup and the target. |
|
| Back to top |
|
 |
ma2xfr neophyte
Joined: 28 Mar 2008 Posts: 18
|
Posted: Thu Apr 17, 2008 11:34 am Post subject: |
|
|
I got the same iusse as satinz.
Ok this message does not help more but it is just to say hello and that I keep my eyes on this feed...  |
|
| Back to top |
|
 |
fabtar Sage

Joined: 04 Feb 2004 Posts: 1575 Location: Italy
|
Posted: Thu Apr 17, 2008 11:44 am Post subject: |
|
|
./configure
should give me more informations.I'll provide an hello world this eavining.
I have to go back to work.. _________________ ARM,ARMEL,MIPS,MIPSEL,POWERPC mldonkey cores: http://fabtar.ygrek.org.ua/ |
|
| Back to top |
|
 |
spiralvoice Sage
Joined: 06 Jan 2003 Posts: 3982 Location: Germany
|
Posted: Thu Apr 17, 2008 3:40 pm Post subject: |
|
|
The idea of my uname patch was to remove the uname calls shown by strace.
Unfortunately this did not work because Ocaml itself calls uname()
in Unix.gethostname and again by its own VM used to start all
Ocaml programs. I even tried more patches, also to Ocaml, but
I did not succeed in eliminating the uname call on MLdonkey startup. _________________ Link overview and precompiled cores here: http://mldonkey.sourceforge.net/DownloadLinks |
|
| Back to top |
|
 |
fabtar Sage

Joined: 04 Feb 2004 Posts: 1575 Location: Italy
|
Posted: Thu Apr 17, 2008 6:20 pm Post subject: |
|
|
@Spiral
I have a doubt, I have read that the strace output is:
| Code: | | uname({sys="Linux", node="GH4NAS", ...}) = 0 |
do this mean that uname is succesfull?
Could the problem is related to an instruction which is after the uname call and just fist of rlimit call(next sys call)?
Or, is this "return value" unrelated and could uname be effectively the problem?
I really like to understand these details(I'm trying to raise my programmin' skills). _________________ ARM,ARMEL,MIPS,MIPSEL,POWERPC mldonkey cores: http://fabtar.ygrek.org.ua/ |
|
| Back to top |
|
 |
fabtar Sage

Joined: 04 Feb 2004 Posts: 1575 Location: Italy
|
|
| Back to top |
|
 |
spiralvoice Sage
Joined: 06 Jan 2003 Posts: 3982 Location: Germany
|
Posted: Fri Apr 18, 2008 7:30 am Post subject: |
|
|
| satinz wrote: | | Code: | GH4NAS> strace ./mlnet
execve("./mlnet", ["./mlnet"], [/* 14 vars */]) = 0
uname({sys="Linux", node="GH4NAS", ...}) = 0
--- SIGILL (Illegal instruction) @ 0 (0) ---
+++ killed by SIGILL (core dumped) +++ |
|
Can you do a gdb backtrace using the core file? _________________ Link overview and precompiled cores here: http://mldonkey.sourceforge.net/DownloadLinks |
|
| Back to top |
|
 |
satinz neophyte
Joined: 07 Apr 2008 Posts: 13
|
Posted: Sun Apr 20, 2008 9:01 pm Post subject: |
|
|
Sorry - I have been a bit busy these days.
I ran the HelloWorld (prova). Here's the results:
Raw:
| Code: | GH4NAS> ./prova
Illegal instruction (core dumped) |
With strace:
| Code: |
GH4NAS> strace ./prova
execve("./prova", ["./prova"], [/* 14 vars */]) = 0
uname({sys="Linux", node="GH4NAS", ...}) = 0
brk(0) = 0x35000
open("/etc/ld.so.preload", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=9026, ...}) = 0
old_mmap(NULL, 9026, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40015000
close(3) = 0
open("/lib/libm.so.6", O_RDONLY) = 3
read(3, "\177ELF\1\1\1a\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0$3\0\0004\0\0\0"..., 1024) = 1024
fstat64(3, {st_mode=S_IFREG|0755, st_size=462556, ...}) = 0
old_mmap(NULL, 479836, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x4001e000
mprotect(0x4008b000, 33372, PROT_NONE) = 0
old_mmap(0x4008e000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x68000) = 0x4008e000
close(3) = 0
open("/lib/libdl.so.2", O_RDONLY) = 3
read(3, "\177ELF\1\1\1a\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0(\27\0\0004\0\0\0"..., 1024) = 1024
fstat64(3, {st_mode=S_IFREG|0755, st_size=8668, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40018000
old_mmap(NULL, 39608, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40094000
mprotect(0x40096000, 31416, PROT_NONE) = 0
old_mmap(0x4009c000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0x4009c000
close(3) = 0
open("/lib/libc.so.6", O_RDONLY) = 3
read(3, "\177ELF\1\1\1a\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0HO\1\0004\0\0\0"..., 1024) = 1024
fstat64(3, {st_mode=S_IFREG|0755, st_size=1277616, ...}) = 0
old_mmap(NULL, 1261524, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x4009e000
mprotect(0x401c5000, 53204, PROT_NONE) = 0
old_mmap(0x401c6000, 40960, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x120000) = 0x401c6000
old_mmap(0x401d0000, 8148, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x401d0000
close(3) = 0
munmap(0x40015000, 9026) = 0
brk(0) = 0x35000
brk(0x36000) = 0x36000
brk(0) = 0x36000
old_mmap(NULL, 135168, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x401d2000
old_mmap(NULL, 253952, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x401f3000
brk(0) = 0x36000
brk(0x38000) = 0x38000
readlink("/proc/self/exe", "/volume1/misc/test/prova", 256) = 24
stat64("/volume1/misc/test/prova", {st_mode=S_IFREG|0755, st_size=210992, ...}) = 0
--- SIGILL (Illegal instruction) @ 0 (0) ---
+++ killed by SIGILL (core dumped) +++
|
With previous provided libs (don't know if it makes sense):
| Code: | GH4NAS> ./prova2.sh
/volume1/mldonkey/prova: relocation error: /volume1/mldonkey/lib/libc.so.6: symbol _rtld_global_ro, version GLIBC_PRIVATE not defined in file ld-linux.so.2 with link time reference
|
@fabtar: I have failed to see your post about make / configure. I don't have the setup right now, but I'll try to give it a go when I can find some time.
@spiralvoice: I dunno if it was targetted at me, but I tried gdb on the core file:
| Code: | GH4NAS> gdb @mlnet.core
GNU gdb 6.6
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "arm-marvell-linux-gnu"...
"/volume1/@mlnet.core": not in executable format: File format not recognized
(gdb) |
I don't know gdb well enough to determine if that's just due to bad setup, but to me it looks like I can't get any further with gdb.
EDIT: I don't know if this gives any futher info:
| Code: | GH4NAS> gdb
GNU gdb 6.6
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "arm-marvell-linux-gnu".
(gdb) core-file @mlnet.core
Core was generated by `./mlnet'.
Program terminated with signal 4, Illegal instruction.
#0 0x0030ff08 in ?? ()
(gdb) backtrace
#0 0x0030ff08 in ?? ()
(gdb)
|
|
|
| Back to top |
|
 |
fabtar Sage

Joined: 04 Feb 2004 Posts: 1575 Location: Italy
|
Posted: Mon Apr 21, 2008 11:47 am Post subject: |
|
|
Hi , I have received and interestng mail from ma2xfr:
| Quote: |
Some guys, from my french Synology community, try to
install Linux on a Synology 207+ and get as well the
Illegale instruction...
Here the original link:
http://www.nas-forum.com/forum/index.php?showtopic=3910
This topic talks about the Synology ARM achitecture,
to install Linux as Chroot.
I translated this from this topic:
--------
1. EABI is not an architecture, it is just a way to
call functions.
2. You need a kernel compiled for supporting EABI for
this works.
3. The Synology Marvel Kernel is not a EABI
4. The illegal instruction comes from the fact that
the NPTL is missing in the Kernel
To conclude, if we do not have a Kernel compiled for
supporting EABI, we cannot use EABI to install Linux
and this is true with the recent CodeSourcery gcc. |
It looks like the problem is a lacking kernel feature. _________________ ARM,ARMEL,MIPS,MIPSEL,POWERPC mldonkey cores: http://fabtar.ygrek.org.ua/ |
|
| Back to top |
|
 |
fabtar Sage

Joined: 04 Feb 2004 Posts: 1575 Location: Italy
|
Posted: Tue Apr 22, 2008 5:23 pm Post subject: |
|
|
I'm tryng to understand this abi-eabi stuff.
I cannot understand if the kernel lacks EABI feature or if the kernel lacks OLDABI support.
....
I hope someone 'll emerge from the wasteland with a solution.
So I Sleep() waiting.
Cheers
 _________________ ARM,ARMEL,MIPS,MIPSEL,POWERPC mldonkey cores: http://fabtar.ygrek.org.ua/ |
|
| Back to top |
|
 |
fabtar Sage

Joined: 04 Feb 2004 Posts: 1575 Location: Italy
|
Posted: Tue Apr 22, 2008 5:52 pm Post subject: |
|
|
mmhh, by searching around I have found that Ocaml is not so EABI ready and QEMU seems not to work in EABI flawor.
So I'm compiling no-EABI and you need a no-eabi kernel and libraries or a kernel with oldabi support? This is my last hypotesis for the moment.
I have not the knowledges in order to go deeper into this. _________________ ARM,ARMEL,MIPS,MIPSEL,POWERPC mldonkey cores: http://fabtar.ygrek.org.ua/ |
|
| Back to top |
|
 |
Lapin neophyte
Joined: 02 Apr 2008 Posts: 10
|
Posted: Thu Apr 24, 2008 4:21 am Post subject: |
|
|
Any "real support" from Synology ??
Well, hopefully you will work it out.
 |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © phpBB Group
|
|
|
|