buildbot failure in MacPorts on buildports-snowleopard-x86_64

Ryan Schmidt ryandesign at macports.org
Thu Jun 6 10:50:41 PDT 2013


On Jun 6, 2013, at 06:23, Michael Dickens wrote:

> http://build.macports.org/builders/buildports-snowleopard-x86_64/builds/17877
> 
> Build Source Stamp: [branch trunk] 106716
> 
> The error is:
> {{{
> -- Looking for include file pthread.h
> -- Looking for include file pthread.h - not found
> CMake Error at
> /opt/local/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:
> 97 (message):
>  Could NOT find Threads (missing: Threads_FOUND)
> }}}
> 
> "pthread.h" is part of the OS install, always found in /usr/include, for
> all versions of OSX that I've ever used (back to at least 10.2; I assume
> earlier).
> 
> Anybody have an idea why it wasn't found on 10.6 only?  This error did
> not occur on 10.7 or 10.8.
> 
> Or, maybe I'm not reading the logfiles correctly, and the error is
> really something else?  Thanks! - MLD

I can reproduce this problem on 10.6.

According to build/CMakeFiles/CMakeError.log the reason why this failed is "-std=gnu90" is not recognized by gcc 4.2:


Determining if files pthread.h exist failed with the following output:
Change Dir: /Volumes/Data/macports/snowleopard/var/macports/build/_Volumes_Data_macports_dports_science_hackrf/hackrf/work/build/CMakeFiles/CMakeTmp

Run Build Command:/Volumes/Data/macports/snowleopard/bin/gmake "cmTryCompileExec1312323382/fast"
/Volumes/Data/macports/snowleopard/bin/gmake -f CMakeFiles/cmTryCompileExec1312323382.dir/build.make CMakeFiles/cmTryCompileExec1312323382.dir/build
gmake[1]: Entering directory `/Volumes/Data/macports/snowleopard/var/macports/build/_Volumes_Data_macports_dports_science_hackrf/hackrf/work/build/CMakeFiles/CMakeTmp'
/Volumes/Data/macports/snowleopard/bin/cmake -E cmake_progress_report /Volumes/Data/macports/snowleopard/var/macports/build/_Volumes_Data_macports_dports_science_hackrf/hackrf/work/build/CMakeFiles/CMakeTmp/CMakeFiles 1
Building C object CMakeFiles/cmTryCompileExec1312323382.dir/CheckIncludeFiles.c.o
/usr/bin/gcc-4.2   -pipe -O2 -arch x86_64  -std=gnu90   -arch x86_64   -o CMakeFiles/cmTryCompileExec1312323382.dir/CheckIncludeFiles.c.o   -c /Volumes/Data/macports/snowleopard/var/macports/build/_Volumes_Data_macports_dports_science_hackrf/hackrf/work/build/CMakeFiles/CMakeTmp/CheckIncludeFiles.c
cc1: error: unrecognized command line option "-std=gnu90"
gmake[1]: *** [CMakeFiles/cmTryCompileExec1312323382.dir/CheckIncludeFiles.c.o] Error 1
gmake[1]: Leaving directory `/Volumes/Data/macports/snowleopard/var/macports/build/_Volumes_Data_macports_dports_science_hackrf/hackrf/work/build/CMakeFiles/CMakeTmp'
gmake: *** [cmTryCompileExec1312323382/fast] Error 2

Source:
/* */
#include <pthread.h>


int main(){return 0;}




More information about the macports-dev mailing list