Wireshark mailing list archives

Re: cmake giving options the compiler does not understand


From: Jeff Morriss <jeff.morriss.ws () gmail com>
Date: Thu, 02 Jan 2014 17:44:28 -0500

On 01/02/14 17:15, Guy Harris wrote:

On Jan 2, 2014, at 1:55 PM, Jeff Morriss <jeff.morriss.ws () gmail com> wrote:

On 01/02/14 16:34, Alexis La Goutte wrote:
Hi Jeff,

I have also some time the some error message...

Only sometimes?  I had to take that option out of CMakeLists.txt to get it compile.

With autotools, -Wshorten-64-to-32 is limited to only C...

True but my problem is with C compiler (it doesn't get past compiling the first file).

I infer from the "cc" in

        cc: error: unrecognized command line option -Wshorten-64-to-32

that this is UN*X (or Windows with MinGW or Cygwin or something such as that).

If it's UN*X, presumably you can try autotools; with autotools, does
the compiler detect that the compiler doesn't support
-Wshorten-64-to-32?

Oh, sorry, yes, it works with autotools. That's what I normally use and, well, I would have fixed it or complained long ago if it didn't work ;-).

checking whether we can add -Wshorten-64-to-32 to CFLAGS... no

> If not, the test needs more work in autotools, and those changes
> might also apply to CMake; if so, this is an issue with the CMake
> tests for "does this flag work"?

Cmake has that function which I listed that is supposed to do it for us but it doesn't seem to work (at least for me or at least not all the time).

___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <wireshark-dev () wireshark org>
Archives:    http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
            mailto:wireshark-dev-request () wireshark org?subject=unsubscribe


Current thread: