Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to build on Ubuntu 15.10 #9

Open
steveunixson opened this issue May 18, 2016 · 1 comment
Open

Unable to build on Ubuntu 15.10 #9

steveunixson opened this issue May 18, 2016 · 1 comment

Comments

@steveunixson
Copy link

I've installed all suggested dependencies and here is the build log.

vm@vm-VirtualBox:~/Documents/BSD_based/xnu-deps-linux$ make
Building migcom...
make -C bootstrap_cmds-60/migcom.tproj/
make[1]: Entering directory '/home/vm/Documents/BSD_based/xnu-deps-linux/bootstrap_cmds-60/migcom.tproj'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/home/vm/Documents/BSD_based/xnu-deps-linux/bootstrap_cmds-60/migcom.tproj'
Building cctools...
/bin/sh -c "cd cctools-836; ./configure --target=arm-apple-darwin11 --prefix=/; make CFLAGS=-I/home/vm/Documents/BSD_based/xnu-deps-linux/include all"
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... arm-apple-darwin11
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking how to create a ustar tar archive... gnutar
checking whether to enable maintainer-specific portions of Makefiles... no
checking how to print strings... printf
checking for style of include used by make... GNU
checking for gcc... clang
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether clang accepts -g... yes
checking for clang option to accept ISO C89... none needed
checking dependency style of clang... gcc3
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by clang... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @file support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from clang object... ok
checking for sysroot... no
checking for mt... mt
checking if mt is a manifest tool... no
checking how to run the C preprocessor... clang -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if clang supports -fno-rtti -fno-exceptions... yes
checking for clang option to produce PIC... -fPIC -DPIC
checking if clang PIC flag -fPIC -DPIC works... yes
checking if clang static flag -static works... yes
checking if clang supports -c -o file.o... yes
checking if clang supports -c -o file.o... (cached) yes
checking whether the clang linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking whether we are using the GNU C compiler... (cached) yes
checking whether clang accepts -g... (cached) yes
checking for clang option to accept ISO C89... (cached) none needed
checking dependency style of clang... (cached) gcc3
checking whether we are using the GNU C++ compiler... yes
checking whether clang++ accepts -g... yes
checking dependency style of clang++... gcc3
checking how to run the C++ preprocessor... clang++ -E
checking for ld used by clang++... /usr/bin/ld -m elf_x86_64
checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
checking whether the clang++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking for clang++ option to produce PIC... -fPIC -DPIC
checking if clang++ PIC flag -fPIC -DPIC works... yes
checking if clang++ static flag -static works... yes
checking if clang++ supports -c -o file.o... yes
checking if clang++ supports -c -o file.o... (cached) yes
checking whether the clang++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... (cached) GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether clang and cc understand -c and -o together... yes
checking for clang... clang
checking whether we are using the GNU Objective C compiler... yes
checking whether clang accepts -g... yes
checking dependency style of clang... gcc3
checking dependency style of clang... gcc3
checking for ranlib... ranlib
checking for ar... ar
checking if -Wall is supported... yes
checking if -Wno-long-long is supported... yes
checking if -Wno-import is supported... yes
checking if -Wno-format is supported... yes
checking if -Wno-deprecated is supported... yes
checking if -Wno-unused-variable is supported... yes
checking if -Wno-invalid-offsetof is supported... yes
checking for dlopen in -ldl... yes
checking for pthread_create in -lpthread... yes
checking for uuid_generate_random in -luuid... yes
checking for MD5_Init in -lcrypto... yes
checking whether byte ordering is bigendian... no
checking for llvm-config... yes
configure: "Your system is 64bit, disable ld_classic"
configure: creating ./config.status
chmod: changing permissions of './config.status': Operation not permitted
configure: error: write failure creating ./config.status
make[1]: Entering directory '/home/vm/Documents/BSD_based/xnu-deps-linux/cctools-836'
/bin/bash ./config.status
config.status: creating Makefile
config.status: creating libstuff/Makefile
config.status: creating ar/Makefile
config.status: creating as/Makefile
config.status: creating as/arm/Makefile
config.status: creating as/i386/Makefile
config.status: creating as/x86_64/Makefile
config.status: creating as/ppc/Makefile
config.status: creating as/ppc64/Makefile
config.status: creating misc/Makefile
config.status: creating otool/Makefile
config.status: creating libobjc2/Makefile
config.status: creating ld/Makefile
config.status: creating ld64/Makefile
config.status: creating ld64/src/Makefile
config.status: creating ld64/src/3rd/Makefile
config.status: creating ld64/src/3rd/BlocksRuntime/Makefile
config.status: creating ld64/src/ld/Makefile
config.status: creating ld64/src/ld/parsers/Makefile
config.status: creating ld64/src/ld/passes/Makefile
config.status: creating ld64/src/other/Makefile
config.status: creating include/config.h
config.status: include/config.h is unchanged
./config.status: line 1409: $as_dirname -- "$_am_arg" || $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| X"$_am_arg" : 'X\(//\)[^/]' \| X"$_am_arg" : 'X\(//\)$' \| X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$_am_arg" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'/stamp-h1: Permission denied
config.status: executing depfiles commands
config.status: executing libtool commands
Making all in libstuff
make[2]: Entering directory '/home/vm/Documents/BSD_based/xnu-deps-linux/cctools-836/libstuff'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/vm/Documents/BSD_based/xnu-deps-linux/cctools-836/libstuff'
Making all in ar
make[2]: Entering directory '/home/vm/Documents/BSD_based/xnu-deps-linux/cctools-836/ar'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/vm/Documents/BSD_based/xnu-deps-linux/cctools-836/ar'
Making all in as
make[2]: Entering directory '/home/vm/Documents/BSD_based/xnu-deps-linux/cctools-836/as'
Making all in arm
make[3]: Entering directory '/home/vm/Documents/BSD_based/xnu-deps-linux/cctools-836/as/arm'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/home/vm/Documents/BSD_based/xnu-deps-linux/cctools-836/as/arm'
Making all in i386
make[3]: Entering directory '/home/vm/Documents/BSD_based/xnu-deps-linux/cctools-836/as/i386'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/home/vm/Documents/BSD_based/xnu-deps-linux/cctools-836/as/i386'
Making all in x86_64
make[3]: Entering directory '/home/vm/Documents/BSD_based/xnu-deps-linux/cctools-836/as/x86_64'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/home/vm/Documents/BSD_based/xnu-deps-linux/cctools-836/as/x86_64'
Making all in ppc
make[3]: Entering directory '/home/vm/Documents/BSD_based/xnu-deps-linux/cctools-836/as/ppc'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/home/vm/Documents/BSD_based/xnu-deps-linux/cctools-836/as/ppc'
Making all in ppc64
make[3]: Entering directory '/home/vm/Documents/BSD_based/xnu-deps-linux/cctools-836/as/ppc64'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/home/vm/Documents/BSD_based/xnu-deps-linux/cctools-836/as/ppc64'
make[3]: Entering directory '/home/vm/Documents/BSD_based/xnu-deps-linux/cctools-836/as'
make[3]: Nothing to be done for 'all-am'.
make[3]: Leaving directory '/home/vm/Documents/BSD_based/xnu-deps-linux/cctools-836/as'
make[2]: Leaving directory '/home/vm/Documents/BSD_based/xnu-deps-linux/cctools-836/as'
Making all in misc
make[2]: Entering directory '/home/vm/Documents/BSD_based/xnu-deps-linux/cctools-836/misc'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/vm/Documents/BSD_based/xnu-deps-linux/cctools-836/misc'
Making all in libobjc2
make[2]: Entering directory '/home/vm/Documents/BSD_based/xnu-deps-linux/cctools-836/libobjc2'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/vm/Documents/BSD_based/xnu-deps-linux/cctools-836/libobjc2'
Making all in otool
make[2]: Entering directory '/home/vm/Documents/BSD_based/xnu-deps-linux/cctools-836/otool'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/vm/Documents/BSD_based/xnu-deps-linux/cctools-836/otool'
Making all in ld64
make[2]: Entering directory '/home/vm/Documents/BSD_based/xnu-deps-linux/cctools-836/ld64'
Making all in src
make[3]: Entering directory '/home/vm/Documents/BSD_based/xnu-deps-linux/cctools-836/ld64/src'
Making all in 3rd
make[4]: Entering directory '/home/vm/Documents/BSD_based/xnu-deps-linux/cctools-836/ld64/src/3rd'
Making all in BlocksRuntime
make[5]: Entering directory '/home/vm/Documents/BSD_based/xnu-deps-linux/cctools-836/ld64/src/3rd/BlocksRuntime'
make[5]: Nothing to be done for 'all'.
make[5]: Leaving directory '/home/vm/Documents/BSD_based/xnu-deps-linux/cctools-836/ld64/src/3rd/BlocksRuntime'
make[5]: Entering directory '/home/vm/Documents/BSD_based/xnu-deps-linux/cctools-836/ld64/src/3rd'
make[5]: Nothing to be done for 'all-am'.
make[5]: Leaving directory '/home/vm/Documents/BSD_based/xnu-deps-linux/cctools-836/ld64/src/3rd'
make[4]: Leaving directory '/home/vm/Documents/BSD_based/xnu-deps-linux/cctools-836/ld64/src/3rd'
Making all in ld
make[4]: Entering directory '/home/vm/Documents/BSD_based/xnu-deps-linux/cctools-836/ld64/src/ld'
Making all in parsers
make[5]: Entering directory '/home/vm/Documents/BSD_based/xnu-deps-linux/cctools-836/ld64/src/ld/parsers'
make[5]: Nothing to be done for 'all'.
make[5]: Leaving directory '/home/vm/Documents/BSD_based/xnu-deps-linux/cctools-836/ld64/src/ld/parsers'
Making all in passes
make[5]: Entering directory '/home/vm/Documents/BSD_based/xnu-deps-linux/cctools-836/ld64/src/ld/passes'
make[5]: Nothing to be done for 'all'.
make[5]: Leaving directory '/home/vm/Documents/BSD_based/xnu-deps-linux/cctools-836/ld64/src/ld/passes'
make[5]: Entering directory '/home/vm/Documents/BSD_based/xnu-deps-linux/cctools-836/ld64/src/ld'
clang++ -DHAVE_CONFIG_H -I. -I../../../include -fblocks -D__DARWIN_UNIX03 -Wall -Wno-long-long -Wno-import -Wno-format -Wno-deprecated -Wno-unused-variable -Wno-invalid-offsetof -DLTO_SUPPORT=1 -D__LITTLE_ENDIAN__=1 -I../../../include -I../../../include/foreign -I../../../ld64/src -I../../../ld64/src/abstraction -I../../../ld64/src/3rd -I../../../ld64/src/ld -I../../../ld64/src/ld/parsers -I../../../ld64/src/ld/passes -DPROGRAM_PREFIX=""arm-apple-darwin11-"" -g -O2 -MT ld-blob.o -MD -MP -MF .deps/ld-blob.Tpo -c -o ld-blob.o test -f 'code-sign-blobs/blob.cpp' || echo './'code-sign-blobs/blob.cpp
In file included from code-sign-blobs/blob.cpp:28:
In file included from code-sign-blobs/blob.h:45:
In file included from code-sign-blobs/endian.h:34:
code-sign-blobs/memutils.h:90:42: error: unknown type name 'ptrdiff_t'; did you
mean '**gnu_cxx::ptrdiff_t'?
inline const T increment(const void p, ptrdiff_t offset)
^~~~~~~~~
__gnu_cxx::ptrdiff_t
/usr/bin/../lib/gcc/x86_64-linux-gnu/5.2.1/../../../../include/x86_64-linux-gnu/c++/5.2.1/bits/c++config.h:197:28: note:
'__gnu_cxx::ptrdiff_t' declared here
typedef __PTRDIFF_TYPE
ptrdiff_t;
^
In file included from code-sign-blobs/blob.cpp:28:
In file included from code-sign-blobs/blob.h:45:
In file included from code-sign-blobs/endian.h:34:
code-sign-blobs/memutils.h:94:30: error: unknown type name 'ptrdiff_t'; did you
mean '**gnu_cxx::ptrdiff_t'?
inline T increment(void p, ptrdiff_t offset)
^~~~~~~~~
__gnu_cxx::ptrdiff_t
/usr/bin/../lib/gcc/x86_64-linux-gnu/5.2.1/../../../../include/x86_64-linux-gnu/c++/5.2.1/bits/c++config.h:197:28: note:
'__gnu_cxx::ptrdiff_t' declared here
typedef __PTRDIFF_TYPE
ptrdiff_t;
^
In file included from code-sign-blobs/blob.cpp:28:
In file included from code-sign-blobs/blob.h:45:
In file included from code-sign-blobs/endian.h:34:
code-sign-blobs/memutils.h:97:45: error: unknown type name 'ptrdiff_t'; did you
mean '**gnu_cxx::ptrdiff_t'?
inline const void increment(const void p, ptrdiff_t offset)
^~~~~~~~~
__gnu_cxx::ptrdiff_t
/usr/bin/../lib/gcc/x86_64-linux-gnu/5.2.1/../../../../include/x86_64-linux-gnu/c++/5.2.1/bits/c++config.h:197:28: note:
'__gnu_cxx::ptrdiff_t' declared here
typedef __PTRDIFF_TYPE
ptrdiff_t;
^
In file included from code-sign-blobs/blob.cpp:28:
In file included from code-sign-blobs/blob.h:45:
In file included from code-sign-blobs/endian.h:34:
code-sign-blobs/memutils.h:100:33: error: unknown type name 'ptrdiff_t'; did you
mean '**gnu_cxx::ptrdiff_t'?
inline void increment(void p, ptrdiff_t offset)
^~~~~~~~~
__gnu_cxx::ptrdiff_t
/usr/bin/../lib/gcc/x86_64-linux-gnu/5.2.1/../../../../include/x86_64-linux-gnu/c++/5.2.1/bits/c++config.h:197:28: note:
'__gnu_cxx::ptrdiff_t' declared here
typedef __PTRDIFF_TYPE
ptrdiff_t;
^
In file included from code-sign-blobs/blob.cpp:28:
In file included from code-sign-blobs/blob.h:45:
In file included from code-sign-blobs/endian.h:34:
code-sign-blobs/memutils.h:104:42: error: unknown type name 'ptrdiff_t'; did you
mean '**gnu_cxx::ptrdiff_t'?
inline const T increment(const void p, ptrdiff_t offset, size_t alignment)
^~~~~~~~~
__gnu_cxx::ptrdiff_t
/usr/bin/../lib/gcc/x86_64-linux-gnu/5.2.1/../../../../include/x86_64-linux-gnu/c++/5.2.1/bits/c++config.h:197:28: note:
'__gnu_cxx::ptrdiff_t' declared here
typedef __PTRDIFF_TYPE
ptrdiff_t;
^
In file included from code-sign-blobs/blob.cpp:28:
In file included from code-sign-blobs/blob.h:45:
In file included from code-sign-blobs/endian.h:34:
code-sign-blobs/memutils.h:108:30: error: unknown type name 'ptrdiff_t'; did you
mean '**gnu_cxx::ptrdiff_t'?
inline T increment(void p, ptrdiff_t offset, size_t alignment)
^~~~~~~~~
__gnu_cxx::ptrdiff_t
/usr/bin/../lib/gcc/x86_64-linux-gnu/5.2.1/../../../../include/x86_64-linux-gnu/c++/5.2.1/bits/c++config.h:197:28: note:
'__gnu_cxx::ptrdiff_t' declared here
typedef __PTRDIFF_TYPE
ptrdiff_t;
^
In file included from code-sign-blobs/blob.cpp:28:
In file included from code-sign-blobs/blob.h:45:
In file included from code-sign-blobs/endian.h:34:
code-sign-blobs/memutils.h:111:45: error: unknown type name 'ptrdiff_t'; did you
mean '**gnu_cxx::ptrdiff_t'?
inline const void increment(const void p, ptrdiff_t offset, size_t alignment)
^~~~~~~~~
__gnu_cxx::ptrdiff_t
/usr/bin/../lib/gcc/x86_64-linux-gnu/5.2.1/../../../../include/x86_64-linux-gnu/c++/5.2.1/bits/c++config.h:197:28: note:
'__gnu_cxx::ptrdiff_t' declared here
typedef __PTRDIFF_TYPE
ptrdiff_t;
^
In file included from code-sign-blobs/blob.cpp:28:
In file included from code-sign-blobs/blob.h:45:
In file included from code-sign-blobs/endian.h:34:
code-sign-blobs/memutils.h:114:33: error: unknown type name 'ptrdiff_t'; did you
mean '**gnu_cxx::ptrdiff_t'?
inline void increment(void p, ptrdiff_t offset, size_t alignment)
^~~~~~~~~
__gnu_cxx::ptrdiff_t
/usr/bin/../lib/gcc/x86_64-linux-gnu/5.2.1/../../../../include/x86_64-linux-gnu/c++/5.2.1/bits/c++config.h:197:28: note:
'__gnu_cxx::ptrdiff_t' declared here
typedef __PTRDIFF_TYPE
ptrdiff_t;
^
In file included from code-sign-blobs/blob.cpp:28:
In file included from code-sign-blobs/blob.h:45:
In file included from code-sign-blobs/endian.h:34:
code-sign-blobs/memutils.h:117:8: error: unknown type name 'ptrdiff_t'; did you
mean '**gnu_cxx::ptrdiff_t'?
inline ptrdiff_t difference(const void p1, const void p2)
^~~~~~~~~
__gnu_cxx::ptrdiff_t
/usr/bin/../lib/gcc/x86_64-linux-gnu/5.2.1/../../../../include/x86_64-linux-gnu/c++/5.2.1/bits/c++config.h:197:28: note:
'__gnu_cxx::ptrdiff_t' declared here
typedef __PTRDIFF_TYPE
ptrdiff_t;
^
error: error opening '.deps/ld-blob.Tpo': Permission denied
10 errors generated.
Makefile:582: recipe for target 'ld-blob.o' failed
make[5]: *** [ld-blob.o] Error 1
make[5]: Leaving directory '/home/vm/Documents/BSD_based/xnu-deps-linux/cctools-836/ld64/src/ld'
Makefile:608: recipe for target 'all-recursive' failed
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory '/home/vm/Documents/BSD_based/xnu-deps-linux/cctools-836/ld64/src/ld'
Makefile:282: recipe for target 'all-recursive' failed
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory '/home/vm/Documents/BSD_based/xnu-deps-linux/cctools-836/ld64/src'
Makefile:283: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory '/home/vm/Documents/BSD_based/xnu-deps-linux/cctools-836/ld64'
Makefile:325: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/vm/Documents/BSD_based/xnu-deps-linux/cctools-836'
Makefile:6: recipe for target 'all' failed
make: *** [all] Error 2

@odra
Copy link

odra commented Jun 7, 2016

Add this library in cctools-836/ld64/src/ld/code-sign-blobs/memutils.h:

#include <cstddef>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants