Re: How are we supposed to build Libc?
On 29 sept. 2016, at 21:07, Jeremy Huddleston Sequoia wrote:
What are your arguments to xcodebuild?
None. I open the Xcode project in Xcode and click the Run (Play) button. That seems to be a way which should work. Otherwise, I'm not sure why there's a Xcode project file. target is libsystem_c.dylic. I've tried other targets without any success.
What is the build failure you are encountering?
Depending on the Xcode version (4.6.x or 8.0, there between 120 and 260 reported errors).
Can you provide a build log?
Most of the errors are related to files not found in <sys/_something>. This "_" prefix is a bit weird for me. CompileC /Users/stephane/Library/Developer/Xcode/DerivedData/Libc-gzfwjliepgsrgedfufksqhwlcvim/Build/Intermediates/Libc.build/Debug/Base.build/Objects-normal/x86_64/sigaltstk.o compat-43/sigaltstk.c normal x86_64 c com.apple.compilers.llvm.clang.1_0.compiler cd /Users/stephane/Downloads/Libc-1082.50.1 setenv LANG en_US.US-ASCII /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c -arch x86_64 -fmessage-length=0 -std=gnu99 -Wno-trigraphs -fpascal-strings -Os -Werror-implicit-function-declaration -Wno-missing-field-initializers -Wno-missing-prototypes -Wreturn-type -Wformat -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wno-empty-body -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wno-constant-conversion -Wno-int-conversion -Wno-enum-conversion -Wno-shorten-64-to-32 -Wpointer-sign -Wno-newline-eof -D__LIBC__ -D__DARWIN_UNIX03=1 -D__DARWIN_64_BIT_INO_T=1 -D__DARWIN_NON_CANCELABLE=1 -D__DARWIN_VERS_1050=1 -D_FORTIFY_SOURCE=0 -fasm-blocks -fstrict-aliasing -Wdeprecated-declarations -g -Wno-sign-conversion -I/Users/stephane/Library/Developer/Xcode/DerivedData/Libc-gzfwjliepgsrgedfufksqhwlcvim/Build/Products/Debug/include -I/Users/stephane/Library/Developer/Xcode/DerivedData/Libc-gzfwjliepgsrgedfufksqhwlcvim/Build/Intermediates/Libc.build/Debug/Base.build/DerivedSources/dtrace -I/Users/stephane/Downloads/Libc-1082.50.1 -I/Users/stephane/Downloads/Libc-1082.50.1/include -I/Users/stephane/Downloads/Libc-1082.50.1/gen -I/Users/stephane/Downloads/Libc-1082.50.1/locale -I/Users/stephane/Downloads/Libc-1082.50.1/locale/FreeBSD -I/Users/stephane/Downloads/Libc-1082.50.1/stdtime/FreeBSD -I/Users/stephane/Downloads/Libc-1082.50.1/darwin -I/System/Library/Frameworks/System.framework/PrivateHeaders -I/usr/local/include -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -I/Users/stephane/Library/Developer/Xcode/DerivedData/Libc-gzfwjliepgsrgedfufksqhwlcvim/Build/Intermediates/Libc.build/Debug/Base.build/DerivedSources/x86_64 -I/Users/stephane/Library/ Developer/Xcode/DerivedData/Libc-gzfwjliepgsrgedfufksqhwlcvim/Build/Intermediates/Libc.build/Debug/Base.build/DerivedSources -Wall -F/Users/stephane/Library/Developer/Xcode/DerivedData/Libc-gzfwjliepgsrgedfufksqhwlcvim/Build/Products/Debug -fdollars-in-identifiers -fno-common -fverbose-asm -MMD -MT dependencies -MF /Users/stephane/Library/Developer/Xcode/DerivedData/Libc-gzfwjliepgsrgedfufksqhwlcvim/Build/Intermediates/Libc.build/Debug/Base.build/Objects-normal/x86_64/sigaltstk.d --serialize-diagnostics /Users/stephane/Library/Developer/Xcode/DerivedData/Libc-gzfwjliepgsrgedfufksqhwlcvim/Build/Intermediates/Libc.build/Debug/Base.build/Objects-normal/x86_64/sigaltstk.dia -c /Users/stephane/Downloads/Libc-1082.50.1/compat-43/sigaltstk.c -o /Users/stephane/Library/Developer/Xcode/DerivedData/Libc-gzfwjliepgsrgedfufksqhwlcvim/Build/Intermediates/Libc.build/Debug/Base.build/Objects-normal/x86_64/sigaltstk.o In file included from /Users/stephane/Downloads/Libc-1082.50.1/compat-43/sigaltstk.c:23: /Users/stephane/Downloads/Libc-1082.50.1/include/signal.h:65:10: fatal error: 'sys/_pthread/_pthread_types.h' file not found #include <sys/_pthread/_pthread_types.h> ^ 1 error generated.
Regarding releases of newer versions, it usually takes a little while after GM for the OSS drop.
I don't think it's an issue here as the source code for the function I want to investigate has probably not changed in years. _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.app... This email sent to site_archiver@lists.apple.com
participants (1)
-
Stéphane Sudre