Re: [Nfs-ganesha-devel] Compile options

2017-08-03 Thread Dominique Martinet
Daniel Gryniewicz wrote on Wed, Aug 02, 2017 at 10:16:39AM -0400: > fortify sources does not work for me. It fails during cmake. Basic system > libraries (such as -pthread) do not link. Hm. There is a "problem", that FORTIFY_SOURCE requires optimizations, so I had to add -O2... which in turn

Re: [Nfs-ganesha-devel] Compile options

2017-08-02 Thread Daniel Gryniewicz
On 08/02/2017 09:52 AM, Frank Filz wrote: Kaleb S. KEITHLEY wrote on Wed, Aug 02, 2017 at 09:06:17AM -0400: cd /builddir/build/BUILD/nfs-ganesha-2.5.1/src/Protocols/NFS && /usr/bin/cc -I/usr/include/glusterfs -I/usr/include/uuid -I/builddir/build/BUILD/nfs-ganesha-2.5.1/src/include

Re: [Nfs-ganesha-devel] Compile options

2017-08-02 Thread Frank Filz
> Kaleb S. KEITHLEY wrote on Wed, Aug 02, 2017 at 09:06:17AM -0400: > > cd /builddir/build/BUILD/nfs-ganesha-2.5.1/src/Protocols/NFS && > > /usr/bin/cc -I/usr/include/glusterfs -I/usr/include/uuid > > -I/builddir/build/BUILD/nfs-ganesha-2.5.1/src/include > >

Re: [Nfs-ganesha-devel] Compile options

2017-08-02 Thread Dominique Martinet
Kaleb S. KEITHLEY wrote on Wed, Aug 02, 2017 at 09:06:17AM -0400: > cd /builddir/build/BUILD/nfs-ganesha-2.5.1/src/Protocols/NFS && > /usr/bin/cc -I/usr/include/glusterfs -I/usr/include/uuid > -I/builddir/build/BUILD/nfs-ganesha-2.5.1/src/include >

Re: [Nfs-ganesha-devel] Compile options

2017-08-02 Thread Kaleb S. KEITHLEY
In builds for Fedora, the Fedora rpmbuild configs override a lot of options. Here's a typical nfs-ganesha compile line: cd /builddir/build/BUILD/nfs-ganesha-2.5.1/src/Protocols/NFS && /usr/bin/cc -I/usr/include/glusterfs -I/usr/include/uuid -I/builddir/build/BUILD/nfs-ganesha-2.5.1/src/include

Re: [Nfs-ganesha-devel] Compile options

2017-08-02 Thread Daniel Gryniewicz
On 08/02/2017 04:46 AM, William Allen Simpson wrote: On 8/1/17 1:14 PM, Daniel Gryniewicz wrote: On 08/01/2017 12:49 PM, Daniel Gryniewicz wrote: On the call, it was requested that I start a thread listing compile options that I use, so others can chime in, allowing everyone to learn from

Re: [Nfs-ganesha-devel] Compile options

2017-08-02 Thread Dominique Martinet
Hi, William Allen Simpson wrote on Wed, Aug 02, 2017 at 04:46:38AM -0400: > I've been using -DCMAKE_C_FLAGS="-O0 -g -gdwarf-4" I'm curious, do you notice the difference with -O0 and -gdwarf for debugging? (honest question, I've never felt bothered, I only have -g from Debug build type - we

Re: [Nfs-ganesha-devel] Compile options

2017-08-02 Thread William Allen Simpson
On 8/1/17 1:14 PM, Daniel Gryniewicz wrote: On 08/01/2017 12:49 PM, Daniel Gryniewicz wrote: On the call, it was requested that I start a thread listing compile options that I use, so others can chime in, allowing everyone to learn from each other. Here's my standard list: CFLAGS=-O0 -g

Re: [Nfs-ganesha-devel] Compile options

2017-08-01 Thread Daniel Gryniewicz
On 08/01/2017 12:49 PM, Daniel Gryniewicz wrote: On the call, it was requested that I start a thread listing compile options that I use, so others can chime in, allowing everyone to learn from each other. Here's my standard list: CFLAGS=-O0 -g -gdwarf-2 -Werror cmake options:

[Nfs-ganesha-devel] Compile options

2017-08-01 Thread Daniel Gryniewicz
On the call, it was requested that I start a thread listing compile options that I use, so others can chime in, allowing everyone to learn from each other. Here's my standard list: CFLAGS=-O0 -g -gdwarf-2 -Werror cmake options: -DUSE_LTTNG=ON This allows using lttng to get