hust-marx / firebreath

Automatically exported from code.google.com/p/firebreath
0 stars 0 forks source link

Failed build on OSX 10.6.5 #163

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Environment:

OSX 10.6.5
Xcode 3.2.5
Component versions: DevToolsCore-1763.0; DevToolsSupport-1758.0
BuildVersion: 10M2423
cmake version 2.8.4

1. Created a simple project using 'python fbgen.py'

2. Running './prepmac.sh project'

~/Workspaces/firebreath/build ~/Workspaces/firebreath
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Checking whether C compiler has -isysroot
-- Checking whether C compiler has -isysroot - yes
-- Checking whether C compiler supports OSX deployment target flag
-- Checking whether C compiler supports OSX deployment target flag - yes
-- Check for working C compiler using: Xcode
-- Check for working C compiler using: Xcode -- broken
CMake Error at /Applications/CMake 
2.8-4.app/Contents/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:52 
(MESSAGE):
  The C compiler "/usr/bin/gcc" is not able to compile a simple test program.

  It fails with the following output:

   Change Dir: /Volumes/Data/Workspaces/firebreath/build/CMakeFiles/CMakeTmp

  Run Build Command:/Applications/CMake\ 2.8-4.app/Contents/bin/cmakexbuild
  -project CMAKE_TRY_COMPILE.xcode build -target cmTryCompileExec -buildstyle
  Development

  deprecated option: -buildstyle is no longer supported in xcodebuild.  Use
  -configuration instead.

  xcodebuild: Warning: configuration Development is not in the project.
  Building default configuration.

  (NOTE: project CMAKE_TRY_COMPILE was written by an older Xcode version (39)
  -- temporarily upgrading it (without modifying project file))

  ** BUILD FAILED **

Original issue reported on code.google.com by alexande...@gmail.com on 6 Mar 2011 at 4:50

GoogleCodeExporter commented 9 years ago
This is most likely a configuration problem on your computer, since it works on 
all of my computers.  However, I could check a lot easier if you'd tell me what 
version of FireBreath you're using.

Looking at your output, it looks like you have a non-standard version of gcc; 
I'm not sure how that could happen, but it works fine for me on OSX 10.6.6, 
XCode 3.2.5, CMake 2.8.4; I have also tested it recently on OS X 10.5.

Original comment by richarda...@gmail.com on 6 Mar 2011 at 10:56

GoogleCodeExporter commented 9 years ago
I've reinstalled Xcode several times. The same error takes place. The version I 
try to use is current master:

$ git branch -a
* master
  remotes/origin/HEAD -> origin/master
  remotes/origin/cmake_patch
  remotes/origin/firebreath-1.0
  remotes/origin/firebreath-1.1
  remotes/origin/firebreath-1.2
  remotes/origin/firebreath-1.3
  remotes/origin/firebreath-1.4
  remotes/origin/master

Original comment by alexande...@gmail.com on 7 Mar 2011 at 11:35

GoogleCodeExporter commented 9 years ago
Regarding my configuration, Xcode is installed in ~/Developer, NOT in 
/Developer (as default).

Original comment by alexande...@gmail.com on 7 Mar 2011 at 11:37

GoogleCodeExporter commented 9 years ago
I've just switched to version 1.4 (stable) and received the similar:

 $ ./prepmac.sh 
Using projects in: /Volumes/Data/Workspaces/firebreath-1.4/projects
Generating build files in: /Volumes/Data/Workspaces/firebreath-1.4/build
NOTE: The build files in /Volumes/Data/Workspaces/firebreath-1.4/build should 
*NEVER* be modified directly. Make changes in cmake and re-run this script.
~/Workspaces/firebreath-1.4/build ~/Workspaces/firebreath-1.4
CMake Error: Parse error in cache file 
/Volumes/Data/Workspaces/firebreath-1.4/build/CMakeCache.txt. Offending entry: 
/SDKs/MacOSX10.6.sdk
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Checking whether C compiler has -isysroot
-- Checking whether C compiler has -isysroot - yes
-- Checking whether C compiler supports OSX deployment target flag
-- Checking whether C compiler supports OSX deployment target flag - yes
-- Check for working C compiler using: Xcode
-- Check for working C compiler using: Xcode -- broken
CMake Error at /Applications/CMake 
2.8-4.app/Contents/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:52 
(MESSAGE):
  The C compiler "/usr/bin/gcc" is not able to compile a simple test program.

  It fails with the following output:

   Change Dir: /Volumes/Data/Workspaces/firebreath-1.4/build/CMakeFiles/CMakeTmp

  Run Build Command:/Applications/CMake\ 2.8-4.app/Contents/bin/cmakexbuild
  -project CMAKE_TRY_COMPILE.xcode build -target cmTryCompileExec -buildstyle
  Development

  deprecated option: -buildstyle is no longer supported in xcodebuild.  Use
  -configuration instead.

  xcodebuild: Warning: configuration Development is not in the project.
  Building default configuration.

  (NOTE: project CMAKE_TRY_COMPILE was written by an older Xcode version (39)
  -- temporarily upgrading it (without modifying project file))

  ** BUILD FAILED **

  The following build commands failed:

  cmTryCompileExec:

        PhaseScriptExecution "CMake PostBuild Rules"
  /Volumes/Data/Workspaces/firebreath-1.4/build/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Development/cmTryCompileExec.build/Script-5ABBB05ABBB05ABBB0000000.sh

  (1 failure)

  === BUILD NATIVE TARGET cmTryCompileExec OF PROJECT CMAKE_TRY_COMPILE WITH
  CONFIGURATION Development ===

  Check dependencies

  PhaseScriptExecution "CMake ReRun"
  CMAKE_TRY_COMPILE.build/Development/cmTryCompileExec.build/Script-5AB4205AB4205AB420000000.sh

      cd /Volumes/Data/Workspaces/firebreath-1.4/build/CMakeFiles/CMakeTmp
      /bin/sh -c /Volumes/Data/Workspaces/firebreath-1.4/build/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Development/cmTryCompileExec.build/Script-5AB4205AB4205AB420000000.sh

  make: `CMakeFiles/cmake.check_cache' is up to date.

  CompileC
  CMAKE_TRY_COMPILE.build/Development/cmTryCompileExec.build/Objects-normal/i386/testCCompiler.o
  testCCompiler.c normal i386 c com.apple.compilers.gcc.4_2

      cd /Volumes/Data/Workspaces/firebreath-1.4/build/CMakeFiles/CMakeTmp
      /Volumes/Data/Developer/usr/bin/gcc-4.2 -x c -arch i386 -fmessage-length=0 -pipe -Wno-trigraphs -fpascal-strings -fasm-blocks -O0 -mdynamic-no-pic -Wmost -Wno-four-char-constants -Wno-unknown-pragmas -F/Volumes/Data/Workspaces/firebreath-1.4/build/CMakeFiles/CMakeTmp/Development -I/Volumes/Data/Workspaces/firebreath-1.4/build/CMakeFiles/CMakeTmp/Development/include -I/Volumes/Data/Workspaces/firebreath-1.4/build/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Development/cmTryCompileExec.build/DerivedSources/i386 -I/Volumes/Data/Workspaces/firebreath-1.4/build/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Development/cmTryCompileExec.build/DerivedSources -c /Volumes/Data/Workspaces/firebreath-1.4/build/CMakeFiles/CMakeTmp/testCCompiler.c -o /Volumes/Data/Workspaces/firebreath-1.4/build/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Development/cmTryCompileExec.build/Objects-normal/i386/testCCompiler.o

  Ld Development/cmTryCompileExec normal i386

      cd /Volumes/Data/Workspaces/firebreath-1.4/build/CMakeFiles/CMakeTmp
      /Volumes/Data/Developer/usr/bin/gcc-4.2 -arch i386 -L/Volumes/Data/Workspaces/firebreath-1.4/build/CMakeFiles/CMakeTmp/Development -F/Volumes/Data/Workspaces/firebreath-1.4/build/CMakeFiles/CMakeTmp/Development -filelist /Volumes/Data/Workspaces/firebreath-1.4/build/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Development/cmTryCompileExec.build/Objects-normal/i386/cmTryCompileExec.LinkFileList -Wl,-search_paths_first -Wl,-headerpad_max_install_names -prebind -o /Volumes/Data/Workspaces/firebreath-1.4/build/CMakeFiles/CMakeTmp/Development/cmTryCompileExec

  PhaseScriptExecution "CMake PostBuild Rules"
  CMAKE_TRY_COMPILE.build/Development/cmTryCompileExec.build/Script-5ABBB05ABBB05ABBB0000000.sh

      cd /Volumes/Data/Workspaces/firebreath-1.4/build/CMakeFiles/CMakeTmp
      /bin/sh -c /Volumes/Data/Workspaces/firebreath-1.4/build/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Development/cmTryCompileExec.build/Script-5ABBB05ABBB05ABBB0000000.sh

  make:
  /Volumes/Data/Workspaces/firebreath-1.4/build/CMakeFiles/CMakeTmp/CMakeScripts/cmTryCompileExec_postBuildPhase.makeDevelopment:
  No such file or directory

  make: *** No rule to make target
  `/Volumes/Data/Workspaces/firebreath-1.4/build/CMakeFiles/CMakeTmp/CMakeScripts/cmTryCompileExec_postBuildPhase.makeDevelopment'.
  Stop.

  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:19 (Project)

-- Configuring incomplete, errors occurred!
CMake failed. Please check error messages

Original comment by alexande...@gmail.com on 7 Mar 2011 at 11:45

GoogleCodeExporter commented 9 years ago
Notice this line:

CMake Error at /Applications/CMake 
2.8-4.app/Contents/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:52 
(MESSAGE):
  The C compiler "/usr/bin/gcc" is not able to compile a simple test program.

What that means is that it tried to use the version of gcc that it found in 
/usr/bin/gcc to compile something and found that it isn't a supported version. 
This may be because you installed xcode in a per-user instead of per-machine 
basis -- I've never tried that. However, I can tell you this is nothing we can 
do about :-/ I would recommend installing XCode in /Developer; it's probably a 
bug in cmake that it can't support that type of xcode install, but in the year 
that FireBreath has been stable you're the first to have an issue with it, so 
it's aparently not common.

I'm very sorry for the inconvenience :-/

Original comment by richarda...@gmail.com on 7 Mar 2011 at 4:13

GoogleCodeExporter commented 9 years ago
I have installed Xcode in /Developer.

The error is the same.

~/Workspaces/firebreath-1.4/build ~/Workspaces/firebreath-1.4
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Checking whether C compiler has -isysroot
-- Checking whether C compiler has -isysroot - yes
-- Checking whether C compiler supports OSX deployment target flag
-- Checking whether C compiler supports OSX deployment target flag - yes
-- Check for working C compiler using: Xcode
-- Check for working C compiler using: Xcode -- broken
CMake Error at /Applications/CMake 
2.8-4.app/Contents/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:52 
(MESSAGE):
  The C compiler "/usr/bin/gcc" is not able to compile a simple test program.

  It fails with the following output:

   Change Dir: /Volumes/Data/Workspaces/firebreath-1.4/build/CMakeFiles/CMakeTmp

  Run Build Command:/Applications/CMake\ 2.8-4.app/Contents/bin/cmakexbuild
  -project CMAKE_TRY_COMPILE.xcodeproj build -target cmTryCompileExec
  -configuration Debug

  ** BUILD FAILED **

  === BUILD NATIVE TARGET cmTryCompileExec OF PROJECT CMAKE_TRY_COMPILE WITH
  CONFIGURATION Debug ===

  Check dependencies

  error: There is no SDK with the name or path '/Volumes/Data/Developer'

  [BEROR]error: There is no SDK with the name or path
  '/Volumes/Data/Developer'

  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:19 (Project)

-- Configuring incomplete, errors occurred!
CMake failed. Please check error messages

Original comment by alexande...@gmail.com on 7 Mar 2011 at 6:03

GoogleCodeExporter commented 9 years ago
After reinstalling XCode did you delete the build directory and start clean?  
Looks like no; try that.

Also, have you installed anything that would give you GCC aside from xcode?

Original comment by richarda...@gmail.com on 7 Mar 2011 at 6:47

GoogleCodeExporter commented 9 years ago
OK, so here's what worked:
1. Install Xcode to /Developers
2. Delete build directory 
3. I've deleted the projects dir as well (anyway that was a simple test without 
my code)
4. created new project
5. run prepmac script.

WORKED! :)

Thank you for the suggestions! It appears to be all about the Xcode location 
and some cached cmake files (build dir).

Original comment by alexande...@gmail.com on 7 Mar 2011 at 6:51

GoogleCodeExporter commented 9 years ago
I was also having the same problem. I didn't want to move Xcode so I renamed 
the developer folder that existed in the root (it contained CHUD and just a few 
items) and then symlinked /Developer to the location of xcode and then it would 
build. thanks.

Original comment by Clarke...@gmail.com on 2 Oct 2011 at 2:48