Commit Graph

457 Commits

Author SHA1 Message Date
Luca Corbo
1c8440a804
verify_sdk_version: exit with code 1 if the SDK is not found
This change updates the exit code for `verify_sdk_version` to `1` function if the SDK is not found.
This should help to stop the build in automatic scripts when the SDK_VERSION env variable is set to a invalid value.
2021-05-08 13:15:48 +02:00
Thomas Pöchtrager
5771a84795 Bump GCC version to 10.3.0 2021-04-08 15:30:01 +02:00
Thomas Pöchtrager
9a2c6e344f Remove ldid 2021-04-02 14:58:05 +02:00
Thomas Pöchtrager
3351f5573c Update cctools to 973.0.1 and ld64 to 609 2021-04-02 14:58:05 +02:00
Thomas Pöchtrager
fca436a756
Merge pull request #270 from Gcenx/master
tools.sh: Workaround hardcoded paths
2021-03-30 18:41:36 +02:00
Dean M Greer
5fb7f5496b tools.sh: Workaround hardcoded paths
As OpenSSL is expected to be in a standard UNIX location but that's not always the case on macOS, this works around the issue regardless of package manager used as long as pkg-config is installed into $PATH

Macports default prefix is /opt/local
Homebrew on M1 uses /opt/homebrew
2021-03-29 21:45:29 -04:00
Thomas Pöchtrager
dd4f8f329d Update build_compiler_rt.sh 2021-03-27 20:14:33 +01:00
Thomas Pöchtrager
00b9083b07 osxcross-macports:
* Add 11.x target
* Enable HTTPS
2021-03-27 18:56:46 +01:00
Thomas Pöchtrager
61925a29c4
Merge pull request #266 from SuperQ/fix_complete_file_order
Fix build_complete_file in get_sources
2021-03-23 19:38:42 +01:00
Ben Kochie
7838690391
Fix build_complete_file in get_sources
Move setting build_complete_file to after fetching project_name using
get_project_name_from_url. Avoids empty ".FOO_build_complete" file name.
* Fix up a number of shellcheck issues in get_sources().

Signed-off-by: Ben Kochie <superq@gmail.com>
2021-03-23 18:02:41 +01:00
Thomas Pöchtrager
da2c3d4ff6 Update README 2021-03-20 15:40:59 +01:00
Thomas Pöchtrager
4ec572e392 Add 'OSXCROSS_ENABLE_WERROR_IMPLICIT_FUNCTION_DECLARATION' env variable to emulate Xcode 12's behavior 2021-03-20 15:05:51 +01:00
Thomas Pöchtrager
035cc17033 Support recent SDKs 2021-02-11 13:16:47 +01:00
Thomas Pöchtrager
269ed97a6d
Merge pull request #254 from rokm/xcode_cmdline_tools
Add scripts for extracting SDKs from Command Line Tools for Xcode
2021-02-09 19:26:20 +01:00
Rok Mandeljc
3a4335d042 Add scripts for extracting SDKs from Command Line Tools for Xcode
Being able to extract SDKs from Command Line Tools for Xcode instead
of the full Xcode package saves bandwidth, disk space, and time.

Two scripts are added:
* tools/gen_sdk_package_tools.sh: extracts SDKs from installed
  Command Line Tools on macOS (/Library/Developer/CommandLineTools)
  or from a path specified via XCODE_TOOLS_DIR
* tools/gen_sdk_package_tools_dmg.sh: unpacks the content of provided
  Command_Line_Tools_for_Xcode.dmg and extracts SDKs via the above
  script.

Tested with Command Line Tools for Xcode 12.x.
2021-01-29 21:59:49 +01:00
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