On 02/22/2012 12:29 AM, MORITA Kazutaka wrote: > At Thu, 16 Feb 2012 19:21:19 +0800, > Liu Yuan wrote: >> >> v2: >> - use ring buffer for trace output >> - add a cat operation for collie >> > > This patchset still doesn't work on my debian squeeze if I disabled > optimization. > > $ ./configure --enable-debug
Currently, --enable-debug add the option -O0, that tells the GCC not do any code optimization. I don't think option -O0 has anything to do with 'debug'. To me, enabling debug option is to add debug symbol into the final binary and enable the internal debug macros. For current trace not working with -O0, I haven't had any idea. But for most cases, we don't need sheep binary generated by -O0 and -O2 would be both optimal for normal distribution and debug mode (in the sense of adding symbol table and some debug macros). How about let's go without -O0 first and add support for -O0 later? Thanks, Yuan > $ make > $ ./sheep/sheep /store/0 -f -d > sheep: init_store(2004) no store found > sheep: create_cluster(1385) use corosync cluster driver as default > sheep: create_cluster(1405) zone id = 17712138 > sheep: read_epoch(2017) failed to read epoch 0 > sheep: send_join_request(817) ip: 10.68.14.1, port: 7000 > > The sheep doesn't show any other log messages. It looks like hanging. > > This is also reproducible on my clean-installed debian squeeze box. > -- sheepdog mailing list [email protected] http://lists.wpkg.org/mailman/listinfo/sheepdog
