Hello!
I have downloaded a sage 5.8 binary for an atom 64 bits server, and it worked.
Then I tried to build a secure server. It takes more work than it did previously. I could install the openssl package, but then I had to rebuild Sage and it failed. It was the same error I get when I try to compile from source:
Building modified file sage/ext/interpreters/wrapper_el.pyx.
Executing 340 commands (using 1 thread)
Traceback (most recent call last):
File "setup.py", line 835, in <module>
execute_list_of_commands(queue)
File "setup.py", line 278, in execute_list_of_commands
execute_list_of_commands_in_parallel(command_list, nthreads)
File "setup.py", line 228, in execute_list_of_commands_in_parallel
p = Pool(nthreads)
File "/home/sageadmin/sage-5.8/local/lib/python/multiprocessing/__init__.py", line 232, in Pool
return Pool(processes, initializer, initargs, maxtasksperchild)
File "/home/sageadmin/sage-5.8/local/lib/python/multiprocessing/pool.py", line 115, in __init__
self._setup_queues()
File "/home/sageadmin/sage-5.8/local/lib/python/multiprocessing/pool.py", line 209, in _setup_queues
from .queues import SimpleQueue
File "/home/sageadmin/sage-5.8/local/lib/python/multiprocessing/queues.py", line 48, in <module>
from multiprocessing.synchronize import Lock, BoundedSemaphore, Semaphore, Condition
File "/home/sageadmin/sage-5.8/local/lib/python/multiprocessing/synchronize.py", line 59, in <module>
" function, see issue 3770.")
ImportError: This platform lacks a functioning sem_open implementation, therefore, the required synchronization primitives needed will not function, see issue 3770.
Error installing modified sage library code.
ERROR installing Sage
Can you build Sage completely from source instead?
On Wednesday, April 17, 2013 11:45:13 AM UTC+2, pang wrote:You need shared memory for multiprocessing to work. Check if your /dev/shm is mounted.
If you compile your own kernel you might not have shared memory enabled at all, I have seen that on some MIPS systems. There is also the possibility that you for some strange config reason do not have access to shared memory or exhausted your quota. So giving some more info on your system setup would help.
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 54
model name : Intel(R) Atom(TM) CPU N2800 @ 1.86GHz
stepping : 1
microcode : 0x10d
cpu MHz : 798.000
cache size : 512 KB
physical id : 0
siblings : 4
core id : 0
cpu cores : 2
apicid : 0
initial apicid : 0
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dt
s acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm constant_tsc arch_perfmon pebs bts nopl nonstop_
tsc aperfmperf pni dtes64 monitor ds_cpl est tm2 ssse3 cx16 xtpr pdcm movbe lahf_lm arat dts
bogomips : 3734.07
clflush size : 64
cache_alignment : 64
address sizes : 36 bits physical, 48 bits virtual
power management:
processor : 1
vendor_id : GenuineIntel
cpu family : 6
model : 54
model name : Intel(R) Atom(TM) CPU N2800 @ 1.86GHz
stepping : 1
microcode : 0x10d
cpu MHz : 798.000
cache size : 512 KB
physical id : 0
siblings : 4
core id : 0
cpu cores : 2
apicid : 1
initial apicid : 1
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dt
s acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm constant_tsc arch_perfmon pebs bts nopl nonstop_
tsc aperfmperf pni dtes64 monitor ds_cpl est tm2 ssse3 cx16 xtpr pdcm movbe lahf_lm arat dts
bogomips : 3733.21
clflush size : 64
cache_alignment : 64
address sizes : 36 bits physical, 48 bits virtual
power management:
processor : 2
vendor_id : GenuineIntel
cpu family : 6
model : 54
model name : Intel(R) Atom(TM) CPU N2800 @ 1.86GHz
stepping : 1
microcode : 0x10d
cpu MHz : 798.000
cache size : 512 KB
physical id : 0
siblings : 4
core id : 1
cpu cores : 2
apicid : 2
initial apicid : 2
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm constant_tsc arch_perfmon pebs bts nopl nonstop_tsc aperfmperf pni dtes64 monitor ds_cpl est tm2 ssse3 cx16 xtpr pdcm movbe lahf_lm arat dts
bogomips : 3733.24
clflush size : 64
cache_alignment : 64
address sizes : 36 bits physical, 48 bits virtual
power management:
processor : 3
vendor_id : GenuineIntel
cpu family : 6
model : 54
model name : Intel(R) Atom(TM) CPU N2800 @ 1.86GHz
stepping : 1
microcode : 0x10d
cpu MHz : 798.000
cache size : 512 KB
physical id : 0
siblings : 4
core id : 1
cpu cores : 2
apicid : 3
initial apicid : 3
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm constant_tsc arch_perfmon pebs bts nopl nonstop_tsc aperfmperf pni dtes64 monitor ds_cpl est tm2 ssse3 cx16 xtpr pdcm movbe lahf_lm arat dts
bogomips : 3733.27
clflush size : 64
cache_alignment : 64
address sizes : 36 bits physical, 48 bits virtual
power management:
MemTotal: 4026732 kB
MemFree: 3206676 kB
Buffers: 48184 kB
Cached: 245288 kB
SwapCached: 0 kB
Active: 500488 kB
Inactive: 198020 kB
Active(anon): 405124 kB
Inactive(anon): 400 kB
Active(file): 95364 kB
Inactive(file): 197620 kB
Unevictable: 0 kB
Mlocked: 0 kB
SwapTotal: 12285944 kB
SwapFree: 12285944 kB
Dirty: 4 kB
Writeback: 0 kB
AnonPages: 405036 kB
Mapped: 23888 kB
Shmem: 484 kB
Slab: 39372 kB
SReclaimable: 21772 kB
SUnreclaim: 17600 kB
KernelStack: 1304 kB
PageTables: 8844 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
WritebackTmp: 0 kB
CommitLimit: 14299308 kB
Committed_AS: 933084 kB
VmallocTotal: 34359738367 kB
VmallocUsed: 93448 kB
VmallocChunk: 34359642556 kB
DirectMap4k: 2048 kB
DirectMap2M: 4175872 kB
(hate new google groups...)
I think you may be able to make a link from /dev/shm to /run/shm
- I had the same error playing with LXC containers and it was resolved by linking/mounting tmpfs in the appropriate place. Unfortunately I don't remember precise steps, but it was possible to find them back then ;-)
Best regards,
Andrey
--
You received this message because you are subscribed to the Google Groups "sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+...@googlegroups.com.
To post to this group, send email to sage-...@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
- I had the same error playing with LXC containers and it was resolved by linking/mounting tmpfs in the appropriate place. Unfortunately I don't remember precise steps, but it was possible to find them back then ;-)
Yeah, a LXC based system will potentially give you some trouble, so either linking /dev/shm to /run/shm or changing the mount point might fix it, i.e.
sudo rm -rf /dev/shm && sudo ln -s /run/shm /dev/shm
sudo rm -rf /dev/shm && sudo ln -s /run/shm /dev/shm
sudo rm -rf /dev/shm && sudo ln -s /run/shm /dev/shm
It really looked promising, but unfortunately, it didn't work: is a reboot necessary?
pang wrote:
> sudo rm -rf /dev/shm && sudo ln -s /run/shm /dev/shm
>
>
> It really looked promising, but unfortunately, it didn't work: is a
> reboot necessary?
I don't think so.
What does
$ ls -ld /run/shm
give? (I.e., are the permissions correct?)
ImportError: This platform lacks a functioning sem_open implementation, therefore, the required synchronization primitives needed will not function, see issue 3770.
sageadmin@ks3316508 ~> g++ semaphores.c
/tmp/cc4ALTKd.o: In function `main':
semaphores.c:(.text+0x22): undefined reference to `sem_open'
semaphores.c:(.text+0x59): undefined reference to `sem_close'
semaphores.c:(.text+0x63): undefined reference to `sem_unlink'
-lpthread option", compiled it, run it: "All ok!"'man sem_open' would probably have been quicker... ;-)
Did you run that as root, or as the user you're building Sage with?
(And did you rebuild the Python spkg after creating the symlink?)