FS#17825 - [chuck] Segmentation fault
Attached to Project:
Community Packages
Opened by Havona (havona) - Wednesday, 13 January 2010, 16:40 GMT
Last edited by Dan Griffiths (Ghost1227) - Wednesday, 13 January 2010, 20:48 GMT
Opened by Havona (havona) - Wednesday, 13 January 2010, 16:40 GMT
Last edited by Dan Griffiths (Ghost1227) - Wednesday, 13 January 2010, 20:48 GMT
|
Details
chuck 1.2.1.3-1
Description: Segmentation fault due to lack of '-fno-strict-aliasing' compile flag as discussed in this forum post: http://electro-music.com/forum/viewtopic.php?t=36259 Steps to reproduce: Running just about any .ck script will result in direct segfault or other strange errors. For example: $ echo "1 => int test; if (test) chout <= \"Seems like it works\" <= IO.newline();" > test.ck ; chuck test.ck Segmentation fault Quick, easy and tested fix: Add to build() function in /var/abs/community/chuck/PKGBUILD: CFLAGS="$CFLAGS -fno-strict-aliasing" (makepkg -s ; sudo pacman -U) $ echo "1 => int test; if (test) chout <= \"Seems like it works\" <= IO.newline();" > test.ck ; chuck test.ck Seems like it works I've applied this fix and now all my .ck scripts are running just fine. Many example .ck scripts for testing may be found here: http://chuck.cs.princeton.edu/doc/examples/ Additional information about this package: 1) The 64-bit version should be removed: http://chuck.cs.princeton.edu/release/ "note: ChucK currently supports only 32-bit systems; 64-bit support is not yet available (but we are working on it)" 2) There are multiple build options available (linux-alsa, linux-oss, linux-jack). The PKGBUILD script makes the ALSA version, but does not indicate this in the description, nor does it list alsa-lib as a dependency. |
This task depends upon
Closed by Dan Griffiths (Ghost1227)
Wednesday, 13 January 2010, 20:48 GMT
Reason for closing: Fixed
Additional comments about closing: CFLAGS-fixed
64-bit-removed
alsa-lib-not included because it is pulled in by another dependency
Wednesday, 13 January 2010, 20:48 GMT
Reason for closing: Fixed
Additional comments about closing: CFLAGS-fixed
64-bit-removed
alsa-lib-not included because it is pulled in by another dependency