reid/xnu-speedstep-air — Issue #5: Build error
Author: felis0421
Created: 2011-12-15 13:48:48+00:00
State: open

Hi reid,

I was so excited to know there's a solution out there for my Air A - FINIALLY!

However, I got problems when building the kext on my Lion 10.7.2 / Xcode 4.2!

It goes something like this:

CompileC build/IntelEnhancedSpeedStep.build/Debug/IntelEnhancedSpeedStep.build/Objects-normal/i386/IntelEnhancedSpeedStep.o IntelEnhancedSpeedStep.cpp normal i386 c++ com.apple.compilers.llvm.clang.1_0.compiler
cd /Users/felisvoski/Downloads/reid-xnu-speedstep-air-934fde7/Source
setenv LANG en_US.US-ASCII
/Developer/usr/bin/clang -x c++ -arch i386 -fmessage-length=0 -fdiagnostics-print-source-range-info -fdiagnostics-show-category=id -fdiagnostics-parseable-fixits -nostdinc -fno-builtin -Wno-trigraphs -fno-exceptions -fno-rtti -force_cpusubtype_ALL -msoft-float -O2 -fno-common -mkernel -Wreturn-type -Wparentheses -Wswitch -Wno-unused-parameter -Wunused-variable -Wunused-value -Wno-shorten-64-to-32 -Wc++0x-extensions -DKERNEL -DKERNEL_PRIVATE -DDRIVER_PRIVATE -DAPPLE -DNeXT -isysroot /Developer/SDKs/MacOSX10.7.sdk -fapple-kext -fasm-blocks -mmacosx-version-min=10.7 -Wno-sign-conversion -iquote /Users/felisvoski/Downloads/reid-xnu-speedstep-air-934fde7/Source/build/IntelEnhancedSpeedStep.build/Debug/IntelEnhancedSpeedStep.build/IntelEnhancedSpeedStep-generated-files.hmap -I/Users/felisvoski/Downloads/reid-xnu-speedstep-air-934fde7/Source/build/IntelEnhancedSpeedStep.build/Debug/IntelEnhancedSpeedStep.build/IntelEnhancedSpeedStep-own-target-headers.hmap -I/Users/felisvoski/Downloads/reid-xnu-speedstep-air-934fde7/Source/build/IntelEnhancedSpeedStep.build/Debug/IntelEnhancedSpeedStep.build/IntelEnhancedSpeedStep-all-target-headers.hmap -iquote /Users/felisvoski/Downloads/reid-xnu-speedstep-air-934fde7/Source/build/IntelEnhancedSpeedStep.build/Debug/IntelEnhancedSpeedStep.build/IntelEnhancedSpeedStep-project-headers.hmap -I/Users/felisvoski/Downloads/reid-xnu-speedstep-air-934fde7/Source/build/Debug/include -I/System/Library/Frameworks/Kernel.framework/PrivateHeaders -I/Developer/SDKs/MacOSX10.7.sdk/System/Library/Frameworks/Kernel.framework/Headers -I/Users/felisvoski/Downloads/reid-xnu-speedstep-air-934fde7/Source/build/IntelEnhancedSpeedStep.build/Debug/IntelEnhancedSpeedStep.build/DerivedSources/i386 -I/Users/felisvoski/Downloads/reid-xnu-speedstep-air-934fde7/Source/build/IntelEnhancedSpeedStep.build/Debug/IntelEnhancedSpeedStep.build/DerivedSources -F/Users/felisvoski/Downloads/reid-xnu-speedstep-air-934fde7/Source/build/Debug -MMD -MT dependencies -MF /Users/felisvoski/Downloads/reid-xnu-speedstep-air-934fde7/Source/build/IntelEnhancedSpeedStep.build/Debug/IntelEnhancedSpeedStep.build/Objects-normal/i386/IntelEnhancedSpeedStep.d -c /Users/felisvoski/Downloads/reid-xnu-speedstep-air-934fde7/Source/IntelEnhancedSpeedStep.cpp -o /Users/felisvoski/Downloads/reid-xnu-speedstep-air-934fde7/Source/build/IntelEnhancedSpeedStep.build/Debug/IntelEnhancedSpeedStep.build/Objects-normal/i386/IntelEnhancedSpeedStep.o

clang: warning: argument unused during compilation: '-force_cpusubtype_ALL'
cc1plus: error: unrecognized command line option "-Wc++0x-extensions"
cc1plus: error: unrecognized command line option "-Wno-sign-conversion"
Command /Developer/usr/bin/clang failed with exit code 1

===

Ld build/Debug/IntelEnhancedSpeedStep.kext/Contents/MacOS/IntelEnhancedSpeedStep normal i386
cd /Users/felisvoski/Downloads/reid-xnu-speedstep-air-934fde7/Source
setenv MACOSX_DEPLOYMENT_TARGET 10.7
/Developer/usr/bin/clang++ -arch i386 -isysroot /Developer/SDKs/MacOSX10.7.sdk -L/Users/felisvoski/Downloads/reid-xnu-speedstep-air-934fde7/Source/build/Debug -F/Users/felisvoski/Downloads/reid-xnu-speedstep-air-934fde7/Source/build/Debug -filelist /Users/felisvoski/Downloads/reid-xnu-speedstep-air-934fde7/Source/build/IntelEnhancedSpeedStep.build/Debug/IntelEnhancedSpeedStep.build/Objects-normal/i386/IntelEnhancedSpeedStep.LinkFileList -mmacosx-version-min=10.7 -lcpp_kext -Xlinker -kext -nostdlib -lkmodc++ /Users/felisvoski/Downloads/reid-xnu-speedstep-air-934fde7/Source/build/IntelEnhancedSpeedStep.build/Debug/IntelEnhancedSpeedStep.build/Objects-normal/i386/IntelEnhancedSpeedStep_info.o -lkmod -lcc_kext -o /Users/felisvoski/Downloads/reid-xnu-speedstep-air-934fde7/Source/build/Debug/IntelEnhancedSpeedStep.kext/Contents/MacOS/IntelEnhancedSpeedStep

ld: warning: using ld_classic
Command /Developer/usr/bin/clang++ failed with exit code 1

--------

Tried to build in on my iMac (late '07) / Lion 10.7.2 / Xcode 4.2; the first error is still there but the second on is gone.

Please help!