New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clang-4.0: error: cannot specify -o when generating multiple output files #108

Open
ListenXunInNight opened this Issue Jan 12, 2018 · 13 comments

Comments

Projects
None yet
4 participants
@ListenXunInNight

ListenXunInNight commented Jan 12, 2018

Hello , anybody can help me with this error?

@ListenXunInNight

This comment has been minimized.

ListenXunInNight commented Jan 12, 2018

On Xcode 9.

@Naville

This comment has been minimized.

Naville commented Jan 15, 2018

Turn off Enable Indexing while building

@ListenXunInNight

This comment has been minimized.

ListenXunInNight commented Jan 18, 2018

Thx, I have solved this error by doing u tell me, but there was another error occurrence.
"../cocos2d/cocos/base/CCDirector.h:31:10: fatal error: 'stack' file not found
#include "

@Naville

This comment has been minimized.

Naville commented Jan 26, 2018

You need to setup compiler-rt libcxx and libcxxabi as well.
OLLVM didn't include those

@hanschen123

This comment has been minimized.

hanschen123 commented Feb 24, 2018

@Naville
Could you please describe in detail how to setup compiler-rt libcxx and libcxxabi
Thanks

@Naville

This comment has been minimized.

Naville commented Feb 25, 2018

@hanschen123 goto https://releases.llvm.org/download.html#4.0.0 , download those projects and extract to obfuscator-llvm/projects/
Then build again from scratch

@hanschen123

This comment has been minimized.

hanschen123 commented Feb 26, 2018

@Naville Thanks for your help.
I have extracted compiler-rt libcxx and libcxxabi to the projects folder and rebuild from scratch. However, I got compile error in Xcode 9.2
fatal error: could not build module 'UIKit'
Please advice

@Naville

This comment has been minimized.

Naville commented Feb 26, 2018

@hanschen123
Hmmmm that's some strange shit never encountered. Possibly Apple was fucking around with its clang fork again. You got a few options:

  • Porting everything to a newer version of the LLVM System.
  • Porting it to Apple's LLVM, either the original one(Last open-source version was from two years ago) or the swift one.
  • Mess with the project's build settings.

I'm currently using my own fork based of LLVM6.0 and haven't encounter this issue yet

Hope that helps!

@githubzxq

This comment has been minimized.

githubzxq commented May 2, 2018

@hanschen123 After git clone, extracted compiler-rt libcxx and libcxxabi to the projects folder.Then make -j7?

@Naville

This comment has been minimized.

Naville commented May 2, 2018

@githubzxq you need to run cmake with parameters first

@githubzxq

This comment has been minimized.

githubzxq commented May 3, 2018

@Naville I have extracted those projects in obfuscator/projects。
And cmake -DCMAKE_BUILD_TYPE=Release ../obfuscator/
make -j7

libc++ Header file still not found

screen shot 2018-05-03 at 5 06 25 pm

screen shot 2018-05-03 at 5 10 51 pm

screen shot 2018-05-03 at 5 11 01 pm

HELP!HELP! HELP!

@githubzxq

This comment has been minimized.

githubzxq commented May 3, 2018

@hanschen123 Solve it?My xcode version is 8.0.

@githubzxq

This comment has been minimized.

githubzxq commented May 3, 2018

@Naville
xcode 8
3.6.1 : UIKit, Foundation is not OK, but libc++ is OK.
4.0 : libc++ is OK, UIKit, Foundation is not OK.
On my god.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment