View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0006108CMakeCMakepublic2007-12-03 09:252015-07-08 08:57
ReporterSteven Van Ingelgem 
Assigned ToBill Hoffman 
PriorityhighSeveritymajorReproducibilityalways
StatusclosedResolutionunable to reproduce 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0006108: -isystem get's set on "APPLE"
DescriptionIn Platform/Darwin.cmake @ lines 101-104 the "-isystem" gets unset for XCode only, but XCode uses GCC in the background. So if you use GNU makefiles under Mac, you will find yourself with uncompilable files as well.

My guess is that the IF(XCODE) check should be removed (or extended with a check for GCC).
TagsNo tags attached.
Attached Filesbz2 file icon test.tar.bz2 [^] (954 bytes) 2007-12-15 03:35

 Relationships

  Notes
(0009831)
Miguel Figueroa (developer)
2007-12-04 20:02

I helped diagnose this problem. My understanding is that the following code in Platform/Darwin.cmake @ lines 101-104 should reset the use of -isystem:

# Xcode does not support -isystem yet.
IF(XCODE)
  SET(CMAKE_INCLUDE_SYSTEM_FLAG_C)
  SET(CMAKE_INCLUDE_SYSTEM_FLAG_CXX)
ENDIF(XCODE)

So that, when INCLUDE_DIRECTORIES(SYSTEM ${wxWidgets_INCLUDE_DIRS}) is called from the UsewxWidgets.cmake file the system knows to use the -isystem flag only in systems which support this and XCODE is not one of them apparently.

I don't have a system to debug where is it that -isystem gets set, but according to the snippet of code above I would think that the SYSTEM option in the INCLUDE_DIRECTORIES command should be ignored for XCode...

--Miguel
(0009832)
Steven Van Ingelgem (reporter)
2007-12-05 02:18

Miguel, not only for XCode ah? Just for GCC on a Mac (XCode is just the IDE, but it still uses GCC on a Mac - and GCC for Mac seems to freak out with the -isystem parameter).
(0009903)
Bill Hoffman (manager)
2007-12-14 14:44

Can you give an example where this fails? We do lots of mac dashboards with lots of tests, and this code works just fine.
(0009921)
Steven Van Ingelgem (reporter)
2007-12-15 03:36

Hi, I just attached a test-case which I also sent Miguel which shows this behaviour.
(0010108)
Bill Hoffman (manager)
2008-01-10 15:41

So, what version of gcc on the mac has trouble with this? I just tried and -isystem seems to work and gives no warnings on two different OSX machines.
(0010110)
Steven Van Ingelgem (reporter)
2008-01-10 15:44

I'm using 4.0.1 (the one from XCode 2.5) on a 10.4.11 G3 Mac. The test case failed for me at the time of writing.
(0010111)
Bill Hoffman (manager)
2008-01-10 15:55

What is the error you get, when it tries to use -isystem
(0013691)
Bill Hoffman (manager)
2008-10-01 17:03

I still can not reproduce this?
(0039077)
Robert Maynard (manager)
2015-07-08 08:57

Closing resolved issues that have not been updated in more than 4 months.

 Issue History
Date Modified Username Field Change
2007-12-03 09:25 Steven Van Ingelgem New Issue
2007-12-04 20:02 Miguel Figueroa Note Added: 0009831
2007-12-04 20:03 Miguel Figueroa Priority normal => high
2007-12-04 20:03 Miguel Figueroa Severity block => major
2007-12-05 02:18 Steven Van Ingelgem Note Added: 0009832
2007-12-14 14:44 Bill Hoffman Note Added: 0009903
2007-12-14 20:34 Bill Hoffman Status new => assigned
2007-12-14 20:34 Bill Hoffman Assigned To => Bill Hoffman
2007-12-15 03:35 Steven Van Ingelgem File Added: test.tar.bz2
2007-12-15 03:36 Steven Van Ingelgem Note Added: 0009921
2008-01-10 15:41 Bill Hoffman Note Added: 0010108
2008-01-10 15:44 Steven Van Ingelgem Note Added: 0010110
2008-01-10 15:55 Bill Hoffman Note Added: 0010111
2008-01-10 16:32 Alex Neundorf Category CCMake => CMake
2008-10-01 17:03 Bill Hoffman Note Added: 0013691
2015-02-26 15:59 Stephen Kelly Status assigned => resolved
2015-02-26 15:59 Stephen Kelly Resolution open => unable to reproduce
2015-07-08 08:57 Robert Maynard Note Added: 0039077
2015-07-08 08:57 Robert Maynard Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team