On 26/08/11 01:36, Bret Fisher wrote : > Not sure if you have Mac testers, but these are some issues I've had and > preventing me from finishing cmake/make. Don't have additional machines to > validate if it's me or the code. I'm also not a build expert so maybe it's my > process for building. Thanks all, looking forward to official 1.0! > > Using today's sync of github, trying to run: > cmake . > make > > OS X 10.7.1, Xcode 4.1, GCC 4.2.1, MacPorts cmake 2.8.5 > > cmake initially fails until I remove "-Wno-unused-but-set-variable" from > CMakeLists.txt line 56. CMakeError.log was generating lots of > cc1: error: unrecognized command line option "-Wno-unused-but-set-variable" > for 6 or more file builds. Found a few posts suggesting newer versions of GCC > error out with this option while older ones ignore (don't know if that's > true). I seem to be using gcc --version > i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) > (LLVM build 2335.15.00)
this is a "bug" in gcc 4.2 (and 4.3 I think). since gcc 4.4 unknown options such as "-Wno-unused-but-set-variable" give only a warning (and only if any other warning/error was found during compilation) see : http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28322 http://gcc.gnu.org/gcc-4.4/changes.html Specifically: > Unknown -Wno-* options are now silently ignored by GCC if no other > diagnostics are issued. If other diagnostics are issued, then GCC warns about > the unknown options. NB: I have the warning with gcc 4.4, triggered by another warning, namely: > FreeRDP-1.0/server/test/freerdp_server.c: In function ‘test_peer_load_icon’: > FreeRDP-1.0/server/test/freerdp_server.c:151: warning: ignoring return value > of ‘fgets’, declared with attribute warn_unused_result > FreeRDP-1.0/server/test/freerdp_server.c:153: warning: ignoring return value > of ‘fgets’, declared with attribute warn_unused_result > FreeRDP-1.0/server/test/freerdp_server.c:155: warning: ignoring return value > of ‘fgets’, declared with attribute warn_unused_result > FreeRDP-1.0/server/test/freerdp_server.c:158: warning: ignoring return value > of ‘fgets’, declared with attribute warn_unused_result I think it would be useful to have cmake add this option only if supported or if gcc > 4.3 Hope it helps Alexis ------------------------------------------------------------------------------ EMC VNX: the world's simplest storage, starting under $10K The only unified storage solution that offers unified management Up to 160% more powerful than alternatives and 25% more efficient. Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev _______________________________________________ Freerdp-devel mailing list Freerdp-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freerdp-devel