Comments (7)
Hmm, I think it's a namespace issue (though I get no compile errors with a more recent version from trunk).
Please let me know if this patch works for you: https://gist.github.com/tpoechtrager/c32bf140678f5109ee45
from osxcross.
The patch does fix that particular issue, thanks! However...
+ echo -ne 'testing o64-clang ... '
testing o64-clang ... + o64-clang /home/linus/osxcross/oclang/test.c -O2 -Wall -o test
detected target triple: x86_64-apple-darwin13
detected compiler: clang
detected stdlib: libstdc++
detected language: C
command (in): o64-clang /home/linus/osxcross/oclang/test.c -O2 -Wall -o test
command (out): clang -target x86_64-apple-darwin13 -mlinker-version=236.3 -isystem /usr/bin/../lib/clang/3.5.0/include -isysroot /home/linus/osxcross/target/bin/../SDK/MacOSX10.9.sdk -cxx-isystem /home/linus/osxcross/target/bin/../SDK/MacOSX10.9.sdk/usr/include/c++/4.2.1 -cxx-isystem /home/linus/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 /home/linus/osxcross/oclang/test.c -O2 -Wall
time spent in wrapper: 0.322856 ms
ld: sectionForAddress(0xB3FF998B91968D90) address not in any section file '/tmp/test-639c16.o' for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
+ _exit
o32-clang works.
Full log is, again, on http://sphalerite.org/osxcross-build-failure.log
from osxcross.
Oh, that's a known bug I already reported to the Clang/LLVM devs a couple of weeks ago: http://llvm.org/bugs/show_bug.cgi?id=20212.
Looks like your 3.5 build is a little bit out of date. You may be best by installing 3.4 from the LLVM apt repository (or try build the 3.5 release candidate from source: http://llvm.org/pre-releases/3.5/).
from osxcross.
The repo doesn't seem to have 3.4, only 3.1, so I'll go for the RC...
from osxcross.
http://llvm.org/apt/wheezy/dists/
You may have luck with:
deb http://llvm.org/apt/wheezy/ llvm-toolchain-3.4 main
deb-src http://llvm.org/apt/wheezy/ llvm-toolchain-3.4 main
from osxcross.
Aaah right, thanks!
EDIT: For the record,
deb http://llvm.org/apt/wheezy/ llvm-toolchain-wheezy-3.4-binaries main
deb-src http://llvm.org/apt/wheezy/ llvm-toolchain-wheezy-3.4-binaries main
from osxcross.
Compiles successfully. Thanks!
from osxcross.
Related Issues (20)
- "mv: cannot stat" error on extracting macOS SDK HOT 1
- Using gcc assembler HOT 2
- GCC Built by ./build_gcc.sh o32-gcc and o32-g++ only target x86_64 HOT 1
- Can't pass -Wl,--allow-multiple-definition HOT 3
- osxcross-macports infinite loops when installing install curl-ca-bundle HOT 5
- build_gcc.sh does not install needed prerequisites. HOT 2
- flang support HOT 1
- Add FAQ HOT 3
- error in osxcross build HOT 5
- RFE: macports variants
- stdlib.h missing from xar/lib/linuxattr.c HOT 2
- install_name_tool doesn't adjust ad-hoc code signatures HOT 1
- Error while packaging HOT 3
- Fialed to cross compile apple darwin target HOT 5
- This header is only meant to be used on x86 and x64 architecture HOT 2
- target-cpu
- ld64.lld: error: undefined symbol: __cpu_model
- Support for xcrun --show-sdk-platform-version HOT 4
- GCC compilation is not working
- support for asahi linux, getting the following error error while loading shared libraries: libicui18n.so.74 HOT 1
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 osxcross.