Skip to content
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

how to compile ? #4

Open
isayeter opened this issue Mar 17, 2016 · 1 comment
Open

how to compile ? #4

isayeter opened this issue Mar 17, 2016 · 1 comment

Comments

@isayeter
Copy link

I run make command but too many error occurs, how I can compile it ?

make
/Users/bla/Desktop/decache-master/theos/makefiles/targets/Darwin/iphone.mk:41: Deploying to iOS 3.0 while building for 6.0 will generate armv7-only binaries.
Making all for tool decache...
In file included from reexport.mm:16:
./common.h:1:10: fatal error: 'iostream' file not found
#include <iostream>
         ^
1 error generated.
In file included from decache.mm:2:
./common.h:1:10: fatal error: 'iostream' file not found
#include <iostream>
         ^
1 error generated.
 Compiling decache.mm...
In file included from decache.mm:4:
./reexport.h:34:81: error: implicit conversion of NULL constant to 'uintptr_t' (aka 'unsigned long') [-Werror,-Wnull-conversion]
                void (*callback)(exported_node* node, uintptr_t context), uintptr_t context = NULL,
                                                                                            ~ ^~~~
                                                                                              0
decache.mm:198:9: error: implicit conversion of NULL constant to 'uintptr_t' (aka 'unsigned long') [-Werror,-Wnull-conversion]
        return NULL;
        ~~~~~~ ^~~~
               0
decache.mm:945:12: error: unused variable 'nsyms' [-Werror,-Wunused-variable]
                                                        int nsyms = sym->nsyms;
                                                            ^
decache.mm:1001:18: error: unused variable 'v' [-Werror,-Wunused-variable]
                                                                uint32_t v = nl[j].n_value;
                                                                         ^
decache.mm:974:12: error: unused variable 'nsyms' [-Werror,-Wunused-variable]
                                                        int nsyms = sym->nsyms;
                                                            ^
decache.mm:855:12: error: unused variable 'pcbase_old' [-Werror,-Wunused-variable]
        uintptr_t pcbase_old = -fbuf + 4 + tseg->old.vmaddr.start + shared_cache_slide;
                  ^
decache.mm:793:12: error: unused variable 'psvm' [-Werror,-Wunused-variable]
        uintptr_t psvm = tseg->old.vmaddr.start + pss->addr;
                  ^
decache.mm:856:12: error: unused variable 'pcbase_act' [-Werror,-Wunused-variable]
        uintptr_t pcbase_act = -fbuf + 4 + tseg->fix.vmaddr.start;
                  ^
decache.mm:1115:17: error: '&' within '|' [-Werror,-Wbitwise-op-parentheses]
                                int rX = op & 0x7 | ((op & 0x80) ? 0x8 : 0);
                                         ~~~^~~~~ ~
decache.mm:1115:17: note: place parentheses around the '&' expression to silence this warning
                                int rX = op & 0x7 | ((op & 0x80) ? 0x8 : 0);
                                            ^
                                         (       )
decache.mm:1161:34: error: '&' within '|' [-Werror,-Wbitwise-op-parentheses]
                                                     | (lval >> 12) & 0xF
                                                     ~ ~~~~~~~~~~~~~^~~~~
decache.mm:1161:34: note: place parentheses around the '&' expression to silence this warning
                                                     | (lval >> 12) & 0xF
                                                                    ^
                                                       (                 )
decache.mm:1162:33: error: '&' within '|' [-Werror,-Wbitwise-op-parentheses]
                                                     | (lval >> 1) & 0x400
                                                     ~ ~~~~~~~~~~~~^~~~~~~
decache.mm:1162:33: note: place parentheses around the '&' expression to silence this warning
                                                     | (lval >> 1) & 0x400
                                                                   ^
                                                       (                  )
decache.mm:1163:34: error: '&' within '|' [-Werror,-Wbitwise-op-parentheses]
                                                     | (lval << 20) & 0x70000000
                                                     ~ ~~~~~~~~~~~~~^~~~~~~~~~~~
decache.mm:1163:34: note: place parentheses around the '&' expression to silence this warning
                                                     | (lval << 20) & 0x70000000
                                                                    ^
                                                       (                        )
decache.mm:1164:25: error: '&' within '|' [-Werror,-Wbitwise-op-parentheses]
                                                                 | (lval << 16) & 0xFF0000;
                                                                 ~ ~~~~~~~~~~~~~^~~~~~~~~~
decache.mm:1164:25: note: place parentheses around the '&' expression to silence this warning
                                                                 | (lval << 16) & 0xFF0000;
                                                                                ^
                                                                   (                      )
decache.mm:1167:34: error: '&' within '|' [-Werror,-Wbitwise-op-parentheses]
                                                     | (hval >> 12) & 0xF
                                                     ~ ~~~~~~~~~~~~~^~~~~
decache.mm:1167:34: note: place parentheses around the '&' expression to silence this warning
                                                     | (hval >> 12) & 0xF
                                                                    ^
                                                       (                 )
decache.mm:1168:33: error: '&' within '|' [-Werror,-Wbitwise-op-parentheses]
                                                     | (hval >> 1) & 0x400
                                                     ~ ~~~~~~~~~~~~^~~~~~~
decache.mm:1168:33: note: place parentheses around the '&' expression to silence this warning
                                                     | (hval >> 1) & 0x400
                                                                   ^
                                                       (                  )
decache.mm:1169:34: error: '&' within '|' [-Werror,-Wbitwise-op-parentheses]
                                                     | (hval << 20) & 0x70000000
                                                     ~ ~~~~~~~~~~~~~^~~~~~~~~~~~
decache.mm:1169:34: note: place parentheses around the '&' expression to silence this warning
                                                     | (hval << 20) & 0x70000000
                                                                    ^
                                                       (                        )
decache.mm:1170:25: error: '&' within '|' [-Werror,-Wbitwise-op-parentheses]
                                                                 | (hval << 16) & 0xFF0000;
                                                                 ~ ~~~~~~~~~~~~~^~~~~~~~~~
decache.mm:1170:25: note: place parentheses around the '&' expression to silence this warning
                                                                 | (hval << 16) & 0xFF0000;
                                                                                ^
                                                                   (                      )
decache.mm:1957:6: error: add explicit braces to avoid dangling else [-Werror,-Wdangling-else]
                                        else
                                        ^
decache.mm:2343:32: error: operator '<<' has lower precedence than '-'; '-' will be evaluated first [-Werror,-Wshift-op-parentheses]
                uint32_t lowestOffset = 1<<31-1;
                                         ~~~~^~
decache.mm:2343:32: note: place parentheses around the '-' expression to silence this warning
                uint32_t lowestOffset = 1<<31-1;
                                             ^
                                           (   )
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make[2]: *** [obj/decache.mm.9f94129a.o] Error 1
make[1]: *** [internal-tool-all_] Error 2
make: *** [decache.all.tool.variables] Error 2
MacBook-Pro:decache-master bla$

@aaronash
Copy link

Try ./make2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants