[erlang-questions] How to configure otp for a debug build (with otp_build)?

Gustav Simonsson <>
Fri Sep 9 10:47:00 CEST 2011


There is a line with "CFLAGS=" in the xcomp file where you can add flags to gcc,
such as debug options found in
http://gcc.gnu.org/onlinedocs/gcc-4.6.1/gcc/Debugging-Options.html#Debugging-Options

Cheers,
Gustav

----- Ursprungligt meddelande -----
Från: "Winston Smith" <>
Till: 
Kopia: "Rickard Green" <>
Skickat: torsdag, 8 sep 2011 19:37:33
Ämne: [erlang-questions] How to configure otp for a debug build (with	otp_build)?

Trying to get to the bottom of a segmentation fault on my cross
compiled version of R14B03 on an AVR32 (this is running a
reltool/rebar generated "node"):

beam[1440]: segfault at 36842a0e pc 2b7cc05e sp 7ff27668 ecr 24


I had no luck with a core file (even with +d) and I also tried adding
+v, but I get the message:

warning: -v (only in debug compiled code)


I need to rebuild in debug mode, but I couldn't immediately find any
documentation on using otp_build to produce a debug build.

Since this is cross compiled, I'm using otp_build with the xcomp
configuration file erl-xcomp-avr32-atmel-linux-gnu.conf.

Could someone give me a pointer on how to configure a cross compiled
erlang for a debug build?

Many thanks.
_______________________________________________
erlang-questions mailing list

http://erlang.org/mailman/listinfo/erlang-questions



More information about the erlang-questions mailing list