gehrts@web.de
2005-Oct-09 08:15 UTC
[Asterisk-Users] compiling asterisk on SuSE Linux 9.3 fails: illegal instruction
Hi all!
I'm running a SuSE Linux 9.3 on a little book pc which is based on a VIA CPU
and Chipset:
cat /proc/cpuinfo
processor : 0
vendor_id : CentaurHauls
cpu family : 6
model : 7
model name : VIA Samuel 2
stepping : 3
cpu MHz : 532.776
cache size : 64 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 1
wp : yes
flags : fpu de tsc msr cx8 mtrr pge mmx pni 3dnow
bogomips : 1046.52
kernel is Linux hermes 2.6.11.4-21.9-default #1 Fri Aug 19 11:58:59 UTC 2005
i686 i686 i386 GNU/Linux
has anyone tried to compile asterisk on a cv860 book pc? I'm always getting
a 'illegal instruction':
# asterisk -vvv
Illegal instruction
strace says this:
open("/lib/tls/libc.so.6", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\200O\1"...,
512) = 512
fstat64(3, {st_dev=makedev(22, 2), st_ino=130743, st_mode=S_IFREG|0755,
st_nlink=1, st_uid=0, st_gid=0, st_blksize=4096, st_blocks=2730,
st_size=1395193, st_atime=2005/10/09-17:09:01, st_mtime=2005/06/11-00:35:23,
st_ctime=2005/06/17-08:45:41}) = 0
old_mmap(NULL, 1150108, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) =
0x400f2000
madvise(0x400f2000, 1150108, MADV_SEQUENTIAL|0x1) = 0
old_mmap(0x40205000, 16384, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x113000) = 0x40205000
old_mmap(0x40209000, 7324, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40209000
close(3) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x4020b000
open("/usr/lib/libcrypto.so.0.9.7", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\360\305"...,
512) = 512
fstat64(3, {st_dev=makedev(22, 2), st_ino=45303, st_mode=S_IFREG|0755,
st_nlink=1, st_uid=0, st_gid=0, st_blksize=4096, st_blocks=2258,
st_size=1153177, st_atime=2005/10/09-17:09:01, st_mtime=2005/03/19-20:48:02,
st_ctime=2005/05/22-12:37:49}) = 0
old_mmap(NULL, 994584, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) =
0x4020c000
madvise(0x4020c000, 994584, MADV_SEQUENTIAL|0x1) = 0
old_mmap(0x402e9000, 77824, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xdc000) = 0x402e9000
old_mmap(0x402fc000, 11544, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x402fc000
mprotect(0xbffff000, 4096, PROT_READ|PROT_WRITE|PROT_EXEC|PROT_GROWSDOWN) = 0
close(3) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x402ff000
mprotect(0x40205000, 4096, PROT_READ) = 0
set_thread_area({entry_number:-1 -> 6, base_addr:0x402ff6c0, limit:1048575,
seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0,
useable:1}) = 0
munmap(0x40018000, 99332) = 0
set_tid_address(0x402ff708) = 21587
rt_sigaction(SIGRTMIN, {0x4003a760, [], SA_SIGINFO}, NULL, 8) = 0
rt_sigaction(SIGRT_1, {0x4003a3a0, [], SA_RESTART|SA_SIGINFO}, NULL, 8) = 0
rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0
getrlimit(RLIMIT_STACK, {rlim_cur=RLIM_INFINITY, rlim_max=RLIM_INFINITY}) = 0
_sysctl({{CTL_KERN, KERN_VERSION}, 2, 0xbffff17c, 31, (nil), 0}) = 0
brk(0) = 0x812c000
brk(0x814d000) = 0x814d000
uname({sysname="Linux", nodename="hermes",
release="2.6.11.4-21.9-default", version="#1 Fri Aug 19 11:58:59
UTC 2005", machine="i686"}) = 0
--- SIGILL (Illegal instruction) @ 0 (0) ---
+++ killed by SIGILL +++
Does anyone have an idea what is wrong here?
regards,
Hans
Tzafrir Cohen
2005-Oct-09 11:24 UTC
[Asterisk-Users] compiling asterisk on SuSE Linux 9.3 fails: illegal instruction
On Sun, Oct 09, 2005 at 05:15:36PM +0200, gehrts@web.de wrote:> > Hi all! > > I'm running a SuSE Linux 9.3 on a little book pc which is based on a VIA CPU and Chipset: > cat /proc/cpuinfo > processor : 0 > vendor_id : CentaurHauls > cpu family : 6 > model : 7 > model name : VIA Samuel 2 > stepping : 3 > cpu MHz : 532.776 > cache size : 64 KB > fdiv_bug : no > hlt_bug : no > f00f_bug : no > coma_bug : no > fpu : yes > fpu_exception : yes > cpuid level : 1 > wp : yes > flags : fpu de tsc msr cx8 mtrr pge mmx pni 3dnow > bogomips : 1046.52 > > kernel is Linux hermes 2.6.11.4-21.9-default #1 Fri Aug 19 11:58:59 UTC 2005 i686 i686 i386 GNU/Linux > > has anyone tried to compile asterisk on a cv860 book pc? I'm always getting a 'illegal instruction': > # asterisk -vvv > Illegal instructionWhat optimization flags did you use? Generally setting PROC=i586 is safe. -- Tzafrir Cohen | tzafrir@jbr.cohens.org.il | VIM is http://tzafrir.org.il | | a Mutt's tzafrir@cohens.org.il | | best ICQ# 16849755 | | friend
gehrts@web.de
2005-Oct-10 03:28 UTC
[Asterisk-Users] compiling asterisk on SuSE Linux 9.3 fails: illegal instruction
Hi Tzafrir ! Thanks for your help!! Now it works. It took some time to find everything and to set up everything, but now it works. So I can tell: using asterisk on book pc's with cyrix processors and VIA chipset compiles fine. Now I need to check what the performance is like. thanks again, Hans-Henning Asterisk Users Mailing List - Non-Commercial Discussion <asterisk-users@lists.digium.com> schrieb am 09.10.05 20:27:55:> > On Sun, Oct 09, 2005 at 05:15:36PM +0200, gehrts@web.de wrote: > > > > Hi all! > > > > I'm running a SuSE Linux 9.3 on a little book pc which is based on a VIA CPU and Chipset: > > cat /proc/cpuinfo > > processor : 0 > > vendor_id : CentaurHauls > > cpu family : 6 > > model : 7 > > model name : VIA Samuel 2 > > stepping : 3 > > cpu MHz : 532.776 > > cache size : 64 KB > > fdiv_bug : no > > hlt_bug : no > > f00f_bug : no > > coma_bug : no > > fpu : yes > > fpu_exception : yes > > cpuid level : 1 > > wp : yes > > flags : fpu de tsc msr cx8 mtrr pge mmx pni 3dnow > > bogomips : 1046.52 > > > > kernel is Linux hermes 2.6.11.4-21.9-default #1 Fri Aug 19 11:58:59 UTC 2005 i686 i686 i386 GNU/Linux > > > > has anyone tried to compile asterisk on a cv860 book pc? I'm always getting a 'illegal instruction': > > # asterisk -vvv > > Illegal instruction > > What optimization flags did you use? > > Generally setting PROC=i586 is safe. > > -- > Tzafrir Cohen | tzafrir@jbr.cohens.org.il | VIM is > http://tzafrir.org.il | | a Mutt's > tzafrir@cohens.org.il | | best > ICQ# 16849755 | | friend > _______________________________________________ > --Bandwidth and Colocation sponsored by Easynews.com -- > > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users