Commit Graph

442 Commits

Author SHA1 Message Date
Thomas Pöchtrager
4287300a5c Add support for 11.x SDKs (#251) 2020-12-25 09:30:44 +01:00
Thomas Pöchtrager
7c090bd8cd Update build_compiler_rt.sh 2020-11-20 08:17:23 +01:00
Thomas Pöchtrager
9d7f6c2461 More Android/Termux adjustments 2020-10-14 09:24:50 +02:00
Thomas Pöchtrager
45d2f7ec2e Build required dependency 'ldid'
-> Required in cctools-port (fake signing ARM binaries)
2020-10-04 17:57:19 +02:00
Thomas Pöchtrager
364703ca09 Fix for #239 2020-09-08 12:43:40 +02:00
Thomas Pöchtrager
2733413b68 Fix '-mmacosx-version-min=' for Clang 10.0.x. 2020-09-04 12:51:13 +02:00
Thomas Pöchtrager
29500b2093 Fix 'oa64e-clang' architecture (arm64 -> arm64e) 2020-09-03 08:55:00 +02:00
Thomas Pöchtrager
a791ad4fca build_clang: Bump Clang version to 10.0.1 2020-08-27 13:53:23 +02:00
Thomas Pöchtrager
02008c9d79 build_clang: Fix mirror annoyances 2020-08-27 13:53:23 +02:00
Thomas Pöchtrager
586bde6769 Clang 11 is actually able to parse '-mmacosx-version-min=11.x' 2020-08-27 13:53:23 +02:00
Thomas Pöchtrager
6d96df5180 Revert "Update download location and filename for LLVM and Clang source tarballs."
This reverts commit a2ccac44bc.
2020-08-27 13:53:23 +02:00
Thomas Pöchtrager
cc1823a726
Merge pull request #230 from abrodkin/clang-auto-install
build_clang.sh: Allow unmanned instllation
2020-08-25 12:11:27 +02:00
Thomas Pöchtrager
956a2ea676 * Add aarch64-* symlinks for arm64-*. Automake doesn't recognize arm64.
* Some cleanup
2020-08-20 18:46:13 +02:00
Thomas Pöchtrager
749cf4acad Bump GCC version to 10.2.0 2020-08-20 18:46:13 +02:00
Thomas Pöchtrager
4dfbc45961
Update build requirements (#235) 2020-08-18 18:33:34 +02:00
Thomas Pöchtrager
acb4328167
Typo 2020-08-18 12:41:05 +02:00
Thomas Pöchtrager
ec2abd91f2
Another README update 2020-08-17 19:40:59 +02:00
Thomas Pöchtrager
c5f5997ec4
Update README.md 2020-08-17 19:23:31 +02:00
Thomas Pöchtrager
536dc13153 * Update README
* Update ChangeLog
* Mac OS X -> macOS
2020-08-17 19:19:47 +02:00
Thomas Pöchtrager
5489149683 More work on ARM target 2020-08-16 19:26:58 +02:00
Thomas Pöchtrager
261de10511 Support ARM target 2020-08-15 20:07:54 +02:00
Thomas Pöchtrager
65e7e00e65 Update TAPI library to 1100.0.11 (adds support for macOS 10.16) 2020-08-15 16:36:03 +02:00
Thomas Pöchtrager
a1d7d7a8d5
Merge pull request #233 from cschol/download-location
Update download location and filename for LLVM and Clang source tarballs
2020-08-02 12:03:01 +02:00
Christoph Scholtes
a2ccac44bc Update download location and filename for LLVM and Clang source tarballs. 2020-08-01 21:15:36 -06:00
Alexey Brodkin
86433b6ece build_clang.sh: Allow unmanned instllation
To get a completely env independent setup we may want to install
Clang/LLVM to the target folder as well. So let's allow user
to do it in a scripted way just adding ENABLE_CLANG_INSTALL=1
for execution string.
2020-07-15 00:50:27 +03:00
Thomas Pöchtrager
77fcafc20b
Merge pull request #229 from abrodkin/gcc-mirror
Use official GNU download area
2020-07-12 17:12:04 +02:00
Alexey Brodkin
534b90dacd Use official GNU download area
There're quite a few mirrors where GNU software might be found.
Though there're some problems with them:
 1. There's no guarantee any random mirror will be still up tomorrow
 2. For mere mortal it's not clear how credible if xxx-yyy-zzz.org
    in a sense that either tarball with sources might be corrupted
    unintentionally or even with some bad intentions.
    One solution here might be calculation of checksum but still
    as long as the main "FTP" storage of GNU project is up there's
    not much sense in using a _hard-coded_ mirror.

Unfortunately snapshots of GCC are not hosted at https://ftp.gnu.org/,
so keeping https://mirror.koddos.net for now.
2020-07-12 17:21:29 +03:00
Thomas Pöchtrager
83c2097eba
Merge pull request #228 from abrodkin/centos7-fix
Fix building on CentOS 7.x
2020-07-12 16:10:41 +02:00
Alexey Brodkin
1900351515 Fix building on CentOS 7.x
With C++14 the following error happens on CentOS 7.x:
==================================
$ clang++ -std=c++1y -Wall -Wextra -pedantic -Wno-missing-field-initializers \
          -I. -O2 -DOSXCROSS_VERSION="\"1.2\"" -DOSXCROSS_TARGET="\"darwin14\"" \
          -DOSXCROSS_OSX_VERSION_MIN="\"10.6\"" -DOSXCROSS_LINKER_VERSION="\"530\"" \
          -DOSXCROSS_LIBLTO_PATH="\"/usr/lib64/llvm\"" \
          -DOSXCROSS_BUILD_DIR="\"/osxcross/build\""  -isystem quirks/include \
          -c -o target.o target.cpp
In file included from target.cpp:24:
In file included from /usr/bin/../lib/gcc/x86_64-redhat-linux/4.8.5/../../../../include/c++/4.8.5/iostream:39:
In file included from /usr/bin/../lib/gcc/x86_64-redhat-linux/4.8.5/../../../../include/c++/4.8.5/ostream:38:
In file included from /usr/bin/../lib/gcc/x86_64-redhat-linux/4.8.5/../../../../include/c++/4.8.5/ios:42:
In file included from /usr/bin/../lib/gcc/x86_64-redhat-linux/4.8.5/../../../../include/c++/4.8.5/bits/ios_base.h:41:
In file included from /usr/bin/../lib/gcc/x86_64-redhat-linux/4.8.5/../../../../include/c++/4.8.5/bits/locale_classes.h:40:
In file included from /usr/bin/../lib/gcc/x86_64-redhat-linux/4.8.5/../../../../include/c++/4.8.5/string:52:
In file included from /usr/bin/../lib/gcc/x86_64-redhat-linux/4.8.5/../../../../include/c++/4.8.5/bits/basic_string.h:2815:
In file included from /usr/bin/../lib/gcc/x86_64-redhat-linux/4.8.5/../../../../include/c++/4.8.5/ext/string_conversions.h:43:
/usr/bin/../lib/gcc/x86_64-redhat-linux/4.8.5/../../../../include/c++/4.8.5/cstdio:120:11: error: no member named 'gets' in the global namespace
  using ::gets;
        ~~^
1 error generated.
==================================

That's a known issue with older C++ headers, see https://bugs.llvm.org/show_bug.cgi?id=30277

With C++11 we then get another problem:
==================================
$ clang++ -std=c++0x -Wall -Wextra -pedantic -Wno-missing-field-initializers \
          -I. -O2 -DOSXCROSS_VERSION="\"1.2\"" -DOSXCROSS_TARGET="\"darwin14\"" \
          -DOSXCROSS_OSX_VERSION_MIN="\"10.6\"" -DOSXCROSS_LINKER_VERSION="\"530\"" \
          -DOSXCROSS_LIBLTO_PATH="\"/usr/lib64/llvm\"" \
          -DOSXCROSS_BUILD_DIR="\"/osxcross/build\""  -isystem quirks/include \
          -c -o programs/osxcross-conf.o programs/osxcross-conf.cpp

programs/osxcross-conf.cpp:50:49: error: 'auto' not allowed in lambda parameter
  static auto print = [](const char *var, const auto &val) {
                                                ^~~~
programs/osxcross-conf.cpp:50:55: warning: unused parameter 'val' [-Wunused-parameter]
  static auto print = [](const char *var, const auto &val) {
                                                      ^
programs/osxcross-conf.cpp:54:3: error: no matching function for call to object of type '<lambda at programs/osxcross-conf.cpp:50:23>'
  print("VERSION", getOSXCrossVersion());
==================================

That last issue requires a move from a lambda to more ugly
template solution. But in the end we get all built!
2020-07-12 16:36:52 +03:00
Thomas Pöchtrager
c2ad5e859d Update ld64 to 530 2020-06-01 12:14:27 +02:00
Thomas Pöchtrager
40049bf59d build_gcc.sh: Update GCC_VERSION to 10.1.0 2020-06-01 12:13:53 +02:00
Thomas Pöchtrager
1b731164df Fix for #221 2020-04-11 22:30:28 +02:00
Thomas Pöchtrager
2f02baaf90 osxcross-macports: Add 10.15 target 2020-04-10 19:48:00 +02:00
Thomas Pöchtrager
4d46f4bbf2 Build scripts & osxcross-macports: Tweak tarball download code 2020-04-10 19:46:06 +02:00
Thomas Pöchtrager
af53af4886 build_compiler_rt.sh: Silence 10.5 deprecation warning 2020-04-10 19:43:00 +02:00
Thomas Pöchtrager
42afa17368 xcrun: Update tool list 2020-03-25 19:34:55 +01:00
Thomas Pöchtrager
6ebffaacb6 Add back patch levevl to 'xcodebuild -version' 2020-03-25 19:34:09 +01:00
Thomas Pöchtrager
748108aec4 * Bump Version to 1.2
* Drop support for <= 10.5 SDKs (use osxcross-1.1 branch instead)
* Adjustments for ld64 512.4
2020-03-22 13:04:53 +01:00
Thomas Pöchtrager
21241087bd Update cctools to 949.0.1 and ld64 to 512.4 2020-03-20 16:29:20 +01:00
Thomas Pöchtrager
6edf1ca936 * Add xcodebuild stub tool. Only '-version' is supported.
* build_compiler_rt.sh: Change git repository. The llvm.org one is no longer synced.
* build_compiler_rt.sh: Add check for os/lock.h.
* xcrun: "Support" -show-sdk-platform-path.
* sw_vers: Output 0CFFFF for Build Version.
2020-03-10 16:49:39 +01:00
Thomas Pöchtrager
952985fee3 wrapper: Get rid of __builtin_readcyclecounter()
Crashes on some ARM machines
2020-03-04 18:21:28 +01:00
Thomas Pöchtrager
bee9df60f1 Another attempt to fix #211
Actually it's the SDK that's broken. But whatever.
2020-02-19 17:12:36 +01:00
Thomas Pöchtrager
2bab8f2eef Revert "Fix for #211"
This reverts commit 62998924a8.

Breaks other things (#212)
2020-02-19 14:34:41 +01:00
Thomas Pöchtrager
62998924a8 Fix for #211 2020-02-18 15:35:32 +01:00
Thomas Pöchtrager
542acc2ef6 Make OSXCross work on Android (Termux)
Additional changes:

5e9c52005f
9fa76fb95a
8239a5211b

cd9885b97f
2019-11-06 20:42:24 +01:00
Thomas Pöchtrager
98149255fe wrapper:
* Add missing symlink
* Don't build with -g if OCDEBUG=1 isn't given
2019-11-04 20:32:05 +01:00
Thomas Pöchtrager
2f504fe4ba * Update cctools to 927.0.2 and ld64 to 450.3
* Added back support for OpenBSD
* Some cleanup and various fixes
2019-11-02 13:26:21 +01:00
Thomas Pöchtrager
d6acb50bab Fix an oversight in build_gcc.sh 2019-10-23 17:27:20 +02:00
Thomas Pöchtrager
379f7648c3 Make TARGET_DIR configurable (#108, #137, #201) 2019-10-23 16:06:00 +02:00
Thomas Pöchtrager
49e49b1c56 build_compiler_rt.sh: Fix building with LLVM trunk once again 2019-10-23 14:36:47 +02:00