Status: Accepted
Owner: siguc...(a)gmail.com
Labels: Type-Defect Priority-Medium
New issue 97 by siguc...(a)gmail.com: Sound on Linux
http://code.google.com/p/cog/issues/detail?id=97
... I had to replace the vm-sound-ALSA plugin that comes bundled in the 1.4
one-click image with the so.vm-sound-ALSA one that comes in Squeak 4.3.
Couldn't we include that one by default? The one that comes with Pharo
doesn't work and reports "could not find module vm-sound-ALSA".
...
Looks like run-time link problems, because code we use for this plugin is
same.
Status: Accepted
Owner: nicolas....(a)gmail.com
Labels: Type-Enhancement Priority-Low
New issue 96 by nicolas....(a)gmail.com: Using >> (bitShift:) instead of pow
(raisedTo:)
http://code.google.com/p/cog/issues/detail?id=96
By virtue of SLANG translation, interpreterAllocationReserveBytes uses
pow((double)2,(double)n) to answer an int, wouldn't it better to just use a
bit shift?
2^n <=> 1<<n, up to n=31
I doubt we reserve more than that, the result is signed anyway.
And this would remove yet another warning.
Attachments:
interpreterAllocationReserveBytes.st 2.0 KB
Updates:
Status: Accepted
Cc: esteba...(a)gmail.com
Comment #1 on issue 72 by sean.p.d...(a)gmail.com: Don't open an Dialog on
Mac in headless mode
http://code.google.com/p/cog/issues/detail?id=72
This is even more important now with the MBP retina. A "headless" cog image
always forces the GPU to discrete mode, draining the battery. I often use
headless (e.g. for Jenkins jobs and web scrapers) and in addition to the
distraction of the unneeded window popping up, the switch to the power
hogging GPU for no reason is even more of a drag.
Comment #5 on issue 44 by siguc...(a)gmail.com: Ephemerons integration
http://code.google.com/p/cog/issues/detail?id=44
Eliot proposed to change implementation to use separate object format for
Ephemerons.
Status: Accepted
Owner: esteba...(a)gmail.com
Labels: Type-Defect Priority-High
New issue 123 by esteba...(a)gmail.com: vm crashes when dragging a window
outside the world
http://code.google.com/p/cog/issues/detail?id=123
move the window outside (in top), and see the crash :)
this happens in mac, with USE_CORE_GRAPHICS
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
Hi,
I am trying to compile the Newspeak Cog VM on Ubuntu (12.10) 64bit, but
fate is not on my side ;) I'd higly appreciate any help, so here is my
story:
The VM seems to compile correctly, but the newly build nsvm binary
complains about a missing vm-display-X11 plugin.
Using strace, as suggested here
(http://forum.world.st/Cannot-load-vm-display-X11-module-after-build-from-la…)
shows, that nsvm actually finds vm-display-X11:
<code>
...
open("/home/philipp/stud/masterarbeit/build/squeak/nscogbuild/unixbuild/bld/../../../nsvmlinux/lib/nsvm/4.0-/vm-display-X11",
O_RDONLY|O_CLOEXEC) = 3
...
open("/usr/lib/i386-linux-gnu/libX11.so.6", O_RDONLY|O_CLOEXEC) = 3
...
open("/usr/lib/i386-linux-gnu/libxcb.so.1", O_RDONLY|O_CLOEXEC) = 3
...
open("/usr/lib/i386-linux-gnu/libXau.so.6", O_RDONLY|O_CLOEXEC) = 3
...
open("/usr/lib/i386-linux-gnu/libXdmcp.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3,
"\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\240\16\0\0004\0\0\0"..., 512)
= 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=21888, ...}) = 0
mmap2(NULL, 24692, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0)
= 0xfffffffff7198000
mmap2(0xf719d000, 8192, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x4) = 0xfffffffff719d000
close(3) = 0
mprotect(0xf719d000, 4096, PROT_READ) = 0
mprotect(0xf71a1000, 4096, PROT_READ) = 0
mprotect(0xf71c3000, 4096, PROT_READ) = 0
mprotect(0xf72f7000, 4096, PROT_READ) = 0
munmap(0xf72fb000, 108384) = 0
munmap(0xf71c5000, 1268568) = 0
munmap(0xf71a3000, 135468) = 0
munmap(0xf719f000, 12424) = 0
munmap(0xf7198000, 24692) = 0
stat64("/home/philipp/stud/masterarbeit/build/squeak/nscogbuild/unixbuild/bld/../../../nsvmlinux/lib/nsvm/4.0-/vm-display-X11.so",
0xffe7562c) = -1 ENOENT (No such file or dir
ectory)
...
</code>
Unfortunately, after finding vm-display-X11 and loading some additional
libraries nsvm aborts and continues searching for other vm-disply-X11
plugins elsewhere.
ldd gives the following output (which seems to be OK for me):
<code>
ldd
/home/philipp/stud/masterarbeit/build/squeak/nsvmlinux/lib/nsvm/4.0-//vm-display-X11
linux-gate.so.1 => (0xf77d0000)
libpthread.so.0 => /lib/i386-linux-gnu/libpthread.so.0 (0xf776d000)
libX11.so.6 => /usr/lib/i386-linux-gnu/libX11.so.6 (0xf7637000)
libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0xf748c000)
/lib/ld-linux.so.2 (0xf77d1000)
libxcb.so.1 => /usr/lib/i386-linux-gnu/libxcb.so.1 (0xf746a000)
libdl.so.2 => /lib/i386-linux-gnu/libdl.so.2 (0xf7465000)
libXau.so.6 => /usr/lib/i386-linux-gnu/libXau.so.6 (0xf7461000)
libXdmcp.so.6 => /usr/lib/i386-linux-gnu/libXdmcp.so.6 (0xf745a000)
</code>
Reading the unixbuild/HowToBuild file I found the following:
<cite>
Testing an external plugin has completely linked
-------------------------------
You may find that an external plugin compiles and links but does not load.
This is usually because it contans undefined symbols. To find undefined
symbols, remake the plugin, capturing the link step and then supply
-Wl,--warn-unresolved-symbols -Wl,--no-allow-shlib-undefined
when manually repeating the link command
</cite>
So I tried to link vm-display-X11 again with warnings enabled:
<code>
gcc -m32 -shared sqUnixX11.lo sqUnixMozilla.lo -ldl -lpthread -lm
-lnsl -lX11 -lxcb -lpthread -lc -L/usr/lib32
-Wl,--warn-unresolved-symbols -Wl,--no-allow-shlib-undefined -Wl,-soname
-Wl,vm-display-X11 -o .libs/vm-display-X11
/usr/lib/gcc/x86_64-linux-gnu/4.7/../../../i386-linux-gnu/libX11.so:
warning: undefined reference to `xcb_get_file_descriptor'
/lib32/libpthread.so.0: warning: undefined reference to
`_dl_deallocate_tls@GLIBC_PRIVATE'
/usr/lib/gcc/x86_64-linux-gnu/4.7/../../../i386-linux-gnu/libX11.so:
warning: undefined reference to `xcb_connect'
/lib32/libc.so.6: warning: undefined reference to `_dl_argv@GLIBC_PRIVATE'
/usr/lib/gcc/x86_64-linux-gnu/4.7/../../../i386-linux-gnu/libX11.so:
warning: undefined reference to `xcb_generate_id'
/lib32/libpthread.so.0: warning: undefined reference to
`_dl_allocate_tls@GLIBC_PRIVATE'
/lib32/libpthread.so.0: warning: undefined reference to
`_dl_get_tls_static_info@GLIBC_PRIVATE'
/usr/lib/gcc/x86_64-linux-gnu/4.7/../../../i386-linux-gnu/libX11.so:
warning: undefined reference to `xcb_connect_to_display_with_auth_info'
/usr/lib/gcc/x86_64-linux-gnu/4.7/../../../i386-linux-gnu/libX11.so:
warning: undefined reference to `xcb_writev'
/lib32/libpthread.so.0: warning: undefined reference to
`__libc_stack_end(a)GLIBC_2.1'
/lib32/libc.so.6: warning: undefined reference to
`__libc_enable_secure@GLIBC_PRIVATE'
/usr/lib/gcc/x86_64-linux-gnu/4.7/../../../i386-linux-gnu/libX11.so:
warning: undefined reference to `dlsym(a)GLIBC_2.0'
/usr/lib/gcc/x86_64-linux-gnu/4.7/../../../i386-linux-gnu/libX11.so:
warning: undefined reference to `dlopen(a)GLIBC_2.1'
/lib32/libpthread.so.0: warning: undefined reference to
`_dl_make_stack_executable@GLIBC_PRIVATE'
/usr/lib/gcc/x86_64-linux-gnu/4.7/../../../i386-linux-gnu/libX11.so:
warning: undefined reference to `xcb_wait_for_reply'
/usr/lib/gcc/x86_64-linux-gnu/4.7/../../../i386-linux-gnu/libX11.so:
warning: undefined reference to `xcb_poll_for_event'
/lib32/libpthread.so.0: warning: undefined reference to
`_dl_allocate_tls_init@GLIBC_PRIVATE'
/lib32/libpthread.so.0: warning: undefined reference to
`_rtld_global@GLIBC_PRIVATE'
/usr/lib/gcc/x86_64-linux-gnu/4.7/../../../i386-linux-gnu/libX11.so:
warning: undefined reference to `xcb_get_maximum_request_length'
/usr/lib/gcc/x86_64-linux-gnu/4.7/../../../i386-linux-gnu/libX11.so:
warning: undefined reference to `xcb_poll_for_reply'
/usr/lib/gcc/x86_64-linux-gnu/4.7/../../../i386-linux-gnu/libX11.so:
warning: undefined reference to `xcb_take_socket'
/usr/lib/gcc/x86_64-linux-gnu/4.7/../../../i386-linux-gnu/libX11.so:
warning: undefined reference to `xcb_wait_for_event'
/usr/lib/gcc/x86_64-linux-gnu/4.7/../../../i386-linux-gnu/libX11.so:
warning: undefined reference to `xcb_disconnect'
/usr/lib/gcc/x86_64-linux-gnu/4.7/../../../i386-linux-gnu/libX11.so:
warning: undefined reference to `xcb_connection_has_error'
/usr/lib/gcc/x86_64-linux-gnu/4.7/../../../i386-linux-gnu/libX11.so:
warning: undefined reference to `xcb_get_setup'
/lib32/libpthread.so.0: warning: undefined reference to
`___tls_get_addr(a)GLIBC_2.3'
/lib32/libpthread.so.0: warning: undefined reference to
`_rtld_global_ro@GLIBC_PRIVATE'
/usr/lib/gcc/x86_64-linux-gnu/4.7/../../../i386-linux-gnu/libX11.so:
warning: undefined reference to `xcb_parse_display'
</code>
That is a lot of warnings. For my unexperienced eyes this looks like
libX11.so cannot find xcb, albeit I installed every x11/xcb library I
can think of (to name them: libx11-xcb-dev:i386, libx11-xcb1:i386,
libx11-6:i386, libx11-dev:i386, xcb-proto:i386, xcb:i386, libxcb1:i386,
libxcb1-dev:i386).
I also tried the above steps on a Ubuntu 12.10 32bit VM with similar
results. Am I missing something? Do I need a special setup to compile a
CogVM? Any other ideas?
Thanks,
Philipp
Updates:
Summary: Compiling Cog with GCC 4.6.3
Comment #3 on issue 120 by siguc...(a)gmail.com: Compiling Cog with GCC 4.6.3
http://code.google.com/p/cog/issues/detail?id=120
Your last find greatly narrows down the field of search for misbehavior!
Thanks, Nicolas.