Coder Social home page Coder Social logo

tpoechtrager / osxcross Goto Github PK

View Code? Open in Web Editor NEW
2.8K 2.8K 314.0 28.85 MB

Mac OS X cross toolchain for Linux, FreeBSD, OpenBSD and Android (Termux)

License: GNU General Public License v2.0

Shell 38.43% C 16.28% C++ 44.06% Makefile 0.65% CMake 0.58%

osxcross's People

Contributors

05nelsonm avatar abrodkin avatar akien-mga avatar ancwrd1 avatar cschol avatar darosior avatar donbright avatar dos1 avatar frederick888 avatar heinrich5991 avatar htgoebel avatar jboekesteijn avatar joseluisq avatar jpcima avatar jtv avatar justdan96 avatar lucor avatar mateusz-juda avatar mite-user avatar msabwat avatar rasmuspeders1 avatar rdrpenguin04 avatar realnc avatar rokm avatar sandrogauci avatar sfackler avatar steeve avatar stloeffler avatar tpoechtrager avatar westinrm 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  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

osxcross's Issues

make it ccache friendly

It seems customary in linux distros to install ccache symlinks in /usr/lib or /usr/lib64. osxcross seems to forcibly ignore those paths.

Fail on ./build.sh "can't touch 'have_cctools_repos/osxcross/tarballs/cctools-862...'"

I have many attempts to build cross compiler and I have been failed.
On Linux Mint 17.1
-terminal-5
On Linux Mint 17.2 (after upgrade)
2015-07-05 18 08 53

  1. I built clang 3.6 via ./build_clang.sh script under root
  2. I made chown -R vitaly:vitaly osxcross
  3. Xcode 6.3.2, target OSX versions 10.10 and minimal 10.9
  4. I working under Linux Mint 17.1 and now under 17.2

I think, this is a bug in the script code or I do something wrong ๐Ÿ˜œ
I wanna run this wonderful project at me because too hard for me to get Mac OS machine yet

New SDK packing method on Linux (was: Outdated information?)

I just started packing the SDK on Linux, but I tried it with XCode 5.1.1 (which was reported not to work). While the mount script didn't work for me, I manually executed the commands that it performs. I was able to mount the generated image (no modprobe on loop for creating a loopback device in the script) and execute the gen_sdk_package.sh script. This generated two files: MacOSX10.8.sdk.tar.xz and .MacOSX10.9.sdk.tar.xz

According to the documentation I shouldn't have gotten this far with this XCode version. Does this mean the documentation is outdated?

build.sh fails to find/extract SDK tarballs

The build.sh script fails somewhere after line 213 with the following error:

ls: cannot access /home/user/osxcross/tarballs/MacOSX10.9...2*: No such file or directory

At first i thought the path length is relevant and is is shorten. But moving the osxcross dir to / did not fix the problem. Therefore it probably is not related to the path length. I tried to locate the problem but my script magic is insufficient. Any help would be really appreciated.

I am using Ubuntu 13.10.

Michael

build.sh fails with exit code 134

$ ./build.sh
found SDK version 10.6 at tarballs/MacOSX10.6.pkg
verified at tarballs/MacOSX10.6.pkg

Building OSXCross toolchain, Version: 0.10

OS X SDK Version: 10.6, Target: darwin10
Minimum targeted OS X Version: 10.5
Tarball Directory: /home/builder/osxcross.git/tarballs
Build Directory: /home/builder/osxcross.git/build
Install Directory: /home/builder/osxcross.git/target
SDK Install Directory: /home/builder/osxcross.git/target/SDK

Press enter to start building

...

extracting MacOSX10.6.pkg ...
compiling wrapper ...

./build.sh: line 329: [: -eq: unary operator expected
./build.sh: line 333: [: -eq: unary operator expected
testing o32-clang ... tools/tools.sh: line 112: 29182 Aborted                 $1 $2 -O2 -Wall -o test

exiting with abnormal exit code (134)
run 'OCDEBUG=1 ./build.sh' to enable debug messages
removing stale locks...
if it is happening the first time, then just re-run the script

I checked the line 329:

  if [ `osxcross-cmp ${SDK_VERSION/u/} "<" $OSX_VERSION_MIN` -eq 1 ]; then

expression osxcross-cmp ${SDK_VERSION/u/} "<" $OSX_VERSION_MIN evaluates to an empty string.

Running with OCDEBUG=1:

$ OCDEBUG=1 ./build.sh

...

+ echo ''

+ '[' 10.5 '!=' default ']'
++ osxcross-cmp 10.6 '<' 10.5
+ '[' -eq 1 ']'
./build.sh: line 329: [: -eq: unary operator expected
++ osxcross-cmp 10.5 '<' 10.4
+ '[' -eq 1 ']'
./build.sh: line 333: [: -eq: unary operator expected
+ test_compiler o32-clang /home/builder/osxcross.git/oclang/test.c
+ echo -ne 'testing o32-clang ... '
testing o32-clang ... + o32-clang /home/builder/osxcross.git/oclang/test.c -O2 -Wall -o test
tools/tools.sh: line 112:  5410 Aborted                 $1 $2 -O2 -Wall -o test
+ _exit
+ EC=134
+ '[' 134 -ne 0 ']'
+ test -z build.sh
+ echo ''

+ echo 'exiting with abnormal exit code (134)'
exiting with abnormal exit code (134)
+ test -n 1
+ declare -f -F remove_locks
+ echo 'removing stale locks...'
removing stale locks...
+ remove_locks
+ rm -rf /home/builder/osxcross.git/build/have_cctools_9_darwin10
+ echo 'if it is happening the first time, then just re-run the script'
if it is happening the first time, then just re-run the script
+ echo ''

+ test build.sh = build.sh
+ check_for_bug_1242300
+ '[' -e /etc/issue ']'
++ grep -i ubuntu.13.10 /etc/issue
+ '[' '' ']'

build error: unknown target CPU 'pentium-m'

Hi,

I'm getting the following error on running ./build.sh

extracting MacOSX10.7.sdk.tar.bz2 ...
compiling wrapper ...
error: unknown target CPU 'pentium-m'
error: unknown target CPU 'pentium-m'
make: *** [main.o] Error 1
make: *** Waiting for unfinished jobs....
make: *** [tools.o] Error 1

I'm on an ubuntu 14.04 (x64).

clang --version reports:

Ubuntu clang version 3.4-1ubuntu3 (tags/RELEASE_34/final) (based on LLVM 3.4)
Target: x86_64-pc-linux-gnu
Thread model: posix

Any idea?

What exact versions of software would you recommend to increase the chances to get this to work on the first try? Eg. I could install a fresh Ubuntu 14.04 server, then what packages, etc.? It would be nice if there were a list of commands that would "just work" on a fresh Ubuntu install which anybody can have on a VM in 10min.

PS: Thanks for all the hard work! Building and packaging work is under-appreciated :)

Can't compile simple dynamic library

I'm trying to build my project Bibtex label generator for use on mac os x, but when I invoke:

$ o32-clang++ -O3 -dynamiclib EntryExit.cpp -o bibtex_label_generator.dylib -I /cygdrive/c/local/EndNote\ SDK/RSServices -I /cygdrive/c/local/rapidxml-1.13  -I /cygdrive/c/local/boost_1_56_0

I get the error:

Undefined symbols for architecture i386:
  "MyIUIServiceNotifyCallbackImp::appendTitle(std::string)", referenced from:
      _Init in EntryExit-93ac7e.o
  "MyIUIServiceNotifyCallbackImp::AddToToolsMenu()", referenced from:
      _Init in EntryExit-93ac7e.o
  "MyIUIServiceNotifyCallbackImp::OnMenuItemSelected()", referenced from:
      vtable for ResearchSoft::CBaseObject<MyIUIServiceNotifyCallbackImp> in EntryExit-93ac7e.o
  "MyIUIServiceNotifyCallbackImp::useSep(bool)", referenced from:
      _Init in EntryExit-93ac7e.o
  "MyIUIServiceNotifyCallbackImp::MyIUIServiceNotifyCallbackImp()", referenced from:
      _Init in EntryExit-93ac7e.o
  "MyIUIServiceNotifyCallbackImp::~MyIUIServiceNotifyCallbackImp()", referenced from:
      ResearchSoft::CBaseObject<MyIUIServiceNotifyCallbackImp>::~CBaseObject() in EntryExit-93ac7e.o
      ResearchSoft::CBaseObject<MyIUIServiceNotifyCallbackImp>::~CBaseObject() in EntryExit-93ac7e.o
  "typeinfo for MyIUIServiceNotifyCallbackImp", referenced from:
      typeinfo for ResearchSoft::CBaseObject<MyIUIServiceNotifyCallbackImp> in EntryExit-93ac7e.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Any ideas on how to fix this? Also, to get boost working, do I need to build the libraries using the mac os x toolchain? Would it be worth it to just rewrite the trim, split, to_lower and regex_replace calls in vanilla c++?

missing x86_64-apple-darwin13-pkg-config

A dummy replacement for pkg-config would be really appreciated. Notably, macports provide that. It would help in using the same build system in cross and non-cross environments. This is what I have in my target/bin/x86_64-apple-darwin13-pkg-config of osxcross:

#!/bin/bash
if [ ! "$PKG_CONFIG_LIBDIR" ]; then
    export PKG_CONFIG_LIBDIR="`cd ..; pwd`"/lib/pkgconfig/
fi
exec pkg-config "$@"

cross compiler stopped working

I built the cross compiler with FORTRAN support in late 2014 and it worked fine for about half a year. It stopped working a couple of months ago. What may have caused this? The errors that I am currently getting when trying to compile are of the form:

f951: internal compiler error: Illegal instruction
0x9467af crash_signal
../../gcc/toplev.c:337
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See http://gcc.gnu.org/bugs.html for instructions.

Interestingly, I don't get this error for all files that I try to compile; in many cases, compilation goes through just fine.

gen_sdk_package.sh fails if Xcode beta is installed alongside Xcode

As per subject, creating SDK packages fails with the following error if Xcode beta is installed in /Applications even if plain Xcode is present:

agatti@tardigrade ~/tmp/osxcross $ ./tools/gen_sdk_package.sh
./tools/gen_sdk_package.sh: line 22: [: /Applications/Xcode-beta.app: binary operator expected
please mount Xcode.dmg

ObjCopy Implementation

Is there an objcopy implementation provided by this toolchain? I haven't found one yet but wasn't sure if I was missing something.

Invalid SDK Version

I have edited this as I started again and the second time around hit a different error:

./build.sh
found SDK version 10.11 at tarballs/MacOSX10.11.sdk.tar.bz2
verified at tarballs/MacOSX10.11.sdk.tar.bz2
Invalid SDK Version

Is 10.11 not supported ?

edit

OK, I added this to build:
10.11*) TARGET=darwin15; X86_64H_SUPPORTED=1; ;;

But then it fails with:

extracting MacOSX10.11.sdk.tar.bz2 ...
compiling wrapper ...

testing o32-clang ... /osxcross/target/bin/../SDK/MacOSX10.11.sdk/usr/include/module.map:1:25: warning: unknown attribute 'extern_c' [-Wignored-attributes]
module Darwin [system] [extern_c] {
                        ^
/osxcross/target/bin/../SDK/MacOSX10.11.sdk/usr/include/module.map:1561:21: warning: unknown attribute 'extern_c' [-Wignored-attributes]
module os [system] [extern_c] {
                    ^
/osxcross/target/bin/../SDK/MacOSX10.11.sdk/usr/include/module.map:1577:26: warning: unknown attribute 'extern_c' [-Wignored-attributes]
module libkern [system] [extern_c] {
                         ^
/osxcross/target/bin/../SDK/MacOSX10.11.sdk/usr/include/module.map:1602:23: warning: unknown attribute 'extern_c' [-Wignored-attributes]
module ldap [system] [extern_c] {
                      ^
/osxcross/target/bin/../SDK/MacOSX10.11.sdk/usr/include/module.map:1635:23: warning: unknown attribute 'extern_c' [-Wignored-attributes]
module krb5 [system] [extern_c] {
                      ^
/osxcross/target/bin/../SDK/MacOSX10.11.sdk/usr/include/module.map:1662:22: warning: unknown attribute 'extern_c' [-Wignored-attributes]
module XPC [system] [extern_c] {
                     ^
6 warnings generated.
ld: library not found for -lSystem
clang: error: linker command failed with exit code 1 (use -v to see invocation)

exiting with abnormal exit code (1)

compile first, add SDK later?

What would be needed to make it possible to compile osxcross first and then later add an SDK.
That way I could create a package osxcross for Fedora like I did for wclang.
Maybe have an import tool that will then later import the SDK to e.g. /var/osxcross/SDK/10.10 or /var/osxcross/SDK/10.09 with some symlink /var/osxcross/SDK/default to point to the currently active one.

'cannot find clang intrinsic headers' warning with clang-3.5 and llvm-3.5-dev

I'm using the Ubuntu clang 3.5 packages on Ubuntu 14.04, installed with: apt-get install clang-3.5 llvm-3.5-dev (not from the LLVM APT repository)

Symlinks are set up in /usr/local/bin:

ls -l /usr/local/bin
lrwxrwxrwx 1 root root 18 Feb 21 13:11 clang -> /usr/bin/clang-3.5
lrwxrwxrwx 1 root root 20 Feb 21 13:11 clang++ -> /usr/bin/clang++-3.5

I performed the build with OCDEBUG=1 ./build.sh &>build.log and can provide you with the build.log if you're interested.

In the final build phase, while performing tests, I receive this message multiple times:

cannot find clang intrinsic headers, please report this issue to the OSXCross project

One of the full compiler command lines:

clang++ -target x86_64-apple-darwin13 -mlinker-version=241.9 -isysroot /root/osxcross/target/bin/../SDK/MacOSX10.9.sdk -stdlib=libstdc++ -cxx-isystem /root/osxcross/target/bin/../SDK/MacOSX10.9.sdk/usr/include/c++/4.2.1 -cxx-isystem /root/osxcross/target/bin/../SDK/MacOSX10.9.sdk/usr/include/c++/4.2.1/x86_64-apple-darwin13 -mmacosx-version-min=10.5.0 -arch x86_64 -o test /root/osxcross/oclang/test.cpp -O2 -Wall

If I'm correct, it is testing the existence of xmmintrin.h on the include path. This file exists on my system:

find / -type f -name "xmmintrin.h"
/usr/lib/llvm-3.5/lib/clang/3.5.0/include/xmmintrin.h
/usr/lib/gcc/x86_64-linux-gnu/4.8/include/xmmintrin.h

Why is the wrapper not able to find the file? Should I explicitly add the directory to my include path somewhere?

fatal error: /home/cosmin/osxcross/target/bin/nm returned 255 exit status

Me again :) this time trying to build gcc.

First, I needed to add some more packages, namely: libz-dev, libmpfr-dev, libgmp-dev that weren't covered by tools/get_dependencies.sh.

Then compilation succeeds at producing binaries but in the end I get this:

make[1]: Leaving directory `/home/cosmin/osxcross/build/gcc-5.2.0/build'
compiling wrapper ...

testing o32-gcc ... collect2: fatal error: /home/cosmin/osxcross/target/bin/nm returned 255 exit status
compilation terminated.

Trying to build anything that needs any kind of linking to ext. libs results in the same error (but I can build stuff that needs no linking to ext. libs).

Any idea?

Thanks.

got error in building the osxcross toolchain

Hello,
I would like to thank you for this wonderful toolchain. I got build error while using ./build.sh , I am using 64 bit ubuntu 12.04 , Please find the build logs below -


found SDK version 10.10 at tarballs/MacOSX10.10.sdk.tar.xz
verified at tarballs/MacOSX10.10.sdk.tar.xz

Building OSXCross toolchain, Version: 0.9

OS X SDK Version: 10.10, Target: darwin14
Minimum targeted OS X Version: 10.5
Tarball Directory: /home/vineet/store/software/osxcross-master/tarballs
Build Directory: /home/vineet/store/software/osxcross-master/build
Install Directory: /home/vineet/store/software/osxcross-master/target
SDK Install Directory: /home/vineet/store/software/osxcross-master/target/SDK

extracting cctools-862-ld64-241.9_2201b7b.tar.xz ...
cctools-862-ld64-241.9_2201b7b/
cctools-862-ld64-241.9_2201b7b/cctools/
cctools-862-ld64-241.9_2201b7b/cctools/include/
cctools-862-ld64-241.9_2201b7b/cctools/include/stuff/
cctools-862-ld64-241.9_2201b7b/cctools/include/stuff/dylib_roots.h............
.................................................

Making all in as
make[1]: Entering directory /home/vineet/store/software/osxcross-master/build/cctools-862-ld64-241.9_2201b7b/cctools/as' Making all in arm make[2]: Entering directory/home/vineet/store/software/osxcross-master/build/cctools-862-ld64-241.9_2201b7b/cctools/as/arm'
clang -DPACKAGE_NAME="cctools" -DPACKAGE_TARNAME="cctools" -DPACKAGE_VERSION="862" -DPACKAGE_STRING="cctools\ 862" -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/" -DHAVE_OPENSSL_MD5_H=1 -DHAVE_UUID_UUID_H=1 -DEMULATED_HOST_CPU_TYPE=16777223 -DEMULATED_HOST_CPU_SUBTYPE=3 -D__STDC_LIMIT_MACROS=1 -D__STDC_CONSTANT_MACROS=1 -I. -I../../include -I../../include/foreign -I../../libstuff -I../../as -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 -DNeXT_MOD -DASLIBEXECDIR=""/home/vineet/store/software/osxcross-master/target/libexec/as/"" -D__DARWIN_UNIX03 -DARM -O3 -isystem /usr/local/include -isystem /usr/pkg/include -c -o ../arm_as-app.o test -f '../app.c' || echo './'../app.c
clang -DPACKAGE_NAME="cctools" -DPACKAGE_TARNAME="cctools" -DPACKAGE_VERSION="862" -DPACKAGE_STRING="cctools\ 862" -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/" -DHAVE_OPENSSL_MD5_H=1 -DHAVE_UUID_UUID_H=1 -DEMULATED_HOST_CPU_TYPE=16777223 -DEMULATED_HOST_CPU_SUBTYPE=3 -D__STDC_LIMIT_MACROS=1 -D__STDC_CONSTANT_MACROS=1 -I. -I../../include -I../../include/foreign -I../../libstuff -I../../as -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 -DNeXT_MOD -DASLIBEXECDIR=""/home/vineet/store/software/osxcross-master/target/libexec/as/"" -D__DARWIN_UNIX03 -DARM -O3 -isystem /usr/local/include -isystem /usr/pkg/include -c -o ../arm_as-as.o test -f '../as.c' || echo './'../as.c
make[2]: Leaving directory /home/vineet/store/software/osxcross-master/build/cctools-862-ld64-241.9_2201b7b/cctools/as/arm' make[1]: Leaving directory/home/vineet/store/software/osxcross-master/build/cctools-862-ld64-241.9_2201b7b/cctools/as'

exiting with abnormal exit code (2)
removing stale locks...
if it is happening the first time, then just re-run the script


please give some suggestion to solve this error.

Regards,
Vineet Pant

build.sh fails on Mageia linux with clang

there is a possibly related discussion on the llvm-dev mailing list here:

http://lists.cs.uiuc.edu/pipermail/llvmdev/2013-January/thread.html#57624

(in other words it might be a Mageia packaging problem of clang)


./build.sh


...
...
...


mv -f .deps/ld-InputFiles.Tpo .deps/ld-InputFiles.Po
clang++ -DPACKAGE_NAME=\"cctools\" -DPACKAGE_TARNAME=\"cctools\" -DPACKAGE_VERSION=\"845\" -DPACKAGE_STRING=\"cctools\ 845\" -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/\" -DHAVE_OPENSSL_MD5_H=1 -DHAVE_UUID_UUID_H=1 -DEMULATED_HOST_CPU_TYPE=16777223 -DEMULATED_HOST_CPU_SUBTYPE=3 -D__STDC_LIMIT_MACROS=1 -D__STDC_CONSTANT_MACROS=1 -I.    -fblocks -D__DARWIN_UNIX03 -Wall -Wno-long-long -Wno-import -Wno-format -Wno-deprecated -Wno-unused-variable -Wno-unused-private-field -Wno-unused-function -Wno-objc-root-class -Wno-deprecated-objc-isa-usage -Wno-invalid-offsetof -Wno-int-conversion  -D__LITTLE_ENDIAN__=1 -I../../../include -I../../../include/foreign -I../../../ld64/src -I../../../ld64/src/abstraction -I../../../ld64/src/3rd -I../../../ld64/src/3rd/BlocksRuntime -I../../../ld64/src/ld -I../../../ld64/src/ld/parsers -I../../../ld64/src/ld/passes -DPROGRAM_PREFIX="\"x86_64-apple-darwin12-\""  -DLTO_SUPPORT=1  -O3 -MT ld-ld.o -MD -MP -MF .deps/ld-ld.Tpo -c -o ld-ld.o `test -f 'ld.cpp' || echo './'`ld.cpp
ld.cpp:63:10: fatal error: 'cxxabi.h' file not found
#include <cxxabi.h>
         ^
1 error generated.
Makefile:608: recipe for target 'ld-ld.o' failed
make[4]: *** [ld-ld.o] Error 1
make[4]: Leaving directory '/home/don/osxcross/build/cctools-845-ld64-134.9_aeaf795/cctools/ld64/src/ld'
Makefile:718: recipe for target 'all-recursive' failed
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory '/home/don/osxcross/build/cctools-845-ld64-134.9_aeaf795/cctools/ld64/src/ld'
Makefile:360: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory '/home/don/osxcross/build/cctools-845-ld64-134.9_aeaf795/cctools/ld64/src'
Makefile:361: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/don/osxcross/build/cctools-845-ld64-134.9_aeaf795/cctools/ld64'
Makefile:390: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1

exiting with abnormal exit code (2)
run 'OCDEBUG=1 ./build.sh' to enable debug messages
removing stale locks...
if it is happening the first time, then just re-run the script



[don@localhost osxcross]$ clang -v -fsyntax-only -x c++ /dev/null
clang version 3.3 (tags/RELEASE_33/final)
Target: x86_64-mageia-linux-gnu
Thread model: posix
 "/usr/bin/clang" -cc1 -triple x86_64-mageia-linux-gnu -fsyntax-only -disable-free -disable-llvm-verifier -main-file-name null -mrelocation-model static -mdisable-fp-elim -fmath-errno -masm-verbose -mconstructor-aliases -munwind-tables -fuse-init-array -target-cpu x86-64 -target-linker-version 2.24.20131016 -v -resource-dir /usr/bin/../lib/clang/3.3 -internal-isystem /usr/lib/gcc/x86_64-mageia-linux-gnu/4.8.2/../../../../include/c++/4.8.2 -internal-isystem /usr/lib/gcc/x86_64-mageia-linux-gnu/4.8.2/../../../../include/c++/4.8.2/x86_64-mageia-linux-gnu -internal-isystem /usr/lib/gcc/x86_64-mageia-linux-gnu/4.8.2/../../../../include/c++/4.8.2/backward -internal-isystem /usr/lib/gcc/x86_64-mageia-linux-gnu/4.8.2/../../../../include/x86_64-mageia-linux-gnu/c++/4.8.2 -internal-isystem /usr/local/include -internal-isystem /usr/bin/../lib/clang/3.3/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /home/don/osxcross -ferror-limit 19 -fmessage-length 80 -mstackrealign -fobjc-runtime=gcc -fobjc-default-synthesize-properties -fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -backend-option -vectorize-loops -x c++ /dev/null
clang -cc1 version 3.3 based upon LLVM 3.3 default target x86_64-mageia-linux-gnu
ignoring nonexistent directory "/usr/lib/gcc/x86_64-mageia-linux-gnu/4.8.2/../../../../include/x86_64-mageia-linux-gnu/c++/4.8.2"
ignoring nonexistent directory "/include"
#include "..." search starts here:
#include <...> search starts here:
 /usr/lib/gcc/x86_64-mageia-linux-gnu/4.8.2/../../../../include/c++/4.8.2
 /usr/lib/gcc/x86_64-mageia-linux-gnu/4.8.2/../../../../include/c++/4.8.2/x86_64-mageia-linux-gnu
 /usr/lib/gcc/x86_64-mageia-linux-gnu/4.8.2/../../../../include/c++/4.8.2/backward
 /usr/local/include
 /usr/bin/../lib/clang/3.3/include
 /usr/include
End of search list.

`-stdlib=libc++` requires "targeted OS X version must be <= 10.6.0 (SDK)"

This doesn't make sense:

root@70edf05eb7c2:/# cat foo.cc
int main(int argc, char const *argv[])
{
    /* code */
    return 0;
}
root@70edf05eb7c2:/# which o64-clang++
/osxcross/target/bin/o64-clang++
# this works:
root@70edf05eb7c2:/# o64-clang++ -std=c++11 foo.cc
# this doesn't:
root@70edf05eb7c2:/# o64-clang++ -std=c++11 -stdlib=libc++ foo.cc
osxcross: error: targeted OS X version must be <= 10.6.0 (SDK)
osxcross: error: while detecting target

Why does -stdlib=libc++ require OS X <= 10.6.0? In the absence of this flag, my code fails to compile because c++11 features can't be found.

LIBTOOL undefined

Hi, I'm trying to build osxcross on Ubuntu 14.04 x86_64 and am getting an error in the build.sh script about LIBTOOL being undefined. I'm unfamiliar with this particular problem and would appreciate some insight. apt-cache show libtool indicates I've got Version: 2.4.2-1.7ubuntu1 installed.

found SDK version 10.9 at tarballs/MacOSX10.9.sdk.tar.bz2
verified at tarballs/MacOSX10.9.sdk.tar.bz2

Building OSXCross toolchain, Version: 0.8

OS X SDK Version: 10.9, Target: darwin13
Minimum targeted OS X Version: 10.5
Tarball Directory: /home/parnic/osxcross/tarballs
Build Directory: /home/parnic/osxcross/build
Install Directory: /home/parnic/osxcross/target
SDK Install Directory: /home/parnic/osxcross/target/SDK

Press enter to start building

extracting cctools-855-ld64-236.3_fe05cf1.tar.xz ...

patching file cctools/configure.ac
patching file cctools/ld64/src/ld/code-sign-blobs/memutils.h
patching file cctools/configure.ac
patching file cctools/libobjc2/lock.h
patching file cctools/configure.ac
patching file cctools/include/sys/cdefs.h
patching file ld64/src/3rd/helper.h
patching file ld64/src/ld/Snapshot.cpp

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 filem4/ltoptions.m4'
libtoolize: copying file m4/ltsugar.m4' libtoolize: copying filem4/ltversion.m4'
libtoolize: copying file `m4/lt~obsolete.m4'
configure.ac:40: installing './compile'
configure.ac:25: installing './missing'
Makefile.am: installing './INSTALL'
ld64/src/3rd/BlocksRuntime/Makefile.am:1: error: Libtool library used but 'LIBTOOL' is undefined
ld64/src/3rd/BlocksRuntime/Makefile.am:1: The usual way to define 'LIBTOOL' is to add 'LT_INIT'
ld64/src/3rd/BlocksRuntime/Makefile.am:1: to 'configure.ac' and run 'aclocal' and 'autoconf' again.
ld64/src/3rd/BlocksRuntime/Makefile.am:1: If 'LT_INIT' is in 'configure.ac', make sure
ld64/src/3rd/BlocksRuntime/Makefile.am:1: its definition is in aclocal's search path.
ld64/src/3rd/Makefile.am:2: error: Libtool library used but 'LIBTOOL' is undefined
ld64/src/3rd/Makefile.am:2: The usual way to define 'LIBTOOL' is to add 'LT_INIT'
ld64/src/3rd/Makefile.am:2: to 'configure.ac' and run 'aclocal' and 'autoconf' again.
ld64/src/3rd/Makefile.am:2: If 'LT_INIT' is in 'configure.ac', make sure
ld64/src/3rd/Makefile.am:2: its definition is in aclocal's search path.
ld64/src/ld/parsers/Makefile.am:1: error: Libtool library used but 'LIBTOOL' is undefined
ld64/src/ld/parsers/Makefile.am:1: The usual way to define 'LIBTOOL' is to add 'LT_INIT'
ld64/src/ld/parsers/Makefile.am:1: to 'configure.ac' and run 'aclocal' and 'autoconf' again.
ld64/src/ld/parsers/Makefile.am:1: If 'LT_INIT' is in 'configure.ac', make sure
ld64/src/ld/parsers/Makefile.am:1: its definition is in aclocal's search path.
ld64/src/ld/passes/Makefile.am:1: error: Libtool library used but 'LIBTOOL' is undefined
ld64/src/ld/passes/Makefile.am:1: The usual way to define 'LIBTOOL' is to add 'LT_INIT'
ld64/src/ld/passes/Makefile.am:1: to 'configure.ac' and run 'aclocal' and 'autoconf' again.
ld64/src/ld/passes/Makefile.am:1: If 'LT_INIT' is in 'configure.ac', make sure
ld64/src/ld/passes/Makefile.am:1: its definition is in aclocal's search path.
libobjc2/Makefile.am:1: error: Libtool library used but 'LIBTOOL' is undefined
libobjc2/Makefile.am:1: The usual way to define 'LIBTOOL' is to add 'LT_INIT'
libobjc2/Makefile.am:1: to 'configure.ac' and run 'aclocal' and 'autoconf' again.
libobjc2/Makefile.am:1: If 'LT_INIT' is in 'configure.ac', make sure
libobjc2/Makefile.am:1: its definition is in aclocal's search path.
libstuff/Makefile.am:1: error: Libtool library used but 'LIBTOOL' is undefined
libstuff/Makefile.am:1: The usual way to define 'LIBTOOL' is to add 'LT_INIT'
libstuff/Makefile.am:1: to 'configure.ac' and run 'aclocal' and 'autoconf' again.
libstuff/Makefile.am:1: If 'LT_INIT' is in 'configure.ac', make sure
libstuff/Makefile.am:1: its definition is in aclocal's search path.

exiting with abnormal exit code (1)

build_clang.sh fails without real error message

bash-4.3# OCDEBUG=1 INSTALLPREFIX=$(pwd)/inst ./build_clang.sh 
+++ uname -s
++ PLATFORM=Linux
+++ basename ./build_clang.sh
++ SCRIPT=build_clang.sh
++ [[ build_clang.sh != *wrapper/build.sh ]]
+++ tools/get_cpu_count.sh
++ JOBS=8
++ '[' build_clang.sh '!=' build.sh -a build_clang.sh '!=' build_clang.sh -a build_clang.sh '!=' mount_xcode_image.sh ']'
++ [[ Linux == *BSD ]]
++ MAKE=make
++ require make
++ set +e
++ which make
++ '[' 0 -ne 0 ']'
++ set -e
++ set -e
+ TARBALL_DIR=/osxcross/tarballs
+ BUILD_DIR=/osxcross/build
+ '[' -z '' ']'
+ '[' Linux '!=' Darwin -a Linux '!=' FreeBSD ']'
+ set +e
+ which g++
+ export CC=gcc
+ CC=gcc
+ export CXX=g++
+ CXX=g++
+ test='
    #define GCC_VERSION_AT_LEAST(major, minor, patch)                          (defined(__GNUC__) &&                                                    (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__) >=       (major * 10000 + minor * 100 + patch))

    #if !GCC_VERSION_AT_LEAST(4, 7, 0)
      not_gcc_47_or_later
    #endif'
+ echo '
    #define GCC_VERSION_AT_LEAST(major, minor, patch)                          (defined(__GNUC__) &&                                                    (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__) >=       (major * 10000 + minor * 100 + patch))

    #if !GCC_VERSION_AT_LEAST(4, 7, 0)
      not_gcc_47_or_later
    #endif'
+ g++ -fsyntax-only -xc++ -
+ set -e
+ source /osxcross/tools/trap_exit.sh
++ trap _exit EXIT
+ MIRROR=http://llvm.org
+ '[' -z '' ']'
+ CLANG_VERSION=3.6
+ CLANG_VERSION_PATCH=.0
+ [[ http://llvm.org == *ubuntu* ]]
+ CLANG_VERSION_MMP=3.6.0
+ '[' -z '' ']'
+ INSTALLPREFIX=/usr/local
+ require wget
+ set +e
+ which wget
+ '[' 0 -ne 0 ']'
+ set -e
+ '[' Linux '!=' Darwin -a Linux '!=' FreeBSD ']'
+ warn_if_installed clang clang
+ set +e
+ which clang
+ set -e
+ warn_if_installed llvm-config llvm
+ set +e
+ which llvm-config
+ set -e
+ echo 'Building Clang/LLVM 3.6 may take a long time.'
Building Clang/LLVM 3.6 may take a long time.
+ echo 'Installation Prefix: /usr/local'
Installation Prefix: /usr/local
+ read -p 'Press enter to start building.'
Press enter to start building.
+ echo ''

+ pushd /osxcross/tarballs
+ [[ http://llvm.org == *ubuntu* ]]
+ '[' -z '' ']'
+ PKGCOMPRESSOR=tar.xz
+ '[' 3.6 == 3.4 ']'
+ LLVM_PKG=http://llvm.org/releases/3.6.0/
+ LLVM_PKG+=llvm-3.6.0.src.tar.xz
+ CLANG_PKG=http://llvm.org/releases/3.6.0/
+ CLANG_PKG+=cfe-3.6.0.src.tar.xz
+ wget -c http://llvm.org/releases/3.6.0/llvm-3.6.0.src.tar.xz
--2015-05-09 06:46:55--  http://llvm.org/releases/3.6.0/llvm-3.6.0.src.tar.xz
Resolving llvm.org (llvm.org)... 128.174.246.134
Connecting to llvm.org (llvm.org)|128.174.246.134|:80... connected.
HTTP request sent, awaiting response... 416 Requested Range Not Satisfiable

    The file is already fully retrieved; nothing to do.

+ wget -c http://llvm.org/releases/3.6.0/cfe-3.6.0.src.tar.xz
--2015-05-09 06:46:56--  http://llvm.org/releases/3.6.0/cfe-3.6.0.src.tar.xz
Resolving llvm.org (llvm.org)... 128.174.246.134
Connecting to llvm.org (llvm.org)|128.174.246.134|:80... connected.
HTTP request sent, awaiting response... 416 Requested Range Not Satisfiable

    The file is already fully retrieved; nothing to do.

+ popd
+ pushd /osxcross/build
+ _exit
+ EC=1
+ '[' 1 -ne 0 ']'
+ test -z build_clang.sh
+ echo ''

+ echo 'exiting with abnormal exit code (1)'
exiting with abnormal exit code (1)
+ test -n 1
+ declare -f -F remove_locks
+ echo 'if it is happening the first time, then just re-run the script'
if it is happening the first time, then just re-run the script
+ echo ''

+ test build_clang.sh = build.sh
bash-4.3# 

Without debug:

bash-4.3# INSTALLPREFIX=$(pwd)/inst ./build_clang.sh 
Building Clang/LLVM 3.6 may take a long time.
Installation Prefix: /osxcross/inst
Press enter to start building.

--2015-05-09 06:50:12--  http://llvm.org/releases/3.6.0/llvm-3.6.0.src.tar.xz
Resolving llvm.org (llvm.org)... 128.174.246.134
Connecting to llvm.org (llvm.org)|128.174.246.134|:80... connected.
HTTP request sent, awaiting response... 416 Requested Range Not Satisfiable

    The file is already fully retrieved; nothing to do.

--2015-05-09 06:50:12--  http://llvm.org/releases/3.6.0/cfe-3.6.0.src.tar.xz
Resolving llvm.org (llvm.org)... 128.174.246.134
Connecting to llvm.org (llvm.org)|128.174.246.134|:80... connected.
HTTP request sent, awaiting response... 416 Requested Range Not Satisfiable

    The file is already fully retrieved; nothing to do.


exiting with abnormal exit code (1)
run 'OCDEBUG=1 ./build_clang.sh' to enable debug messages
if it is happening the first time, then just re-run the script

bash-4.3# 

What is the actual error there?
The same error happens if i remove the tarballs before i run the script.

Regards,
Ablu

Linker problem: file was built for archive which is not the architecture being linked

I have a problem with the linker, which i was unable to resolve in the last days. It might be a bug within the linker or my configuration, but i am stuck and digging in the linker source code is the least favorite thing i'd like to do...

At first: The same test works on OSX when using clang++ instead of o64-clang++

Building the library is fine. Compiling and linking the example fails with the following errors:

ld: warning: ignoring file ../build/libJsonBox.a, file was built for archive which is not the architecture being linked (x86_64): ../build/libJsonBox.a
... lots of undefined reference errors
ld: symbol(s) not found for architecture x86_64

I have used ranlib on the library. I have checked the architecture with otool/lipo and everything looks just right. It is definitly X86_64.

You can use this small test to verify the problem. (Same happens if you statically compile Boost and then want to link to it)

git clone https://github.com/paresy/JsonBox -b test jsonbox
cd jsonbox
make CXX=o64-clang++
cd examples
o64-clang++ main.cpp -I../include -L../build -lJsonBox

Any hints would be really appreciated.

Michael

Older xcode versions, like 3.1.4?

Hello,
I want to crosscompile for PPC, which means 10.5 / Leopard.
Firstly I couldn't install libxml2-devel, but that was a simple fix, the name in Ubuntu is libxml2-dev.

I'm using "method 3" since method 1 and 2 only supports 4.3 or later.
The second problem was to package the SDK (xcode314_2809_developerdvd.dmg)

sudo tools/mount_xcode_image.sh xcode314_2809_developerdvd.dmg
modprobe hfsplus
tmp dir: /tmp/Fi9gD7pOE
chmod 777 /tmp/Fi9gD7pOE
/home/snigel/crosscompile/osxcross/xcode314_2809_developerdvd.dmg: cannot determine HFS partition

The error message comes from the script mount_xcode_image.sh, not from dmg2img
https://github.com/tpoechtrager/osxcross/blob/master/tools/mount_xcode_image.sh

PARTITION=$(dmg2img -l $XCODEDMG | grep 'disk image (Apple_HFS ' |
awk '{printf "%d", $2}')

case $PARTITION in
''|[!0-9])
echo "$XCODEDMG: cannot determine HFS partition"
exit 1 ;;
esac

echo "HFS partition: $PARTITION"

Running dmg2img on its own yields the following, which looks sane to me:

$dmg2img -l xcode314_2809_developerdvd.dmg
dmg2img v1.6.5 (c) vu1tur ([email protected])
xcode314_2809_developerdvd.dmg --> (partition list)
partition 0: Driver Descriptor Map (DDM : 0)
partition 1: (Apple_Free : 1)
partition 2: Apple (Apple_partition_map : 2)
partition 3: Macintosh (Apple_Driver_ATAPI : 3)
partition 4: (Apple_Free : 4)
partition 5: Mac_OS_X (Apple_HFS : 5)
partition 6: (Apple_Free : 6)

I guess the script should have picked partition 5, so I hardcoded the script to use partition 5 and continued.

sudo tools/mount_xcode_image.sh xcode314_2809_developerdvd.dmg
modprobe hfsplus
tmp dir: /tmp/Kb13dijhR
chmod 777 /tmp/Kb13dijhR
/home/snigel/crosscompile/osxcross/xcode314_2809_developerdvd.dmg: cannot determine HFS partition
HFS partition:
dmg2img -p 5 -i /home/snigel/crosscompile/osxcross/xcode314_2809_developerdvd.dmg -o xcode.img &>dmg2img.log
mkdir -m 777 mnt
cd mnt
mount -o loop -t hfsplus ../xcode.img /tmp/Kb13dijhR/mnt

mounted the xcode image to: /tmp/Kb13dijhR/mnt

now run (not as root):
XCODEDIR=/tmp/Kb13dijhR/mnt ./tools/gen_sdk_package.sh

once you are done with gen_sdk_package.sh, run:
umount -l /tmp/Kb13dijhR/mnt && rm -rf /tmp/Kb13dijhR

Okay, that stepped went through, let's continue.

snigel@ubuntu:~/crosscompile/osxcross$ XCODEDIR=/tmp/Kb13dijhR/mnt ./tools/gen_sdk_package.sh
found Xcode: /tmp/Kb13dijhR/mnt
packaging MacOSX10.3.9 SDK (this may take several minutes) ...
packaging MacOSX10.4.Universal SDK (this may take several minutes) ...
packaging MacOSX10.5 SDK (this may take several minutes) ...

-rw-r--r-- 1 snigel snigel 28M Oct 14 13:54 MacOSX10.3.9.pkg
-rw-r--r-- 1 snigel snigel 35M Oct 14 13:54 MacOSX10.4.Universal.pkg
-rw-r--r-- 1 snigel snigel 47M Oct 14 13:54 MacOSX10.5.pkg

I ran into troubles trying to unmount, couldn't with or without sudo.

snigel@ubuntu:~/crosscompile/osxcross$ umount -l /tmp/Kb13dijhR/mnt && rm -rf /tmp/Kb13dijhR
umount: /tmp/Kb13dijhR/mnt: umount failed: Operation not permitted

snigel@ubuntu:~/crosscompile/osxcross$ sudo umount -l /tmp/Kb13dijhR/mnt && rm -rf >/tmp/Kb13dijhR
rm: cannot remove โ€˜/tmp/Kb13dijhRโ€™: Operation not permitted

File is still there:

~/crosscompile/osxcross$ ls -al /tmp | grep Kb
drwxrwxrwx 2 root root 4096 Oct 14 13:55 Kb13dijhR

Let's ignore the unmount and try to build.

UNATTENDED=1 ./build.sh
no SDK found in tarballs/. please see README.md

Let's look in tarballs

ls -1 tarballs/
cctools-870-ld64-134.9_46e5f8b.tar.xz
cctools-870-ld64-242_9372d4c.tar.xz
xar-1.5.2.tar.gz

Okay, the unpacked pkg files are not there, let's move them.

mv MacOSX10.* tarballs/

Let's build again.

UNATTENDED=1 ./build.sh
tarballs/MacOSX10.4.Universal.pkg
tarballs/MacOSX10.3.9.pkg
tarballs/MacOSX10.5.pkg
more than one MacOSX SDK tarball found. please set
SDK_VERSION environment variable for the one you want
(for example: SDK_VERSION=10.x [OSX_VERSION_MIN=10.x] ./build.sh)

Let's try again

UNATTENDED=1 SDK_VERSION=10.5 ./build.sh
Lots of output from compiler...
testing o32-clang ... works
testing o64-clang ... works
testing o32-clang++ ... works
testing o64-clang++ ... works
Do not forget to add
/home/snigel/crosscompile/osxcross/target/bin
to your PATH variable.
All done! Now you can use o32-clang(++) and o64-clang(++) like a normal compiler.

Time to compile gcc 4.2.1 (which is what Leopard/10.5 uses).

GCC_VERSION=4.2.1 ENABLE_FORTRAN=1 ./build_gcc.sh.
Lots of compiler output...
xgcc: error trying to exec '/usr/bin/libtool': execvp: No such file or directory
libgcc.mk:780: recipe for target 'libgcc_s.dylib' failed
make[3]: *** [libgcc_s.dylib] Error 1
make[3]: Leaving directory '/home/snigel/crosscompile/osxcross/build/gcc-4.2.1/build/gcc'
Makefile:1541: recipe for target 'stmp-multilib' failed
make[2]: *** [stmp-multilib] Error 2
rm gfortran.pod
make[2]: Leaving directory '/home/snigel/crosscompile/osxcross/build/gcc-4.2.1/build/gcc'
Makefile:4306: recipe for target 'all-gcc' failed
make[1]: *** [all-gcc] Error 2
make[1]: Leaving directory '/home/snigel/crosscompile/osxcross/build/gcc-4.2.1/build'
Makefile:648: recipe for target 'all' failed
make: *** [all] Error 2

exiting with abnormal exit code (2)
run 'OCDEBUG=1 ./build_gcc.sh' to enable debug messages
removing stale locks...
if it is happening the first time, then just re-run the script

Okay, let's install libtool and retry.

sudo apt-get install libtool-bin

Ouch, a rerun causes it to restart from the beginning.

UNATTENDED=1 SDK_VERSION=10.5 ./build.sh
Lots of compiler output, redoing everything from scratch...
libtool: unrecognized option -dynamic' libtool: Trylibtool --help' for more information.
libgcc.mk:780: recipe for target 'libgcc_s.dylib' failed
make[3]: *** [libgcc_s.dylib] Error 1
make[3]: Leaving directory '/home/snigel/crosscompile/osxcross/build/gcc-4.2.1/build/gcc'
Makefile:1541: recipe for target 'stmp-multilib' failed
make[2]: *** [stmp-multilib] Error 2
rm gfortran.pod
make[2]: Leaving directory '/home/snigel/crosscompile/osxcross/build/gcc-4.2.1/build/gcc'
Makefile:4306: recipe for target 'all-gcc' failed
make[1]: *** [all-gcc] Error 2
make[1]: Leaving directory '/home/snigel/crosscompile/osxcross/build/gcc-4.2.1/build'
Makefile:648: recipe for target 'all' failed
make: *** [all] Error 2

exiting with abnormal exit code (2)
run 'OCDEBUG=1 ./build_gcc.sh' to enable debug messages
removing stale locks...
if it is happening the first time, then just re-run the script

Perhaps I'm using the wrong libtool.
Homebrew/legacy-homebrew#28442

Let's look if I have another libtool

find . -iname libtool
./build/cctools-870-ld64-242_9372d4c/cctools/misc/libtool
./build/cctools-870-ld64-242_9372d4c/cctools/libtool

Okay, how well does these handle "-dynamic" then?

./build/cctools-870-ld64-242_9372d4c/cctools/libtool -dynamic
Usage: /home/snigel/crosscompile/osxcross/build/cctools-870-ld64-242_9372d4c/cctools/libtool >[OPTION]... [MODE-ARG]...
Try 'libtool --help' for more information.
libtool: error: unrecognised option: '-dynamic'

and

./build/cctools-870-ld64-242_9372d4c/cctools/misc/libtool -dynamic
error: ./build/cctools-870-ld64-242_9372d4c/cctools/misc/libtool: no output file specified (specify with -o output)
Usage: ./build/cctools-870-ld64-242_9372d4c/cctools/misc/libtool -static [-] file [...] [-filelist >listfile[,dirname]] [-arch_only arch] [-sacLT] [-no_warning_for_no_symbols]
Usage: ./build/cctools-870-ld64-242_9372d4c/cctools/misc/libtool -dynamic [-] file [...] [-filelist >listfile[,dirname]] [-arch_only arch] [-o output] [-install_name name] [-compatibility_version #] >[-current_version #] [-seg1addr 0x#] [-segs_read_only_addr 0x#] [-segs_read_write_addr 0x#] >[-seg_addr_table ] [-seg_addr_table_filename <file_system_path>] [-all_load] >[-noall_load]

This one clearly states dynamic. Good.
Let's remove the libtool I installed and add this to my path.

sudo apt-get remove libtool-bin
PATH=/home/snigel/crosscompile/osxcross/build/cctools-870-ld64-242_9372d4c/cctools/misc/:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games

Another recompile

UNATTENDED=1 SDK_VERSION=10.5 ./build.sh
Lots of compiler output...
fixlib.o: In function compile_re': /home/snigel/crosscompile/osxcross/build/gcc-4.2.1/build/build-x86_64-unknown-linux-gnu/fixincludes/../../../fixincludes/fixlib.c:194: undefined reference toxregcomp'
/home/snigel/crosscompile/osxcross/build/gcc-4.2.1/build/build-x86_64-unknown-linux-gnu/fixincludes/../../../fixincludes/fixlib.c:199: undefined reference to `xregerror'
collect2: error: ld returned 1 exit status
Makefile:106: recipe for target 'full-stamp' failed
make[2]: *** [full-stamp] Error 1
make[2]: Leaving directory '/home/snigel/crosscompile/osxcross/build/gcc-4.2.1/build/build-x86_64-unknown-linux-gnu/fixincludes'
Makefile:2566: recipe for target 'all-build-fixincludes' failed
make[1]: *** [all-build-fixincludes] Error 2
make[1]: Leaving directory '/home/snigel/crosscompile/osxcross/build/gcc-4.2.1/build'
Makefile:648: recipe for target 'all' failed
make: *** [all] Error 2

exiting with abnormal exit code (2)
run 'OCDEBUG=1 ./build_gcc.sh' to enable debug messages
removing stale locks...
if it is happening the first time, then just re-run the script

And now I'm stuck.

objc_msgSend unmatched ifs or elses error

When trying to build osxcross (revision 45b8510) on Ubuntu Precise, I encounter the following error:

vagrant@precise64:~/osxcross$ OC_DEBUG=1 SDK_VERSION=10.9 OSX_VERSION_MIN=10.6 ./build.sh
...
/bin/bash ../libtool  --tag=CC   --mode=compile clang -DPACKAGE_NAME=\"cctools\" -DPACKAGE_TARNAME=\"cctools\" -DPACKAGE_VERSION=\"855\" -DPACKAGE_STRING=\"cctools\ 855\" -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/\" -DHAVE_OPENSSL_MD5_H=1 -DHAVE_UUID_UUID_H=1 -DEMULATED_HOST_CPU_TYPE=16777223 -DEMULATED_HOST_CPU_SUBTYPE=3 -D__STDC_LIMIT_MACROS=1 -D__STDC_CONSTANT_MACROS=1 -I.    -std=gnu99 -fPIC -fexceptions -Wno-deprecated-objc-isa-usage -DTYPE_DEPENDENT_DISPATCH -DGNUSTEP -D__OBJC_RUNTIME_INTERNAL__=1 -D_XOPEN_SOURCE=500 -D__BSD_VISIBLE=1 -D_BSD_SOURCE=1 -DNO_SELECTOR_MISMATCH_WARNINGS -DLTO_SUPPORT=1  -isystem /usr/local/include -isystem /usr/pkg/include -O3 -c -o libobjc_la-caps.lo `test -f 'caps.c' || echo './'`caps.c
<instantiation>:90:1: warning: ignoring directive for now
.ifc "%rdi", "%rdi"
^
./objc_msgSend.x86-64.S:149:2: note: while in macro instantiation
 MSGSEND %rdi, %rsi
 ^
<instantiation>:95:1: error: Encountered a .else that doesn't follow a .if or an .elseif
.else
^
./objc_msgSend.x86-64.S:149:2: note: while in macro instantiation
 MSGSEND %rdi, %rsi
 ^
<instantiation>:101:1: error: Encountered a .endif that doesn't follow a .if or .else
.endif
^
./objc_msgSend.x86-64.S:149:2: note: while in macro instantiation
 MSGSEND %rdi, %rsi
 ^
<instantiation>:90:1: warning: ignoring directive for now
.ifc "%rsi", "%rdi"
^
./objc_msgSend.x86-64.S:153:2: note: while in macro instantiation
 MSGSEND %rsi, %rdx
 ^
<instantiation>:95:1: error: Encountered a .else that doesn't follow a .if or an .elseif
.else
^
./objc_msgSend.x86-64.S:153:2: note: while in macro instantiation
 MSGSEND %rsi, %rdx
 ^
<instantiation>:101:1: error: Encountered a .endif that doesn't follow a .if or .else
.endif
^
./objc_msgSend.x86-64.S:153:2: note: while in macro instantiation
 MSGSEND %rsi, %rdx
 ^
objc_msgSend.S:4:1: error: unmatched .ifs or .elses

^
make[1]: *** [objc_msgSend.lo] Error 1
make[1]: *** Waiting for unfinished jobs....
libtool: compile:  clang -DPACKAGE_NAME=\"cctools\" -DPACKAGE_TARNAME=\"cctools\" -DPACKAGE_VERSION=\"855\" "-DPACKAGE_STRING=\"cctools 855\"" -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/\" -DHAVE_OPENSSL_MD5_H=1 -DHAVE_UUID_UUID_H=1 -DEMULATED_HOST_CPU_TYPE=16777223 -DEMULATED_HOST_CPU_SUBTYPE=3 -D__STDC_LIMIT_MACROS=1 -D__STDC_CONSTANT_MACROS=1 -I. -std=gnu99 -fPIC -fexceptions -Wno-deprecated-objc-isa-usage -DTYPE_DEPENDENT_DISPATCH -DGNUSTEP -D__OBJC_RUNTIME_INTERNAL__=1 -D_XOPEN_SOURCE=500 -D__BSD_VISIBLE=1 -D_BSD_SOURCE=1 -DNO_SELECTOR_MISMATCH_WARNINGS -DLTO_SUPPORT=1 -isystem /usr/local/include -isystem /usr/pkg/include -O3 -c caps.c  -fPIC -DPIC -o .libs/libobjc_la-caps.o
make[1]: Leaving directory `/home/vagrant/osxcross/build/cctools-855-ld64-236.3_fe05cf1/cctools/libobjc2'
make: *** [all-recursive] Error 1

exiting with abnormal exit code (2)
run 'OCDEBUG=1 ./build.sh' to enable debug messages
removing stale locks...
if it is happening the first time, then just re-run the script

Any advice?

iOS?

Question, does this work for cross compiling to iOS?

Different binary target

Is it somehow possible to use this produce ELF binaries? I guess the sdks are given as mach-o libraries, but it would great if osxcross could use a stuff like Foundation and work on linux, specifically debian/ubuntu.

build.sh fails on NetBSD 6.1.3 clang

net bsd build.sh fails

log follows


build.sh

. . .
. . .
. . .



Making all in libstuff
--- libstuff_la-allocate.lo ---
--- libstuff_la-apple_version.lo ---
--- libstuff_la-allocate.lo ---
/bin/ksh ../libtool  --tag=CC   --mode=compile clang -DPACKAGE_NAME=\"cctools\" -DPACKAGE_TARNAME=\"cctools\" -DPACKAGE_VERSION=\"845\" -DPACKAGE_STRING=\"cctools\ 845\" -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/\" -DHAVE_OPENSSL_MD5_H=1 -DHAVE_UUID_UUID_H=1 -DEMULATED_HOST_CPU_TYPE=16777223 -DEMULATED_HOST_CPU_SUBTYPE=3 -D__STDC_LIMIT_MACROS=1 -D__STDC_CONSTANT_MACROS=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-objc-root-class -Wno-deprecated-objc-isa-usage -Wno-invalid-offsetof -Wno-int-conversion  -DPROGRAM_PREFIX="\"x86_64-apple-darwin12-\"" -D__LITTLE_ENDIAN__=1 -DLTO_SUPPORT=1  -O3 -MT libstuff_la-allocate.lo -MD -MP--- libstuff_la-apple_version.lo ---
/bin/ksh ../libtool  --tag=CC   --mode=compile clang -DPACKAGE_NAME=\"cctools\" -DPACKAGE_TARNAME=\"cctools\" -DPACKAGE_VERSION=\"845\" -DPACKAGE_STRING=\"cctools\ 845\" -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/\" -DHAVE_OPENSSL_MD5_H=1 -DHAVE_UUID_UUID_H=1 -DEMULATED_HOST_CPU_TYPE=16777223 -DEMULATED_HOST_CPU_SUBTYPE=3 -D__STDC_LIMIT_MACROS=1 -D__STDC_CONSTANT_MACROS=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-objc-root-class -Wno-deprecated-objc-isa-usage -Wno-invalid-offsetof -Wno-int-conversion  -DPROGRAM_PREFIX="\"x86_64-apple-darwin12-\"" -D__LITTLE_ENDIAN__=1 -DLTO_SUPPORT=1  -O3 -MT libstuff_la-apple_version.lo -M--- libstuff_la-allocate.lo ---
 -MF .deps/libstuff_la-allocate.Tpo -c -o libstuff_la-allocate.lo `test -f 'allocate.c' || echo './'`allocate.c
--- libstuff_la-apple_version.lo ---
D -MP -MF .deps/libstuff_la-apple_version.Tpo -c -o libstuff_la-apple_version.lo `test -f 'apple_version.c' || echo './'`apple_version.c
libtool: compile:  clang -DPACKAGE_NAME=\"cctools\" -DPACKAGE_TARNAME=\"cctools\" -DPACKAGE_VERSION=\"845\" "-DPACKAGE_STRING=\"cctools 845\"" -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/\" -DHAVE_OPENSSL_MD5_H=1 -DHAVE_UUID_UUID_H=1 -DEMULATED_HOST_CPU_TYPE=16777223 -DEMULATED_HOST_CPU_SUBTYPE=3 -D__STDC_LIMIT_MACROS=1 -D__STDC_CONSTANT_MACROS=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-objc-root-class -Wno-deprecated-objc-isa-usage -Wno-invalid-offsetof -Wno-int-conversion -DPROGRAM_PREFIX=\"x86_64-apple-darwin12-\" -D__LITTLE_ENDIAN__=1 -DLTO_SUPPORT=1 -O3 -MT libstuff_la-apple_version.lo -MD -MP -MF .deps/libstuff_la-apple_version.Tpo -c apple_version.c  -fPIC -DPIC -o .libs/libstuff_la-apple_version.o
--- libstuff_la-allocate.lo ---
libtool: compile:  clang -DPACKAGE_NAME=\"cctools\" -DPACKAGE_TARNAME=\"cctools\" -DPACKAGE_VERSION=\"845\" "-DPACKAGE_STRING=\"cctools 845\"" -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/\" -DHAVE_OPENSSL_MD5_H=1 -DHAVE_UUID_UUID_H=1 -DEMULATED_HOST_CPU_TYPE=16777223 -DEMULATED_HOST_CPU_SUBTYPE=3 -D__STDC_LIMIT_MACROS=1 -D__STDC_CONSTANT_MACROS=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-objc-root-class -Wno-deprecated-objc-isa-usage -Wno-invalid-offsetof -Wno-int-conversion -DPROGRAM_PREFIX=\"x86_64-apple-darwin12-\" -D__LITTLE_ENDIAN__=1 -DLTO_SUPPORT=1 -O3 -MT libstuff_la-allocate.lo -MD -MP -MF .deps/libstuff_la-allocate.Tpo -c allocate.c  -fPIC -DPIC -o .libs/libstuff_la-allocate.o
In file included from allocate.c:23:
In file included from /usr/include/stdlib.h:41:
/usr/include/sys/types.h:84:19: error: typedef redefinition with different types ('__int64_t' (aka 'long') vs 'long long')
typedef __int64_t       int64_t;
                        ^
../include/foreign/i386/types.h:93:20: note: previous definition is here
typedef long long               int64_t;
                                ^
In file included from allocate.c:23:
In file included from /usr/include/stdlib.h:41:
/usr/include/sys/types.h:96:18: error: typedef redefinition with different types ('__uint64_t' (aka 'unsigned long') vs 'unsigned long long')
typedef uint64_t        u_int64_t;
                        ^
../include/foreign/i386/types.h:95:28: note: previous definition is here
typedef unsigned long long      u_int64_t;
                                ^
In file included from allocate.c:23:
In file included from /usr/include/stdlib.h:41:
In file included from /usr/include/sys/types.h:98:
In file included from ../include/foreign/machine/endian.h:40:
../include/foreign/i386/endian.h:100:10: fatal error: 'sys/_endian.h' file not found
#include <sys/_endian.h>
         ^
--- libstuff_la-apple_version.lo ---
mv -f .deps/libstuff_la-apple_version.Tpo .deps/libstuff_la-apple_version.Plo
--- libstuff_la-arch.lo ---
/bin/ksh ../libtool  --tag=CC   --mode=compile clang -DPACKAGE_NAME=\"cctools\" -DPACKAGE_TARNAME=\"cctools\" -DPACKAGE_VERSION=\"845\" -DPACKAGE_STRING=\"cctools\ 845\" -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/\" -DHAVE_OPENSSL_MD5_H=1 -DHAVE_UUID_UUID_H=1 -DEMULATED_HOST_CPU_TYPE=16777223 -DEMULATED_HOST_CPU_SUBTYPE=3 -D__STDC_LIMIT_MACROS=1 -D__STDC_CONSTANT_MACROS=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-objc-root-class -Wno-deprecated-objc-isa-usage -Wno-invalid-offsetof -Wno-int-conversion  -DPROGRAM_PREFIX="\"x86_64-apple-darwin12-\"" -D__LITTLE_ENDIAN__=1 -DLTO_SUPPORT=1  -O3 -MT libstuff_la-arch.lo -MD -MP -MF .deps/libstuff_la-arch.Tpo -c -o libstuff_la-arch.lo `test -f 'arch.c' || echo './'`arch.c
libtool: compile:  clang -DPACKAGE_NAME=\"cctools\" -DPACKAGE_TARNAME=\"cctools\" -DPACKAGE_VERSION=\"845\" "-DPACKAGE_STRING=\"cctools 845\"" -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/\" -DHAVE_OPENSSL_MD5_H=1 -DHAVE_UUID_UUID_H=1 -DEMULATED_HOST_CPU_TYPE=16777223 -DEMULATED_HOST_CPU_SUBTYPE=3 -D__STDC_LIMIT_MACROS=1 -D__STDC_CONSTANT_MACROS=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-objc-root-class -Wno-deprecated-objc-isa-usage -Wno-invalid-offsetof -Wno-int-conversion -DPROGRAM_PREFIX=\"x86_64-apple-darwin12-\" -D__LITTLE_ENDIAN__=1 -DLTO_SUPPORT=1 -O3 -MT libstuff_la-arch.lo -MD -MP -MF .deps/libstuff_la-arch.Tpo -c arch.c  -fPIC -DPIC -o .libs/libstuff_la-arch.o
--- libstuff_la-allocate.lo ---
3 errors generated.
*** [libstuff_la-allocate.lo] Error code 1

make: stopped in /home/don/osxcross/build/cctools-845-ld64-134.9_aeaf795/cctools/libstuff
--- libstuff_la-arch.lo ---
In file included from arch.c:26:
In file included from /usr/include/stdlib.h:41:
/usr/include/sys/types.h:84:19: error: typedef redefinition with different types ('__int64_t' (aka 'long') vs 'long long')
typedef __int64_t       int64_t;
                        ^
../include/foreign/i386/types.h:93:20: note: previous definition is here
typedef long long               int64_t;
                                ^
In file included from arch.c:26:
In file included from /usr/include/stdlib.h:41:
/usr/include/sys/types.h:96:18: error: typedef redefinition with different types ('__uint64_t' (aka 'unsigned long') vs 'unsigned long long')
typedef uint64_t        u_int64_t;
                        ^
../include/foreign/i386/types.h:95:28: note: previous definition is here
typedef unsigned long long      u_int64_t;
                                ^
In file included from arch.c:26:
In file included from /usr/include/stdlib.h:41:
In file included from /usr/include/sys/types.h:98:
In file included from ../include/foreign/machine/endian.h:40:
../include/foreign/i386/endian.h:100:10: fatal error: 'sys/_endian.h' file not found
#include <sys/_endian.h>
         ^
3 errors generated.
*** [libstuff_la-arch.lo] Error code 1

make: stopped in /home/don/osxcross/build/cctools-845-ld64-134.9_aeaf795/cctools/libstuff
2 errors

make: stopped in /home/don/osxcross/build/cctools-845-ld64-134.9_aeaf795/cctools/libstuff
*** [all-recursive] Error code 1

make: stopped in /home/don/osxcross/build/cctools-845-ld64-134.9_aeaf795/cctools
1 error

make: stopped in /home/don/osxcross/build/cctools-845-ld64-134.9_aeaf795/cctools

exiting with abnormal exit code (2)
run 'OCDEBUG=1 ./build.sh' to enable debug messages
removing stale locks...
if it is happening the first time, then just re-run the script

Dockerizing osxcross

Given the possible fragility of the build environment for a cross compiler such as this, it seems like it would be really useful to have an automated build available on Docker Hub for people to download (sans Xcode).

The way I would envision it working is that the base docker image that gets automatically published would install using a known distro and known packages that actually work (similar to your instructions in #45), and also does the work of installing osxcross in that environment.

Then a second build script that one would have to run locally would download that image, copy the right xcode bits in the image, and then change the internal docker userid/groupid to match the local user credentials. This image would be saved locally.

Then, there would be an environment script that would launch the final image, and mount a volume inside the image whereever you specified. This would give you a shell into the environment, which then compiles could be executed reliably regardless of how your host OS packages change.

I would contemplate working on this, but I need to package a python product for OSX that has binary requirements, and I don't think pyinstaller would work in a cross-compilation environment.

SDK download location

Is there any chance of hosting the SDK at a location which can be downloaded automatically via wget/curl (e.g. SourceForge)? I don't think it is possible to do that for MediaFire. I'm trying to build a script which will automatically create an OS X toolchain for cross-compiling QT/Webkit.

generating sdk tarballs on linux

Hi, its not hard to generate the tarballs on linux.

download xcode dmg

7z x xcode_5.1.1.dmg
sudo mount -o loop -t hfsplus 3.hfs /mnt

edit gen_sdk_package.sh to net check for darwin, and manually set XCODEDIR="/mnt/Xcode.app"

run.. done

maybe you could fix up the script to work on linux as well and add some instructions.

Debug symbols

What would it take to get debug info working? I am trying to cross compile go+cgo which relies on DWARF abbrev, info and str fields for linking go with the object files

support gfortran

I'd love to be able to build all my targets (linux 32/64, rpi, osx, win32, win64) from a single linux box https://github.com/fommil/netlib-java

but a large majority of my codebase is fortran. The only OSX SDK that I need to include/link against is Java and the vecLib binary.

  1. do you support gfortran cross compiles
  2. is it possible to setup a minimal cross compile environment that only provides java/veclib?

Ubuntu is missing libssl-dev dependency

The build.sh script fails on Ubuntu 13.10 server with the following error;

error: openssl/md5.h: No such file or directory

Installing libssl-dev fixes the problem.

libgfortran.a has no symbol

I am compiling osxcross on Ubuntu 12.04 amd64. The Clang toolchain is already working.
However, when I try to compile gcc-4.9.0, gcc-4.9.1, and gcc-4.9.2, all compilation ended in "x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a has no symbols" failure. It seems that this was an old gcc regression https://gcc.gnu.org/bugzilla/show_bug.cgi?id=44146 related to gcc/varpool.c. But no idea how to fix it.

$ ENABLE_FORTRAN=1 GCC_VERSION=4.9.2 OSX_VERSION_MIN=10.6 SDK_VERSION=10.6 ./build_gcc.sh

...

libtool: link: /home/tux/osxcross/build/gcc-4.9.2/build/./gcc/xgcc -B/home/tux/osxcross/build/gcc-4.9.2/build/./gcc/ -B/home/tux/osxcross/target/bin/../x86_64-apple-darwin10/bin/ -B/home/tux/osxcross/target/bin/../x86_64-apple-darwin10/lib/ -isystem /home/tux/osxcross/target/bin/../x86_64-apple-darwin10/include -isystem /home/tux/osxcross/target/bin/../x86_64-apple-darwin10/sys-include -m32 -dynamiclib -Wl,-undefined -Wl,dynamic_lookup -o .libs/libgfortran.3.dylib .libs/backtrace.o .libs/bounds.o .libs/compile_options.o .libs/convert_char.o .libs/environ.o .libs/error.o .libs/fpu.o .libs/main.o .libs/memory.o .libs/pause.o .libs/stop.o .libs/string.o .libs/select.o .libs/all_l1.o .libs/all_l2.o .libs/all_l4.o .libs/all_l8.o .libs/all_l16.o .libs/any_l1.o .libs/any_l2.o .libs/any_l4.o .libs/any_l8.o .libs/any_l16.o .libs/count_1_l.o .libs/count_2_l.o .libs/count_4_l.o .libs/count_8_l.o .libs/count_16_l.o .libs/maxloc0_4_i1.o .libs/maxloc0_8_i1.o .libs/maxloc0_16_i1.o .libs/maxloc0_4_i2.o .libs/maxloc0_8_i2.o .libs/maxloc0_16_i2.o .libs/maxloc0_4_i4.o .libs/maxloc0_8_i4.o .libs/maxloc0_16_i4.o .libs/maxloc0_4_i8.o .libs/maxloc0_8_i8.o .libs/maxloc0_16_i8.o .libs/maxloc0_4_i16.o .libs/maxloc0_8_i16.o .libs/maxloc0_16_i16.o .libs/maxloc0_4_r4.o .libs/maxloc0_8_r4.o .libs/maxloc0_16_r4.o .libs/maxloc0_4_r8.o .libs/maxloc0_8_r8.o .libs/maxloc0_16_r8.o .libs/maxloc0_4_r10.o .libs/maxloc0_8_r10.o .libs/maxloc0_16_r10.o .libs/maxloc0_4_r16.o .libs/maxloc0_8_r16.o .libs/maxloc0_16_r16.o .libs/maxloc1_4_i1.o .libs/maxloc1_8_i1.o .libs/maxloc1_16_i1.o .libs/maxloc1_4_i2.o .libs/maxloc1_8_i2.o .libs/maxloc1_16_i2.o .libs/maxloc1_4_i4.o .libs/maxloc1_8_i4.o .libs/maxloc1_16_i4.o .libs/maxloc1_4_i8.o .libs/maxloc1_8_i8.o .libs/maxloc1_16_i8.o .libs/maxloc1_4_i16.o .libs/maxloc1_8_i16.o .libs/maxloc1_16_i16.o .libs/maxloc1_4_r4.o .libs/maxloc1_8_r4.o .libs/maxloc1_16_r4.o .libs/maxloc1_4_r8.o .libs/maxloc1_8_r8.o .libs/maxloc1_16_r8.o .libs/maxloc1_4_r10.o .libs/maxloc1_8_r10.o .libs/maxloc1_16_r10.o .libs/maxloc1_4_r16.o .libs/maxloc1_8_r16.o .libs/maxloc1_16_r16.o .libs/maxval_i1.o .libs/maxval_i2.o .libs/maxval_i4.o .libs/maxval_i8.o .libs/maxval_i16.o .libs/maxval_r4.o .libs/maxval_r8.o .libs/maxval_r10.o .libs/maxval_r16.o .libs/minloc0_4_i1.o .libs/minloc0_8_i1.o .libs/minloc0_16_i1.o .libs/minloc0_4_i2.o .libs/minloc0_8_i2.o .libs/minloc0_16_i2.o .libs/minloc0_4_i4.o .libs/minloc0_8_i4.o .libs/minloc0_16_i4.o .libs/minloc0_4_i8.o .libs/minloc0_8_i8.o .libs/minloc0_16_i8.o .libs/minloc0_4_i16.o .libs/minloc0_8_i16.o .libs/minloc0_16_i16.o .libs/minloc0_4_r4.o .libs/minloc0_8_r4.o .libs/minloc0_16_r4.o .libs/minloc0_4_r8.o .libs/minloc0_8_r8.o .libs/minloc0_16_r8.o .libs/minloc0_4_r10.o .libs/minloc0_8_r10.o .libs/minloc0_16_r10.o .libs/minloc0_4_r16.o .libs/minloc0_8_r16.o .libs/minloc0_16_r16.o .libs/minloc1_4_i1.o .libs/minloc1_8_i1.o .libs/minloc1_16_i1.o .libs/minloc1_4_i2.o .libs/minloc1_8_i2.o .libs/minloc1_16_i2.o .libs/minloc1_4_i4.o .libs/minloc1_8_i4.o .libs/minloc1_16_i4.o .libs/minloc1_4_i8.o .libs/minloc1_8_i8.o .libs/minloc1_16_i8.o .libs/minloc1_4_i16.o .libs/minloc1_8_i16.o .libs/minloc1_16_i16.o .libs/minloc1_4_r4.o .libs/minloc1_8_r4.o .libs/minloc1_16_r4.o .libs/minloc1_4_r8.o .libs/minloc1_8_r8.o .libs/minloc1_16_r8.o .libs/minloc1_4_r10.o .libs/minloc1_8_r10.o .libs/minloc1_16_r10.o .libs/minloc1_4_r16.o .libs/minloc1_8_r16.o .libs/minloc1_16_r16.o .libs/minval_i1.o .libs/minval_i2.o .libs/minval_i4.o .libs/minval_i8.o .libs/minval_i16.o .libs/minval_r4.o .libs/minval_r8.o .libs/minval_r10.o .libs/minval_r16.o .libs/product_i1.o .libs/product_i2.o .libs/product_i4.o .libs/product_i8.o .libs/product_i16.o .libs/product_r4.o .libs/product_r8.o .libs/product_r10.o .libs/product_r16.o .libs/product_c4.o .libs/product_c8.o .libs/product_c10.o .libs/product_c16.o .libs/sum_i1.o .libs/sum_i2.o .libs/sum_i4.o .libs/sum_i8.o .libs/sum_i16.o .libs/sum_r4.o .libs/sum_r8.o .libs/sum_r10.o .libs/sum_r16.o .libs/sum_c4.o .libs/sum_c8.o .libs/sum_c10.o .libs/sum_c16.o .libs/bessel_r4.o .libs/bessel_r8.o .libs/bessel_r10.o .libs/bessel_r16.o .libs/iall_i1.o .libs/iall_i2.o .libs/iall_i4.o .libs/iall_i8.o .libs/iall_i16.o .libs/iany_i1.o .libs/iany_i2.o .libs/iany_i4.o .libs/iany_i8.o .libs/iany_i16.o .libs/iparity_i1.o .libs/iparity_i2.o .libs/iparity_i4.o .libs/iparity_i8.o .libs/iparity_i16.o .libs/norm2_r4.o .libs/norm2_r8.o .libs/norm2_r10.o .libs/norm2_r16.o .libs/parity_l1.o .libs/parity_l2.o .libs/parity_l4.o .libs/parity_l8.o .libs/parity_l16.o .libs/matmul_i1.o .libs/matmul_i2.o .libs/matmul_i4.o .libs/matmul_i8.o .libs/matmul_i16.o .libs/matmul_r4.o .libs/matmul_r8.o .libs/matmul_r10.o .libs/matmul_r16.o .libs/matmul_c4.o .libs/matmul_c8.o .libs/matmul_c10.o .libs/matmul_c16.o .libs/matmul_l4.o .libs/matmul_l8.o .libs/matmul_l16.o .libs/transpose_i4.o .libs/transpose_i8.o .libs/transpose_i16.o .libs/transpose_r4.o .libs/transpose_r8.o .libs/transpose_r10.o .libs/transpose_r16.o .libs/transpose_c4.o .libs/transpose_c8.o .libs/transpose_c10.o .libs/transpose_c16.o .libs/shape_i4.o .libs/shape_i8.o .libs/shape_i16.o .libs/eoshift1_4.o .libs/eoshift1_8.o .libs/eoshift1_16.o .libs/eoshift3_4.o .libs/eoshift3_8.o .libs/eoshift3_16.o .libs/cshift1_4.o .libs/cshift1_8.o .libs/cshift1_16.o .libs/reshape_i4.o .libs/reshape_i8.o .libs/reshape_i16.o .libs/reshape_r4.o .libs/reshape_r8.o .libs/reshape_r10.o .libs/reshape_r16.o .libs/reshape_c4.o .libs/reshape_c8.o .libs/reshape_c10.o .libs/reshape_c16.o .libs/in_pack_i1.o .libs/in_pack_i2.o .libs/in_pack_i4.o .libs/in_pack_i8.o .libs/in_pack_i16.o .libs/in_pack_r4.o .libs/in_pack_r8.o .libs/in_pack_r10.o .libs/in_pack_r16.o .libs/in_pack_c4.o .libs/in_pack_c8.o .libs/in_pack_c10.o .libs/in_pack_c16.o .libs/in_unpack_i1.o .libs/in_unpack_i2.o .libs/in_unpack_i4.o .libs/in_unpack_i8.o .libs/in_unpack_i16.o .libs/in_unpack_r4.o .libs/in_unpack_r8.o .libs/in_unpack_r10.o .libs/in_unpack_r16.o .libs/in_unpack_c4.o .libs/in_unpack_c8.o .libs/in_unpack_c10.o .libs/in_unpack_c16.o .libs/exponent_r4.o .libs/exponent_r8.o .libs/exponent_r10.o .libs/exponent_r16.o .libs/fraction_r4.o .libs/fraction_r8.o .libs/fraction_r10.o .libs/fraction_r16.o .libs/nearest_r4.o .libs/nearest_r8.o .libs/nearest_r10.o .libs/nearest_r16.o .libs/set_exponent_r4.o .libs/set_exponent_r8.o .libs/set_exponent_r10.o .libs/set_exponent_r16.o .libs/pow_i4_i4.o .libs/pow_i8_i4.o .libs/pow_i16_i4.o .libs/pow_r16_i4.o .libs/pow_c4_i4.o .libs/pow_c8_i4.o .libs/pow_c10_i4.o .libs/pow_c16_i4.o .libs/pow_i4_i8.o .libs/pow_i8_i8.o .libs/pow_i16_i8.o .libs/pow_r4_i8.o .libs/pow_r8_i8.o .libs/pow_r10_i8.o .libs/pow_r16_i8.o .libs/pow_c4_i8.o .libs/pow_c8_i8.o .libs/pow_c10_i8.o .libs/pow_c16_i8.o .libs/pow_i4_i16.o .libs/pow_i8_i16.o .libs/pow_i16_i16.o .libs/pow_r4_i16.o .libs/pow_r8_i16.o .libs/pow_r10_i16.o .libs/pow_r16_i16.o .libs/pow_c4_i16.o .libs/pow_c8_i16.o .libs/pow_c10_i16.o .libs/pow_c16_i16.o .libs/rrspacing_r4.o .libs/rrspacing_r8.o .libs/rrspacing_r10.o .libs/rrspacing_r16.o .libs/spacing_r4.o .libs/spacing_r8.o .libs/spacing_r10.o .libs/spacing_r16.o .libs/pack_i1.o .libs/pack_i2.o .libs/pack_i4.o .libs/pack_i8.o .libs/pack_i16.o .libs/pack_r4.o .libs/pack_r8.o .libs/pack_r10.o .libs/pack_r16.o .libs/pack_c4.o .libs/pack_c8.o .libs/pack_c10.o .libs/pack_c16.o .libs/unpack_i1.o .libs/unpack_i2.o .libs/unpack_i4.o .libs/unpack_i8.o .libs/unpack_i16.o .libs/unpack_r4.o .libs/unpack_r8.o .libs/unpack_r10.o .libs/unpack_r16.o .libs/unpack_c4.o .libs/unpack_c8.o .libs/unpack_c10.o .libs/unpack_c16.o .libs/spread_i1.o .libs/spread_i2.o .libs/spread_i4.o .libs/spread_i8.o .libs/spread_i16.o .libs/spread_r4.o .libs/spread_r8.o .libs/spread_r10.o .libs/spread_r16.o .libs/spread_c4.o .libs/spread_c8.o .libs/spread_c10.o .libs/spread_c16.o .libs/cshift0_i1.o .libs/cshift0_i2.o .libs/cshift0_i4.o .libs/cshift0_i8.o .libs/cshift0_i16.o .libs/cshift0_r4.o .libs/cshift0_r8.o .libs/cshift0_r10.o .libs/cshift0_r16.o .libs/cshift0_c4.o .libs/cshift0_c8.o .libs/cshift0_c10.o .libs/cshift0_c16.o .libs/close.o .libs/file_pos.o .libs/format.o .libs/inquire.o .libs/intrinsics.o .libs/list_read.o .libs/lock.o .libs/open.o .libs/read.o .libs/size_from_kind.o .libs/transfer.o .libs/transfer128.o .libs/unit.o .libs/unix.o .libs/write.o .libs/fbuf.o .libs/associated.o .libs/abort.o .libs/access.o .libs/args.o .libs/bit_intrinsics.o .libs/c99_functions.o .libs/chdir.o .libs/chmod.o .libs/clock.o .libs/cpu_time.o .libs/cshift0.o .libs/ctime.o .libs/date_and_time.o .libs/dtime.o .libs/env.o .libs/eoshift0.o .libs/eoshift2.o .libs/erfc_scaled.o .libs/etime.o .libs/execute_command_line.o .libs/exit.o .libs/extends_type_of.o .libs/fnum.o .libs/gerror.o .libs/getcwd.o .libs/getlog.o .libs/getXid.o .libs/hostnm.o .libs/ierrno.o .libs/ishftc.o .libs/iso_c_generated_procs.o .libs/iso_c_binding.o .libs/kill.o .libs/link.o .libs/malloc.o .libs/mvbits.o .libs/move_alloc.o .libs/pack_generic.o .libs/perror.o .libs/selected_char_kind.o .libs/signal.o .libs/size.o .libs/sleep.o .libs/spread_generic.o .libs/string_intrinsics.o .libs/system.o .libs/rand.o .libs/random.o .libs/rename.o .libs/reshape_generic.o .libs/reshape_packed.o .libs/selected_int_kind.o .libs/selected_real_kind.o .libs/stat.o .libs/symlnk.o .libs/system_clock.o .libs/time.o .libs/transpose_generic.o .libs/umask.o .libs/unlink.o .libs/unpack_generic.o .libs/in_pack_generic.o .libs/in_unpack_generic.o .libs/_abs_c4.o .libs/_abs_c8.o .libs/_abs_c10.o .libs/_abs_c16.o .libs/_abs_i4.o .libs/_abs_i8.o .libs/_abs_i16.o .libs/_abs_r4.o .libs/_abs_r8.o .libs/_abs_r10.o .libs/_abs_r16.o .libs/_aimag_c4.o .libs/_aimag_c8.o .libs/_aimag_c10.o .libs/_aimag_c16.o .libs/_exp_r4.o .libs/_exp_r8.o .libs/_exp_r10.o .libs/_exp_r16.o .libs/_exp_c4.o .libs/_exp_c8.o .libs/_exp_c10.o .libs/_exp_c16.o .libs/_log_r4.o .libs/_log_r8.o .libs/_log_r10.o .libs/_log_r16.o .libs/_log_c4.o .libs/_log_c8.o .libs/_log_c10.o .libs/_log_c16.o .libs/_log10_r4.o .libs/_log10_r8.o .libs/_log10_r10.o .libs/_log10_r16.o .libs/_sqrt_r4.o .libs/_sqrt_r8.o .libs/_sqrt_r10.o .libs/_sqrt_r16.o .libs/_sqrt_c4.o .libs/_sqrt_c8.o .libs/_sqrt_c10.o .libs/_sqrt_c16.o .libs/_asin_r4.o .libs/_asin_r8.o .libs/_asin_r10.o .libs/_asin_r16.o .libs/_asinh_r4.o .libs/_asinh_r8.o .libs/_asinh_r10.o .libs/_asinh_r16.o .libs/_acos_r4.o .libs/_acos_r8.o .libs/_acos_r10.o .libs/_acos_r16.o .libs/_acosh_r4.o .libs/_acosh_r8.o .libs/_acosh_r10.o .libs/_acosh_r16.o .libs/_atan_r4.o .libs/_atan_r8.o .libs/_atan_r10.o .libs/_atan_r16.o .libs/_atanh_r4.o .libs/_atanh_r8.o .libs/_atanh_r10.o .libs/_atanh_r16.o .libs/_sin_r4.o .libs/_sin_r8.o .libs/_sin_r10.o .libs/_sin_r16.o .libs/_sin_c4.o .libs/_sin_c8.o .libs/_sin_c10.o .libs/_sin_c16.o .libs/_cos_r4.o .libs/_cos_r8.o .libs/_cos_r10.o .libs/_cos_r16.o .libs/_cos_c4.o .libs/_cos_c8.o .libs/_cos_c10.o .libs/_cos_c16.o .libs/_tan_r4.o .libs/_tan_r8.o .libs/_tan_r10.o .libs/_tan_r16.o .libs/_sinh_r4.o .libs/_sinh_r8.o .libs/_sinh_r10.o .libs/_sinh_r16.o .libs/_cosh_r4.o .libs/_cosh_r8.o .libs/_cosh_r10.o .libs/_cosh_r16.o .libs/_tanh_r4.o .libs/_tanh_r8.o .libs/_tanh_r10.o .libs/_tanh_r16.o .libs/_conjg_c4.o .libs/_conjg_c8.o .libs/_conjg_c10.o .libs/_conjg_c16.o .libs/_aint_r4.o .libs/_aint_r8.o .libs/_aint_r10.o .libs/_aint_r16.o .libs/_anint_r4.o .libs/_anint_r8.o .libs/_anint_r10.o .libs/_anint_r16.o .libs/_sign_i4.o .libs/_sign_i8.o .libs/_sign_i16.o .libs/_sign_r4.o .libs/_sign_r8.o .libs/_sign_r10.o .libs/_sign_r16.o .libs/_dim_i4.o .libs/_dim_i8.o .libs/_dim_i16.o .libs/_dim_r4.o .libs/_dim_r8.o .libs/_dim_r10.o .libs/_dim_r16.o .libs/_atan2_r4.o .libs/_atan2_r8.o .libs/_atan2_r10.o .libs/_atan2_r16.o .libs/_mod_i4.o .libs/_mod_i8.o .libs/_mod_i16.o .libs/_mod_r4.o .libs/_mod_r8.o .libs/_mod_r10.o .libs/_mod_r16.o .libs/misc_specifics.o .libs/dprod_r8.o .libs/f2c_specifics.o ../libquadmath/.libs/libquadmath.dylib -lm -m32 -m32 -m32 -Wl,-single_module -shared-libgcc -install_name /home/tux/osxcross/target/bin/../x86_64-apple-darwin10/lib/i386/libgfortran.3.dylib -compatibility_version 4 -current_version 4.0 -Wl,-single_module
libtool: link: (cd ".libs" && rm -f "libgfortran.dylib" && ln -s "libgfortran.3.dylib" "libgfortran.dylib")
libtool: link: x86_64-apple-darwin10-ar rc .libs/libgfortran.a backtrace.o bounds.o compile_options.o convert_char.o environ.o error.o fpu.o main.o memory.o pause.o stop.o string.o select.o all_l1.o all_l2.o all_l4.o all_l8.o all_l16.o any_l1.o any_l2.o any_l4.o any_l8.o any_l16.o count_1_l.o count_2_l.o count_4_l.o count_8_l.o count_16_l.o maxloc0_4_i1.o maxloc0_8_i1.o maxloc0_16_i1.o maxloc0_4_i2.o maxloc0_8_i2.o maxloc0_16_i2.o maxloc0_4_i4.o maxloc0_8_i4.o maxloc0_16_i4.o maxloc0_4_i8.o maxloc0_8_i8.o maxloc0_16_i8.o maxloc0_4_i16.o maxloc0_8_i16.o maxloc0_16_i16.o maxloc0_4_r4.o maxloc0_8_r4.o maxloc0_16_r4.o maxloc0_4_r8.o maxloc0_8_r8.o maxloc0_16_r8.o maxloc0_4_r10.o maxloc0_8_r10.o maxloc0_16_r10.o maxloc0_4_r16.o maxloc0_8_r16.o maxloc0_16_r16.o maxloc1_4_i1.o maxloc1_8_i1.o maxloc1_16_i1.o maxloc1_4_i2.o maxloc1_8_i2.o maxloc1_16_i2.o maxloc1_4_i4.o maxloc1_8_i4.o maxloc1_16_i4.o maxloc1_4_i8.o maxloc1_8_i8.o maxloc1_16_i8.o maxloc1_4_i16.o maxloc1_8_i16.o maxloc1_16_i16.o maxloc1_4_r4.o maxloc1_8_r4.o maxloc1_16_r4.o maxloc1_4_r8.o maxloc1_8_r8.o maxloc1_16_r8.o maxloc1_4_r10.o maxloc1_8_r10.o maxloc1_16_r10.o maxloc1_4_r16.o maxloc1_8_r16.o maxloc1_16_r16.o maxval_i1.o maxval_i2.o maxval_i4.o maxval_i8.o maxval_i16.o maxval_r4.o maxval_r8.o maxval_r10.o maxval_r16.o minloc0_4_i1.o minloc0_8_i1.o minloc0_16_i1.o minloc0_4_i2.o minloc0_8_i2.o minloc0_16_i2.o minloc0_4_i4.o minloc0_8_i4.o minloc0_16_i4.o minloc0_4_i8.o minloc0_8_i8.o minloc0_16_i8.o minloc0_4_i16.o minloc0_8_i16.o minloc0_16_i16.o minloc0_4_r4.o minloc0_8_r4.o minloc0_16_r4.o minloc0_4_r8.o minloc0_8_r8.o minloc0_16_r8.o minloc0_4_r10.o minloc0_8_r10.o minloc0_16_r10.o minloc0_4_r16.o minloc0_8_r16.o minloc0_16_r16.o minloc1_4_i1.o minloc1_8_i1.o minloc1_16_i1.o minloc1_4_i2.o minloc1_8_i2.o minloc1_16_i2.o minloc1_4_i4.o minloc1_8_i4.o minloc1_16_i4.o minloc1_4_i8.o minloc1_8_i8.o minloc1_16_i8.o minloc1_4_i16.o minloc1_8_i16.o minloc1_16_i16.o minloc1_4_r4.o minloc1_8_r4.o minloc1_16_r4.o minloc1_4_r8.o minloc1_8_r8.o minloc1_16_r8.o minloc1_4_r10.o minloc1_8_r10.o minloc1_16_r10.o minloc1_4_r16.o minloc1_8_r16.o minloc1_16_r16.o minval_i1.o minval_i2.o minval_i4.o minval_i8.o minval_i16.o minval_r4.o minval_r8.o minval_r10.o minval_r16.o product_i1.o product_i2.o product_i4.o product_i8.o product_i16.o product_r4.o product_r8.o product_r10.o product_r16.o product_c4.o product_c8.o product_c10.o product_c16.o sum_i1.o sum_i2.o sum_i4.o sum_i8.o sum_i16.o sum_r4.o sum_r8.o sum_r10.o sum_r16.o sum_c4.o sum_c8.o sum_c10.o sum_c16.o bessel_r4.o bessel_r8.o bessel_r10.o bessel_r16.o iall_i1.o iall_i2.o iall_i4.o iall_i8.o iall_i16.o iany_i1.o iany_i2.o iany_i4.o iany_i8.o iany_i16.o iparity_i1.o iparity_i2.o iparity_i4.o iparity_i8.o iparity_i16.o norm2_r4.o norm2_r8.o norm2_r10.o norm2_r16.o parity_l1.o parity_l2.o parity_l4.o parity_l8.o parity_l16.o matmul_i1.o matmul_i2.o matmul_i4.o matmul_i8.o matmul_i16.o matmul_r4.o matmul_r8.o matmul_r10.o matmul_r16.o matmul_c4.o matmul_c8.o matmul_c10.o matmul_c16.o matmul_l4.o matmul_l8.o matmul_l16.o transpose_i4.o transpose_i8.o transpose_i16.o transpose_r4.o transpose_r8.o transpose_r10.o transpose_r16.o transpose_c4.o transpose_c8.o transpose_c10.o transpose_c16.o shape_i4.o shape_i8.o shape_i16.o eoshift1_4.o eoshift1_8.o eoshift1_16.o eoshift3_4.o eoshift3_8.o eoshift3_16.o cshift1_4.o cshift1_8.o cshift1_16.o reshape_i4.o reshape_i8.o reshape_i16.o reshape_r4.o reshape_r8.o reshape_r10.o reshape_r16.o reshape_c4.o reshape_c8.o reshape_c10.o reshape_c16.o in_pack_i1.o in_pack_i2.o in_pack_i4.o in_pack_i8.o in_pack_i16.o in_pack_r4.o in_pack_r8.o in_pack_r10.o in_pack_r16.o in_pack_c4.o in_pack_c8.o in_pack_c10.o in_pack_c16.o in_unpack_i1.o in_unpack_i2.o in_unpack_i4.o in_unpack_i8.o in_unpack_i16.o in_unpack_r4.o in_unpack_r8.o in_unpack_r10.o in_unpack_r16.o in_unpack_c4.o in_unpack_c8.o in_unpack_c10.o in_unpack_c16.o exponent_r4.o exponent_r8.o exponent_r10.o exponent_r16.o fraction_r4.o fraction_r8.o fraction_r10.o fraction_r16.o nearest_r4.o nearest_r8.o nearest_r10.o nearest_r16.o set_exponent_r4.o set_exponent_r8.o set_exponent_r10.o set_exponent_r16.o pow_i4_i4.o pow_i8_i4.o pow_i16_i4.o pow_r16_i4.o pow_c4_i4.o pow_c8_i4.o pow_c10_i4.o pow_c16_i4.o pow_i4_i8.o pow_i8_i8.o pow_i16_i8.o pow_r4_i8.o pow_r8_i8.o pow_r10_i8.o pow_r16_i8.o pow_c4_i8.o pow_c8_i8.o pow_c10_i8.o pow_c16_i8.o pow_i4_i16.o pow_i8_i16.o pow_i16_i16.o pow_r4_i16.o pow_r8_i16.o pow_r10_i16.o pow_r16_i16.o pow_c4_i16.o pow_c8_i16.o pow_c10_i16.o pow_c16_i16.o rrspacing_r4.o rrspacing_r8.o rrspacing_r10.o rrspacing_r16.o spacing_r4.o spacing_r8.o spacing_r10.o spacing_r16.o pack_i1.o pack_i2.o pack_i4.o pack_i8.o pack_i16.o pack_r4.o pack_r8.o pack_r10.o pack_r16.o pack_c4.o pack_c8.o pack_c10.o pack_c16.o unpack_i1.o unpack_i2.o unpack_i4.o unpack_i8.o unpack_i16.o unpack_r4.o unpack_r8.o unpack_r10.o unpack_r16.o unpack_c4.o unpack_c8.o unpack_c10.o unpack_c16.o spread_i1.o spread_i2.o spread_i4.o spread_i8.o spread_i16.o spread_r4.o spread_r8.o spread_r10.o spread_r16.o spread_c4.o spread_c8.o spread_c10.o spread_c16.o cshift0_i1.o cshift0_i2.o cshift0_i4.o cshift0_i8.o cshift0_i16.o cshift0_r4.o cshift0_r8.o cshift0_r10.o cshift0_r16.o cshift0_c4.o cshift0_c8.o cshift0_c10.o cshift0_c16.o close.o file_pos.o format.o inquire.o intrinsics.o list_read.o lock.o open.o read.o size_from_kind.o transfer.o transfer128.o unit.o unix.o write.o fbuf.o associated.o abort.o access.o args.o bit_intrinsics.o c99_functions.o chdir.o chmod.o clock.o cpu_time.o cshift0.o ctime.o date_and_time.o dtime.o env.o eoshift0.o eoshift2.o erfc_scaled.o etime.o execute_command_line.o exit.o extends_type_of.o fnum.o gerror.o getcwd.o getlog.o getXid.o hostnm.o ierrno.o ishftc.o iso_c_generated_procs.o iso_c_binding.o kill.o link.o malloc.o mvbits.o move_alloc.o pack_generic.o perror.o selected_char_kind.o signal.o size.o sleep.o spread_generic.o string_intrinsics.o system.o rand.o random.o rename.o reshape_generic.o reshape_packed.o selected_int_kind.o selected_real_kind.o stat.o symlnk.o system_clock.o time.o transpose_generic.o umask.o unlink.o unpack_generic.o in_pack_generic.o in_unpack_generic.o _abs_c4.o _abs_c8.o _abs_c10.o _abs_c16.o _abs_i4.o _abs_i8.o _abs_i16.o _abs_r4.o _abs_r8.o _abs_r10.o _abs_r16.o _aimag_c4.o _aimag_c8.o _aimag_c10.o _aimag_c16.o _exp_r4.o _exp_r8.o _exp_r10.o _exp_r16.o _exp_c4.o _exp_c8.o _exp_c10.o _exp_c16.o _log_r4.o _log_r8.o _log_r10.o _log_r16.o _log_c4.o _log_c8.o _log_c10.o _log_c16.o _log10_r4.o _log10_r8.o _log10_r10.o _log10_r16.o _sqrt_r4.o _sqrt_r8.o _sqrt_r10.o _sqrt_r16.o _sqrt_c4.o _sqrt_c8.o _sqrt_c10.o _sqrt_c16.o _asin_r4.o _asin_r8.o _asin_r10.o _asin_r16.o _asinh_r4.o _asinh_r8.o _asinh_r10.o _asinh_r16.o _acos_r4.o _acos_r8.o _acos_r10.o _acos_r16.o _acosh_r4.o _acosh_r8.o _acosh_r10.o _acosh_r16.o _atan_r4.o _atan_r8.o _atan_r10.o _atan_r16.o _atanh_r4.o _atanh_r8.o _atanh_r10.o _atanh_r16.o _sin_r4.o _sin_r8.o _sin_r10.o _sin_r16.o _sin_c4.o _sin_c8.o _sin_c10.o _sin_c16.o _cos_r4.o _cos_r8.o _cos_r10.o _cos_r16.o _cos_c4.o _cos_c8.o _cos_c10.o _cos_c16.o _tan_r4.o _tan_r8.o _tan_r10.o _tan_r16.o _sinh_r4.o _sinh_r8.o _sinh_r10.o _sinh_r16.o _cosh_r4.o _cosh_r8.o _cosh_r10.o _cosh_r16.o _tanh_r4.o _tanh_r8.o _tanh_r10.o _tanh_r16.o _conjg_c4.o _conjg_c8.o _conjg_c10.o _conjg_c16.o _aint_r4.o _aint_r8.o _aint_r10.o _aint_r16.o _anint_r4.o _anint_r8.o _anint_r10.o _anint_r16.o _sign_i4.o _sign_i8.o _sign_i16.o _sign_r4.o _sign_r8.o _sign_r10.o _sign_r16.o _dim_i4.o _dim_i8.o _dim_i16.o _dim_r4.o _dim_r8.o _dim_r10.o _dim_r16.o _atan2_r4.o _atan2_r8.o _atan2_r10.o _atan2_r16.o _mod_i4.o _mod_i8.o _mod_i16.o _mod_r4.o _mod_r8.o _mod_r10.o _mod_r16.o misc_specifics.o dprod_r8.o f2c_specifics.o
/home/tux/osxcross/target/bin/x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(all_l16.o) has no symbols
/home/tux/osxcross/target/bin/x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(any_l16.o) has no symbols
/home/tux/osxcross/target/bin/x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(count_16_l.o) has no symbols
/home/tux/osxcross/target/bin/x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(maxloc0_16_i1.o) has no symbols
/home/tux/osxcross/target/bin/x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(maxloc0_16_i2.o) has no symbols
/home/tux/osxcross/target/bin/x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(maxloc0_16_i4.o) has no symbols
/home/tux/osxcross/target/bin/x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(maxloc0_16_i8.o) has no symbols
/home/tux/osxcross/target/bin/x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(maxloc0_4_i16.o) has no symbols
/home/tux/osxcross/target/bin/x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(maxloc0_8_i16.o) has no symbols
/home/tux/osxcross/target/bin/x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(maxloc0_16_i16.o) has no symbols
/home/tux/osxcross/target/bin/x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(maxloc0_16_r4.o) has no symbols
/home/tux/osxcross/target/bin/x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(maxloc0_16_r8.o) has no symbols
/home/tux/osxcross/target/bin/x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(maxloc0_16_r10.o) has no symbols
/home/tux/osxcross/target/bin/x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(maxloc0_16_r16.o) has no symbols
/home/tux/osxcross/target/bin/x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(maxloc1_16_i1.o) has no symbols
/home/tux/osxcross/target/bin/x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(maxloc1_16_i2.o) has no symbols
/home/tux/osxcross/target/bin/x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(maxloc1_16_i4.o) has no symbols
/home/tux/osxcross/target/bin/x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(maxloc1_16_i8.o) has no symbols
/home/tux/osxcross/target/bin/x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(maxloc1_4_i16.o) has no symbols
/home/tux/osxcross/target/bin/x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(maxloc1_8_i16.o) has no symbols
/home/tux/osxcross/target/bin/x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(maxloc1_16_i16.o) has no symbols
/home/tux/osxcross/target/bin/x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(maxloc1_16_r4.o) has no symbols
/home/tux/osxcross/target/bin/x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(maxloc1_16_r8.o) has no symbols
/home/tux/osxcross/target/bin/x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(maxloc1_16_r10.o) has no symbols
/home/tux/osxcross/target/bin/x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(maxloc1_16_r16.o) has no symbols
/home/tux/osxcross/target/bin/x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(maxval_i16.o) has no symbols
/home/tux/osxcross/target/bin/x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(minloc0_16_i1.o) has no symbols
/home/tux/osxcross/target/bin/x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(minloc0_16_i2.o) has no symbols
/home/tux/osxcross/target/bin/x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(minloc0_16_i4.o) has no symbols
/home/tux/osxcross/target/bin/x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(minloc0_16_i8.o) has no symbols
/home/tux/osxcross/target/bin/x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(minloc0_4_i16.o) has no symbols
/home/tux/osxcross/target/bin/x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(minloc0_8_i16.o) has no symbols
/home/tux/osxcross/target/bin/x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(minloc0_16_i16.o) has no symbols
/home/tux/osxcross/target/bin/x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(minloc0_16_r4.o) has no symbols
/home/tux/osxcross/target/bin/x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(minloc0_16_r8.o) has no symbols
/home/tux/osxcross/target/bin/x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(minloc0_16_r10.o) has no symbols
/home/tux/osxcross/target/bin/x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(minloc0_16_r16.o) has no symbols
/home/tux/osxcross/target/bin/x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(minloc1_16_i1.o) has no symbols
/home/tux/osxcross/target/bin/x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(minloc1_16_i2.o) has no symbols
/home/tux/osxcross/target/bin/x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(minloc1_16_i4.o) has no symbols
/home/tux/osxcross/target/bin/x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(minloc1_16_i8.o) has no symbols
/home/tux/osxcross/target/bin/x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(minloc1_4_i16.o) has no symbols
/home/tux/osxcross/target/bin/x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(minloc1_8_i16.o) has no symbols
/home/tux/osxcross/target/bin/x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(minloc1_16_i16.o) has no symbols
/home/tux/osxcross/target/bin/x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(minloc1_16_r4.o) has no symbols
/home/tux/osxcross/target/bin/x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(minloc1_16_r8.o) has no symbols
/home/tux/osxcross/target/bin/x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(minloc1_16_r10.o) has no symbols
/home/tux/osxcross/target/bin/x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(minloc1_16_r16.o) has no symbols
/home/tux/osxcross/target/bin/x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(minval_i16.o) has no symbols
/home/tux/osxcross/target/bin/x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(product_i16.o) has no symbols
/home/tux/osxcross/target/bin/x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(sum_i16.o) has no symbols
/home/tux/osxcross/target/bin/x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(bessel_r10.o) has no symbols
/home/tux/osxcross/target/bin/x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(iall_i16.o) has no symbols
/home/tux/osxcross/target/bin/x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(iany_i16.o) has no symbols
/home/tux/osxcross/target/bin/x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(iparity_i16.o) has no symbols
/home/tux/osxcross/target/bin/x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(parity_l16.o) has no symbols
/home/tux/osxcross/target/bin/x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(matmul_i16.o) has no symbols
/home/tux/osxcross/target/bin/x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(matmul_l16.o) has no symbols
/home/tux/osxcross/target/bin/x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(transpose_i16.o) has no symbols
/home/tux/osxcross/target/bin/x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(shape_i16.o) has no symbols
/home/tux/osxcross/target/bin/x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(eoshift1_16.o) has no symbols
/home/tux/osxcross/target/bin/x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(eoshift3_16.o) has no symbols
/home/tux/osxcross/target/bin/x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(cshift1_16.o) has no symbols
/home/tux/osxcross/target/bin/x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(reshape_i16.o) has no symbols
/home/tux/osxcross/target/bin/x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(in_pack_i16.o) has no symbols
/home/tux/osxcross/target/bin/x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(in_unpack_i16.o) has no symbols
/home/tux/osxcross/target/bin/x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(pow_i16_i4.o) has no symbols
/home/tux/osxcross/target/bin/x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(pow_i16_i8.o) has no symbols
/home/tux/osxcross/target/bin/x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(pow_i4_i16.o) has no symbols
/home/tux/osxcross/target/bin/x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(pow_i8_i16.o) has no symbols
/home/tux/osxcross/target/bin/x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(pow_i16_i16.o) has no symbols
/home/tux/osxcross/target/bin/x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(pow_r4_i16.o) has no symbols
/home/tux/osxcross/target/bin/x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(pow_r8_i16.o) has no symbols
/home/tux/osxcross/target/bin/x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(pow_r10_i16.o) has no symbols
/home/tux/osxcross/target/bin/x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(pow_r16_i16.o) has no symbols
/home/tux/osxcross/target/bin/x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(pow_c4_i16.o) has no symbols
/home/tux/osxcross/target/bin/x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(pow_c8_i16.o) has no symbols
/home/tux/osxcross/target/bin/x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(pow_c10_i16.o) has no symbols
/home/tux/osxcross/target/bin/x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(pow_c16_i16.o) has no symbols
/home/tux/osxcross/target/bin/x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(pack_i16.o) has no symbols
/home/tux/osxcross/target/bin/x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(unpack_i16.o) has no symbols
/home/tux/osxcross/target/bin/x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(spread_i16.o) has no symbols
/home/tux/osxcross/target/bin/x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(cshift0_i16.o) has no symbols
/home/tux/osxcross/target/bin/x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(bit_intrinsics.o) has no symbols
/home/tux/osxcross/target/bin/x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(_abs_i16.o) has no symbols
/home/tux/osxcross/target/bin/x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(_sign_i16.o) has no symbols
/home/tux/osxcross/target/bin/x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(_dim_i16.o) has no symbols
/home/tux/osxcross/target/bin/x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(_mod_i16.o) has no symbols
libtool: link: x86_64-apple-darwin10-ranlib .libs/libgfortran.a
x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(all_l16.o) has no symbols
x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(any_l16.o) has no symbols
x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(count_16_l.o) has no symbols
x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(maxloc0_16_i1.o) has no symbols
x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(maxloc0_16_i2.o) has no symbols
x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(maxloc0_16_i4.o) has no symbols
x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(maxloc0_16_i8.o) has no symbols
x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(maxloc0_4_i16.o) has no symbols
x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(maxloc0_8_i16.o) has no symbols
x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(maxloc0_16_i16.o) has no symbols
x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(maxloc0_16_r4.o) has no symbols
x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(maxloc0_16_r8.o) has no symbols
x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(maxloc0_16_r10.o) has no symbols
x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(maxloc0_16_r16.o) has no symbols
x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(maxloc1_16_i1.o) has no symbols
x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(maxloc1_16_i2.o) has no symbols
x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(maxloc1_16_i4.o) has no symbols
x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(maxloc1_16_i8.o) has no symbols
x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(maxloc1_4_i16.o) has no symbols
x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(maxloc1_8_i16.o) has no symbols
x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(maxloc1_16_i16.o) has no symbols
x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(maxloc1_16_r4.o) has no symbols
x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(maxloc1_16_r8.o) has no symbols
x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(maxloc1_16_r10.o) has no symbols
x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(maxloc1_16_r16.o) has no symbols
x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(maxval_i16.o) has no symbols
x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(minloc0_16_i1.o) has no symbols
x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(minloc0_16_i2.o) has no symbols
x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(minloc0_16_i4.o) has no symbols
x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(minloc0_16_i8.o) has no symbols
x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(minloc0_4_i16.o) has no symbols
x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(minloc0_8_i16.o) has no symbols
x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(minloc0_16_i16.o) has no symbols
x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(minloc0_16_r4.o) has no symbols
x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(minloc0_16_r8.o) has no symbols
x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(minloc0_16_r10.o) has no symbols
x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(minloc0_16_r16.o) has no symbols
x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(minloc1_16_i1.o) has no symbols
x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(minloc1_16_i2.o) has no symbols
x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(minloc1_16_i4.o) has no symbols
x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(minloc1_16_i8.o) has no symbols
x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(minloc1_4_i16.o) has no symbols
x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(minloc1_8_i16.o) has no symbols
x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(minloc1_16_i16.o) has no symbols
x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(minloc1_16_r4.o) has no symbols
x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(minloc1_16_r8.o) has no symbols
x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(minloc1_16_r10.o) has no symbols
x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(minloc1_16_r16.o) has no symbols
x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(minval_i16.o) has no symbols
x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(product_i16.o) has no symbols
x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(sum_i16.o) has no symbols
x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(bessel_r10.o) has no symbols
x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(iall_i16.o) has no symbols
x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(iany_i16.o) has no symbols
x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(iparity_i16.o) has no symbols
x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(parity_l16.o) has no symbols
x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(matmul_i16.o) has no symbols
x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(matmul_l16.o) has no symbols
x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(transpose_i16.o) has no symbols
x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(shape_i16.o) has no symbols
x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(eoshift1_16.o) has no symbols
x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(eoshift3_16.o) has no symbols
x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(cshift1_16.o) has no symbols
x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(reshape_i16.o) has no symbols
x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(in_pack_i16.o) has no symbols
x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(in_unpack_i16.o) has no symbols
x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(pow_i16_i4.o) has no symbols
x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(pow_i16_i8.o) has no symbols
x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(pow_i4_i16.o) has no symbols
x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(pow_i8_i16.o) has no symbols
x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(pow_i16_i16.o) has no symbols
x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(pow_r4_i16.o) has no symbols
x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(pow_r8_i16.o) has no symbols
x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(pow_r10_i16.o) has no symbols
x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(pow_r16_i16.o) has no symbols
x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(pow_c4_i16.o) has no symbols
x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(pow_c8_i16.o) has no symbols
x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(pow_c10_i16.o) has no symbols
x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(pow_c16_i16.o) has no symbols
x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(pack_i16.o) has no symbols
x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(unpack_i16.o) has no symbols
x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(spread_i16.o) has no symbols
x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(cshift0_i16.o) has no symbols
x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(bit_intrinsics.o) has no symbols
x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(_abs_i16.o) has no symbols
x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(_sign_i16.o) has no symbols
x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(_dim_i16.o) has no symbols
x86_64-apple-darwin10-ranlib: file: .libs/libgfortran.a(_mod_i16.o) has no symbols
libtool: link: ( cd ".libs" && rm -f "libgfortran.la" && ln -s "../libgfortran.la" "libgfortran.la" )
make[6]: Leaving directory /home/tux/osxcross/build/gcc-4.9.2/build/x86_64-apple-darwin10/i386/libgfortran' make[5]: Leaving directory/home/tux/osxcross/build/gcc-4.9.2/build/x86_64-apple-darwin10/i386/libgfortran'
make[4]: Leaving directory /home/tux/osxcross/build/gcc-4.9.2/build/x86_64-apple-darwin10/libgfortran' make[3]: Leaving directory/home/tux/osxcross/build/gcc-4.9.2/build/x86_64-apple-darwin10/libgfortran'
make[2]: Leaving directory /home/tux/osxcross/build/gcc-4.9.2/build/x86_64-apple-darwin10/libgfortran' make[1]: Leaving directory/home/tux/osxcross/build/gcc-4.9.2/build'
make: *** [all] Error 2

exiting with abnormal exit code (2)
run 'OCDEBUG=1 ./build_gcc.sh' to enable debug messages
removing stale locks...
if it is happening the first time, then just re-run the script

Build returns non-zero status code

So I was trying to build a docker image and having a bad time because build.sh returns a non-zero status code even though it seems to finish ok?

Step 10 : RUN git clone git://github.com/tpoechtrager/osxcross.git
 ---> Using cache
 ---> 7f7121983189
Step 11 : ADD tarballs/*.tar* osxcross/tarballs
 ---> Using cache
 ---> fa563d2f1f86
Step 12 : ENV SDK_VERSION 10.10
 ---> Using cache
 ---> a347555db227
Step 13 : RUN /source/osxcross/build.sh
 ---> Running in c9ed07c8727b
SDK VERSION set in environment variable: 10.10
verified at tarballs/MacOSX10.10.sdk

Building OSXCross toolchain, Version: 0.10

OS X SDK Version: 10.10, Target: darwin14
Minimum targeted OS X Version: 10.5
Tarball Directory: /source/osxcross/tarballs
Build Directory: /source/osxcross/build
Install Directory: /source/osxcross/target
SDK Install Directory: /source/osxcross/target/SDK

INFO[0006] The command [/bin/sh -c /source/osxcross/build.sh] returned a non-zero code: 1 

Packing the sdk on linux does not work

Hi I'm think there is a problem with te mount_xcode_image.sh script.
When I follow the readme section Packing the SDK on a Linux machine, I do sudo ./tools/mount_xcode_image.sh /tmp/xcode_4.2_and_ios_5_sdk_for_snow_leopard.dmg and it tells me you need to complete ./build.sh first, before you can start building.
So I try running build.sh and obviously I get no SDK found in tarballs/. please see README.md.

When manually following the steps in the mount_xcode_image.sh I can mount the package and gen_sdk_package.sh runs without problems.

undefined errors while compiling fortran code

Hello ,
I am trying to cross compile simple "hello world" printing fortran code with the following command -

o64-g++ test.f -O3 -o test

and i am getting following errors, i think there should be some library which is missing from being referenced.


"gfortran_set_args", referenced from:
_main in ccunQ19M.o
"__gfortran_set_options", referenced from:
_main in ccunQ19M.o
"__gfortran_st_write", referenced from:
_MAIN
in ccunQ19M.o
"gfortran_st_write_done", referenced from:
_MAIN
in ccunQ19M.o
"gfortran_transfer_character_write", referenced from:
_MAIN
in ccunQ19M.o
ld: symbol(s) not found for architecture x86_64


Thanks & Regards,
Vineet Pant

"cannot invoke compiler!" on ios toolchain, and some questions

Hi. I'm following the instructions here (provided by tpoechtrager) to compile Godot for iOS on our build server: #45 (comment) . After running "build.sh" for the toolchain, I get "cannot invoke compiler!" when I run bin/arm-apple-darwin11-clang++. What is it supposed to be running?

Also, will there be a different toolchain for each architecture? (on apple's toolchain we use -arch armv7 or -arch arm64 on the same I think). Fat binaries that include arm64 are required to publish on the app store, so that's what we're going for. What is the "root" of each toolchain, that I can pack and put on our build server?

Thanks!

macports / brew / pkgsrc ???

Anyone had any luck using any of the above in conjuction with osxcross?
I'd like to cross-compile a rather complex project which has quite some dependencies.
I think pkgsrc is most likely to work with some modifications.

Build under msys2

Hello,
first thank you for the nice project!

I try to build it under msys2 with Xcode_6.4. The step with the ./build.sh hangs on:

extracting cctools-870-ld64-242_9372d4c.tar.xz ...
tar: cctools-870-ld64-242_9372d4c/cctools/include/foreign/arm: Cannot create symlink to 'i386/': No such file or directory
tar: cctools-870-ld64-242_9372d4c/cctools/include/foreign/mach/arm: Cannot create symlink to 'i386/': No such file or directory
tar: Exiting with failure status due to previous errors

I have now extract the tar archive manual and command the rm in the script out, so it works, but the next error is that:

[...]
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DPACKAGE_NAME=\"cctools\" -DPACKAGE_TARNAME=\"cctools\" -DPACKAGE_VERSION=\"870\" -DPACKAGE_STRING=\"cctools\ 870\" -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 -I.   -I/local64/include -D_FORTIFY_SOURCE=2 -D__USE_MINGW_ANSI_STDIO=1 -I../include -I../include/foreign -D__DARWIN_UNIX03 -Wall -Wno-format -Wno-enum-compare -Wno-unused-result -Wno-unused-variable -Wno-unused-but-set-variable -Wno-deprecated -Wno-deprecated-declarations -Wno-char-subscripts -Wno-strict-aliasing -Wno-shift-negative-value  -DPROGRAM_PREFIX="\"x86_64-apple-darwin14-\"" -D__LITTLE_ENDIAN__=1 -I/local64/include -mthreads -mtune=generic -O2 -pipe -isystem /usr/local/include -isystem /usr/pkg/include -std=gnu99 -D__private_extern__= -c -o libstuff_la-crc32.lo `test -f 'crc32.c' || echo './'`crc32.c
libtool: compile:  gcc -DPACKAGE_NAME=\"cctools\" -DPACKAGE_TARNAME=\"cctools\" -DPACKAGE_VERSION=\"870\" "-DPACKAGE_STRING=\"cctools 870\"" -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 -I. -I/local64/include -D_FORTIFY_SOURCE=2 -D__USE_MINGW_ANSI_STDIO=1 -I../include -I../include/foreign -D__DARWIN_UNIX03 -Wall -Wno-format -Wno-enum-compare -Wno-unused-result -Wno-unused-variable -Wno-unused-but-set-variable -Wno-deprecated -Wno-deprecated-declarations -Wno-char-subscripts -Wno-strict-aliasing -Wno-shift-negative-value -DPROGRAM_PREFIX=\"x86_64-apple-darwin14-\" -D__LITTLE_ENDIAN__=1 -I/local64/include -mthreads -mtune=generic -O2 -pipe -isystem /usr/local/include -isystem /usr/pkg/include -std=gnu99 -D__private_extern__= -c crc32.c  -DDLL_EXPORT -DPIC -o .libs/libstuff_la-crc32.o
crc32.c:61:14: error: unknown type name 'u_int32_t'
 static const u_int32_t crctab[] = {
              ^
crc32.c: In function 'crc32':
crc32.c:125:20: error: unknown type name 'u_char'
     register const u_char *p;
                    ^
crc32.c:127:14: error: unknown type name 'u_int32_t'
     register u_int32_t crc;
              ^
crc32.c: At top level:
cc1.exe: warning: unrecognized command line option '-Wno-shift-negative-value'
Makefile:468: recipe for target 'libstuff_la-crc32.lo' failed
make[1]: *** [libstuff_la-crc32.lo] Error 1
make[1]: Leaving directory '/trunk/osxcross/build/cctools-870-ld64-242_9372d4c/cctools/libstuff'
Makefile:410: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1

exiting with abnormal exit code (2)
run 'OCDEBUG=1 ./build.sh' to enable debug messages
removing stale locks...
if it is happening the first time, then just re-run the script

Any idea?

Msys2 use gcc 5.2, can that be a reason?

I also see that the script try to compile only a shared version, is this a problem later, when I will compile static tools, like ffmpeg?

ccache + osxcross: warning: cannot find clang intrinsic headers

I have enabled ccache by creating symlinks for *-apple-*-clang and *-apple-*-clang++. This is what I get when I use ccache:

osxcross: warning: cannot find clang intrinsic headers, please report this issue to the OSXCross project
osxcross: warning: cannot find clang intrinsic headers, please report this issue to the OSXCross project
clang: warning: argument unused during compilation: '-cxx-isystem /home/builder/osxcross.git/target/bin/../SDK/MacOSX10.6.sdk/usr/include/c++/4.2.1'
clang: warning: argument unused during compilation: '-cxx-isystem /home/builder/osxcross.git/target/bin/../SDK/MacOSX10.6.sdk/usr/include/c++/4.2.1/i386-apple-darwin10'
clang: warning: argument unused during compilation: '-I /home/builder/osxcross.git/target/bin/../SDK/MacOSX10.6.sdk/usr/X11/include'

Clangs is known to throw such wanning when used with ccache, they can be suppressed with -Qunused-arguments. But I still get osxcross: warning: cannot find clang intrinsic headers, which bothers me more.

Compiling wrapper fails

Having some difficulty compiling osxcross on Debian wheezy. I got LLVM/Clang packages from http://llvm.org/apt/ as in the instructions.

Possibly useful:

ii  libllvm3.5:amd64                   1:3.5~svn212963-1~exp1 amd64
ii  llvm-3.5                           1:3.5~svn212963-1~exp1 amd64
ii  llvm-3.5-dev                       1:3.5~svn212963-1~exp1 amd64
ii  llvm-3.5-runtime                   1:3.5~svn212963-1~exp1 amd64
ii  clang-3.5                          1:3.5~svn212963-1~exp1 amd64
ii  libclang-common-3.5-dev            1:3.5~svn212963-1~exp1 amd64
ii  libclang1-3.5:amd64                1:3.5~svn212963-1~exp1 amd64

Relevant excerpt from build output (with OCDEBUG=1):

+ compile_wrapper
+ mkdir -p ../target ../target/bin
+ verbose_cmd clang++ compiler.cpp -std=c++0x -pedantic -Wall -Wextra '-DOSXCROSS_VERSION="\"0.8\""' '-DOSXCROSS_TARGET="\"darwin13\""' '-DOSXCROSS_OSX_VERSION_MIN="\"10.5\""' '-DOSXCROSS_LINKER_VERSION="\"236.3\""' '-DOSXCROSS_LIBLTO_PATH="\"/usr/lib/llvm-3.5/lib\""' -o ../target/bin/x86_64-apple-darwin13-wrapper -O2 -march=native -lrt
+ echo clang++ compiler.cpp -std=c++0x -pedantic -Wall -Wextra '-DOSXCROSS_VERSION="\"0.8\""' '-DOSXCROSS_TARGET="\"darwin13\""' '-DOSXCROSS_OSX_VERSION_MIN="\"10.5\""' '-DOSXCROSS_LINKER_VERSION="\"236.3\""' '-DOSXCROSS_LIBLTO_PATH="\"/usr/lib/llvm-3.5/lib\""' -o ../target/bin/x86_64-apple-darwin13-wrapper -O2 -march=native -lrt
+ eval clang++ compiler.cpp -std=c++0x -pedantic -Wall -Wextra '-DOSXCROSS_VERSION="\"0.8\""' '-DOSXCROSS_TARGET="\"darwin13\""' '-DOSXCROSS_OSX_VERSION_MIN="\"10.5\""' '-DOSXCROSS_LINKER_VERSION="\"236.3\""' '-DOSXCROSS_LIBLTO_PATH="\"/usr/lib/llvm-3.5/lib\""' -o ../target/bin/x86_64-apple-darwin13-wrapper -O2 -march=native -lrt
++ clang++ compiler.cpp -std=c++0x -pedantic -Wall -Wextra '-DOSXCROSS_VERSION="0.8"' '-DOSXCROSS_TARGET="darwin13"' '-DOSXCROSS_OSX_VERSION_MIN="10.5"' '-DOSXCROSS_LINKER_VERSION="236.3"' '-DOSXCROSS_LIBLTO_PATH="/usr/lib/llvm-3.5/lib"' -o ../target/bin/x86_64-apple-darwin13-wrapper -O2 -march=native -lrt
compiler.cpp:784:19: error: unexpected ':' in nested name specifier; did you mean '::'?
    for (auto std : STD) {
                  ^
                  ::
compiler.cpp:784:21: error: definition or redeclaration of 'STD' not allowed inside a function
    for (auto std : STD) {
              ~~~~~ ^
compiler.cpp:784:21: error: no member named 'STD' in namespace 'std'
    for (auto std : STD) {
              ~~~~~ ^
compiler.cpp:784:21: error: declaration of variable 'STD' with type 'auto' requires an initializer
compiler.cpp:784:24: error: expected ';' in 'for' statement specifier
    for (auto std : STD) {
                       ^
compiler.cpp:784:24: error: expected ';' in 'for' statement specifier
compiler.cpp:785:28: error: unexpected namespace name 'std': expected expression
      if (!strcmp(langstd, std))
                           ^
7 errors generated.

Any idea what could be causing this?
Full log in case it's useful: http://sphalerite.org/osxcross-build-failure.log

Thanks in advance.

Contents of the sdk tarballs

Many thanks for supplying the links, but, with my internet being as slow as it is, I'd rather not download something I more than likely already have; I have in my posession a tarball of the contents of the Xcode.app, obtained from my hackintosh install; would you be able to provide a list of the contents of the 10.9 sdk tarball (not en-totale, just a generic overview) to that effect?

o32-clang test complains about implicit declaration of printf in oclang/test.c on x86_64 Arch Linux

When I just tried to build the cross toolchain for OS X 10.9 on my (fully updated) x86_64 Arch Linux box, I got the following error during the o32-clang test:

+ '[' 10.5 '!=' default ']'
++ osxcross-cmp 10.9 '<' 10.5
+ '[' 0 -eq 1 ']'
++ osxcross-cmp 10.5 '<' 10.4
+ '[' 0 -eq 1 ']'
+ test_compiler o32-clang /home/jakob/Downloads/osxtools/osxcross/oclang/test.c
+ echo -ne 'testing o32-clang ... '
testing o32-clang ... + o32-clang /home/jakob/Downloads/osxtools/osxcross/oclang/test.c -O2 -Wall -o test
[d] --> o32-clang /home/jakob/Downloads/osxtools/osxcross/oclang/test.c -O2 -Wall -o test 
[d] <-- clang -target i386-apple-darwin13 -mlinker-version=241.9 -isystem /usr/bin/../lib/clang/3.5.1/include -isysroot /home/jakob/Downloads/osxtools/osxcross/target/bin/../SDK/MacOSX10.9.sdk -cxx-isystem /home/jakob/Downloads/osxtools/osxcross/target/bin/../SDK/MacOSX10.9.sdk/usr/include/c++/4.2.1 -cxx-isystem /home/jakob/Downloads/osxtools/osxcross/target/bin/../SDK/MacOSX10.9.sdk/usr/include/c++/4.2.1/i386-apple-darwin13 -mmacosx-version-min=10.5.0 -arch i386 -o test /home/jakob/Downloads/osxtools/osxcross/oclang/test.c -O2 -Wall 
[d] === time spent in wrapper: 0.264121 ms
/home/jakob/Downloads/osxtools/osxcross/oclang/test.c:5:5: warning: implicitly declaring library function 'printf' with type 'int (const char *, ...)'
    printf("works");
    ^
/home/jakob/Downloads/osxtools/osxcross/oclang/test.c:5:5: note: include the header <stdio.h> or explicitly provide a declaration for 'printf'
1 warning generated.
ld: file too small (length=0) file '/home/jakob/Downloads/osxtools/osxcross/target/bin/../SDK/MacOSX10.9.sdk/usr/lib/crt1.10.5.o' for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
+ _exit
+ EC=1
+ '[' 1 -ne 0 ']'
+ test -z build.sh
+ echo ''

+ echo 'exiting with abnormal exit code (1)'
exiting with abnormal exit code (1)
+ test -n 1
+ declare -f -F remove_locks
+ echo 'removing stale locks...'
removing stale locks...
+ remove_locks
+ rm -rf /home/jakob/Downloads/osxtools/osxcross/build/have_cctools_2201b7b_darwin13
+ echo 'if it is happening the first time, then just re-run the script'
if it is happening the first time, then just re-run the script
+ echo ''

+ test build.sh = build.sh
+ check_for_bug_1242300
+ '[' -e /etc/issue ']'
++ grep -i ubuntu.13.10 /etc/issue
+ '[' '' ']'

Since stdio.h is included in oclang/test.c I have no clue where that error originates. It would be great if you could help me to fix it. You can find the full log at https://gist.github.com/J5lx/eb1341717bc2e0978702. Thanks in advance!

inexperienced user help

My apologies for my lack of knowledge, I have tried to solve this myself, but are not getting anywhere.

I am trying to compile this: http://www.irtrans.de/download/Server/Linux/irserver-src.tar.gz

I have followed all the instructions (with MacOSX10.10.sdk.tar.bz2) and are now attempting to compile.

So I enter the irserver-src directory and enter the following (as per the make instructions)

make CC=o64-clang Cdarwin14=o64-clang++

However, this just throws numerours warings and errors:

lowlevel.c:762:35: note: please include the header <string.h> or explicitly provide a declaration for 'strcpy'
lowlevel.c:762:54: warning: passing 'int8_t [80]' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
if (res == ERR_REMOTENOTFOUND) strcpy (err_remote,acc->remotes[i]);
                                                                          ^~~~~~~~~~~~~~~
lowlevel.c:763:56: warning: passing 'int8_t [20]' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
if (res == ERR_COMMANDNOTFOUND) strcpy (err_command,acc->commands[i]);
                                                                            ^~~~~~~~~~~~~~~~
lowlevel.c:836:112: error: use of undeclared identifier 'MSG_NOSIGNAL'
if (IRDevices[bus].io.socket) res = recvfrom(IRDevices[bus].io.socket,(byte *)&ai,sizeof (GET_ANALOG_INPUTS),MSG_NOSIGNAL,(struct sockaddr *)&send_adr,&i);
                                                                                                                             ^
lowlevel.c:837:77: error: use of undeclared identifier 'MSG_NOSIGNAL'
else  res = recvfrom(irtlan_socket,(byte *)&ai,sizeof (GET_ANALOG_INPUTS),MSG_NOSIGNAL,(struct sockaddr *)&send_adr,&i);
162 warnings and 19 errors generated.
make: *** [x86/lowlevel.o] Error 1

What am I doing wrong ?

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.