Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save MisesEnForce/3ece944fab28be85a04d to your computer and use it in GitHub Desktop.
Save MisesEnForce/3ece944fab28be85a04d to your computer and use it in GitHub Desktop.
lvm-ubuntu@lvmubuntu-VirtualBox:~/Desktop/iPad/cctools-source/cctools-port-master/cctools$ ./autogen.sh
libtoolize: putting auxiliary files in `.'.
libtoolize: copying file `./config.guess'
libtoolize: copying file `./config.sub'
libtoolize: copying file `./install-sh'
libtoolize: copying file `./ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'.
libtoolize: copying file `m4/libtool.m4'
libtoolize: copying file `m4/ltoptions.m4'
libtoolize: copying file `m4/ltsugar.m4'
libtoolize: copying file `m4/ltversion.m4'
libtoolize: copying file `m4/lt~obsolete.m4'
configure.ac:199: installing './compile'
configure.ac:189: installing './missing'
Makefile.am: installing './INSTALL'
lvm-ubuntu@lvmubuntu-VirtualBox:~/Desktop/iPad/cctools-source/cctools-port-master/cctools$ export CC="clang-3.7 -arch arm64"
lvm-ubuntu@lvmubuntu-VirtualBox:~/Desktop/iPad/cctools-source/cctools-port-master/cctools$ export CXX="clang++-3.7 -arch arm64"
lvm-ubuntu@lvmubuntu-VirtualBox:~/Desktop/iPad/cctools-source/cctools-port-master/cctools$ ./configure --prefix=/home/lvm-ubuntu/Desktop/iPad/cctools-produced/
--host=arm-apple-darwin11
checking build system type... x86_64-unknown-linux-gnu
checking host system type... arm-apple-darwin11
checking target system type... arm-apple-darwin11
clang is known to miscompile ld64 on arm platforms:
https://github.com/tpoechtrager/cctools-port/issues/1#issuecomment-59118615
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for arm-apple-darwin11-strip... no
checking for strip... strip
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether UID '1000' is supported by ustar format... yes
checking whether GID '1000' is supported by ustar format... 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 arm-apple-darwin11-gcc... clang-3.7 -arch arm64
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-3.7 -arch arm64 accepts -g... yes
checking for clang-3.7 -arch arm64 option to accept ISO C89... none needed
checking whether clang-3.7 -arch arm64 understands -c and -o together... yes
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-3.7 -arch arm64... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... no
checking for arm-apple-darwin11-dumpbin... no
checking for arm-apple-darwin11-link... no
checking for dumpbin... no
checking for link... link -dump
checking the name lister (nm) 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 arm-apple-darwin11 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 arm-apple-darwin11-objdump... no
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for arm-apple-darwin11-dlltool... no
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for arm-apple-darwin11-ar... no
checking for ar... ar
checking for archiver @FILE support... @
checking for arm-apple-darwin11-strip... strip
checking for arm-apple-darwin11-ranlib... no
checking for ranlib... ranlib
checking command to parse nm output from clang-3.7 -arch arm64 object... ok
checking for sysroot... no
checking for arm-apple-darwin11-mt... no
checking for mt... mt
checking if mt is a manifest tool... no
checking for arm-apple-darwin11-dsymutil... no
checking for dsymutil... no
checking for arm-apple-darwin11-nmedit... no
checking for nmedit... no
checking for arm-apple-darwin11-lipo... no
checking for lipo... no
checking for arm-apple-darwin11-otool... no
checking for otool... no
checking for arm-apple-darwin11-otool64... no
checking for otool64... no
checking for -single_module linker flag... no
checking for -exported_symbols_list linker flag... no
checking for -force_load linker flag... no
checking how to run the C preprocessor... clang-3.7 -arch arm64 -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-3.7 -arch arm64 supports -fno-rtti -fno-exceptions... yes
checking for clang-3.7 -arch arm64 option to produce PIC... -fno-common -DPIC
checking if clang-3.7 -arch arm64 PIC flag -fno-common -DPIC works... yes
checking if clang-3.7 -arch arm64 static flag -static works... yes
checking if clang-3.7 -arch arm64 supports -c -o file.o... yes
checking if clang-3.7 -arch arm64 supports -c -o file.o... (cached) yes
checking whether the clang-3.7 -arch arm64 linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... darwin11 dyld
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 for arm-apple-darwin11-clang... (cached) clang-3.7 -arch arm64
checking whether we are using the GNU C compiler... (cached) yes
checking whether clang-3.7 -arch arm64 accepts -g... (cached) yes
checking for clang-3.7 -arch arm64 option to accept ISO C89... (cached) none needed
checking whether clang-3.7 -arch arm64 understands -c and -o together... (cached) yes
checking whether we are using the GNU C++ compiler... yes
checking whether clang++-3.7 -arch arm64 accepts -g... yes
checking how to run the C++ preprocessor... clang++-3.7 -arch arm64 -E
checking for ld used by clang++-3.7 -arch arm64... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the clang++-3.7 -arch arm64 linker (/usr/bin/ld) supports shared libraries... yes
checking for clang++-3.7 -arch arm64 option to produce PIC... -fno-common -DPIC
checking if clang++-3.7 -arch arm64 PIC flag -fno-common -DPIC works... yes
checking if clang++-3.7 -arch arm64 static flag -static works... no
checking if clang++-3.7 -arch arm64 supports -c -o file.o... yes
checking if clang++-3.7 -arch arm64 supports -c -o file.o... (cached) yes
checking whether the clang++-3.7 -arch arm64 linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... darwin11 dyld
checking how to hardcode library paths into programs... immediate
checking for arm-apple-darwin11-clang... clang-3.7 -arch arm64
checking whether we are using the GNU Objective C compiler... yes
checking whether clang-3.7 -arch arm64 accepts -g... yes
checking for arm-apple-darwin11-ranlib... no
checking for ranlib... ranlib
checking for arm-apple-darwin11-ar... no
checking for ar... ar
checking for dlopen in -ldl... yes
checking for pthread_create in -lpthread... yes
checking execinfo.h usability... yes
checking execinfo.h presence... yes
checking for execinfo.h... yes
checking for backtrace in -lexecinfo... no
checking for uuid_generate_random in -luuid... yes
checking uuid/uuid.h usability... yes
checking uuid/uuid.h presence... yes
checking for uuid/uuid.h... yes
checking for strmode... no
checking for __cxa_demangle in -lc++abi... no
checking for __cxa_demangle in -lc++... no
checking for __cxa_demangle in -lsupc++... yes
checking whether clang-3.7 -arch arm64 supports -Wno-shift-negative-value... no
checking whether ld supports -rpath,<path>,--enable-new-dtags... yes
checking for llvm-config... /usr/bin/llvm-config
checking for lto_get_version in -lLTO... yes
checking for xar_prop_create in -lxar... no
checking whether byte ordering is bigendian... no
checking that generated files are newer than configure... done
configure: creating ./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 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: executing libtool commands
lvm-ubuntu@lvmubuntu-VirtualBox:~/Desktop/iPad/cctools-source/cctools-port-master/cctools$ make
Making all in libstuff
make[1]: Entering directory '/home/lvm-ubuntu/Desktop/iPad/cctools-source/cctools-port-master/cctools/libstuff'
/bin/bash ../libtool --tag=CC --mode=compile clang-3.7 -arch arm64 -DPACKAGE_NAME=\"cctools\" -DPACKAGE_TARNAME=\"cctools\" -DPACKAGE_VERSION=\"877.5\" -DPACKAGE_STRING=\"cctools\ 877.5\" -DPACKAGE_BUGREPORT=\"t.poechtrager@gmail.com\" -DPACKAGE_URL=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DEMULATED_HOST_CPU_TYPE=12 -DEMULATED_HOST_CPU_SUBTYPE=0 -D__STDC_LIMIT_MACROS=1 -D__STDC_CONSTANT_MACROS=1 -DHAVE_EXECINFO_H=1 -DHAVE_UUID_UUID_H=1 -I. -I../include -I../include/foreign -D__DARWIN_UNIX03 -Wall -Wno-long-long -Wno-import -Wno-format -Wno-deprecated -Wno-unused-variable -Wno-unused-private-field -Wno-unused-function -Wno-invalid-offsetof -Wno-int-conversion -Wno-char-subscripts -DLTO_SUPPORT -DPROGRAM_PREFIX="\"\"" -D__LITTLE_ENDIAN__=1 -O3 -D__arm__ -c -o libstuff_la-allocate.lo `test -f 'allocate.c' || echo './'`allocate.c
libtool: compile: clang-3.7 -arch arm64 -DPACKAGE_NAME=\"cctools\" -DPACKAGE_TARNAME=\"cctools\" -DPACKAGE_VERSION=\"877.5\" "-DPACKAGE_STRING=\"cctools 877.5\"" -DPACKAGE_BUGREPORT=\"t.poechtrager@gmail.com\" -DPACKAGE_URL=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DEMULATED_HOST_CPU_TYPE=12 -DEMULATED_HOST_CPU_SUBTYPE=0 -D__STDC_LIMIT_MACROS=1 -D__STDC_CONSTANT_MACROS=1 -DHAVE_EXECINFO_H=1 -DHAVE_UUID_UUID_H=1 -I. -I../include -I../include/foreign -D__DARWIN_UNIX03 -Wall -Wno-long-long -Wno-import -Wno-format -Wno-deprecated -Wno-unused-variable -Wno-unused-private-field -Wno-unused-function -Wno-invalid-offsetof -Wno-int-conversion -Wno-char-subscripts -DLTO_SUPPORT -DPROGRAM_PREFIX=\"\" -D__LITTLE_ENDIAN__=1 -O3 -D__arm__ -c allocate.c -fno-common -DPIC -o .libs/libstuff_la-allocate.o
clang: warning: argument unused during compilation: '-arch arm64'
In file included from allocate.c:26:
In file included from ../include/foreign/mach/mach.h:67:
In file included from ../include/foreign/mach/mach_interface.h:42:
In file included from ../include/foreign/mach/clock_priv.h:7:
In file included from ../include/foreign/mach/ndr.h:106:
In file included from ../include/foreign/libkern/OSByteOrder.h:33:
In file included from ../include/foreign/libkern/_OSByteOrder.h:70:
../include/foreign/libkern/arm/OSByteOrder.h:11:10: error: redefinition of
'_OSSwapInt16'
uint16_t _OSSwapInt16(uint16_t data)
^
../include/foreign/libkern/i386/_OSByteOrder.h:46:1: note: previous definition
is here
_OSSwapInt16(
^
In file included from allocate.c:26:
In file included from ../include/foreign/mach/mach.h:67:
In file included from ../include/foreign/mach/mach_interface.h:42:
In file included from ../include/foreign/mach/clock_priv.h:7:
In file included from ../include/foreign/mach/ndr.h:106:
In file included from ../include/foreign/libkern/OSByteOrder.h:33:
In file included from ../include/foreign/libkern/_OSByteOrder.h:70:
../include/foreign/libkern/arm/OSByteOrder.h:17:10: error: redefinition of
'_OSSwapInt32'
uint32_t _OSSwapInt32(uint32_t data)
^
../include/foreign/libkern/i386/_OSByteOrder.h:55:1: note: previous definition
is here
_OSSwapInt32(
^
In file included from allocate.c:26:
In file included from ../include/foreign/mach/mach.h:67:
In file included from ../include/foreign/mach/mach_interface.h:42:
In file included from ../include/foreign/mach/clock_priv.h:7:
In file included from ../include/foreign/mach/ndr.h:106:
In file included from ../include/foreign/libkern/OSByteOrder.h:33:
In file included from ../include/foreign/libkern/_OSByteOrder.h:70:
../include/foreign/libkern/arm/OSByteOrder.h:23:10: error: redefinition of
'_OSSwapInt64'
uint64_t _OSSwapInt64(uint64_t data)
^
../include/foreign/libkern/i386/_OSByteOrder.h:70:1: note: previous definition
is here
_OSSwapInt64(
^
In file included from allocate.c:26:
In file included from ../include/foreign/mach/mach.h:67:
In file included from ../include/foreign/mach/mach_interface.h:42:
In file included from ../include/foreign/mach/clock_priv.h:7:
In file included from ../include/foreign/mach/ndr.h:106:
In file included from ../include/foreign/libkern/OSByteOrder.h:45:
../include/foreign/libkern/i386/OSByteOrder.h:43:1: error: redefinition of
'OSReadSwapInt16'
OSReadSwapInt16(
^
../include/foreign/libkern/arm/OSByteOrder.h:58:1: note: previous definition is
here
OSReadSwapInt16(
^
In file included from allocate.c:26:
In file included from ../include/foreign/mach/mach.h:67:
In file included from ../include/foreign/mach/mach_interface.h:42:
In file included from ../include/foreign/mach/clock_priv.h:7:
In file included from ../include/foreign/mach/ndr.h:106:
In file included from ../include/foreign/libkern/OSByteOrder.h:45:
../include/foreign/libkern/i386/OSByteOrder.h:56:1: error: redefinition of
'OSReadSwapInt32'
OSReadSwapInt32(
^
../include/foreign/libkern/arm/OSByteOrder.h:71:1: note: previous definition is
here
OSReadSwapInt32(
^
In file included from allocate.c:26:
In file included from ../include/foreign/mach/mach.h:67:
In file included from ../include/foreign/mach/mach_interface.h:42:
In file included from ../include/foreign/mach/clock_priv.h:7:
In file included from ../include/foreign/mach/ndr.h:106:
In file included from ../include/foreign/libkern/OSByteOrder.h:45:
../include/foreign/libkern/i386/OSByteOrder.h:69:1: error: redefinition of
'OSReadSwapInt64'
OSReadSwapInt64(
^
../include/foreign/libkern/arm/OSByteOrder.h:84:1: note: previous definition is
here
OSReadSwapInt64(
^
In file included from allocate.c:26:
In file included from ../include/foreign/mach/mach.h:67:
In file included from ../include/foreign/mach/mach_interface.h:42:
In file included from ../include/foreign/mach/clock_priv.h:7:
In file included from ../include/foreign/mach/ndr.h:106:
In file included from ../include/foreign/libkern/OSByteOrder.h:45:
../include/foreign/libkern/i386/OSByteOrder.h:84:1: error: redefinition of
'OSWriteSwapInt16'
OSWriteSwapInt16(
^
../include/foreign/libkern/arm/OSByteOrder.h:99:1: note: previous definition is
here
OSWriteSwapInt16(
^
In file included from allocate.c:26:
In file included from ../include/foreign/mach/mach.h:67:
In file included from ../include/foreign/mach/mach_interface.h:42:
In file included from ../include/foreign/mach/clock_priv.h:7:
In file included from ../include/foreign/mach/ndr.h:106:
In file included from ../include/foreign/libkern/OSByteOrder.h:45:
../include/foreign/libkern/i386/OSByteOrder.h:95:1: error: redefinition of
'OSWriteSwapInt32'
OSWriteSwapInt32(
^
../include/foreign/libkern/arm/OSByteOrder.h:110:1: note: previous definition is
here
OSWriteSwapInt32(
^
In file included from allocate.c:26:
In file included from ../include/foreign/mach/mach.h:67:
In file included from ../include/foreign/mach/mach_interface.h:42:
In file included from ../include/foreign/mach/clock_priv.h:7:
In file included from ../include/foreign/mach/ndr.h:106:
In file included from ../include/foreign/libkern/OSByteOrder.h:45:
../include/foreign/libkern/i386/OSByteOrder.h:106:1: error: redefinition of
'OSWriteSwapInt64'
OSWriteSwapInt64(
^
../include/foreign/libkern/arm/OSByteOrder.h:121:1: note: previous definition is
here
OSWriteSwapInt64(
^
9 errors generated.
Makefile:446: recipe for target 'libstuff_la-allocate.lo' failed
make[1]: *** [libstuff_la-allocate.lo] Error 1
make[1]: Leaving directory '/home/lvm-ubuntu/Desktop/iPad/cctools-source/cctools-port-master/cctools/libstuff'
Makefile:410: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment