From: Bruno H. <br...@cl...> - 2017-05-19 14:31:13
|
> Are the other flags necessary as pointed by Don Cohen? : > > gcc -m64 -g -O2 -W -Wswitch -Wcomment -Wpointer-arith -Wreturn-type > -Wmissing-declarations -Wimplicit -Wno-sign-compare -Wno-format-nonliteral > -Wno-shift-negative-value -fwrapv -pthread -fno-strict-aliasing -ggdb -O0 > -DDEBUG_OS_ERROR -DDEBUG_SPVW -DDEBUG_BYTECODE -DSAFETY=3 -DENABLE_UNICODE > -DMULTITHREAD -DPOSIX_THREADS -DNO_TERMCAP_NCURSES -DDYNAMIC_FFI > -DDYNAMIC_MODULES -Wl,--export-dynamic ... > > instead my build compiles like this: > gcc -ggdb -Wl,--export-dynamic ... Here's your problem. The compilation is being done without the various important flags: -DSAFETY=3 - necessary so it doesn't crash soon, for various possible reasons -DMULTITHREAD - necessary for the topic on which you want to work -DDYNAMIC_FFI - you should better omit this in the first time; it's complexity that you don't need for your work and so on. There are two known good ways to pass CFLAGS: - when you invoke configure - later, by editing the Makefile. "make CFLAGS+=-ggdb" is not among the ways I ever tried. Bruno |