D
Dave Howell
My RubyCocoa app has started exploding with "BUS ERROR," or perhaps
more precisely,
Program received signal: "EXC_BAD_ACCESS".
Asking the debugger to help told me that it was caused as a result of
something going wrong with an Event running down the chain and then
something bad happening, but that was about all I could figure out. I'm
not even sure what kind of event it was.
I found the following info on how to make Ruby and RubyCocoa more
"debuggable" at
http://www.rubycocoa.com/an-introduction-to-rubycocoa/6:
First, build a debuggable version of Ruby.
In your ruby source directory, run the following
commands from the bash shell:
$ CFLAGS='-g -ggdb -fno-common' ./configure
$ make
$ sudo make install
Except that configure is very unhappy about that "-ggdb" flag.
"checking for C compiler default output file name... configure: error:
C compiler cannot create executables"
I also tried the form that the ./configure --help output suggested:
./configure CFLAGS='-g -ggdb -fno-common'
It continues past that spot without a problem if I leave out the
"-ggdb" part.
From config.log:
configure:2000: checking for C compiler default output file name
configure:2003: gcc -g -ggdb -fno-common conftest.c >&5
/var/tmp//cc0knt2z.s:1:Expected comma after segment-name
/var/tmp//cc0knt2z.s:1:Rest of line ignored. 1st junk character valued
76 (L).
/var/tmp//cc0knt2z.s:2:Expected comma after segment-name
/var/tmp//cc0knt2z.s:2:Rest of line ignored. 1st junk character valued
76 (L).
/var/tmp//cc0knt2z.s:3:Expected comma after segment-name
/var/tmp//cc0knt2z.s:3:Rest of line ignored. 1st junk character valued
76 (L).
/var/tmp//cc0knt2z.s:25:Expected comma after segment-name
/var/tmp//cc0knt2z.s:25:Rest of line ignored. 1st junk character
valued 95 (_).
/var/tmp//cc0knt2z.s:69:Expected comma after segment-name
/var/tmp//cc0knt2z.s:69:Rest of line ignored. 1st junk character
valued 32 ( ).
/var/tmp//cc0knt2z.s:120:Expected comma after segment-name
/var/tmp//cc0knt2z.s:120:Rest of line ignored. 1st junk character
valued 32 ( ).
/var/tmp//cc0knt2z.s:147:Expected comma after segment-name
/var/tmp//cc0knt2z.s:147:Rest of line ignored. 1st junk character
valued 32 ( ).
/var/tmp//cc0knt2z.s:199:Expected comma after segment-name
/var/tmp//cc0knt2z.s:199:Rest of line ignored. 1st junk character
valued 32 ( ).
/var/tmp//cc0knt2z.s:206:Expected comma after segment-name
/var/tmp//cc0knt2z.s:206:Rest of line ignored. 1st junk character
valued 32 ( ).
configure:2006: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:2045: error: C compiler cannot create executables
See `config.log' for more details.
Can anybody fill me in on what I need to do differently to compile Ruby
with the "-ggdb" flag?
more precisely,
Program received signal: "EXC_BAD_ACCESS".
Asking the debugger to help told me that it was caused as a result of
something going wrong with an Event running down the chain and then
something bad happening, but that was about all I could figure out. I'm
not even sure what kind of event it was.
I found the following info on how to make Ruby and RubyCocoa more
"debuggable" at
http://www.rubycocoa.com/an-introduction-to-rubycocoa/6:
First, build a debuggable version of Ruby.
In your ruby source directory, run the following
commands from the bash shell:
$ CFLAGS='-g -ggdb -fno-common' ./configure
$ make
$ sudo make install
Except that configure is very unhappy about that "-ggdb" flag.
"checking for C compiler default output file name... configure: error:
C compiler cannot create executables"
I also tried the form that the ./configure --help output suggested:
./configure CFLAGS='-g -ggdb -fno-common'
It continues past that spot without a problem if I leave out the
"-ggdb" part.
From config.log:
configure:2000: checking for C compiler default output file name
configure:2003: gcc -g -ggdb -fno-common conftest.c >&5
/var/tmp//cc0knt2z.s:1:Expected comma after segment-name
/var/tmp//cc0knt2z.s:1:Rest of line ignored. 1st junk character valued
76 (L).
/var/tmp//cc0knt2z.s:2:Expected comma after segment-name
/var/tmp//cc0knt2z.s:2:Rest of line ignored. 1st junk character valued
76 (L).
/var/tmp//cc0knt2z.s:3:Expected comma after segment-name
/var/tmp//cc0knt2z.s:3:Rest of line ignored. 1st junk character valued
76 (L).
/var/tmp//cc0knt2z.s:25:Expected comma after segment-name
/var/tmp//cc0knt2z.s:25:Rest of line ignored. 1st junk character
valued 95 (_).
/var/tmp//cc0knt2z.s:69:Expected comma after segment-name
/var/tmp//cc0knt2z.s:69:Rest of line ignored. 1st junk character
valued 32 ( ).
/var/tmp//cc0knt2z.s:120:Expected comma after segment-name
/var/tmp//cc0knt2z.s:120:Rest of line ignored. 1st junk character
valued 32 ( ).
/var/tmp//cc0knt2z.s:147:Expected comma after segment-name
/var/tmp//cc0knt2z.s:147:Rest of line ignored. 1st junk character
valued 32 ( ).
/var/tmp//cc0knt2z.s:199:Expected comma after segment-name
/var/tmp//cc0knt2z.s:199:Rest of line ignored. 1st junk character
valued 32 ( ).
/var/tmp//cc0knt2z.s:206:Expected comma after segment-name
/var/tmp//cc0knt2z.s:206:Rest of line ignored. 1st junk character
valued 32 ( ).
configure:2006: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:2045: error: C compiler cannot create executables
See `config.log' for more details.
Can anybody fill me in on what I need to do differently to compile Ruby
with the "-ggdb" flag?