I tried to compile futurerestore from marijuanARM/futurerestore 's fork.
I have compiled most of external libs :
https://preview.redd.it/8tcpwa25z4061.png?width=1258&format=png&auto=webp&s=9ca3b114ce7669de5b51f08e62865b91f2139b54
https://preview.redd.it/houpq009z4061.png?width=1112&format=png&auto=webp&s=191feca746113b617cf5a9fac237dd72acf56f94
But when I start compiling tihmstar/liboffsetfinder64, it gives me an error:
https://preview.redd.it/7adfgx1qz4061.png?width=1610&format=png&auto=webp&s=e85a582646d5cbe5e534bf74f569161b48efb4e4
When compiling liboffsetfinder64 's dependecy tihmstar/libinsn, it gives errors.
Macos Catalina 10.15.7
Last login: Thu Nov 19 12:25:57 on ttys001
kinken@MacBook-Pro ~ % cd Desktop/BuildFuturerestore
kinken@MacBook-Pro BuildFuturerestore % cd libinsn
kinken@MacBook-Pro libinsn % ./autogen.sh
checking build system type... x86_64-apple-darwin19.6.0
checking host system type... x86_64-apple-darwin19.6.0
checking target system type... x86_64-apple-darwin19.6.0
checking how to print strings... printf
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /Library/Developer/CommandLineTools/usr/bin/ld
checking if the linker (/Library/Developer/CommandLineTools/usr/bin/ld) is GNU ld... no
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 196608
checking how to convert x86_64-apple-darwin19.6.0 file names to x86_64-apple-darwin19.6.0 format... func_convert_file_noop
checking how to convert x86_64-apple-darwin19.6.0 file names to toolchain format... func_convert_file_noop
checking for /Library/Developer/CommandLineTools/usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver u/FILE support... no
checking for strip... strip
checking for ranlib... ranlib
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /bin/dd
checking how to truncate binary pipes... /bin/dd bs=4096 count=1
checking for mt... no
checking if : is a manifest tool... no
checking for dsymutil... dsymutil
checking for nmedit... nmedit
checking for lipo... lipo
checking for otool... otool
checking for otool64... no
checking for -single_module linker flag... yes
checking for -exported_symbols_list linker flag... yes
checking for -force_load linker flag... yes
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... yes
checking for gcc option to produce PIC... -fno-common -DPIC
checking if gcc PIC flag -fno-common -DPIC works... yes
checking if gcc static flag -static works... no
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/Library/Developer/CommandLineTools/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... darwin19.6.0 dyld
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking whether make sets $(MAKE)... yes
checking whether make supports the include directive... yes (GNU style)
checking whether make supports nested variables... yes
checking dependency style of gcc... gcc3
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking how to run the C++ preprocessor... g++ -E
checking for ld used by g++... /Library/Developer/CommandLineTools/usr/bin/ld
checking if the linker (/Library/Developer/CommandLineTools/usr/bin/ld) is GNU ld... no
checking whether the g++ linker (/Library/Developer/CommandLineTools/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fno-common -DPIC
checking if g++ PIC flag -fno-common -DPIC works... yes
checking if g++ static flag -static works... no
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/Library/Developer/CommandLineTools/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... darwin19.6.0 dyld
checking how to hardcode library paths into programs... immediate
checking dependency style of g++... gcc3
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking whether gcc understands -c and -o together... (cached) yes
checking whether we need platform-specific build settings... checking for pkg-config... /usr/local/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for libgeneral >= 32... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking for stdint.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for unistd.h... (cached) yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating include/Makefile
config.status: creating libinsn/Makefile
config.status: creating libinsn.pc
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing libtool commands
config.status: executing depfiles commands
Configuration for libinsn-32:
-------------------------------------------
install prefix ..........: /usr/local
compiler ................: gcc
Now type 'make' to build libinsn-32,
and then 'make install' for installation.
kinken@MacBook-Pro libinsn % make
(CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/sh /Users/kinken/Desktop/BuildFuturerestore/libinsn/missing autoheader)
rm -f stamp-h1
touch
config.h.in
cd . && /bin/sh ./config.status config.h
config.status: creating config.h
config.status: config.h is unchanged
/Library/Developer/CommandLineTools/usr/bin/make all-recursive
Making all in libinsn
/bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -I../include -I../include/libinsn -I/usr/local/include -g -O2 -stdlib=libc++ -std=c++14 -O3 -fPIC -D EXPECTIONNAME=INSNexception -MT libinsn_la-insn_decode.lo -MD -MP -MF .deps/libinsn_la-insn_decode.Tpo -c -o libinsn_la-insn_decode.lo \
test -f 'insn_decode.cpp' || echo './'`insn_decode.cpp`
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -I../include -I../include/libinsn -I/usr/local/include -g -O2 -stdlib=libc++ -std=c++14 -O3 -fPIC -D EXPECTIONNAME=INSNexception -MT libinsn_la-insn_decode.lo -MD -MP -MF .deps/libinsn_la-insn_decode.Tpo -c insn_decode.cpp -fno-common -DPIC -o .libs/libinsn_la-insn_decode.o
In file included from insn_decode.cpp:12:
../include/libinsn/INSNexception.hpp:19:78: error: no matching constructor for initialization of 'tihmstar::exception'
INSNexception(int code, const char *filename, const char *err ...) : tihmstar::exception(code,filename,err){}
^ ~~~~~~~~~~~~~~~~~
/usr/local/include/libgeneral/exception.hpp:15:11: note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 3 were provided
class exception : public std::exception{
^
/usr/local/include/libgeneral/exception.hpp:22:9: note: candidate constructor not viable: requires at least 5 arguments, but 3 were provided
exception(const char *commit_count_str, const char *commit_sha_str, int line, const char *filename, const char *err ...);
^
insn_decode.cpp:121:5: error: no matching constructor for initialization of 'tihmstar::INSNexception'
assure(len != -1); //reserved value
^~~~~~~~~~~~~~~~~
/usr/local/include/libgeneral/macros.h:80:52: note: expanded from macro 'assure'
...assure(cond) do{ if ((cond) == 0) throw tihmstar::EXPECTIONNAME(VERSION_COMMIT_COUNT, VERSION_COMMIT_SHA, __LINE__, __FILE__, "assure failed"); } while(0)
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../include/libinsn/INSNexception.hpp:19:9: note: candidate constructor not viable: no known conversion from 'const char [3]' to 'int' for 1st argument
INSNexception(int code, const char *filename, const char *err ...) : tihmstar::exception(code,filename,err){}
^
../include/libinsn/INSNexception.hpp:17:11: note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 5 were provided
class INSNexception : public tihmstar::exception{
^
../include/libinsn/INSNexception.hpp:17:11: note: candidate constructor (the implicit move constructor) not viable: requires 1 argument, but 5 were provided
insn_decode.cpp:124:5: error: no matching constructor for initialization of 'tihmstar::INSNexception'
assure(immediate && (imms & levels) != levels); //reserved value
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/libgeneral/macros.h:80:52: note: expanded from macro 'assure'
...assure(cond) do{ if ((cond) == 0) throw tihmstar::EXPECTIONNAME(VERSION_COMMIT_COUNT, VERSION_COMMIT_SHA, __LINE__, __FILE__, "assure failed"); } while(0)
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../include/libinsn/INSNexception.hpp:19:9: note: candidate constructor not viable: no known conversion from 'const char [3]' to 'int' for 1st argument
INSNexception(int code, const char *filename, const char *err ...) : tihmstar::exception(code,filename,err){}
^
../include/libinsn/INSNexception.hpp:17:11: note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 5 were provided
class INSNexception : public tihmstar::exception{
^
../include/libinsn/INSNexception.hpp:17:11: note: candidate constructor (the implicit move constructor) not viable: requires 1 argument, but 5 were provided
insn_decode.cpp:142:2: warning: TODO incomplete function implementation! [-W#warnings]
#warning TODO incomplete function implementation!
^
insn_decode.cpp:185:2: warning: TODO redo this! currently only recognises STR (immediate) [-W#warnings]
#warning TODO redo this! currently only recognises STR (immediate)
^
insn_decode.cpp:554:17: error: no matching constructor for initialization of 'tihmstar::INSNexception'
reterror("unexpected subtype");
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/libgeneral/macros.h:84:43: note: expanded from macro 'reterror'
# define reterror(errstr ...) do{ throw tihmstar::EXPECTIONNAME(VERSION_COMMIT_COUNT, VERSION_COMMIT_SHA, __LINE__, __FILE__, errstr); } while(0)
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../include/libinsn/INSNexception.hpp:19:9: note: candidate constructor not viable: no known conversion from 'const char [3]' to 'int' for 1st argument
INSNexception(int code, const char *filename, const char *err ...) : tihmstar::exception(code,filename,err){}
^
../include/libinsn/INSNexception.hpp:17:11: note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 5 were provided
class INSNexception : public tihmstar::exception{
^
../include/libinsn/INSNexception.hpp:17:11: note: candidate constructor (the implicit move constructor) not viable: requires 1 argument, but 5 were provided
insn_decode.cpp:560:17: error: no matching constructor for initialization of 'tihmstar::INSNexception'
reterror("unexpected subtype");
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/libgeneral/macros.h:84:43: note: expanded from macro 'reterror'
# define reterror(errstr ...) do{ throw tihmstar::EXPECTIONNAME(VERSION_COMMIT_COUNT, VERSION_COMMIT_SHA, __LINE__, __FILE__, errstr); } while(0)
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../include/libinsn/INSNexception.hpp:19:9: note: candidate constructor not viable: no known conversion from 'const char [3]' to 'int' for 1st argument
INSNexception(int code, const char *filename, const char *err ...) : tihmstar::exception(code,filename,err){}
^
../include/libinsn/INSNexception.hpp:17:11: note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 5 were provided
class INSNexception : public tihmstar::exception{
^
../include/libinsn/INSNexception.hpp:17:11: note: candidate constructor (the implicit move constructor) not viable: requires 1 argument, but 5 were provided
insn_decode.cpp:547:44: warning: result of comparison of constant 73031290881 with expression of type 'unsigned int' is always false
[-Wtautological-constant-out-of-range-compare]
if (BIT_RANGE(_opcode, 21, 30) == 0x1101011001 /* register_extended */) {
~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~
insn_decode.cpp:606:17: error: no matching constructor for initialization of 'tihmstar::INSNexception'
reterror("unexpected classtype for insn");
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/libgeneral/macros.h:84:43: note: expanded from macro 'reterror'
# define reterror(errstr ...) do{ throw tihmstar::EXPECTIONNAME(VERSION_COMMIT_COUNT, VERSION_COMMIT_SHA, __LINE__, __FILE__, errstr); } while(0)
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../include/libinsn/INSNexception.hpp:19:9: note: candidate constructor not viable: no known conversion from 'const char [3]' to 'int' for 1st argument
INSNexception(int code, const char *filename, const char *err ...) : tihmstar::exception(code,filename,err){}
^
../include/libinsn/INSNexception.hpp:17:11: note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 5 were provided
class INSNexception : public tihmstar::exception{
^
../include/libinsn/INSNexception.hpp:17:11: note: candidate constructor (the implicit move constructor) not viable: requires 1 argument, but 5 were provided
insn_decode.cpp:634:13: error: no matching constructor for initialization of 'tihmstar::INSNexception'
reterror("can't get imm value of unknown instruction");
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/libgeneral/macros.h:84:43: note: expanded from macro 'reterror'
# define reterror(errstr ...) do{ throw tihmstar::EXPECTIONNAME(VERSION_COMMIT_COUNT, VERSION_COMMIT_SHA, __LINE__, __FILE__, errstr); } while(0)
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../include/libinsn/INSNexception.hpp:19:9: note: candidate constructor not viable: no known conversion from 'const char [3]' to 'int' for 1st argument
INSNexception(int code, const char *filename, const char *err ...) : tihmstar::exception(code,filename,err){}
^
../include/libinsn/INSNexception.hpp:17:11: note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 5 were provided
class INSNexception : public tihmstar::exception{
^
../include/libinsn/INSNexception.hpp:17:11: note: candidate constructor (the implicit move constructor) not viable: requires 1 argument, but 5 were provided
insn_decode.cpp:670:17: error: no matching constructor for initialization of 'tihmstar::INSNexception'
reterror("can't get imm value of ldr that has non immediate subtype");
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/libgeneral/macros.h:84:43: note: expanded from macro 'reterror'
# define reterror(errstr ...) do{ throw tihmstar::EXPECTIONNAME(VERSION_COMMIT_COUNT, VERSION_COMMIT_SHA, __LINE__, __FILE__, errstr); } while(0)
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../include/libinsn/INSNexception.hpp:19:9: note: candidate constructor not viable: no known conversion from 'const char [3]' to 'int' for 1st argument
INSNexception(int code, const char *filename, const char *err ...) : tihmstar::exception(code,filename,err){}
^
../include/libinsn/INSNexception.hpp:17:11: note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 5 were provided
class INSNexception : public tihmstar::exception{
^
../include/libinsn/INSNexception.hpp:17:11: note: candidate constructor (the implicit move constructor) not viable: requires 1 argument, but 5 were provided
insn_decode.cpp:674:17: error: no matching constructor for initialization of 'tihmstar::INSNexception'
reterror("can't get imm value of ldr that has non immediate subtype");
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/libgeneral/macros.h:84:43: note: expanded from macro 'reterror'
# define reterror(errstr ...) do{ throw tihmstar::EXPECTIONNAME(VERSION_COMMIT_COUNT, VERSION_COMMIT_SHA, __LINE__, __FILE__, errstr); } while(0)
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../include/libinsn/INSNexception.hpp:19:9: note: candidate constructor not viable: no known conversion from 'const char [3]' to 'int' for 1st argument
INSNexception(int code, const char *filename, const char *err ...) : tihmstar::exception(code,filename,err){}
^
../include/libinsn/INSNexception.hpp:17:11: note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 5 were provided
class INSNexception : public tihmstar::exception{
^
../include/libinsn/INSNexception.hpp:17:11: note: candidate constructor (the implicit move constructor) not viable: requires 1 argument, but 5 were provided
insn_decode.cpp:684:17: error: no matching constructor for initialization of 'tihmstar::INSNexception'
reterror("can't get imm value of ldr that has non immediate subtype");
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/libgeneral/macros.h:84:43: note: expanded from macro 'reterror'
# define reterror(errstr ...) do{ throw tihmstar::EXPECTIONNAME(VERSION_COMMIT_COUNT, VERSION_COMMIT_SHA, __LINE__, __FILE__, errstr); } while(0)
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../include/libinsn/INSNexception.hpp:19:9: note: candidate constructor not viable: no known conversion from 'const char [3]' to 'int' for 1st argument
INSNexception(int code, const char *filename, const char *err ...) : tihmstar::exception(code,filename,err){}
^
../include/libinsn/INSNexception.hpp:17:11: note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 5 were provided
class INSNexception : public tihmstar::exception{
^
../include/libinsn/INSNexception.hpp:17:11: note: candidate constructor (the implicit move constructor) not viable: requires 1 argument, but 5 were provided
insn_decode.cpp:701:17: error: no matching constructor for initialization of 'tihmstar::INSNexception'
reterror("ldrb must be st_immediate for imm to be defined!");
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/libgeneral/macros.h:84:43: note: expanded from macro 'reterror'
# define reterror(errstr ...) do{ throw tihmstar::EXPECTIONNAME(VERSION_COMMIT_COUNT, VERSION_COMMIT_SHA, __LINE__, __FILE__, errstr); } while(0)
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../include/libinsn/INSNexception.hpp:19:9: note: candidate constructor not viable: no known conversion from 'const char [3]' to 'int' for 1st argument
INSNexception(int code, const char *filename, const char *err ...) : tihmstar::exception(code,filename,err){}
^
../include/libinsn/INSNexception.hpp:17:11: note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 5 were provided
class INSNexception : public tihmstar::exception{
^
../include/libinsn/INSNexception.hpp:17:11: note: candidate constructor (the implicit move constructor) not viable: requires 1 argument, but 5 were provided
insn_decode.cpp:704:2: warning: TODO rewrite this! currently only unsigned offset supported [-W#warnings]
#warning TODO rewrite this! currently only unsigned offset supported
^
insn_decode.cpp:722:13: error: no matching constructor for initialization of 'tihmstar::INSNexception'
reterror("failed to get imm value");
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/libgeneral/macros.h:84:43: note: expanded from macro 'reterror'
# define reterror(errstr ...) do{ throw tihmstar::EXPECTIONNAME(VERSION_COMMIT_COUNT, VERSION_COMMIT_SHA, __LINE__, __FILE__, errstr); } while(0)
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../include/libinsn/INSNexception.hpp:19:9: note: candidate constructor not viable: no known conversion from 'const char [3]' to 'int' for 1st argument
INSNexception(int code, const char *filename, const char *err ...) : tihmstar::exception(code,filename,err){}
^
../include/libinsn/INSNexception.hpp:17:11: note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 5 were provided
class INSNexception : public tihmstar::exception{
^
../include/libinsn/INSNexception.hpp:17:11: note: candidate constructor (the implicit move constructor) not viable: requires 1 argument, but 5 were provided
insn_decode.cpp:731:13: error: no matching constructor for initialization of 'tihmstar::INSNexception'
reterror("can't get rd of unknown instruction");
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/libgeneral/macros.h:84:43: note: expanded from macro 'reterror'
# define reterror(errstr ...) do{ throw tihmstar::EXPECTIONNAME(VERSION_COMMIT_COUNT, VERSION_COMMIT_SHA, __LINE__, __FILE__, errstr); } while(0)
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../include/libinsn/INSNexception.hpp:19:9: note: candidate constructor not viable: no known conversion from 'const char [3]' to 'int' for 1st argument
INSNexception(int code, const char *filename, const char *err ...) : tihmstar::exception(code,filename,err){}
^
../include/libinsn/INSNexception.hpp:17:11: note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 5 were provided
class INSNexception : public tihmstar::exception{
^
../include/libinsn/INSNexception.hpp:17:11: note: candidate constructor (the implicit move constructor) not viable: requires 1 argument, but 5 were provided
insn_decode.cpp:749:13: error: no matching constructor for initialization of 'tihmstar::INSNexception'
reterror("failed to get rd");
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/libgeneral/macros.h:84:43: note: expanded from macro 'reterror'
# define reterror(errstr ...) do{ throw tihmstar::EXPECTIONNAME(VERSION_COMMIT_COUNT, VERSION_COMMIT_SHA, __LINE__, __FILE__, errstr); } while(0)
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../include/libinsn/INSNexception.hpp:19:9: note: candidate constructor not viable: no known conversion from 'const char [3]' to 'int' for 1st argument
INSNexception(int code, const char *filename, const char *err ...) : tihmstar::exception(code,filename,err){}
^
../include/libinsn/INSNexception.hpp:17:11: note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 5 were provided
class INSNexception : public tihmstar::exception{
^
../include/libinsn/INSNexception.hpp:17:11: note: candidate constructor (the implicit move constructor) not viable: requires 1 argument, but 5 were provided
insn_decode.cpp:757:13: error: no matching constructor for initialization of 'tihmstar::INSNexception'
reterror("can't get rn of unknown instruction");
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/libgeneral/macros.h:84:43: note: expanded from macro 'reterror'
# define reterror(errstr ...) do{ throw tihmstar::EXPECTIONNAME(VERSION_COMMIT_COUNT, VERSION_COMMIT_SHA, __LINE__, __FILE__, errstr); } while(0)
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../include/libinsn/INSNexception.hpp:19:9: note: candidate constructor not viable: no known conversion from 'const char [3]' to 'int' for 1st argument
INSNexception(int code, const char *filename, const char *err ...) : tihmstar::exception(code,filename,err){}
^
../include/libinsn/INSNexception.hpp:17:11: note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 5 were provided
class INSNexception : public tihmstar::exception{
^
../include/libinsn/INSNexception.hpp:17:11: note: candidate constructor (the implicit move constructor) not viable: requires 1 argument, but 5 were provided
insn_decode.cpp:781:13: error: no matching constructor for initialization of 'tihmstar::INSNexception'
reterror("failed to get rn");
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/libgeneral/macros.h:84:43: note: expanded from macro 'reterror'
# define reterror(errstr ...) do{ throw tihmstar::EXPECTIONNAME(VERSION_COMMIT_COUNT, VERSION_COMMIT_SHA, __LINE__, __FILE__, errstr); } while(0)
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../include/libinsn/INSNexception.hpp:19:9: note: candidate constructor not viable: no known conversion from 'const char [3]' to 'int' for 1st argument
INSNexception(int code, const char *filename, const char *err ...) : tihmstar::exception(code,filename,err){}
^
../include/libinsn/INSNexception.hpp:17:11: note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 5 were provided
class INSNexception : public tihmstar::exception{
^
../include/libinsn/INSNexception.hpp:17:11: note: candidate constructor (the implicit move constructor) not viable: requires 1 argument, but 5 were provided
insn_decode.cpp:789:13: error: no matching constructor for initialization of 'tihmstar::INSNexception'
reterror("can't get rt of unknown instruction");
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/libgeneral/macros.h:84:43: note: expanded from macro 'reterror'
# define reterror(errstr ...) do{ throw tihmstar::EXPECTIONNAME(VERSION_COMMIT_COUNT, VERSION_COMMIT_SHA, __LINE__, __FILE__, errstr); } while(0)
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../include/libinsn/INSNexception.hpp:19:9: note: candidate constructor not viable: no known conversion from 'const char [3]' to 'int' for 1st argument
INSNexception(int code, const char *filename, const char *err ...) : tihmstar::exception(code,filename,err){}
^
../include/libinsn/INSNexception.hpp:17:11: note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 5 were provided
class INSNexception : public tihmstar::exception{
^
../include/libinsn/INSNexception.hpp:17:11: note: candidate constructor (the implicit move constructor) not viable: requires 1 argument, but 5 were provided
insn_decode.cpp:807:13: error: no matching constructor for initialization of 'tihmstar::INSNexception'
reterror("failed to get rt");
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/libgeneral/macros.h:84:43: note: expanded from macro 'reterror'
# define reterror(errstr ...) do{ throw tihmstar::EXPECTIONNAME(VERSION_COMMIT_COUNT, VERSION_COMMIT_SHA, __LINE__, __FILE__, errstr); } while(0)
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../include/libinsn/INSNexception.hpp:19:9: note: candidate constructor not viable: no known conversion from 'const char [3]' to 'int' for 1st argument
INSNexception(int code, const char *filename, const char *err ...) : tihmstar::exception(code,filename,err){}
^
../include/libinsn/INSNexception.hpp:17:11: note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 5 were provided
class INSNexception : public tihmstar::exception{
^
../include/libinsn/INSNexception.hpp:17:11: note: candidate constructor (the implicit move constructor) not viable: requires 1 argument, but 5 were provided
insn_decode.cpp:818:13: error: no matching constructor for initialization of 'tihmstar::INSNexception'
reterror("failed to get rt2");
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/libgeneral/macros.h:84:43: note: expanded from macro 'reterror'
# define reterror(errstr ...) do{ throw tihmstar::EXPECTIONNAME(VERSION_COMMIT_COUNT, VERSION_COMMIT_SHA, __LINE__, __FILE__, errstr); } while(0)
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../include/libinsn/INSNexception.hpp:19:9: note: candidate constructor not viable: no known conversion from 'const char [3]' to 'int' for 1st argument
INSNexception(int code, const char *filename, const char *err ...) : tihmstar::exception(code,filename,err){}
^
../include/libinsn/INSNexception.hpp:17:11: note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 5 were provided
class INSNexception : public tihmstar::exception{
^
../include/libinsn/INSNexception.hpp:17:11: note: candidate constructor (the implicit move constructor) not viable: requires 1 argument, but 5 were provided
fatal error: too many errors emitted, stopping now [-ferror-limit=]
4 warnings and 20 errors generated.
make[2]: *** [libinsn_la-insn_decode.lo] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
kinken@MacBook-Pro libinsn %
submitted by
No comments:
Post a Comment