Comments (7)
Works for me without the need to change anything.
What does grep --version
print?
from cctools-port.
Hi,
My grep version is 2.25 on ubuntu 16.04. The script detects SDK Version
0.0 if I use the iPhoneSDK10.0.sdk. The build process works of course,
but the macro in wraper.c is not defined correctly. As a result the
min-sdk-version is wrong.
But there is another problem. Apple changed the library format in SDK
version 10. These libraries are only usable with ld64-274. But the
newest version on ld64 that is open source is version 264. Do you have a
workaround for this problem? I have used iPhoneSDK10 which I extracted
from an XCode8.dmg and wrote a little script that changes the XSym-links
to standard symbolic links. With SDK 9.3 everything works perfect. The
script looks like this (feel free to use/include it):
#!/bin/bash
for d in $(find $1 -maxdepth 10 -type d)
do
for f in $(find $d -maxdepth 1 -type f)
do
HEAD=$(head -c 4 "$f")
if [ "$HEAD" == "XSym" ]; then
DEST=$(sed '4q;d' $f)
echo "Dest: $DEST"
rm -r $f
ln -s "$DEST" "$f"
fi
done
done
Best requards Simon
Am 21.10.2016 um 22:47 schrieb Thomas Pöchtrager:
Works for me without the need to change anything.
What does |grep --version| print?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#23 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AVkv45DHs1VgiTYFx9nNE6mYtfuUQofoks5q2STvgaJpZM4KRwOw.
from cctools-port.
-mios-version-version=10.0
is wrong?
And no, I don't have a workaround for the linker issues. I will update build.sh
once we have an appropriate linker.
from cctools-port.
Sry if it was a little bit confusing what i wrote. The build.sh script
reads the SDK_Version from the filename. In my case it reads version 0.0 if
i use a sdk10.0.gar.gz ("echo $SDK_VERSION" prints "0.0"). The reason for
that are the 2 digits before the dot in the number. The script expects only
one. The script then passes the wrong $SDK_VERSION as OS_VER_MIN when
wraper.c gets compiled.
This line then sets version "0.0" as the default "iphoneos-version-min":
env(&osmin, "IPHONEOS_DEPLOYMENT_TARGET", OS_VER_MIN);
Of course the problem does not exist if you define
"IPHONEOS_DEPLOYMENT_TARGET" before you build something with the toolchain.
I hope that discribes the problem better.
Best reguards Simon
Am 28.10.2016 15:12 schrieb "Thomas Pöchtrager" [email protected]:
-mios-version-version=10.0 is wrong?
And no, I don't have a workaround for the linker issues. I will update
build.sh once we have an appropriate linker.—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#23 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AVkv4_OoOHo6g4yZKisvQs96fDfSZV1Yks5q4fTBgaJpZM4KRwOw
.
from cctools-port.
Oh, I see.
Well, -mios-version-min=10.0
isn't working either...
$ clang -target arm64-apple-darwin11 -mios-version-min=10.0 ~/tmp/test.c
clang-3.9: error: invalid version number in '-miphoneos-version-min=10.0'
$ clang -target arm64-apple-darwin11 -miphoneos-version-min=10.0 ~/tmp/test.c
clang-3.9: error: invalid version number in '-miphoneos-version-min=10.0'
Annoying.
from cctools-port.
Yes, that's another problem. I am not so familiar with the IOS SDK but i
think that it has to do with the lib file format or the linker version.
ld64-264 is not made for a SDK version higher than 9.3. (it might also not
accept numbers with more then 2 digits in front of the dot)
Best reguards Simon
Am 29.10.2016 18:30 schrieb "Thomas Pöchtrager" [email protected]:
Oh, I see.
Well, -mios-version-min=10.0 isn't working either...
$ clang -target arm64-apple-darwin11 -mios-version-min=10.0 ~/tmp/test.c
clang-3.9: error: invalid version number in '-miphoneos-version-min=10.0'
$ clang -target arm64-apple-darwin11 -miphoneos-version-min=10.0 ~/tmp/test.c
clang-3.9: error: invalid version number in '-miphoneos-version-min=10.0'Annoying.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#23 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AVkv4604SKURbubUo0m7CUNw3a8i3FjTks5q43S7gaJpZM4KRwOw
.
from cctools-port.
Yes, ld64-264 does not support the new v2 text stubs. We have to wait until Apple releases the sources for the new lnker. Unfortunately, I have no idea when that will happen.
from cctools-port.
Related Issues (20)
- Killed: 9 HOT 1
- tvOS build.sh help, please HOT 6
- Releases with prebuilt binaries
- ld64 aborts with _GLIBCXX_ASSERTIONS enabled HOT 2
- How to specify mininum iOS version for linker?
- Q: quick building for different targets HOT 1
- Using compilers with `-o absolute-path/to/target` is broken for recent cctools HOT 3
- [bug] ld doesn't support ppc HOT 4
- ld64: macOS LTO doesn’t get linked
- codesign issue with files with space HOT 1
- Releases outdate ? HOT 3
- Could cctools-port be used to cross-compile R for iOS? HOT 2
- Cant compile with tapi on alpine linux
- use entitlements plist when building with clang?
- cctools 986 & ld64 711 are available HOT 4
- `as` fails if clang is ccache
- cctools-1009.2 & ld64-907 source has been posted HOT 7
- Build fails on opensuse, where libdispatch-devel has Block.h in /usr/include/block/Block.h instead of /usr/include/Block.h HOT 1
- Adding `throw()` after `__cxa_atexit` redefinition conflicts with cxxabi.h prototype
- XROS Support ?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cctools-port.