Commit Graph

419 Commits

Author SHA1 Message Date
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
Thomas Pöchtrager
9790e10a72
Merge pull request #201 from erijo/target-dir
Use TARGET_DIR instead of hardcoding ../target
2019-10-23 13:08:32 +02:00
Erik Johansson
cf5aa6c5f1 Use TARGET_DIR instead of hardcoding ../target
To make the build work when TARGET_DIR has been changed in tools.sh.
2019-10-23 10:56:08 +02:00
Thomas Pöchtrager
0713de13d6 Fix for #200 2019-10-22 12:42:16 +02:00
Thomas Pöchtrager
5819953299 Wrapper: Only create a dsymutil symlink if dsymutil is not in PATH 2019-10-20 20:15:16 +02:00
Thomas Pöchtrager
d3392f4eae build_compiler_rt.sh: Fix building with LLVM trunk 2019-10-09 11:47:04 +02:00
Thomas Pöchtrager
728db2cb6e build_clang.sh: Update Clang version to 9.0.0 2019-10-09 11:47:04 +02:00
Thomas Pöchtrager
edcbb2a654 Use https mirrors 2019-10-09 11:47:04 +02:00
Thomas Pöchtrager
04246791b8
Merge pull request #197 from dos1/zlib
Add missing zlib1g-dev Debian dependency
2019-10-06 18:39:29 +02:00
Sebastian Krzyszkowiak
832e3b2b3f
Add missing zlib1g-dev Debian dependency 2019-10-06 17:18:31 +02:00
Thomas Pöchtrager
f4b0948abd Fix building GCC with 10.15 SDK 2019-09-14 11:38:18 +02:00
Thomas Pöchtrager
6d98ef2979 build_compiler_rt: Support Clang 9.0 2019-09-14 11:38:18 +02:00
Thomas Pöchtrager
bec05f4602 README.md: Xcode up to 11 GM works 2019-09-14 11:38:18 +02:00
Thomas Pöchtrager
f7fc921b93
Update README.md 2019-09-10 14:56:29 +02:00
Thomas Pöchtrager
d39ba02231
README: Update Xcode Download Link 2019-09-01 22:10:22 +02:00
Thomas Pöchtrager
f67ce5033d build.sh: Make Clang the default assembler for GCC 2019-08-19 20:48:23 +02:00
Thomas Pöchtrager
194807cb8b build_gcc.sh: Update GCC_VERSION to 9.2.0 2019-08-19 20:46:00 +02:00
Thomas Pöchtrager
37894c5839 gen_sdk_package_*.sh: Accept relative Xcode paths (closes #189) 2019-08-16 10:09:22 +02:00
Thomas Pöchtrager
16efae8992 Fixes for #187 2019-06-24 13:02:34 +02:00
Thomas Pöchtrager
88cb6e8d0d Fix for #186 (closes #186) 2019-06-18 20:36:22 +02:00
Thomas Pöchtrager
e0a171828a Update README.md 2019-06-04 18:55:17 +02:00
Thomas Pöchtrager
ada9ea8d1b Some cleanup 2019-06-04 18:34:11 +02:00
Thomas Pöchtrager
85d8dd92f6 Add '--with-libxar' to cctools/ld64 configure options 2019-06-04 18:23:36 +02:00
Thomas Pöchtrager
c7fbb01ac2 10.15 SDK (Beta) appears to work too 2019-06-04 18:22:41 +02:00