darwin-on-arm / xnu

Porting the Darwin kernel to the AArch64/ARMv7/ARMv6-A architectures.
Other
582 stars 146 forks source link

can't find C library #18

Closed Otherworldman closed 9 years ago

Otherworldman commented 10 years ago

I can't compile xnu on Mavericks, Xcode 5.0.2. But I can compile the xnu from Apple Open Source just perfectly fine.

For some wired reason winocm-xnu can't find the C library.

/Developer/xnu/xnu/xnu//SETUP//config/externs.c:26: /Developer/xnu/xnu/xnu//SETUP//config/config.h:57:10: fatal error: 'stdio.h' file not found /Developer/xnu/xnu/xnu//SETUP//decomment/decomment.c:31:10: fatal error: 'stdio.h' file not found /Developer/xnu/xnu/xnu//SETUP//kextsymboltool/kextsymboltool.c:24:10: fatal error: 'stdio.h' file not found /Developer/xnu/xnu/xnu//SETUP//config/openp.c:53:10: fatal error: 'stdio.h' file not found /Developer/xnu/xnu/xnu//SETUP//setsegname/setsegname.c:24:10: fatal error: 'libc.h' file not found /Developer/xnu/xnu/xnu//SETUP//md/md.c:76:10: fatal error: 'sys/types.h' file not found

include <sys/types.h>

     ^

include

     ^

include #include

     ^

     ^

include

     ^

include

     ^

In file included from /Developer/xnu/xnu/xnu//SETUP//config/mkswapconf.c:56: /Developer/xnu/xnu/xnu//SETUP//config/config.h:57:10: fatal error: 'stdio.h' file not found

include

     ^

1 error1 error generated. generated.

winocm commented 10 years ago

Did you ever install command line tools?

On Nov 13, 2013, at 12:08 PM, Otherworldman notifications@github.com wrote:

I can't compile xnu on Mavericks, Xcode 5.0.2. But I can compile the xnu from Apple Open Source just perfectly fine.

For some wired reason winocm-xnu can't find the C library.

/Developer/xnu/xnu/xnu//SETUP//config/externs.c:26: /Developer/xnu/xnu/xnu//SETUP//config/config.h:57:10: fatal error: 'stdio.h' file not found /Developer/xnu/xnu/xnu//SETUP//decomment/decomment.c:31:10: fatal error: 'stdio.h' file not found /Developer/xnu/xnu/xnu//SETUP//kextsymboltool/kextsymboltool.c:24:10: fatal error: 'stdio.h' file not found /Developer/xnu/xnu/xnu//SETUP//config/openp.c:53:10: fatal error: 'stdio.h' file not found /Developer/xnu/xnu/xnu//SETUP//setsegname/setsegname.c:24:10: fatal error: 'libc.h' file not found /Developer/xnu/xnu/xnu//SETUP//md/md.c:76:10: fatal error: 'sys/types.h' file not found

include

^

include

^

include #include

^

 ^

include

^

include

^ In file included from /Developer/xnu/xnu/xnu//SETUP//config/mkswapconf.c:56: /Developer/xnu/xnu/xnu//SETUP//config/config.h:57:10: fatal error: 'stdio.h' file not found

include

^ 1 error1 error generated. generated.

— Reply to this email directly or view it on GitHub.

Otherworldman commented 10 years ago

Yes. I can compile xnu from Apple's open source site fine.

winocm commented 10 years ago

What's your make command line?

Sent from my iPhone

On Nov 13, 2013, at 1:21 PM, Otherworldman notifications@github.com wrote:

Yes. I can compile xnu from Apple's open source site fine.

— Reply to this email directly or view it on GitHub.

Otherworldman commented 10 years ago

Z$ make -v GNU Make 3.81 Copyright (C) 2006 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

This program built for i386-apple-darwin11.3.0

Otherworldman commented 10 years ago

This is my make cmd linen I am using make 3.81, shipped with Xcode. make TARGET_CONFIGS="debug arm OMAP3530"

winocm commented 10 years ago

What version of Xcode are you using?

Sent from my iPhone

On Nov 13, 2013, at 3:44 PM, Otherworldman notifications@github.com wrote:

This is my make cmd linen I am using make 3.81, shipped with Xcode. make TARGET_CONFIGS="debug arm OMAP3530"

— Reply to this email directly or view it on GitHub.

Otherworldman commented 10 years ago

xcode 5.0.2 On Nov 13, 2013, at 5:19 PM, winocm notifications@github.com wrote:

What version of Xcode are you using?

Sent from my iPhone

On Nov 13, 2013, at 3:44 PM, Otherworldman notifications@github.com wrote:

This is my make cmd linen I am using make 3.81, shipped with Xcode. make TARGET_CONFIGS="debug arm OMAP3530"

— Reply to this email directly or view it on GitHub. — Reply to this email directly or view it on GitHub.

Otherworldman commented 10 years ago

Problem solved by installing Xcode from DMG file instead of APP Store.

On Nov 13, 2013, at 5:19 PM, winocm notifications@github.com wrote:

What version of Xcode are you using?

Sent from my iPhone

On Nov 13, 2013, at 3:44 PM, Otherworldman notifications@github.com wrote:

This is my make cmd linen I am using make 3.81, shipped with Xcode. make TARGET_CONFIGS="debug arm OMAP3530"

— Reply to this email directly or view it on GitHub. — Reply to this email directly or view it on GitHub.