obfuscator-llvm / obfuscator

3.94k stars 1.18k forks source link

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

Open ListenXunInNight opened 6 years ago

ListenXunInNight commented 6 years ago

Hello , anybody can help me with this error?

ListenXunInNight commented 6 years ago

On Xcode 9.

Naville commented 6 years ago

Turn off Enable Indexing while building

ListenXunInNight commented 6 years ago

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 commented 6 years ago

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

hanschen123 commented 6 years ago

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

Naville commented 6 years ago

@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 commented 6 years ago

@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 commented 6 years ago

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

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

Hope that helps!

githubzxq commented 6 years ago

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

Naville commented 6 years ago

@githubzxq you need to run cmake with parameters first

githubzxq commented 6 years ago

@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 commented 6 years ago

@hanschen123 Solve it?My xcode version is 8.0.

githubzxq commented 6 years ago

@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.

joshuapinter commented 5 years ago

Turn off Enable Indexing while building

And for those wondering, this can be found here:

In Xcode, Build Settings > Build Options > Enable Index-While-Building Functionality set it to "No".

Screen Shot 2019-04-07 at 8 57 07 AM
LittleLydia commented 5 years ago

@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.

@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!

Hi, similar problem, do you solve it?