I'm posting on this thread because my problem matches the subject line exactly.
gcc crashes trying to compile ugen_stk.cpp on my rpi model A

[root@alarmpi src]# make linux-alsa
bison -dv -b chuck chuck.y
gcc -I. -Ilo -O3 -D__LINUX_ALSA__ -D__PLATFORM_LINUX__ -O3 -fno-strict-aliasing -D__CK_SNDFILE_NATIVE__  -c chuck.tab.c -o chuck.tab.o
flex -ochuck.yy.c chuck.lex
gcc -I. -Ilo -O3 -D__LINUX_ALSA__ -D__PLATFORM_LINUX__ -O3 -fno-strict-aliasing -D__CK_SNDFILE_NATIVE__  -c chuck.yy.c -o chuck.yy.o
gcc -I. -Ilo -O3 -D__LINUX_ALSA__ -D__PLATFORM_LINUX__ -O3 -fno-strict-aliasing -D__CK_SNDFILE_NATIVE__  -c util_math.c -o util_math.o
gcc -I. -Ilo -O3 -D__LINUX_ALSA__ -D__PLATFORM_LINUX__ -O3 -fno-strict-aliasing -D__CK_SNDFILE_NATIVE__  -c util_network.c -o util_network.o
gcc -I. -Ilo -O3 -D__LINUX_ALSA__ -D__PLATFORM_LINUX__ -O3 -fno-strict-aliasing -D__CK_SNDFILE_NATIVE__  -c util_raw.c -o util_raw.o
gcc -I. -Ilo -O3 -D__LINUX_ALSA__ -D__PLATFORM_LINUX__ -O3 -fno-strict-aliasing -D__CK_SNDFILE_NATIVE__  -c util_xforms.c -o util_xforms.o
g++ -I. -Ilo -O3 -D__LINUX_ALSA__ -D__PLATFORM_LINUX__ -O3 -fno-strict-aliasing -D__CK_SNDFILE_NATIVE__  -c chuck_absyn.cpp -o chuck_absyn.o
g++ -I. -Ilo -O3 -D__LINUX_ALSA__ -D__PLATFORM_LINUX__ -O3 -fno-strict-aliasing -D__CK_SNDFILE_NATIVE__  -c chuck_parse.cpp -o chuck_parse.o
g++ -I. -Ilo -O3 -D__LINUX_ALSA__ -D__PLATFORM_LINUX__ -O3 -fno-strict-aliasing -D__CK_SNDFILE_NATIVE__  -c chuck_errmsg.cpp -o chuck_errmsg.o
g++ -I. -Ilo -O3 -D__LINUX_ALSA__ -D__PLATFORM_LINUX__ -O3 -fno-strict-aliasing -D__CK_SNDFILE_NATIVE__  -c chuck_frame.cpp -o chuck_frame.o
g++ -I. -Ilo -O3 -D__LINUX_ALSA__ -D__PLATFORM_LINUX__ -O3 -fno-strict-aliasing -D__CK_SNDFILE_NATIVE__  -c chuck_symbol.cpp -o chuck_symbol.o
g++ -I. -Ilo -O3 -D__LINUX_ALSA__ -D__PLATFORM_LINUX__ -O3 -fno-strict-aliasing -D__CK_SNDFILE_NATIVE__  -c chuck_table.cpp -o chuck_table.o
g++ -I. -Ilo -O3 -D__LINUX_ALSA__ -D__PLATFORM_LINUX__ -O3 -fno-strict-aliasing -D__CK_SNDFILE_NATIVE__  -c chuck_utils.cpp -o chuck_utils.o
g++ -I. -Ilo -O3 -D__LINUX_ALSA__ -D__PLATFORM_LINUX__ -O3 -fno-strict-aliasing -D__CK_SNDFILE_NATIVE__  -c chuck_vm.cpp -o chuck_vm.o
g++ -I. -Ilo -O3 -D__LINUX_ALSA__ -D__PLATFORM_LINUX__ -O3 -fno-strict-aliasing -D__CK_SNDFILE_NATIVE__  -c chuck_instr.cpp -o chuck_instr.o
g++ -I. -Ilo -O3 -D__LINUX_ALSA__ -D__PLATFORM_LINUX__ -O3 -fno-strict-aliasing -D__CK_SNDFILE_NATIVE__  -c chuck_scan.cpp -o chuck_scan.o
g++ -I. -Ilo -O3 -D__LINUX_ALSA__ -D__PLATFORM_LINUX__ -O3 -fno-strict-aliasing -D__CK_SNDFILE_NATIVE__  -c chuck_type.cpp -o chuck_type.o
g++ -I. -Ilo -O3 -D__LINUX_ALSA__ -D__PLATFORM_LINUX__ -O3 -fno-strict-aliasing -D__CK_SNDFILE_NATIVE__  -c chuck_emit.cpp -o chuck_emit.o
g++ -I. -Ilo -O3 -D__LINUX_ALSA__ -D__PLATFORM_LINUX__ -O3 -fno-strict-aliasing -D__CK_SNDFILE_NATIVE__  -c chuck_compile.cpp -o chuck_compile.o
g++ -I. -Ilo -O3 -D__LINUX_ALSA__ -D__PLATFORM_LINUX__ -O3 -fno-strict-aliasing -D__CK_SNDFILE_NATIVE__  -c chuck_dl.cpp -o chuck_dl.o
g++ -I. -Ilo -O3 -D__LINUX_ALSA__ -D__PLATFORM_LINUX__ -O3 -fno-strict-aliasing -D__CK_SNDFILE_NATIVE__  -c chuck_oo.cpp -o chuck_oo.o
g++ -I. -Ilo -O3 -D__LINUX_ALSA__ -D__PLATFORM_LINUX__ -O3 -fno-strict-aliasing -D__CK_SNDFILE_NATIVE__  -c chuck_lang.cpp -o chuck_lang.o
g++ -I. -Ilo -O3 -D__LINUX_ALSA__ -D__PLATFORM_LINUX__ -O3 -fno-strict-aliasing -D__CK_SNDFILE_NATIVE__  -c chuck_ugen.cpp -o chuck_ugen.o
g++ -I. -Ilo -O3 -D__LINUX_ALSA__ -D__PLATFORM_LINUX__ -O3 -fno-strict-aliasing -D__CK_SNDFILE_NATIVE__  -c chuck_main.cpp -o chuck_main.o
g++ -I. -Ilo -O3 -D__LINUX_ALSA__ -D__PLATFORM_LINUX__ -O3 -fno-strict-aliasing -D__CK_SNDFILE_NATIVE__  -c chuck_otf.cpp -o chuck_otf.o
g++ -I. -Ilo -O3 -D__LINUX_ALSA__ -D__PLATFORM_LINUX__ -O3 -fno-strict-aliasing -D__CK_SNDFILE_NATIVE__  -c chuck_stats.cpp -o chuck_stats.o
g++ -I. -Ilo -O3 -D__LINUX_ALSA__ -D__PLATFORM_LINUX__ -O3 -fno-strict-aliasing -D__CK_SNDFILE_NATIVE__  -c chuck_bbq.cpp -o chuck_bbq.o
g++ -I. -Ilo -O3 -D__LINUX_ALSA__ -D__PLATFORM_LINUX__ -O3 -fno-strict-aliasing -D__CK_SNDFILE_NATIVE__  -c chuck_shell.cpp -o chuck_shell.o
g++ -I. -Ilo -O3 -D__LINUX_ALSA__ -D__PLATFORM_LINUX__ -O3 -fno-strict-aliasing -D__CK_SNDFILE_NATIVE__  -c chuck_console.cpp -o chuck_console.o
g++ -I. -Ilo -O3 -D__LINUX_ALSA__ -D__PLATFORM_LINUX__ -O3 -fno-strict-aliasing -D__CK_SNDFILE_NATIVE__  -c chuck_globals.cpp -o chuck_globals.o
g++ -I. -Ilo -O3 -D__LINUX_ALSA__ -D__PLATFORM_LINUX__ -O3 -fno-strict-aliasing -D__CK_SNDFILE_NATIVE__  -c chuck_io.cpp -o chuck_io.o
g++ -I. -Ilo -O3 -D__LINUX_ALSA__ -D__PLATFORM_LINUX__ -O3 -fno-strict-aliasing -D__CK_SNDFILE_NATIVE__  -c digiio_rtaudio.cpp -o digiio_rtaudio.o
g++ -I. -Ilo -O3 -D__LINUX_ALSA__ -D__PLATFORM_LINUX__ -O3 -fno-strict-aliasing -D__CK_SNDFILE_NATIVE__  -c hidio_sdl.cpp -o hidio_sdl.o
g++ -I. -Ilo -O3 -D__LINUX_ALSA__ -D__PLATFORM_LINUX__ -O3 -fno-strict-aliasing -D__CK_SNDFILE_NATIVE__  -c midiio_rtmidi.cpp -o midiio_rtmidi.o
g++ -I. -Ilo -O3 -D__LINUX_ALSA__ -D__PLATFORM_LINUX__ -O3 -fno-strict-aliasing -D__CK_SNDFILE_NATIVE__  -c RtAudio/RtAudio.cpp -o RtAudio/RtAudio.o
g++ -I. -Ilo -O3 -D__LINUX_ALSA__ -D__PLATFORM_LINUX__ -O3 -fno-strict-aliasing -D__CK_SNDFILE_NATIVE__  -c rtmidi.cpp -o rtmidi.o
g++ -I. -Ilo -O3 -D__LINUX_ALSA__ -D__PLATFORM_LINUX__ -O3 -fno-strict-aliasing -D__CK_SNDFILE_NATIVE__  -c ugen_osc.cpp -o ugen_osc.o
g++ -I. -Ilo -O3 -D__LINUX_ALSA__ -D__PLATFORM_LINUX__ -O3 -fno-strict-aliasing -D__CK_SNDFILE_NATIVE__  -c ugen_filter.cpp -o ugen_filter.o
g++ -I. -Ilo -O3 -D__LINUX_ALSA__ -D__PLATFORM_LINUX__ -O3 -fno-strict-aliasing -D__CK_SNDFILE_NATIVE__  -c ugen_stk.cpp -o ugen_stk.o
g++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://bugs.archlinux.org/> for instructions.
makefile:144: recipe for target 'ugen_stk.o' failed
make: *** [ugen_stk.o] Error 4

Anybody ever seen anything like this before?




On Fri, Dec 6, 2013 at 9:02 AM, Jeff Jacobson <goodbyemrevans@gmail.com> wrote:
Joel,

That did the trick; thanks a lot!


On Thu, Dec 5, 2013 at 11:46 PM, Joel Matthys <jwmatthys@yahoo.com> wrote:
I've run into this problem too while compiling ChucK for the Raspberry Pi.

The solution is to edit util_string.cpp by adding this line:

#include <limits.h>

I don't know why this wasn't an issue before, but it builds fine for me after this fix.

Joel


On 12/04/2013 09:16 AM, Jeff Jacobson wrote:
After running 'make linux-alsa' things run smoothly until:

g++ -I. -Ilo -O3 -D__LINUX_ALSA__ -D__PLATFORM_LINUX__ -O3 -fno-strict-aliasing -D__CK_SNDFILE_NATIVE__  -c ulib_regex.cpp -o ulib_regex.o
ulib_regex.cpp: In function ‘void regex_replace(void*, Chuck_DL_Return*, Chuck_VM_Shred*, CK_DL_API)’:
ulib_regex.cpp:308:19: warning: converting to non-pointer type ‘long int’ from NULL [-Wconversion-null]
     RETURN->v_int = NULL;
                   ^
ulib_regex.cpp: In function ‘void regex_replaceAll(void*, Chuck_DL_Return*, Chuck_VM_Shred*, CK_DL_API)’:
ulib_regex.cpp:397:19: warning: converting to non-pointer type ‘long int’ from NULL [-Wconversion-null]
     RETURN->v_int = NULL;
                   ^
g++ -I. -Ilo -O3 -D__LINUX_ALSA__ -D__PLATFORM_LINUX__ -O3 -fno-strict-aliasing -D__CK_SNDFILE_NATIVE__  -c util_buffers.cpp -o util_buffers.o
g++ -I. -Ilo -O3 -D__LINUX_ALSA__ -D__PLATFORM_LINUX__ -O3 -fno-strict-aliasing -D__CK_SNDFILE_NATIVE__  -c util_console.cpp -o util_console.o
g++ -I. -Ilo -O3 -D__LINUX_ALSA__ -D__PLATFORM_LINUX__ -O3 -fno-strict-aliasing -D__CK_SNDFILE_NATIVE__  -c util_string.cpp -o util_string.o
util_string.cpp: In function ‘std::string get_full_path(const string&)’:
util_string.cpp:393:14: error: ‘PATH_MAX’ was not declared in this scope
     char buf[PATH_MAX];
              ^
util_string.cpp:395:42: error: ‘buf’ was not declared in this scope
     char * result = realpath(fp.c_str(), buf);
                                          ^
makefile:144: recipe for target 'util_string.o' failed
make: *** [util_string.o] Error 1

My googling found no similar errors.  Versions of dependencies are as follows:

alsa-lib 1.0.27.2-1
alsa-utils 1.0.27.2-1
libsndfile 1.0.25-3
gcc 4.8.2-5
flex 2.5.37-1
bison 3.0.1-1
make 4.0-1

I'm new to building software from source so I apologize if this is a beginner's misunderstanding.  Thanks for any help you can give me; I'm looking forward to trying ChucK.


_______________________________________________
chuck-users mailing list
chuck-users@lists.cs.princeton.edu
https://lists.cs.princeton.edu/mailman/listinfo/chuck-users


_______________________________________________
chuck-users mailing list
chuck-users@lists.cs.princeton.edu
https://lists.cs.princeton.edu/mailman/listinfo/chuck-users



_______________________________________________
chuck-users mailing list
chuck-users@lists.cs.princeton.edu
https://lists.cs.princeton.edu/mailman/listinfo/chuck-users