Giter VIP home page Giter VIP logo

cctools-port's People

Contributors

abrodkin avatar delroth avatar ericson2314 avatar erykoff avatar fanquake avatar flow86 avatar froydnj avatar gabriella439 avatar glandium avatar h-vetinari avatar isuruf avatar jprjr avatar katietz avatar keno avatar lephilousophe avatar lordhoto avatar matthewbauer avatar mstorsjo avatar sbingner avatar sezero avatar stephank avatar sthalik avatar theuni avatar timgates42 avatar tpoechtrager avatar un1q32 avatar wolfv avatar xvilka avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cctools-port's Issues

Build failed on Cygwin

Hi, I tried building the cctools , but when I run make it fails at this point

make[1]: Entering directory '/home/Damilare/cctools-port/cctools/libobjc2'
/bin/sh ../libtool    --mode=compile gcc -DPACKAGE_NAME=\"cctools\" -DPACKAGE_TARNAME=\"cctools\" -DPACKAGE_VERSION=\"877.5\" -DPACKAGE_STRING=\"cctools\ 877.5\" -DPACKAGE_BUGREPORT=\"[email protected]\" -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_UUID_UUID_H=1 -I.  -DTYPE_DEPENDENT_DISPATCH -DGNUSTEP -D__OBJC_RUNTIME_INTERNAL__=1 -D_XOPEN_SOURCE=500 -D__BSD_VISIBLE=1 -D_DEFAULT_SOURCE=1 -DNO_SELECTOR_MISMATCH_WARNINGS  -std=gnu99 -Wall -O3 -D__LARGE64_FILES -fno-PIC -c -o libobjc_la-NSBlocks.lo `test -f 'NSBlocks.m' || echo './'`NSBlocks.m
libtool: compile:  gcc -DPACKAGE_NAME=\"cctools\" -DPACKAGE_TARNAME=\"cctools\" -DPACKAGE_VERSION=\"877.5\" "-DPACKAGE_STRING=\"cctools 877.5\"" -DPACKAGE_BUGREPORT=\"[email protected]\" -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_UUID_UUID_H=1 -I. -DTYPE_DEPENDENT_DISPATCH -DGNUSTEP -D__OBJC_RUNTIME_INTERNAL__=1 -D_XOPEN_SOURCE=500 -D__BSD_VISIBLE=1 -D_DEFAULT_SOURCE=1 -DNO_SELECTOR_MISMATCH_WARNINGS -std=gnu99 -Wall -O3 -D__LARGE64_FILES -fno-PIC -c NSBlocks.m  -DDLL_EXPORT -DPIC -o .libs/libobjc_la-NSBlocks.o
gcc: error: spawn: No such file or directory
Makefile:545: recipe for target 'libobjc_la-NSBlocks.lo' failed
make[1]: *** [libobjc_la-NSBlocks.lo] Error 1
make[1]: Leaving directory '/home/Damilare/cctools-port/cctools/libobjc2'
Makefile:402: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1

No LICENSE file

Hello! I noticed that there's currently no LICENSE file, would you mind adding one or at least linking to a license in your README?

Getting unknown ld command 8 in Mojave

With cctools 895, I get this on one of the bundled binaries:

$ nix run nixpkgs.darwin.cctools -c nm /usr/lib/libxcselect.dylib
nm: object: /usr/lib/libxcselect.dylib malformed object (unknown load command 8)

I wonder if Apple changed something in the Mach-O format?

/cc @Ericson2314

[ios]compile ios compilation chain, no such sysroot error.

clang-9: warning: no such sysroot directory: '/root/cctools-port/usage_examples/ios_toolchain/target/bin/../SDK/iPhoneOS*sdk' [-Wmissing-sysroot]
ld: library not found for -lSystem
clang-9: error: linker command failed with exit code 1 (use -v to see invocation)

env: docker ubuntu 16.04
compiled command :

# export IPHONEOS_DEPLOYMENT_TARGET=13.1
# ./build.sh /root/iPhoneOS13.1.sdk.tar.gz arm64

iPhoneOS13.1.sdk.tar.gz exists

# ls /root
SDK  apple-libtapi  cctools-port  iPhoneOS13.1.sdk.tar.gz  llvm  llvmbuild
#

check the path:

# ls /root/cctools-port/usage_examples/ios_toolchain/target/SDK/
Entitlements.plist  SDKSettings.json  SDKSettings.plist  System  usr
# 

It seems that the compressed package is directly decompressed and the path is incorrect. I manually added the iPhone13.1.sdk directory and it was unsuccessful.

libobjc build on darwin?

I noticed that on darwin, the build process skips libobjc. When I tried turning it back on (I can't rely on system install for various reasons) I got all sorts of assembly syntax errors. Any pointers on what's standing in the way of that?

debug builds

When I tried to build debug builds with clang-3.5 it complained that cant find dsymutil. And back then I couldn't find dsymutil port for linux that will work for me. Now I discovered that clang-3.7 has some llvm-dsymutil, I made symlink /usr/bin/dsymutil => llvm-dsymutil

And now I am getting following error once any -g flag e.g -g3 present

vagrant@30a2df1550ea:/vagrant/target/ios/arm-apple-darwin/armv7/debug/ambrosia_adapters/tmp$ /vagrant/target/native/release/apple_cctools/arm-apple-darwin/usr/bin/arm-apple-darwin-clang -DHAVE_CONFIG_H  -miphoneos-version-min=7.1 -target arm-apple-darwin -arch armv7 -pipe -isysroot /home/vagrant/SDKs/iOS/iPhoneOS7.1.sdk -stdlib=libstdc++ -isystem /home/vagrant/SDKs/iOS/iPhoneOS7.1.sdk/usr/include/c++/4.2.1 -O0 -g ./conftest.c 
error: failed to compute relocation: ARM_RELOC_VANILLA
error: failed to compute relocation: ARM_RELOC_VANILLA
error: failed to compute relocation: ARM_RELOC_VANILLA
error: failed to compute relocation: ARM_RELOC_VANILLA
error: failed to compute relocation: ARM_RELOC_VANILLA

If somebody can help me, I'll be happy :-)

ld can't find libtapi.so

While cross-compiling for iOS on Linux I get the following error:

/home/travis/ioscross-target/usr/bin/arm-apple-darwin11-clang++ -o bin/godot.iphone.debug.arm -arch armv7 -Wl,-dead_strip -miphoneos-version-min=7.0 -isysroot /home/travis/ioscross-target/target/SDK/iPhoneOS9.3.sdk -framework Foundation -framework UIKit -framework CoreGraphics -framework OpenGLES -framework QuartzCore -framework CoreAudio -framework AudioToolbox -framework SystemConfiguration -framework Security -framework MediaPlayer -framework AVFoundation -framework CoreMedia -framework CoreMotion -framework GameController -framework GameKit -framework StoreKit -Wl,-rpath-link,/home/travis/ioscross-target/target/lib -Wl,--rpath-link /home/travis/ioscross-target/target/lib -L/home/travis/ioscross-target/target/lib platform/iphone/godot_iphone.iphone.debug.arm.o platform/iphone/os_iphone.iphone.debug.arm.o platform/iphone/audio_driver_iphone.iphone.debug.arm.o platform/iphone/sem_iphone.iphone.debug.arm.o platform/iphone/gl_view.iphone.debug.arm.o platform/iphone/main.iphone.debug.arm.o platform/iphone/app_delegate.iphone.debug.arm.o platform/iphone/view_controller.iphone.debug.arm.o platform/iphone/game_center.iphone.debug.arm.o platform/iphone/in_app_store.iphone.debug.arm.o platform/iphone/icloud.iphone.debug.arm.o platform/iphone/ios.iphone.debug.arm.o -L/home/travis/ioscross-target/target/lib main/libmain.iphone.debug.arm.a main/tests/libtests.iphone.debug.arm.a modules/libmodules.iphone.debug.arm.a drivers/libdrivers.iphone.debug.arm.a scene/libscene.iphone.debug.arm.a servers/libservers.iphone.debug.arm.a core/libcore.iphone.debug.arm.a modules/freetype/libfreetype_builtin.iphone.debug.arm.a
/home/travis/ioscross-target/usr/bin/arm-apple-darwin11-ld: error while loading shared libraries: libtapi.so: cannot open shared object file: No such file or directory
clang-3.9: error: unable to execute command: No such file or directory
clang-3.9: error: linker command failed due to signal (use -v to see invocation)
scons: *** [bin/godot.iphone.debug.arm] Error 255
scons: building terminated because of errors.

I think Scons is not executing ld but maybe it's being invoked by clang itself. I tried passing -Wl,-rpath-link and exporting LD_LIBRARY_PATH and DYLD_LIBRARY_PATH with the path to libtapi.so but I'm still getting the error.

Where is ld searching for shared libraries on Linux and how can I add a custom path to the search list?

Unable to create target

After I finally got all dependencies compiled including cctools, I am getting this error

 ./arm-apple-darwin11-clang ../../test.c -arch arm64 -c
error: unable to create target: 'No available targets are compatible with this triple.'
1 error generated.

Problem while building on MacOS

I attempt to build cctools for my iOS Application supporting OpenMP feature.

1、install llvm-6.0.1 from brew (brew install llvm)
2、download cctools-port from git and extract
3、simply run "IPHONEOS_DEPLOYMENT_TARGET=8.0 JOBS=4 usage_examples/ios_toolchain/build.sh ~/iPhoneOS11.0.sdk.tar.gz armv7"

After solving a little bit problem,when building apple-libtapi,i got warnings when finished:

ld: warning: cannot export hidden symbol void tapi::v1::LinkerInterfaceFile::Impl::addSymboltapi::v1::Symbol(tapi::v1::Symbol&&, tapi::v1::PackedVersion32) from CMakeFiles/libtapi.dir/LinkerInterfaceFile.cpp.o
ld: warning: cannot export hidden symbol tapi::v1::LinkerInterfaceFile::Impl::~Impl() from CMakeFiles/libtapi.dir/LinkerInterfaceFile.cpp.o

and then when building cctools,it occurs:

ld: warning: directory not found for option '-L/usr/pkg/lib'
make[3]: Nothing to be done for 'all-am'
make[2]: Nothing to be done for 'all-am'
make[1]: Nothing to be done for 'all-am'

macOS High Sierra,Xcode9.4.1 ,llvm-6.0.1. Somebody help...

By the way,it is really a great job

error: Unsupported architecture

Hello,

I have finished setting up cross-compiling for iOS on ubuntu from Xcode_7.3 (but it's failed with xcode 8.3). I could compile some projects but I encountered the following error when building my project with cmake and arch arm64:
...../SDK/iPhoneOS9.3.sdk/usr/include/sys/cdefs.h:707:2: error: Unsupported architecture
Could you explain and help me fix it?

Thanks!

Toolchain points to the wrong ldid executable

How do I fix this?
Toolchain is trying to use the ldid.exe that came along with cygwin64, do you have any idea how I can correct this?

      6 [main] ldid (12968) C:\cygwin64\bin\ldid.exe: *** fatal error - cygheap base mismatch detected - 0x1802F3408/0x180304408.
This problem is probably due to using incompatible versions of the cygwin DLL.
Search for cygwin1.dll using the Windows Start->Find/Search facility
and delete all but the most recent version.  The most recent version *should*
reside in x:\cygwin\bin, where 'x' is the drive on which you have
installed the cygwin distribution.  Rebooting is also suggested if you
are unable to find another cygwin DLL.

arm64 support

I am trying to build cctools for arm64 under Fedora Linux

./configure --target=arm64-apple-darwin
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... Invalid configuration arm64-apple-darwin': machinearm64-apple' not recognized
configure: error: /bin/sh ./config.sub arm64-apple-darwin failed

Maybe you know what can cause this issue?

IOS11 SDK problem

On Linux llvm5.0 and clang5.0, generate iOS tool chain.
I did this:
$ IPHONEOS_DEPLOYMENT_TARGET=5.0 usage_examples/ios_toolchain/build.sh ~/iPhoneSDK/iPhoneOS11.1.sdk.tar.gz arm64

The result is as follows:
error: unable to create target: 'No available targets are compatible with this triple.' 1 error generated.

Usage example

It is not exactly a issue, is more a begginer request.

Could be nice have some usage example with a 'hello world' or a start point. I have compiled in Arch Linux i686 system and now i want make a 'hello world' to run on iPhone 3G but i don´t know how start it or where see an example.

Could anyone put me in correct way please?

Thanks in advance!

build c++11 code

Hello

I am trying to build c++11 code I am getting following errors:

/vagrant/target/native/release/apple_cctools/arm-apple-darwin/usr/bin/arm-apple-darwin-clang++ -DHAVE_CONFIG_H -I/vagrant/base/log4cplus/include -I/vagrant/base/log4cplus/threadpool -I./include -I/vagrant/base/log4cplus/catch/single_include -DCATCH_CONFIG_PREFIX_ALL=1 -DNDEBUG -DINSIDE_LOG4CPLUS -miphoneos-version-min=7.1 -target arm-apple-darwin -arch arm64 -pipe -isysroot /home/vagrant/SDKs/iOS/iPhoneOS7.1.sdk -stdlib=libstdc++ -I/home/vagrant/SDKs/iOS/iPhoneOS7.1.sdk/usr/include/c++/4.2.1 -D_GNU_SOURCE=1 -D_REENTRANT -I/home/vagrant/SDKs/iOS/iPhoneOS7.1.sdk/usr/include/c++/4.2.1 -std=gnu++11 -Wall -fdiagnostics-color=auto -Wextra -pedantic -Wstrict-aliasing -Wstrict-overflow -Woverloaded-virtual -Wold-style-cast -Wc++14-compat -Wundef -Wshadow -Wformat -Wno-variadic-macros -O2 -fvisibility=hidden -D_THREAD_SAFE -MT src/liblog4cplus_la-appender.lo -MD -MP -MF src/.deps/liblog4cplus_la-appender.Tpo -c /vagrant/base/log4cplus/src/appender.cxx  -fno-common -DPIC -o src/liblog4cplus_la-appender.o
...
/vagrant/base/log4cplus/include/log4cplus/tstring.h:71:17: error: no member named 'move' in namespace 'std'
    return std::move (str);
...
/vagrant/base/log4cplus/include/log4cplus/helpers/timehelper.h:40:10: fatal error: 'chrono' file not found
...

I am using clang 3.5, which supports c++11

ls -l /vagrant/target/native/release/apple_cctools/arm-apple-darwin/usr/bin/arm-apple-darwin-clang++
lrwxrwxrwx. 1 vagrant vagrant 20 Dec 16 07:55 /vagrant/target/native/release/apple_cctools/arm-apple-darwin/usr/bin/arm-apple-darwin-clang++ -> /usr/bin/clang++-3.5

Maybe someone encountered the similar issue?

First-class support for compiling on darwin?

I've had to hack it up a fair amount to get it to build. Main motivation over the official apple release is that you've taken care of putting in a configure script, more conventional flags, and all that other good stuff 😄 Have you considered that? It feels a bit ironic that I'm hacking your cctools up to build on darwin!

Great work, by the way. This is hugely useful (after my hacks) for my plans of world domination.

About the IOS toolchain build.sh

I get this error when it starts to check the toolchain:

ld: file too small (length=15) file '/opt/theos/toolchain/linux/iphone/bin/cctools-port/usage_examples/ios_toolchain/target/bin/../SDK/iPhoneOS10.3.sdk/usr/lib/libSystem.tbd' for architecture arm64
clang-4.0: error: linker command failed with exit code 1 (use -v to see invocation)

cannot invoke compiler!

I've just successfully built the ios_toolchain with the iPhoneSDK from Xcode 9.1 following this tutorial: http://docs.godotengine.org/en/stable/development/compiling/cross-compiling_for_ios_on_linux.html

However, after finishing, I get a cannot invoke compiler!.

The MD5 of my iPhoneOS9.1.sdk.tar.xz file is 73f09280e41efb6b4583fab53cc7787b

Built with ~/manual-software/cctools-port/usage_examples/ios_toolchain$ ./build.sh ~/manual-software/iPhoneSDK/iPhoneOS9.1.sdk.tar.xz armv7

build.log

errors while building ar

Hey there!
When trying to compile the toolchain, I get the following errors:

ar-ar.o: In function `main':
ar.c:(.text+0x34f): undefined reference to `get_unix_standard_mode'
ar.c:(.text+0x36b): undefined reference to `reset_execute_list'
ar.c:(.text+0x375): undefined reference to `add_execute_list_with_prefix'
ar.c:(.text+0x388): undefined reference to `add_execute_list'
ar.c:(.text+0x3a0): undefined reference to `add_execute_list'
ar.c:(.text+0x3af): undefined reference to `add_execute_list'
ar.c:(.text+0x3bb): undefined reference to `add_execute_list'
ar.c:(.text+0x3c2): undefined reference to `execute_list'
ar-contents.o: In function `contents':
contents.c:(.text+0x9b): undefined reference to `strmode'
contents.c:(.text+0x14b): undefined reference to `strmode'
/usr/bin/ld: ar: hidden symbol `reset_execute_list' isn't defined
/usr/bin/ld: final link failed: Bad value

Here is the command I'm using:
./build.sh ~/Desktop/iPhoneOS9.2SDK.tar.gz armv7s

arm64 fails for building with iOS SDK

I have gone through build for ios example.
At last part, test can not pass (using Ubuntu 14.04):

*** checking toolchain ***

clang: error: invalid arch name '-arch arm64'

Both tried with iOS SDK 8.3 and 8.4, perhaps it is a wrapper issue?

ld64 + thin-lto wrongfully merges static data with non-static data

Consider the following testcase:

$ cat <<EOF > a.c
static const char foo[] = "foo";

char get_foo(int i) {
    return foo[i];
}
EOF
$ cat <<EOF > b.c
const char foo[] = "bar";

char get_foo2(int i) {
  return foo[i];
}
EOF
$ /builds/worker/workspace/build/src/clang/bin/clang -target x86_64-apple-darwin11 -B /builds/worker/workspace/build/src/cctools/bin -isysroot /builds/worker/workspace/build/src/MacOSX10.11.sdk -flto=thin -o libfoo.dylib -shared -fPIC [ab].c
$ /builds/worker/workspace/build/src/clang/bin/llvm-objdump -s libfoo.dylib

libfoo.dylib:   file format Mach-O 64-bit x86-64

Contents of section __text:
 0f70 554889e5 488d052d 00000089 7dfc4863  UH..H..-....}.Hc
 0f80 4dfc0fbe 04085dc3 90909090 90909090  M.....].........
 0f90 554889e5 488d050d 00000089 7dfc4863  UH..H.......}.Hc
 0fa0 4dfc0fbe 04085dc3                    M.....].
Contents of section __const:
 0fa8 62617200                             bar.
Contents of section __unwind_info:
 0fac 01000000 1c000000 00000000 1c000000  ................
 0fbc 00000000 1c000000 02000000 700f0000  ............p...
 0fcc 34000000 34000000 a90f0000 00000000  4...4...........
 0fdc 34000000 03000000 0c000100 10000100  4...............
 0fec 00000000 00000001                    ........

See how there is no data section containing the "foo" string, because it was "merged" with the "bar" string.

Interestingly, this does not happen with full lto:

$ /builds/worker/workspace/build/src/clang/bin/clang -target x86_64-apple-darwin11 -B /builds/worker/workspace/build/src/cctools/bin -isysroot /builds/worker/workspace/build/src/MacOSX10.11.sdk -flto -o libfoo.dylib -shared -fPIC [ab].c
$ /builds/worker/workspace/build/src/clang/bin/llvm-objdump -s libfoo.dylib

libfoo.dylib:   file format Mach-O 64-bit x86-64

Contents of section __text:
 0f70 554889e5 488d0531 00000089 7dfc4863  UH..H..1....}.Hc
 0f80 4dfc0fbe 04085dc3 0f1f8400 00000000  M.....].........
 0f90 554889e5 488d050d 00000089 7dfc4863  UH..H.......}.Hc
 0fa0 4dfc0fbe 04085dc3                    M.....].
Contents of section __const:
 0fa8 62617200                             bar.
Contents of section __cstring:
 0fac 666f6f00                             foo.
Contents of section __unwind_info:
 0fb0 01000000 1c000000 00000000 1c000000  ................
 0fc0 00000000 1c000000 02000000 700f0000  ............p...
 0fd0 34000000 34000000 a90f0000 00000000  4...4...........
 0fe0 34000000 03000000 0c000100 10000100  4...............
 0ff0 00000000 00000001                    ........

IOS10 sdk problem

root@siggi:~/Desktop/cctools-port-master-3/usage_examples/ios_toolchain# ./build.sh /root/Desktop/cctools-port-master-3/usage_examples/ios_toolchain/iPhoneOS10.0.sdk.tar.gz arm64

*** extracting SDK ***

extracting iPhoneOS10.0.sdk.tar.gz ...

*** building wrapper ***

cc -O2 -Wall -Wextra -pedantic wrapper.c -DTARGET_CPU=""arm64"" -DOS_VER_MIN=""0.0"" -o /root/Desktop/cctools-port-master-3/usage_examples/ios_toolchain/target/bin/arm-apple-darwin11-clang
ln -sf arm-apple-darwin11-clang arm-apple-darwin11-clang++

*** building ldid ***

Cloning into 'ldid'...
remote: Counting objects: 397, done.
remote: Total 397 (delta 0), reused 0 (delta 0), pack-reused 397
Receiving objects: 100% (397/397), 117.15 KiB | 0 bytes/s, done.
Resolving deltas: 100% (237/237), done.
Checking connectivity... done.
g++ -std=c++0x -O2 -I. -Wall -Wextra -Wno-unused-parameter -Wno-unused-function -Wno-sign-compare -DLDID_NOPLIST -c -o ldid.o ldid.cpp
cc -O2 -I. -Wall -Wextra -Wno-unused-parameter -Wno-unused-function -Wno-sign-compare -DLDID_NOPLIST -c -o lookup2.o lookup2.c
ldid.cpp:1813:18: warning: 'template class std::auto_ptr' is deprecated [-Wdeprecated-declarations]
mutable std::auto_ptr regex_;
^~~~~~~~
In file included from /usr/include/c++/6/memory:81:0,
from ldid.cpp:27:
/usr/include/c++/6/bits/unique_ptr.h:49:28: note: declared here
template class auto_ptr;
^~~~~~~~
g++ -O2 -I. -Wall -Wextra -Wno-unused-parameter -Wno-unused-function -Wno-sign-compare -DLDID_NOPLIST -o ldid ldid.o lookup2.o -lcrypto
mkdir -p /root/Desktop/cctools-port-master-3/usage_examples/ios_toolchain/target/bin
cp ldid /root/Desktop/cctools-port-master-3/usage_examples/ios_toolchain/target/bin

*** building cctools / ld64 ***

checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-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... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether UID '0' is supported by ustar format... yes
checking whether GID '0' 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 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 whether clang 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... /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 how to convert i686-pc-linux-gnu file names to i686-pc-linux-gnu format... func_convert_file_noop
checking how to convert i686-pc-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 a working dd... /bin/dd
checking how to truncate binary pipes... /bin/dd bs=4096 count=1
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) 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 whether clang understands -c and -o together... (cached) yes
checking whether we are using the GNU C++ compiler... yes
checking whether clang++ accepts -g... yes
checking how to run the C++ preprocessor... clang++ -E
checking for ld used by clang++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the clang++ linker (/usr/bin/ld) 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) supports shared libraries... yes
checking dynamic linker characteristics... (cached) GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether we are using the GNU Objective C compiler... yes
checking whether clang accepts -g... yes
checking for ranlib... ranlib
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... no
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 supports -Wno-shift-negative-value... no
checking whether ld supports -rpath,,--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... yes
checking xar/xar.h usability... yes
checking xar/xar.h presence... yes
checking for xar/xar.h... yes
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 libobjc2/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
Making all in libstuff
make[1]: Entering directory '/root/Desktop/cctools-port-master-3/cctools/libstuff'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/root/Desktop/cctools-port-master-3/cctools/libstuff'
Making all in ar
make[1]: Entering directory '/root/Desktop/cctools-port-master-3/cctools/ar'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/root/Desktop/cctools-port-master-3/cctools/ar'
Making all in as
make[1]: Entering directory '/root/Desktop/cctools-port-master-3/cctools/as'
Making all in arm
make[2]: Entering directory '/root/Desktop/cctools-port-master-3/cctools/as/arm'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/root/Desktop/cctools-port-master-3/cctools/as/arm'
Making all in i386
make[2]: Entering directory '/root/Desktop/cctools-port-master-3/cctools/as/i386'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/root/Desktop/cctools-port-master-3/cctools/as/i386'
Making all in x86_64
make[2]: Entering directory '/root/Desktop/cctools-port-master-3/cctools/as/x86_64'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/root/Desktop/cctools-port-master-3/cctools/as/x86_64'
Making all in ppc
make[2]: Entering directory '/root/Desktop/cctools-port-master-3/cctools/as/ppc'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/root/Desktop/cctools-port-master-3/cctools/as/ppc'
Making all in ppc64
make[2]: Entering directory '/root/Desktop/cctools-port-master-3/cctools/as/ppc64'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/root/Desktop/cctools-port-master-3/cctools/as/ppc64'
make[2]: Entering directory '/root/Desktop/cctools-port-master-3/cctools/as'
make[2]: Nothing to be done for 'all-am'.
make[2]: Leaving directory '/root/Desktop/cctools-port-master-3/cctools/as'
make[1]: Leaving directory '/root/Desktop/cctools-port-master-3/cctools/as'
Making all in misc
make[1]: Entering directory '/root/Desktop/cctools-port-master-3/cctools/misc'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/root/Desktop/cctools-port-master-3/cctools/misc'
Making all in libobjc2
make[1]: Entering directory '/root/Desktop/cctools-port-master-3/cctools/libobjc2'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/root/Desktop/cctools-port-master-3/cctools/libobjc2'
Making all in otool
make[1]: Entering directory '/root/Desktop/cctools-port-master-3/cctools/otool'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/root/Desktop/cctools-port-master-3/cctools/otool'
Making all in ld64
make[1]: Entering directory '/root/Desktop/cctools-port-master-3/cctools/ld64'
Making all in src
make[2]: Entering directory '/root/Desktop/cctools-port-master-3/cctools/ld64/src'
Making all in 3rd
make[3]: Entering directory '/root/Desktop/cctools-port-master-3/cctools/ld64/src/3rd'
Making all in BlocksRuntime
make[4]: Entering directory '/root/Desktop/cctools-port-master-3/cctools/ld64/src/3rd/BlocksRuntime'
make[4]: Nothing to be done for 'all'.
make[4]: Leaving directory '/root/Desktop/cctools-port-master-3/cctools/ld64/src/3rd/BlocksRuntime'
make[4]: Entering directory '/root/Desktop/cctools-port-master-3/cctools/ld64/src/3rd'
make[4]: Nothing to be done for 'all-am'.
make[4]: Leaving directory '/root/Desktop/cctools-port-master-3/cctools/ld64/src/3rd'
make[3]: Leaving directory '/root/Desktop/cctools-port-master-3/cctools/ld64/src/3rd'
Making all in ld
make[3]: Entering directory '/root/Desktop/cctools-port-master-3/cctools/ld64/src/ld'
Making all in parsers
make[4]: Entering directory '/root/Desktop/cctools-port-master-3/cctools/ld64/src/ld/parsers'
make[4]: Nothing to be done for 'all'.
make[4]: Leaving directory '/root/Desktop/cctools-port-master-3/cctools/ld64/src/ld/parsers'
Making all in passes
make[4]: Entering directory '/root/Desktop/cctools-port-master-3/cctools/ld64/src/ld/passes'
make[4]: Nothing to be done for 'all'.
make[4]: Leaving directory '/root/Desktop/cctools-port-master-3/cctools/ld64/src/ld/passes'
make[4]: Entering directory '/root/Desktop/cctools-port-master-3/cctools/ld64/src/ld'
make[4]: Nothing to be done for 'all-am'.
make[4]: Leaving directory '/root/Desktop/cctools-port-master-3/cctools/ld64/src/ld'
make[3]: Leaving directory '/root/Desktop/cctools-port-master-3/cctools/ld64/src/ld'
Making all in other
make[3]: Entering directory '/root/Desktop/cctools-port-master-3/cctools/ld64/src/other'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/root/Desktop/cctools-port-master-3/cctools/ld64/src/other'
make[3]: Entering directory '/root/Desktop/cctools-port-master-3/cctools/ld64/src'
make[3]: Nothing to be done for 'all-am'.
make[3]: Leaving directory '/root/Desktop/cctools-port-master-3/cctools/ld64/src'
make[2]: Leaving directory '/root/Desktop/cctools-port-master-3/cctools/ld64/src'
make[2]: Entering directory '/root/Desktop/cctools-port-master-3/cctools/ld64'
make[2]: Nothing to be done for 'all-am'.
make[2]: Leaving directory '/root/Desktop/cctools-port-master-3/cctools/ld64'
make[1]: Leaving directory '/root/Desktop/cctools-port-master-3/cctools/ld64'
make[1]: Entering directory '/root/Desktop/cctools-port-master-3/cctools'
make[1]: Nothing to be done for 'all-am'.
make[1]: Leaving directory '/root/Desktop/cctools-port-master-3/cctools'
Making install in libstuff
make[1]: Entering directory '/root/Desktop/cctools-port-master-3/cctools/libstuff'
make[2]: Entering directory '/root/Desktop/cctools-port-master-3/cctools/libstuff'
make[2]: Nothing to be done for 'install-exec-am'.
make[2]: Nothing to be done for 'install-data-am'.
make[2]: Leaving directory '/root/Desktop/cctools-port-master-3/cctools/libstuff'
make[1]: Leaving directory '/root/Desktop/cctools-port-master-3/cctools/libstuff'
Making install in ar
make[1]: Entering directory '/root/Desktop/cctools-port-master-3/cctools/ar'
make[2]: Entering directory '/root/Desktop/cctools-port-master-3/cctools/ar'
/bin/mkdir -p '/root/Desktop/cctools-port-master-3/usage_examples/ios_toolchain/target/bin'
/bin/bash ../libtool --mode=install /usr/bin/install -c ar '/root/Desktop/cctools-port-master-3/usage_examples/ios_toolchain/target/bin/./arm-apple-darwin11-ar'
libtool: install: /usr/bin/install -c ar /root/Desktop/cctools-port-master-3/usage_examples/ios_toolchain/target/bin/./arm-apple-darwin11-ar
make[2]: Nothing to be done for 'install-data-am'.
make[2]: Leaving directory '/root/Desktop/cctools-port-master-3/cctools/ar'
make[1]: Leaving directory '/root/Desktop/cctools-port-master-3/cctools/ar'
Making install in as
make[1]: Entering directory '/root/Desktop/cctools-port-master-3/cctools/as'
Making install in arm
make[2]: Entering directory '/root/Desktop/cctools-port-master-3/cctools/as/arm'
make[3]: Entering directory '/root/Desktop/cctools-port-master-3/cctools/as/arm'
/bin/mkdir -p '/root/Desktop/cctools-port-master-3/usage_examples/ios_toolchain/target/libexec'
/bin/bash ../../libtool --mode=install /usr/bin/install -c arm-as '/root/Desktop/cctools-port-master-3/usage_examples/ios_toolchain/target/libexec/./arm-apple-darwin11-arm-as'
libtool: install: /usr/bin/install -c arm-as /root/Desktop/cctools-port-master-3/usage_examples/ios_toolchain/target/libexec/./arm-apple-darwin11-arm-as
make install-exec-hook
make[4]: Entering directory '/root/Desktop/cctools-port-master-3/cctools/as/arm'
mkdir -p /root/Desktop/cctools-port-master-3/usage_examples/ios_toolchain/target/libexec/as/arm
mv /root/Desktop/cctools-port-master-3/usage_examples/ios_toolchain/target/libexec/arm-as /root/Desktop/cctools-port-master-3/usage_examples/ios_toolchain/target/libexec/as/arm/as
make[4]: Leaving directory '/root/Desktop/cctools-port-master-3/cctools/as/arm'
make[3]: Nothing to be done for 'install-data-am'.
make[3]: Leaving directory '/root/Desktop/cctools-port-master-3/cctools/as/arm'
make[2]: Leaving directory '/root/Desktop/cctools-port-master-3/cctools/as/arm'
Making install in i386
make[2]: Entering directory '/root/Desktop/cctools-port-master-3/cctools/as/i386'
make[3]: Entering directory '/root/Desktop/cctools-port-master-3/cctools/as/i386'
/bin/mkdir -p '/root/Desktop/cctools-port-master-3/usage_examples/ios_toolchain/target/libexec'
/bin/bash ../../libtool --mode=install /usr/bin/install -c i386-as '/root/Desktop/cctools-port-master-3/usage_examples/ios_toolchain/target/libexec/./arm-apple-darwin11-i386-as'
libtool: install: /usr/bin/install -c i386-as /root/Desktop/cctools-port-master-3/usage_examples/ios_toolchain/target/libexec/./arm-apple-darwin11-i386-as
make install-exec-hook
make[4]: Entering directory '/root/Desktop/cctools-port-master-3/cctools/as/i386'
mkdir -p /root/Desktop/cctools-port-master-3/usage_examples/ios_toolchain/target/libexec/as/i386
mv /root/Desktop/cctools-port-master-3/usage_examples/ios_toolchain/target/libexec/i386-as /root/Desktop/cctools-port-master-3/usage_examples/ios_toolchain/target/libexec/as/i386/as
make[4]: Leaving directory '/root/Desktop/cctools-port-master-3/cctools/as/i386'
make[3]: Nothing to be done for 'install-data-am'.
make[3]: Leaving directory '/root/Desktop/cctools-port-master-3/cctools/as/i386'
make[2]: Leaving directory '/root/Desktop/cctools-port-master-3/cctools/as/i386'
Making install in x86_64
make[2]: Entering directory '/root/Desktop/cctools-port-master-3/cctools/as/x86_64'
make[3]: Entering directory '/root/Desktop/cctools-port-master-3/cctools/as/x86_64'
/bin/mkdir -p '/root/Desktop/cctools-port-master-3/usage_examples/ios_toolchain/target/libexec'
/bin/bash ../../libtool --mode=install /usr/bin/install -c x86_64-as '/root/Desktop/cctools-port-master-3/usage_examples/ios_toolchain/target/libexec/./arm-apple-darwin11-x86_64-as'
libtool: install: /usr/bin/install -c x86_64-as /root/Desktop/cctools-port-master-3/usage_examples/ios_toolchain/target/libexec/./arm-apple-darwin11-x86_64-as
make install-exec-hook
make[4]: Entering directory '/root/Desktop/cctools-port-master-3/cctools/as/x86_64'
mkdir -p /root/Desktop/cctools-port-master-3/usage_examples/ios_toolchain/target/libexec/as/x86_64
mv /root/Desktop/cctools-port-master-3/usage_examples/ios_toolchain/target/libexec/x86_64-as /root/Desktop/cctools-port-master-3/usage_examples/ios_toolchain/target/libexec/as/x86_64/as
make[4]: Leaving directory '/root/Desktop/cctools-port-master-3/cctools/as/x86_64'
make[3]: Nothing to be done for 'install-data-am'.
make[3]: Leaving directory '/root/Desktop/cctools-port-master-3/cctools/as/x86_64'
make[2]: Leaving directory '/root/Desktop/cctools-port-master-3/cctools/as/x86_64'
Making install in ppc
make[2]: Entering directory '/root/Desktop/cctools-port-master-3/cctools/as/ppc'
make[3]: Entering directory '/root/Desktop/cctools-port-master-3/cctools/as/ppc'
/bin/mkdir -p '/root/Desktop/cctools-port-master-3/usage_examples/ios_toolchain/target/libexec'
/bin/bash ../../libtool --mode=install /usr/bin/install -c ppc-as '/root/Desktop/cctools-port-master-3/usage_examples/ios_toolchain/target/libexec/./arm-apple-darwin11-ppc-as'
libtool: install: /usr/bin/install -c ppc-as /root/Desktop/cctools-port-master-3/usage_examples/ios_toolchain/target/libexec/./arm-apple-darwin11-ppc-as
make install-exec-hook
make[4]: Entering directory '/root/Desktop/cctools-port-master-3/cctools/as/ppc'
mkdir -p /root/Desktop/cctools-port-master-3/usage_examples/ios_toolchain/target/libexec/as/ppc
mv /root/Desktop/cctools-port-master-3/usage_examples/ios_toolchain/target/libexec/ppc-as /root/Desktop/cctools-port-master-3/usage_examples/ios_toolchain/target/libexec/as/ppc/as
make[4]: Leaving directory '/root/Desktop/cctools-port-master-3/cctools/as/ppc'
make[3]: Nothing to be done for 'install-data-am'.
make[3]: Leaving directory '/root/Desktop/cctools-port-master-3/cctools/as/ppc'
make[2]: Leaving directory '/root/Desktop/cctools-port-master-3/cctools/as/ppc'
Making install in ppc64
make[2]: Entering directory '/root/Desktop/cctools-port-master-3/cctools/as/ppc64'
make[3]: Entering directory '/root/Desktop/cctools-port-master-3/cctools/as/ppc64'
/bin/mkdir -p '/root/Desktop/cctools-port-master-3/usage_examples/ios_toolchain/target/libexec'
/bin/bash ../../libtool --mode=install /usr/bin/install -c ppc64-as '/root/Desktop/cctools-port-master-3/usage_examples/ios_toolchain/target/libexec/./arm-apple-darwin11-ppc64-as'
libtool: install: /usr/bin/install -c ppc64-as /root/Desktop/cctools-port-master-3/usage_examples/ios_toolchain/target/libexec/./arm-apple-darwin11-ppc64-as
make install-exec-hook
make[4]: Entering directory '/root/Desktop/cctools-port-master-3/cctools/as/ppc64'
mkdir -p /root/Desktop/cctools-port-master-3/usage_examples/ios_toolchain/target/libexec/as/ppc64
mv /root/Desktop/cctools-port-master-3/usage_examples/ios_toolchain/target/libexec/ppc64-as /root/Desktop/cctools-port-master-3/usage_examples/ios_toolchain/target/libexec/as/ppc64/as
make[4]: Leaving directory '/root/Desktop/cctools-port-master-3/cctools/as/ppc64'
make[3]: Nothing to be done for 'install-data-am'.
make[3]: Leaving directory '/root/Desktop/cctools-port-master-3/cctools/as/ppc64'
make[2]: Leaving directory '/root/Desktop/cctools-port-master-3/cctools/as/ppc64'
make[2]: Entering directory '/root/Desktop/cctools-port-master-3/cctools/as'
make[3]: Entering directory '/root/Desktop/cctools-port-master-3/cctools/as'
/bin/mkdir -p '/root/Desktop/cctools-port-master-3/usage_examples/ios_toolchain/target/bin'
/bin/bash ../libtool --mode=install /usr/bin/install -c as '/root/Desktop/cctools-port-master-3/usage_examples/ios_toolchain/target/bin/./arm-apple-darwin11-as'
libtool: install: /usr/bin/install -c as /root/Desktop/cctools-port-master-3/usage_examples/ios_toolchain/target/bin/./arm-apple-darwin11-as
make[3]: Nothing to be done for 'install-data-am'.
make[3]: Leaving directory '/root/Desktop/cctools-port-master-3/cctools/as'
make[2]: Leaving directory '/root/Desktop/cctools-port-master-3/cctools/as'
make[1]: Leaving directory '/root/Desktop/cctools-port-master-3/cctools/as'
Making install in misc
make[1]: Entering directory '/root/Desktop/cctools-port-master-3/cctools/misc'
make[2]: Entering directory '/root/Desktop/cctools-port-master-3/cctools/misc'
/bin/mkdir -p '/root/Desktop/cctools-port-master-3/usage_examples/ios_toolchain/target/bin'
/bin/bash ../libtool --mode=install /usr/bin/install -c checksyms '/root/Desktop/cctools-port-master-3/usage_examples/ios_toolchain/target/bin/./arm-apple-darwin11-checksyms'
libtool: install: /usr/bin/install -c checksyms /root/Desktop/cctools-port-master-3/usage_examples/ios_toolchain/target/bin/./arm-apple-darwin11-checksyms
/bin/bash ../libtool --mode=install /usr/bin/install -c lipo '/root/Desktop/cctools-port-master-3/usage_examples/ios_toolchain/target/bin/./arm-apple-darwin11-lipo'
libtool: install: /usr/bin/install -c lipo /root/Desktop/cctools-port-master-3/usage_examples/ios_toolchain/target/bin/./arm-apple-darwin11-lipo
/bin/bash ../libtool --mode=install /usr/bin/install -c size '/root/Desktop/cctools-port-master-3/usage_examples/ios_toolchain/target/bin/./arm-apple-darwin11-size'
libtool: install: /usr/bin/install -c size /root/Desktop/cctools-port-master-3/usage_examples/ios_toolchain/target/bin/./arm-apple-darwin11-size
/bin/bash ../libtool --mode=install /usr/bin/install -c strings '/root/Desktop/cctools-port-master-3/usage_examples/ios_toolchain/target/bin/./arm-apple-darwin11-strings'
libtool: install: /usr/bin/install -c strings /root/Desktop/cctools-port-master-3/usage_examples/ios_toolchain/target/bin/./arm-apple-darwin11-strings
/bin/bash ../libtool --mode=install /usr/bin/install -c nm '/root/Desktop/cctools-port-master-3/usage_examples/ios_toolchain/target/bin/./arm-apple-darwin11-nm'
libtool: install: /usr/bin/install -c nm /root/Desktop/cctools-port-master-3/usage_examples/ios_toolchain/target/bin/./arm-apple-darwin11-nm
/bin/bash ../libtool --mode=install /usr/bin/install -c libtool '/root/Desktop/cctools-port-master-3/usage_examples/ios_toolchain/target/bin/./arm-apple-darwin11-libtool'
libtool: install: /usr/bin/install -c libtool /root/Desktop/cctools-port-master-3/usage_examples/ios_toolchain/target/bin/./arm-apple-darwin11-libtool
/bin/bash ../libtool --mode=install /usr/bin/install -c redo_prebinding '/root/Desktop/cctools-port-master-3/usage_examples/ios_toolchain/target/bin/./arm-apple-darwin11-redo_prebinding'
libtool: install: /usr/bin/install -c redo_prebinding /root/Desktop/cctools-port-master-3/usage_examples/ios_toolchain/target/bin/./arm-apple-darwin11-redo_prebinding
/bin/bash ../libtool --mode=install /usr/bin/install -c seg_addr_table '/root/Desktop/cctools-port-master-3/usage_examples/ios_toolchain/target/bin/./arm-apple-darwin11-seg_addr_table'
libtool: install: /usr/bin/install -c seg_addr_table /root/Desktop/cctools-port-master-3/usage_examples/ios_toolchain/target/bin/./arm-apple-darwin11-seg_addr_table
/bin/bash ../libtool --mode=install /usr/bin/install -c seg_hack '/root/Desktop/cctools-port-master-3/usage_examples/ios_toolchain/target/bin/./arm-apple-darwin11-seg_hack'
libtool: install: /usr/bin/install -c seg_hack /root/Desktop/cctools-port-master-3/usage_examples/ios_toolchain/target/bin/./arm-apple-darwin11-seg_hack
/bin/bash ../libtool --mode=install /usr/bin/install -c install_name_tool '/root/Desktop/cctools-port-master-3/usage_examples/ios_toolchain/target/bin/./arm-apple-darwin11-install_name_tool'
libtool: install: /usr/bin/install -c install_name_tool /root/Desktop/cctools-port-master-3/usage_examples/ios_toolchain/target/bin/./arm-apple-darwin11-install_name_tool
/bin/bash ../libtool --mode=install /usr/bin/install -c indr '/root/Desktop/cctools-port-master-3/usage_examples/ios_toolchain/target/bin/./arm-apple-darwin11-indr'
libtool: install: /usr/bin/install -c indr /root/Desktop/cctools-port-master-3/usage_examples/ios_toolchain/target/bin/./arm-apple-darwin11-indr
/bin/bash ../libtool --mode=install /usr/bin/install -c strip '/root/Desktop/cctools-port-master-3/usage_examples/ios_toolchain/target/bin/./arm-apple-darwin11-strip'
libtool: install: /usr/bin/install -c strip /root/Desktop/cctools-port-master-3/usage_examples/ios_toolchain/target/bin/./arm-apple-darwin11-strip
/bin/bash ../libtool --mode=install /usr/bin/install -c nmedit '/root/Desktop/cctools-port-master-3/usage_examples/ios_toolchain/target/bin/./arm-apple-darwin11-nmedit'
libtool: install: /usr/bin/install -c nmedit /root/Desktop/cctools-port-master-3/usage_examples/ios_toolchain/target/bin/./arm-apple-darwin11-nmedit
/bin/bash ../libtool --mode=install /usr/bin/install -c segedit '/root/Desktop/cctools-port-master-3/usage_examples/ios_toolchain/target/bin/./arm-apple-darwin11-segedit'
libtool: install: /usr/bin/install -c segedit /root/Desktop/cctools-port-master-3/usage_examples/ios_toolchain/target/bin/./arm-apple-darwin11-segedit
/bin/bash ../libtool --mode=install /usr/bin/install -c pagestuff '/root/Desktop/cctools-port-master-3/usage_examples/ios_toolchain/target/bin/./arm-apple-darwin11-pagestuff'
libtool: install: /usr/bin/install -c pagestuff /root/Desktop/cctools-port-master-3/usage_examples/ios_toolchain/target/bin/./arm-apple-darwin11-pagestuff
/bin/bash ../libtool --mode=install /usr/bin/install -c ranlib '/root/Desktop/cctools-port-master-3/usage_examples/ios_toolchain/target/bin/./arm-apple-darwin11-ranlib'
libtool: install: /usr/bin/install -c ranlib /root/Desktop/cctools-port-master-3/usage_examples/ios_toolchain/target/bin/./arm-apple-darwin11-ranlib
/bin/bash ../libtool --mode=install /usr/bin/install -c codesign_allocate '/root/Desktop/cctools-port-master-3/usage_examples/ios_toolchain/target/bin/./arm-apple-darwin11-codesign_allocate'
libtool: install: /usr/bin/install -c codesign_allocate /root/Desktop/cctools-port-master-3/usage_examples/ios_toolchain/target/bin/./arm-apple-darwin11-codesign_allocate
/bin/bash ../libtool --mode=install /usr/bin/install -c bitcode_strip '/root/Desktop/cctools-port-master-3/usage_examples/ios_toolchain/target/bin/./arm-apple-darwin11-bitcode_strip'
libtool: install: /usr/bin/install -c bitcode_strip /root/Desktop/cctools-port-master-3/usage_examples/ios_toolchain/target/bin/./arm-apple-darwin11-bitcode_strip
/bin/bash ../libtool --mode=install /usr/bin/install -c ctf_insert '/root/Desktop/cctools-port-master-3/usage_examples/ios_toolchain/target/bin/./arm-apple-darwin11-ctf_insert'
libtool: install: /usr/bin/install -c ctf_insert /root/Desktop/cctools-port-master-3/usage_examples/ios_toolchain/target/bin/./arm-apple-darwin11-ctf_insert
/bin/bash ../libtool --mode=install /usr/bin/install -c check_dylib '/root/Desktop/cctools-port-master-3/usage_examples/ios_toolchain/target/bin/./arm-apple-darwin11-check_dylib'
libtool: install: /usr/bin/install -c check_dylib /root/Desktop/cctools-port-master-3/usage_examples/ios_toolchain/target/bin/./arm-apple-darwin11-check_dylib
/bin/bash ../libtool --mode=install /usr/bin/install -c cmpdylib '/root/Desktop/cctools-port-master-3/usage_examples/ios_toolchain/target/bin/./arm-apple-darwin11-cmpdylib'
libtool: install: /usr/bin/install -c cmpdylib /root/Desktop/cctools-port-master-3/usage_examples/ios_toolchain/target/bin/./arm-apple-darwin11-cmpdylib
/bin/bash ../libtool --mode=install /usr/bin/install -c inout '/root/Desktop/cctools-port-master-3/usage_examples/ios_toolchain/target/bin/./arm-apple-darwin11-inout'
libtool: install: /usr/bin/install -c inout /root/Desktop/cctools-port-master-3/usage_examples/ios_toolchain/target/bin/./arm-apple-darwin11-inout
make[2]: Nothing to be done for 'install-data-am'.
make[2]: Leaving directory '/root/Desktop/cctools-port-master-3/cctools/misc'
make[1]: Leaving directory '/root/Desktop/cctools-port-master-3/cctools/misc'
Making install in libobjc2
make[1]: Entering directory '/root/Desktop/cctools-port-master-3/cctools/libobjc2'
make[2]: Entering directory '/root/Desktop/cctools-port-master-3/cctools/libobjc2'
make[2]: Nothing to be done for 'install-exec-am'.
make[2]: Nothing to be done for 'install-data-am'.
make[2]: Leaving directory '/root/Desktop/cctools-port-master-3/cctools/libobjc2'
make[1]: Leaving directory '/root/Desktop/cctools-port-master-3/cctools/libobjc2'
Making install in otool
make[1]: Entering directory '/root/Desktop/cctools-port-master-3/cctools/otool'
make[2]: Entering directory '/root/Desktop/cctools-port-master-3/cctools/otool'
/bin/mkdir -p '/root/Desktop/cctools-port-master-3/usage_examples/ios_toolchain/target/bin'
/bin/bash ../libtool --mode=install /usr/bin/install -c otool '/root/Desktop/cctools-port-master-3/usage_examples/ios_toolchain/target/bin/./arm-apple-darwin11-otool'
libtool: install: /usr/bin/install -c otool /root/Desktop/cctools-port-master-3/usage_examples/ios_toolchain/target/bin/./arm-apple-darwin11-otool
make[2]: Nothing to be done for 'install-data-am'.
make[2]: Leaving directory '/root/Desktop/cctools-port-master-3/cctools/otool'
make[1]: Leaving directory '/root/Desktop/cctools-port-master-3/cctools/otool'
Making install in ld64
make[1]: Entering directory '/root/Desktop/cctools-port-master-3/cctools/ld64'
Making install in src
make[2]: Entering directory '/root/Desktop/cctools-port-master-3/cctools/ld64/src'
Making install in 3rd
make[3]: Entering directory '/root/Desktop/cctools-port-master-3/cctools/ld64/src/3rd'
Making install in BlocksRuntime
make[4]: Entering directory '/root/Desktop/cctools-port-master-3/cctools/ld64/src/3rd/BlocksRuntime'
make[5]: Entering directory '/root/Desktop/cctools-port-master-3/cctools/ld64/src/3rd/BlocksRuntime'
make[5]: Nothing to be done for 'install-exec-am'.
make[5]: Nothing to be done for 'install-data-am'.
make[5]: Leaving directory '/root/Desktop/cctools-port-master-3/cctools/ld64/src/3rd/BlocksRuntime'
make[4]: Leaving directory '/root/Desktop/cctools-port-master-3/cctools/ld64/src/3rd/BlocksRuntime'
make[4]: Entering directory '/root/Desktop/cctools-port-master-3/cctools/ld64/src/3rd'
make[5]: Entering directory '/root/Desktop/cctools-port-master-3/cctools/ld64/src/3rd'
make[5]: Nothing to be done for 'install-exec-am'.
make[5]: Nothing to be done for 'install-data-am'.
make[5]: Leaving directory '/root/Desktop/cctools-port-master-3/cctools/ld64/src/3rd'
make[4]: Leaving directory '/root/Desktop/cctools-port-master-3/cctools/ld64/src/3rd'
make[3]: Leaving directory '/root/Desktop/cctools-port-master-3/cctools/ld64/src/3rd'
Making install in ld
make[3]: Entering directory '/root/Desktop/cctools-port-master-3/cctools/ld64/src/ld'
Making install in parsers
make[4]: Entering directory '/root/Desktop/cctools-port-master-3/cctools/ld64/src/ld/parsers'
make[5]: Entering directory '/root/Desktop/cctools-port-master-3/cctools/ld64/src/ld/parsers'
make[5]: Nothing to be done for 'install-exec-am'.
make[5]: Nothing to be done for 'install-data-am'.
make[5]: Leaving directory '/root/Desktop/cctools-port-master-3/cctools/ld64/src/ld/parsers'
make[4]: Leaving directory '/root/Desktop/cctools-port-master-3/cctools/ld64/src/ld/parsers'
Making install in passes
make[4]: Entering directory '/root/Desktop/cctools-port-master-3/cctools/ld64/src/ld/passes'
make[5]: Entering directory '/root/Desktop/cctools-port-master-3/cctools/ld64/src/ld/passes'
make[5]: Nothing to be done for 'install-exec-am'.
make[5]: Nothing to be done for 'install-data-am'.
make[5]: Leaving directory '/root/Desktop/cctools-port-master-3/cctools/ld64/src/ld/passes'
make[4]: Leaving directory '/root/Desktop/cctools-port-master-3/cctools/ld64/src/ld/passes'
make[4]: Entering directory '/root/Desktop/cctools-port-master-3/cctools/ld64/src/ld'
make[5]: Entering directory '/root/Desktop/cctools-port-master-3/cctools/ld64/src/ld'
/bin/mkdir -p '/root/Desktop/cctools-port-master-3/usage_examples/ios_toolchain/target/bin'
/bin/bash ../../../libtool --mode=install /usr/bin/install -c ld '/root/Desktop/cctools-port-master-3/usage_examples/ios_toolchain/target/bin/./arm-apple-darwin11-ld'
libtool: install: /usr/bin/install -c ld /root/Desktop/cctools-port-master-3/usage_examples/ios_toolchain/target/bin/./arm-apple-darwin11-ld
make[5]: Nothing to be done for 'install-data-am'.
make[5]: Leaving directory '/root/Desktop/cctools-port-master-3/cctools/ld64/src/ld'
make[4]: Leaving directory '/root/Desktop/cctools-port-master-3/cctools/ld64/src/ld'
make[3]: Leaving directory '/root/Desktop/cctools-port-master-3/cctools/ld64/src/ld'
Making install in other
make[3]: Entering directory '/root/Desktop/cctools-port-master-3/cctools/ld64/src/other'
make[4]: Entering directory '/root/Desktop/cctools-port-master-3/cctools/ld64/src/other'
/bin/mkdir -p '/root/Desktop/cctools-port-master-3/usage_examples/ios_toolchain/target/bin'
/bin/bash ../../../libtool --mode=install /usr/bin/install -c dyldinfo '/root/Desktop/cctools-port-master-3/usage_examples/ios_toolchain/target/bin/./arm-apple-darwin11-dyldinfo'
libtool: install: /usr/bin/install -c dyldinfo /root/Desktop/cctools-port-master-3/usage_examples/ios_toolchain/target/bin/./arm-apple-darwin11-dyldinfo
/bin/bash ../../../libtool --mode=install /usr/bin/install -c ObjectDump '/root/Desktop/cctools-port-master-3/usage_examples/ios_toolchain/target/bin/./arm-apple-darwin11-ObjectDump'
libtool: install: /usr/bin/install -c ObjectDump /root/Desktop/cctools-port-master-3/usage_examples/ios_toolchain/target/bin/./arm-apple-darwin11-ObjectDump
/bin/bash ../../../libtool --mode=install /usr/bin/install -c unwinddump '/root/Desktop/cctools-port-master-3/usage_examples/ios_toolchain/target/bin/./arm-apple-darwin11-unwinddump'
libtool: install: /usr/bin/install -c unwinddump /root/Desktop/cctools-port-master-3/usage_examples/ios_toolchain/target/bin/./arm-apple-darwin11-unwinddump
/bin/bash ../../../libtool --mode=install /usr/bin/install -c machocheck '/root/Desktop/cctools-port-master-3/usage_examples/ios_toolchain/target/bin/./arm-apple-darwin11-machocheck'
libtool: install: /usr/bin/install -c machocheck /root/Desktop/cctools-port-master-3/usage_examples/ios_toolchain/target/bin/./arm-apple-darwin11-machocheck
make[4]: Nothing to be done for 'install-data-am'.
make[4]: Leaving directory '/root/Desktop/cctools-port-master-3/cctools/ld64/src/other'
make[3]: Leaving directory '/root/Desktop/cctools-port-master-3/cctools/ld64/src/other'
make[3]: Entering directory '/root/Desktop/cctools-port-master-3/cctools/ld64/src'
make[4]: Entering directory '/root/Desktop/cctools-port-master-3/cctools/ld64/src'
make[4]: Nothing to be done for 'install-exec-am'.
make[4]: Nothing to be done for 'install-data-am'.
make[4]: Leaving directory '/root/Desktop/cctools-port-master-3/cctools/ld64/src'
make[3]: Leaving directory '/root/Desktop/cctools-port-master-3/cctools/ld64/src'
make[2]: Leaving directory '/root/Desktop/cctools-port-master-3/cctools/ld64/src'
make[2]: Entering directory '/root/Desktop/cctools-port-master-3/cctools/ld64'
make[3]: Entering directory '/root/Desktop/cctools-port-master-3/cctools/ld64'
make[3]: Nothing to be done for 'install-exec-am'.
make[3]: Nothing to be done for 'install-data-am'.
make[3]: Leaving directory '/root/Desktop/cctools-port-master-3/cctools/ld64'
make[2]: Leaving directory '/root/Desktop/cctools-port-master-3/cctools/ld64'
make[1]: Leaving directory '/root/Desktop/cctools-port-master-3/cctools/ld64'
make[1]: Entering directory '/root/Desktop/cctools-port-master-3/cctools'
make[2]: Entering directory '/root/Desktop/cctools-port-master-3/cctools'
make[2]: Nothing to be done for 'install-exec-am'.
make[2]: Nothing to be done for 'install-data-am'.
make[2]: Leaving directory '/root/Desktop/cctools-port-master-3/cctools'
make[1]: Leaving directory '/root/Desktop/cctools-port-master-3/cctools'

*** checking toolchain ***

ld: unexpected token: !tapi-tbd-v2 file '/root/Desktop/cctools-port-master-3/usage_examples/ios_toolchain/target/bin/../SDK/usr/lib/libSystem.tbd' for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

I use the iPhoneOS10.0.sdk from Xcode Version 8.0 (8A218a), and I don't know if something changed, cause I don't have any access to old iPhoneOS sdks

ld warning "a.tbd and a.tbd are out of sync"

ld: warning: text-based stub file /usr/lib/apple/SDKs/MacOSX10.11.sdk/usr/lib/libcurl.tbd and library file /usr/lib/apple/SDKs/MacOSX10.11.sdk/usr/lib/libcurl.tbd are out of sync. Falling back to library file for linking.

its the same file?

Are feature PRs accepted? I'd like to normalize and print CLI args

I wrote this script https://github.com/NixOS/nixpkgs/blob/6d4bd78fad1c2040cafe6f5fa30d8134dac3bdf6/pkgs/build-support/cc-wrapper/macos-sierra-reexport-hack.bash to squeeze under macOS Sierra's artificial header size limit. It uses -reexport-l to divide and conquer the list of linker inputs, creating a binary tree of delegated reexporting libraries so that none has a header over the limit.

The problem is it breaks down if some -l... would be resolved to a static archive instead. I could fix that in bash, but at some points it becomes silly to reimplement https://github.com/tpoechtrager/cctools-port/blob/master/cctools/ld64/src/ld/Options.cpp. It would be much easier to assume absolute paths for all linker inputs, and divide and conquer on that.

If new non-apple features are accepted, I'd like to add a flag to just resolve libraries, and spit out all flags in a normal form (not doing any actually linking). I can then run my script on that output, satisfying my convenient assumption above.

CC @copumpkin @shlevy

build.sh does not work with iOS SDK >= 9.0

The script relies on the location of libSystem.dylib which is not available in newer SDKs. The file was replaced by libSystem.tbd which then should be used as a fallback (or the opposite, with the .tbd being default and falling back for the .dylib.)

Since this is only used to find the directory, the script does work fine with such change.

error:CentOS use clang5.0

[lookfe@troy ios_toolchain]$ ./build.sh ~/testIOS/iPhoneOS10.3.sdk.tar.gz armv7
......
......
[ 73%] Built target LLVMMCParser
[ 73%] Linking CXX static library ../libLLVMMC.a
warning: /usr/local/bin/ranlib: warning for library: ../libLLVMMC.a the table of contents is empty (no object file members in the library define global symbols)
[ 73%] Built target LLVMMC
[ 73%] Built target obj.llvm-tblgen
[ 73%] Linking CXX static library ../libLLVMSupport.a
warning: /usr/local/bin/ranlib: warning for library: ../libLLVMSupport.a the table of contents is empty (no object file members in the library define global symbols)
[ 73%] Built target LLVMSupport
Scanning dependencies of target llvm-tblgen
[ 73%] Linking CXX executable ../../bin/llvm-tblgen
......
......
clang-5.0: error: linker command failed with exit code 1 (use -v to see invocation)
make[3]: *** [bin/llvm-tblgen] Error 1
make[2]: *** [utils/TableGen/CMakeFiles/llvm-tblgen.dir/all] Error 2
make[1]: *** [projects/libtapi/tools/libtapi/CMakeFiles/libtapi.dir/rule] Error 2
make: *** [libtapi] Error 2

Any chance for an iPhoneSimulator build?

I tried building the cross tools against the iOS simulator SDK. It successfully compiles everything, but then fils in the final step when checking the toolchain.

*** checking toolchain ***

ld: file not found: /usr/lib/system/libsystem_kernel.dylib for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Indeed that particular file does not exist, as it's named libsystem_sim_kernel.dylib in the simulator SDK. Any ideas where I should look to correct this one last issue?

Out of curiosity I tried simlinking the above file to the version without _sim_ in the name, but it got me an infinite linker loop or something i386-apple-darwin11-ld: ./ld.hpp:109: const ld::File::Ordinal ld::File::Ordinal::nextCounter() const: Assertioncounter() < 0xffff' failed.`

Error building iOS toolchain

Debian 64bit (gcc 6.3.0, clang 3.9 both installed as well as all needed dependencies like llvm-devel, uuid-devel, xar-devel), I'm trying to build the toolchain:

mkdir -p "/tmp/ioscross"
cd "/tmp/ioscross"
wget http://<myxcode-sdk-dir>/iPhoneOS9.3.sdk.tbz2 -O iPhoneOS9.3.sdk.tar.bz2
git clone https://github.com/tpoechtrager/cctools-port.git
cd cctools-port/usage_examples/ios_toolchain
./build.sh /tmp/ioscross/iPhoneOS9.3.sdk.tar.bz2 arm64

Compilation process is ok until libtapi (that is compiled successfuly). Problems arise when bulding cctools / ld64:

*** building cctools / ld64 ***

libtoolize:   error: './config.guess' is newer: use '--force' to overwrite
libtoolize:   error: './config.sub' is newer: use '--force' to overwrite
libtoolize:   error: './install-sh' is newer: use '--force' to overwrite
libtoolize:   error: './ltmain.sh' is newer: use '--force' to overwrite
...
config.status: executing libtool commands
Making all in libobjc2
make[1]: Entering directory '/tmp/ioscross/cctools-port/usage_examples/ios_toolchain/tmp/cctools/libobjc2'
/bin/bash ../libtool    --mode=compile clang -DPACKAGE_NAME=\"cctools\" -DPACKAGE_TARNAME=\"cctools\" -DPACKAGE_VERSION=\"921\" -DPACKAGE_STRING=\"cctools\ 921\" -DPACKAGE_BUGREPORT=\"[email protected]\" -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 -DHAVE_UTIMENSAT=1 -DHAVE_STAT_ST_MTIM=1 -DHAVE_XAR_XAR_H=1 -I. -I../../../../../cctools/libobjc2  -DTYPE_DEPENDENT_DISPATCH -DGNUSTEP -D__OBJC_RUNTIME_INTERNAL__=1 -D_XOPEN_SOURCE=500 -D__BSD_VISIBLE=1 -D_DEFAULT_SOURCE=1 -DNO_SELECTOR_MISMATCH_WARNINGS -isystem /tmp/ioscross/cctools-port/usage_examples/ios_toolchain/target/include -std=gnu99 -Wall -Wno-objc-root-class -Wno-deprecated-objc-isa-usage -O3 -c -o libobjc_la-NSBlocks.lo `test -f 'NSBlocks.m' || echo '../../../../../cctools/libobjc2/'`NSBlocks.m
libtool: Version mismatch error.  This is libtool 2.4.6.42-b88ce, but the
libtool: definition of this LT_INIT comes from libtool 2.4.6.
libtool: You should recreate aclocal.m4 with macros from libtool 2.4.6.42-b88ce
libtool: and run autoconf again.
Makefile:558: recipe for target 'libobjc_la-NSBlocks.lo' failed
make[1]: *** [libobjc_la-NSBlocks.lo] Error 63
make[1]: Leaving directory '/tmp/ioscross/cctools-port/usage_examples/ios_toolchain/tmp/cctools/libobjc2'
Makefile:415: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1

*** checking toolchain ***

/usr/bin/ld: unrecognized option '-dynamic'
/usr/bin/ld: use the --help option for usage information
clang: error: linker command failed with exit code 1 (use -v to see invocation)

On my system /usr/bin/ld points to:

developer@BuildBox:~$ ll /usr/bin/ld
lrwxrwxrwx 1 root root 19 Mar  7  2017 /usr/bin/ld -> x86_64-linux-gnu-ld

Any guess? Many thanks in advance!

cctools-port error (iOS)

When I enter [--with-llvm-config=...], I get this error:
-sh: target: No such file or directory

Terminal output for reference;

iPhone:/var/mobile/Library/Jailbreakappstbdp root# git clone https://github.com/tpoechtrager/cctools-port.git cctools-port/
done.
iPhone:/var/mobile/Library/Jailbreakappstbdp root# cd cctools-port/cctools
iPhone:/var/mobile/Library/Jailbreakappstbdp/cctools-port/cctools root# ./configure \
>     [--prefix=/home/user/cctools] \
>     [--with-libtapi=/home/user/cctools] \
>     [--target=<target>] \
>     [--with-llvm-config=...]
-sh: target: No such file or directory

Missing "openssl/err.h" after runing build.sh

After i running ./build.sh iPhone9.2.sdk.tar.xz arm7,error is

ldid.cpp:46:25: fatal error: openssl/err.h: No such file or directory
 #include <openssl/err.h>

also I get sdk from #45

I need some help ,Think you very much

SDK version 10.0 and up not noticed by build.sh

change the line where the SDK-Version is read from the archive name to:
SDK_VERSION=$(echo $1 | grep -P -o "[0-9][0-9].[0-9]+" | head -1)
if [ -z "$SDK_VERSION" ]; then
SDK_VERSION=$(echo $1 | grep -P -o "[0-9].[0-9]+" | head -1)
if [ -z "$SDK_VERSION" ]; then
echo "iPhoneOS Version must be in the SDK filename!" 1>&2
exit 1
fi
fi (there is surely a better way to do this, I am not very familiar with sh scripts)
or something similar so that version 10.0 and up are noticed by the script.

bitcode_hide_symbols support

Hello,

I downloaded and compiled successfuly the last version of cctools. I'm trying to pre-link some object files (containing bitcode) into a single one:

ld -r -x -bitcode_bundle -bitcode_hide_symbols -arch armv7 -o prelinked_mylib.a <OBJ_FILES>

and I'm getting the following error: "ld: loaded libLTO doesn't support -bitcode_hide_symbols: LLVM version 3.9.1 for architecture armv7"

Is there a way to get support for 'bitcode_hide_symbols' features? Any idea/switch?

Many thanks in advance,
Matteo.

x86_64h not recognized

Hi and thank you for this project.
When trying to configure the project to x86_64h-apple-darwin11, I get the following message:

checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... Invalid configuration `x86_64h-apple-darwin': machine `x86_64h-apple' not recognized
configure: error: /bin/bash ./config.sub x86_64h-apple-darwin failed

Have you been able to target x86_64h? It seems that ld64 indeed can handle it; The other cctools don't seem to be able.

ld: dynamic main executables must link with libSystem.dylib for architecture arm64

OS: Ubuntu 17.10 x86_64
Default compiler is clang version 4.0.1-6 (tags/RELEASE_401/final)

The command I used was ./build.sh /home/arc/iPhoneOS11.4.sdk.tar.gz arm64

*** checking toolchain ***

ld: warning: ignoring file /home/arc/Downloads/cctools-port/usage_examples/ios_toolchain/target/bin/../SDK/iPhoneOS11.4.sdk/usr/lib/libSystem.tbd, file was built for unsupported file format ( 0x2D 0x2D 0x2D 0x20 0x21 0x74 0x61 0x70 0x69 0x2D 0x74 0x62 0x64 0x2D 0x76 0x33 ) which is not the architecture being linked (arm64): /home/arc/Downloads/cctools-port/usage_examples/ios_toolchain/target/bin/../SDK/iPhoneOS11.4.sdk/usr/lib/libSystem.tbd
ld: dynamic main executables must link with libSystem.dylib for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

cctools and iOS SDK

Is it possible to give some more information on how to obtain the iOS SDK?
I am an OSX user and developer but I don't know the exact format of the archive.

In your other project (osxcross) you provide a proper script to fetch it from an installed Xcode (or from a downloaded DMG). Unfortunately not here.

PS: I think these two projects overlap? Although I've managed to properly compile an OSX application with the other tools, with this tool the documentation is sparse and I didn't have any luck.

Unable to make

cctools % make                        
Making all in libstuff
/bin/sh ../libtool  --tag=CC   --mode=compile clang -DPACKAGE_NAME=\"cctools\" -DPACKAGE_TARNAME=\"cctools\" -DPACKAGE_VERSION=\"927.0.2\" -DPACKAGE_STRING=\"cctools\ 927.0.2\" -DPACKAGE_BUGREPORT=\"[email protected]\" -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=16777223 -DEMULATED_HOST_CPU_SUBTYPE=3 -D__STDC_LIMIT_MACROS=1 -D__STDC_CONSTANT_MACROS=1 -DHAVE_EXECINFO_H=1 -DHAVE_STRMODE=1 -DHAVE_UTIMENSAT=1 -DHAVE_BCOPY=1 -DHAVE_BCMP=1 -DHAVE_BZERO=1 -DHAVE_INDEX=1 -DHAVE_RINDEX=1 -DHAVE_STAT_ST_MTIMESPEC=1 -I.   -I/usr/local/opt/[email protected]/include -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 -Wno-shift-negative-value  -DPROGRAM_PREFIX="\"\"" -D__LITTLE_ENDIAN__=1 -O3 -isystem /usr/local/include -isystem /usr/pkg/include  -DLD64_VERSION_NUM=450.3 -c -o libstuff_la-allocate.lo `test -f 'allocate.c' || echo './'`allocate.c
libtool: compile:  clang -DPACKAGE_NAME=\"cctools\" -DPACKAGE_TARNAME=\"cctools\" -DPACKAGE_VERSION=\"927.0.2\" "-DPACKAGE_STRING=\"cctools 927.0.2\"" -DPACKAGE_BUGREPORT=\"[email protected]\" -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=16777223 -DEMULATED_HOST_CPU_SUBTYPE=3 -D__STDC_LIMIT_MACROS=1 -D__STDC_CONSTANT_MACROS=1 -DHAVE_EXECINFO_H=1 -DHAVE_STRMODE=1 -DHAVE_UTIMENSAT=1 -DHAVE_BCOPY=1 -DHAVE_BCMP=1 -DHAVE_BZERO=1 -DHAVE_INDEX=1 -DHAVE_RINDEX=1 -DHAVE_STAT_ST_MTIMESPEC=1 -I. -I/usr/local/opt/[email protected]/include -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 -Wno-shift-negative-value -DPROGRAM_PREFIX=\"\" -D__LITTLE_ENDIAN__=1 -O3 -isystem /usr/local/include -isystem /usr/pkg/include -DLD64_VERSION_NUM=450.3 -c allocate.c  -fno-common -DPIC -o .libs/libstuff_la-allocate.o
In file included from allocate.c:23:
In file included from ../include/foreign/stdlib.h:12:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/stdlib.h:66:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/sys/wait.h:109:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/sys/signal.h:146:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/machine/_mcontext.h:29:
/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/i386/_mcontext.h:108:2: error: unknown type name '_STRUCT_X86_THREAD_FULL_STATE64'
        _STRUCT_X86_THREAD_FULL_STATE64 __ss;
        ^
/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/i386/_mcontext.h:124:2: error: unknown type name '_STRUCT_X86_THREAD_FULL_STATE64'
        _STRUCT_X86_THREAD_FULL_STATE64 __ss;
        ^
/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/i386/_mcontext.h:141:2: error: unknown type name '_STRUCT_X86_THREAD_FULL_STATE64'
        _STRUCT_X86_THREAD_FULL_STATE64 __ss;
        ^
3 errors generated.
make[1]: *** [libstuff_la-allocate.lo] Error 1
make: *** [all-recursive] Error 1

Seems to be with the latest tools/Xcode 11 on macOS. Happening on 10.15.2 and 10.14.6 with both 10.14 and 10.15 SDK. If the build happens on not macOS it seems to do fine.

Possibly related: https://trac.macports.org/ticket/58623

Compile Error on CYGWIN

--target=arm-apple-darwin11 --host=x86_64-pc-cygwin

Compilation fails here:

../../../../../cctools/include/foreign/dlfcn.h:11:3: error: conflicting types for 'Dl_info'
 } Dl_info;
   ^~~~~~~
In file included from ../../../../../cctools/include/foreign/dlfcn.h:3:0,
                 from ../../../../../cctools/libstuff/llvm.c:5:
/usr/include/dlfcn.h:50:24: note: previous declaration of 'Dl_info' was here
 typedef struct Dl_info Dl_info;
                        ^~~~~~~
In file included from ../../../../../cctools/libstuff/llvm.c:5:0:
../../../../../cctools/include/foreign/dlfcn.h:13:19: error: conflicting types for 'dladdr'
 static inline int dladdr(void *addr, Dl_info *info)
                   ^~~~~~
In file included from ../../../../../cctools/include/foreign/dlfcn.h:3:0,
                 from ../../../../../cctools/libstuff/llvm.c:5:
/usr/include/dlfcn.h:60:12: note: previous declaration of 'dladdr' was here
 extern int dladdr (const void *addr, Dl_info *info);

Clang++ Linker Error :(

arm-apple-darwin11-clang++ hello.cpp -lstdc++  -I/xxxx/iPhoneOS10.3.sdk/usr/include/c++/4.2.1 -L/xxxx/iPhoneOS10.3.sdk/usr/lib
Undefined symbols for architecture arm64:
  "std::ostream::operator<<(std::ostream& (*)(std::ostream&))", referenced from:
      _main in hello-63a911.o
  "std::ios_base::Init::Init()", referenced from:
      ___cxx_global_var_init in hello-63a911.o
  "std::ios_base::Init::~Init()", referenced from:
      ___cxx_global_var_init in hello-63a911.o
  "std::cout", referenced from:
      _main in hello-63a911.o
  "std::basic_ostream<char, std::char_traits<char> >& std::endl<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&)", referenced from:
      _main in hello-63a911.o
  "std::basic_ostream<char, std::char_traits<char> >& std::operator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*)", referenced from:
      _main in hello-63a911.o
ld: symbol(s) not found for architecture arm64
clang-7.0: error: linker command failed with exit code 1 (use -v to see invocation)

How can I fix it?

Build failure when cross-compiling for OS X host

The following build fails on master on CentOS Linux:

export CC=$CLANG_DIR/bin/clang
export CXX=$CLANG_DIR/bin/clang++
export CFLAGS='-mcpu=generic -mtune=generic'
export CXXFLAGS='-mcpu=generic -mtune=generic'
export MACOSX_DEPLOYMENT_TARGET=10.7
./autogen.sh
./configure --prefix=installdir --build=$MACHTYPE --host=x86_64-apple-darwin11 --with-llvm-config=$CLANG_DIR/bin/llvm-config

Here is the error I get:

/home/worker/workspace/clang/bin/clang -DPACKAGE_NAME=\"cctools\" -DPACKAGE_TARNAME=\"cctools\" -DPACKAGE_VERSION=\"886\" -DPACKAGE_STRING=\"cctools\ 886\" -DPACKAGE_BUGREPORT=\"[email protected]\" -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=16777223 -DEMULATED_HOST_CPU_SUBTYPE=3 -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 -I../libstuff -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 -D_DARWIN_C_SOURCE -D__DARWIN_UNIX03 -D__LITTLE_ENDIAN__=1 -DOTOOL -DEFI_SUPPORT -mcpu=generic -mtune=generic -c -o otool-print_objc.o `test -f 'print_objc.c' || echo './'`print_objc.c
clang-3.8: warning: argument unused during compilation: '-mcpu=generic'
print_objc.c:35:10: fatal error: 'objc/runtime.h' file not found
#include "objc/runtime.h"      /* cctools-port:
         ^
1 error generated.
Makefile:435: recipe for target 'otool-print_objc.o' failed

The reason seems to be the ISDARWIN special cases in otool/Makefile.am which expects ISDARWIN to mean whether the host is OSX, whereas it is used to mean whether the build system is running on OSX. These two things can be different when cross-compiling cctools on Linux to create binaries that run on OSX.

ld: library not found for -lSystem

Determining if the C compiler works failed with the following output:
Change Dir: /ncnn/ncnn/build-ios/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_7236a/fast"
/usr/bin/make -f CMakeFiles/cmTC_7236a.dir/build.make CMakeFiles/cmTC_7236a.dir/build
make[1]: Entering directory /ncnn/ncnn/build-ios/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_7236a.dir/testCCompiler.c.o /ncnn/cctools-port/usage_examples/ios_toolchain/target/bin/arm-apple-darwin11-clang -arch armv7 -arch arm64 -isysroot /ncnn/cctools-port/usage_examples/ios_toolchain/target/SDK -o CMakeFiles/cmTC_7236a.dir/testCCompiler.c.o -c /ncnn/ncnn/build-ios/CMakeFiles/CMakeTmp/testCCompiler.c Linking C executable cmTC_7236a /usr/local/bin/cmake -E cmake_link_script CMakeFiles/cmTC_7236a.dir/link.txt --verbose=1 /ncnn/cctools-port/usage_examples/ios_toolchain/target/bin/arm-apple-darwin11-clang -arch armv7 -arch arm64 -isysroot /ncnn/cctools-port/usage_examples/ios_toolchain/target/SDK -Wl,-headerpad_max_install_names CMakeFiles/cmTC_7236a.dir/testCCompiler.c.o -o cmTC_7236a ld: library not found for -lSystem clang-3.8: error: linker command failed with exit code 1 (use -v to see invocation) make[1]: *** [cmTC_7236a] Error 1 make[1]: Leaving directory /ncnn/ncnn/build-ios/CMakeFiles/CMakeTmp'
make: *** [cmTC_7236a/fast] Error 2

above is my CMakeError.log it seems cant find libSystem
when I search libSystem ,i found it in cctools-port/usage_examples/ios_toolchain/target/SDK/iPhoneOS9.1.sdk/usr/lib/libSystem.tbd
how can I solve this bug?

build error on OSX

I'm trying a simple build on OSX because I need to hack on ld.
I'm using OSX 10.14.2 with Apple LLVM version 10.0.0 (clang-1000.11.45.5)
Basically, latest and greatest.

git clone https://github.com/tpoechtrager/cctools-port.git
cd cctools-port/cctools
./configure --target=x86_64
make

grind grind grind

...
/bin/sh ../libtool --tag=CC --mode=link clang -D__DARWIN_UNIX03 -I../include -I../include/foreign -I../libstuff -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 -Wno-shift-negative-value -D__LITTLE_ENDIAN__=1 -O3 -isystem /usr/local/include -isystem /usr/pkg/include -L/usr/local/lib -L/usr/pkg/lib -o ar ar-append.o ar-ar.o ar-archive.o ar-contents.o ar-delete.o ar-extract.o ar-misc.o ar-move.o ar-print.o ar-replace.o ../libstuff/libstuff.la
libtool: link: clang -D__DARWIN_UNIX03 -I../include -I../include/foreign -I../libstuff -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 -Wno-shift-negative-value -D__LITTLE_ENDIAN__=1 -O3 -isystem /usr/local/include -isystem /usr/pkg/include -o ar ar-append.o ar-ar.o ar-archive.o ar-contents.o ar-delete.o ar-extract.o ar-misc.o ar-move.o ar-print.o ar-replace.o -L/usr/local/lib -L/usr/pkg/lib ../libstuff/.libs/libstuff.a
ld: warning: directory not found for option '-L/usr/pkg/lib'
ld: warning: ignoring file ../libstuff/.libs/libstuff.a, file was built for archive which is not the architecture being linked (x86_64): ../libstuff/.libs/libstuff.a
> Undefined symbols for architecture x86_64:
"_add_execute_list", referenced from:
_main in ar-ar.o
"_add_execute_list_with_prefix", referenced from:
_main in ar-ar.o
"_execute_list", referenced from:
_main in ar-ar.o
"_get_unix_standard_mode", referenced from:
_main in ar-ar.o
"_reset_execute_list", referenced from:
_main in ar-ar.o

ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Any ideas?

hard crash on gmplib arm64

I've successfully built gmplib on arm-7 for ios, but when I tried doing the exact same thing for arm64, the compiler hard crashed with the following error stack trace. Any ideas where I should look for the problem?

libtool: compile:  arm-apple-darwin11-clang -DHAVE_CONFIG_H -I. -I.. -D__GMP_WITHIN_GMP -I.. -DOPERATION_divrem -mfpu=neon -O2 -pedantic -DNO_ASM -c divrem.c -o divrem.o
clang: warning: argument unused during compilation: '-mfpu=neon'
0  libLLVM-3.6.so.1 0x00007f97d2d2e572 llvm::sys::PrintStackTrace(_IO_FILE*) + 50
1  libLLVM-3.6.so.1 0x00007f97d2d2ccb9
2  libpthread.so.0  0x00007f97d1dffd10
3  libLLVM-3.6.so.1 0x00007f97d2b3d927 llvm::MachineInstr::addOperand(llvm::MachineFunction&, llvm::MachineOperand const&) + 23
4  libLLVM-3.6.so.1 0x00007f97d3459725 llvm::AArch64InstrInfo::storeRegToStackSlot(llvm::MachineBasicBlock&, llvm::MachineBasicBlock::bundle_iterator<llvm::MachineInstr, llvm::ilist_iterator<llvm::MachineInstr> >, unsigned int, bool, int, llvm::TargetRegisterClass const*, llvm::TargetRegisterInfo const*) const + 1541
5  libLLVM-3.6.so.1 0x00007f97d2abfbcc
6  libLLVM-3.6.so.1 0x00007f97d2ac3b30
7  libLLVM-3.6.so.1 0x00007f97d2bb7030
8  libLLVM-3.6.so.1 0x00007f97d2bbacfb
9  libLLVM-3.6.so.1 0x00007f97d2ba94f6 llvm::RegAllocBase::allocatePhysRegs() + 198
10 libLLVM-3.6.so.1 0x00007f97d2bbb88c
11 libLLVM-3.6.so.1 0x00007f97d2718a97 llvm::FPPassManager::runOnFunction(llvm::Function&) + 487
12 libLLVM-3.6.so.1 0x00007f97d2718d2b llvm::FPPassManager::runOnModule(llvm::Module&) + 43
13 libLLVM-3.6.so.1 0x00007f97d27186f4 llvm::legacy::PassManagerImpl::run(llvm::Module&) + 772
14 clang            0x0000000000872c43 clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::CodeGenOptions const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::StringRef, llvm::Module*, clang::BackendAction, llvm::raw_ostream*) + 3267
15 clang            0x00000000008632fb
16 clang            0x0000000000a21a2a clang::ParseAST(clang::Sema&, bool, bool) + 826
17 clang            0x00000000006dc1c6 clang::FrontendAction::Execute() + 118
18 clang            0x00000000006b5669 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 313
19 clang            0x000000000069c613 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1939
20 clang            0x0000000000697ae8 cc1_main(llvm::ArrayRef<char const*>, char const*, void*) + 1304
21 clang            0x0000000000694b62 main + 962
22 libc.so.6        0x00007f97d14aca40 __libc_start_main + 240
23 clang            0x00000000006970b9 _start + 41
Stack dump:
0.  Program arguments: /usr/lib/llvm-3.6/bin/clang -cc1 -triple arm64-apple-ios6.0.0 -Wdeprecated-objc-isa-usage -Werror=deprecated-objc-isa-usage -Werror=implicit-function-declaration -emit-obj -disable-free -disable-llvm-verifier -main-file-name divrem.c -mrelocation-model pic -pic-level 2 -mthread-model posix -mdisable-fp-elim -masm-verbose -target-cpu cyclone -target-feature +neon -target-feature +crc -target-feature +crypto -target-feature +zcm -target-feature +zcz -target-abi darwinpcs -target-linker-version 253.3 -dwarf-column-info -coverage-file /deps-build/gmp-6.1.0/mpn/divrem.o -resource-dir /usr/lib/llvm-3.6/bin/../lib/clang/3.6.2 -isysroot /usr/local/ios-ndk-arm64/bin/../SDK -D HAVE_CONFIG_H -D __GMP_WITHIN_GMP -D OPERATION_divrem -D NO_ASM -I . -I .. -I .. -O2 -pedantic -fdebug-compilation-dir /deps-build/gmp-6.1.0/mpn -ferror-limit 19 -fmessage-length 0 -stack-protector 1 -mstackrealign -fallow-half-arguments-and-returns -fblocks -fobjc-runtime=ios-6.0.0 -fencode-extended-block-signature -fmax-type-align=16 -fdiagnostics-show-option -vectorize-loops -vectorize-slp -o divrem.o -x c divrem.c 
1.  <eof> parser at end of file
2.  Code generation
3.  Running pass 'Function Pass Manager' on module 'divrem.c'.
4.  Running pass 'Greedy Register Allocator' on function '@__gmpn_divrem'
clang: error: unable to execute command: Segmentation fault (core dumped)
clang: error: clang frontend command failed due to signal (use -v to see invocation)
Ubuntu clang version 3.6.2-1 (tags/RELEASE_362/final) (based on LLVM 3.6.2)
Target: aarch64-apple-darwin11
Thread model: posix

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.