Hi, FWIW, I use: -DCMAKE_CXX_FLAGS="-O0 -g3 -gdwarf-4" -DCMAKE_C_FLAGS="-O0 -g3 -gdwarf-4" Matt ----- Original Message ----- > From: "liuchang0812" <liuchang0812@xxxxxxxxx> > To: "Ramesh Chander" <Ramesh.Chander@xxxxxxxxxxx> > Cc: "ceph-devel" <ceph-devel@xxxxxxxxxxxxxxx> > Sent: Wednesday, February 1, 2017 12:02:34 PM > Subject: Re: how to disable all complier optimizations > > hi, try this > > cmake -DCMAKE_BUILD_TYPE=Debug .. > > 2017-02-01 19:48 GMT+08:00 Ramesh Chander <Ramesh.Chander@xxxxxxxxxxx>: > > I am trying to compile ceph-osd and debug it but keep getting "optimized > > out " message for local variables. > > > > How to I disable compiler optimization for ceph-osd ? > > > > Thanks in advance. > > > > -Ramesh > > > > ________________________________ > > > > PLEASE NOTE: The information contained in this electronic mail message is > > intended only for the use of the designated recipient(s) named above. If > > the reader of this message is not the intended recipient, you are hereby > > notified that you have received this message in error and that any review, > > dissemination, distribution, or copying of this message is strictly > > prohibited. If you have received this communication in error, please > > notify the sender by telephone or e-mail (as shown above) immediately and > > destroy any and all copies of this message in your possession (whether > > hard copies or electronically stored copies). > > > > -- > > To unsubscribe from this list: send the line "unsubscribe ceph-devel" in > > the body of a message to majordomo@xxxxxxxxxxxxxxx > > More majordomo info at http://vger.kernel.org/majordomo-info.html > -- > To unsubscribe from this list: send the line "unsubscribe ceph-devel" in > the body of a message to majordomo@xxxxxxxxxxxxxxx > More majordomo info at http://vger.kernel.org/majordomo-info.html > -- Matt Benjamin Red Hat, Inc. 315 West Huron Street, Suite 140A Ann Arbor, Michigan 48103 http://www.redhat.com/en/technologies/storage tel. 734-821-5101 fax. 734-769-8938 cel. 734-216-5309 -- To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html