Skip to content

Problems at the compilations #113

@Martin3245

Description

@Martin3245

Always when i try to compile this i get this error

7807 | {TokenType::Minus, TokenType::Integer, TokenType::Minus, TokenType::Integer}, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 7808 | {INT64_C(1), INT64_C(1)} ); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ armips.cpp:4654:76: note: initializing argument 3 of ‘void TokenSequenceParser::addEntry(int, TokenSequence, TokenValueSequence)’ 4654 | void addEntry(int result, TokenSequence tokens, TokenValueSequence values); | ~~~~~~~~~~~~~~~~~~~^~~~~~ armips.cpp:7810:40: error: cannot convert ‘<brace-enclosed initializer list>’ to ‘TokenValueSequence’ {aka ‘std::initializer_list<TokenSequenceValue>’} 7810 | sequenceParser.addEntry(-3, | ~~~~~~~~~~~~~~~~~~~~~~~^~~~ 7811 | {TokenType::Minus, TokenType::Integer, TokenType::Minus, TokenType::NumberString}, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 7812 | {INT64_C(1), L"1m"} ); | ~~~~~~~~~~~~~~~~~~~~~ armips.cpp:4654:76: note: initializing argument 3 of ‘void TokenSequenceParser::addEntry(int, TokenSequence, TokenValueSequence)’ 4654 | void addEntry(int result, TokenSequence tokens, TokenValueSequence values); | ~~~~~~~~~~~~~~~~~~~^~~~~~ armips.cpp:7814:40: error: cannot convert ‘<brace-enclosed initializer list>’ to ‘TokenValueSequence’ {aka ‘std::initializer_list<TokenSequenceValue>’} 7814 | sequenceParser.addEntry(3, | ~~~~~~~~~~~~~~~~~~~~~~~^~~ 7815 | {TokenType::Minus, TokenType::Integer, TokenType::Colon, TokenType::Integer}, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 7816 | {INT64_C(1), INT64_C(1)} ); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ armips.cpp:4654:76: note: initializing argument 3 of ‘void TokenSequenceParser::addEntry(int, TokenSequence, TokenValueSequence)’ 4654 | void addEntry(int result, TokenSequence tokens, TokenValueSequence values); | ~~~~~~~~~~~~~~~~~~~^~~~~~ armips.cpp:7818:40: error: cannot convert ‘<brace-enclosed initializer list>’ to ‘TokenValueSequence’ {aka ‘std::initializer_list<TokenSequenceValue>’} 7818 | sequenceParser.addEntry(-3, | ~~~~~~~~~~~~~~~~~~~~~~~^~~~ 7819 | {TokenType::Minus, TokenType::Integer, TokenType::Colon, TokenType::NumberString}, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 7820 | {INT64_C(1), L"1m"} ); | ~~~~~~~~~~~~~~~~~~~~~ armips.cpp:4654:76: note: initializing argument 3 of ‘void TokenSequenceParser::addEntry(int, TokenSequence, TokenValueSequence)’ 4654 | void addEntry(int result, TokenSequence tokens, TokenValueSequence values); | ~~~~~~~~~~~~~~~~~~~^~~~~~ armips.cpp: In member function ‘bool PsxRelocator::relocateFile(PsxRelocatorFile&, int&)’: armips.cpp:9005:33: error: ‘struct RelocationData’ has no member named ‘opcode’ 9005 | relData.opcode = sectionData.getDoubleWord(pos); | ^~~~~~ armips.cpp:9060:77: error: ‘const struct RelocationAction’ has no member named ‘newValue’ 9060 | sectionData.replaceDoubleWord(action.offset, action.newValue); | ^~~~~~~~ armips.cpp: In member function ‘virtual void CDirectiveData::Encode() const’: armips.cpp:10092:49: error: ‘uint8_t’ was not declared in this scope 10092 | g_fileManager->writeU8((uint8_t)value); | ^~~~~~~ armips.cpp:10092:49: note: ‘uint8_t’ is defined in header ‘<cstdint>’; this is probably fixable by adding ‘#include <cstdint>’ armips.cpp:10090:27: warning: unused variable ‘value’ [-Wunused-variable] 10090 | for (auto value: normalData) | ^~~~~ armips.cpp:10098:50: error: ‘uint16_t’ was not declared in this scope 10098 | g_fileManager->writeU16((uint16_t)value); | ^~~~~~~~ armips.cpp:10098:50: note: ‘uint16_t’ is defined in header ‘<cstdint>’; this is probably fixable by adding ‘#include <cstdint>’ armips.cpp:10096:27: warning: unused variable ‘value’ [-Wunused-variable] 10096 | for (auto value: normalData) | ^~~~~ armips.cpp:10105:50: error: ‘uint32_t’ was not declared in this scope 10105 | g_fileManager->writeU32((uint32_t)value); | ^~~~~~~~ armips.cpp:10105:50: note: ‘uint32_t’ is defined in header ‘<cstdint>’; this is probably fixable by adding ‘#include <cstdint>’ armips.cpp:10103:27: warning: unused variable ‘value’ [-Wunused-variable] 10103 | for (auto value: normalData) | ^~~~~ armips.cpp:10112:50: error: ‘uint64_t’ was not declared in this scope 10112 | g_fileManager->writeU64((uint64_t)value); | ^~~~~~~~ armips.cpp:10112:50: note: ‘uint64_t’ is defined in header ‘<cstdint>’; this is probably fixable by adding ‘#include <cstdint>’ armips.cpp:10110:27: warning: unused variable ‘value’ [-Wunused-variable] 10110 | for (auto value: normalData) | ^~~~~ armips.cpp: In member function ‘virtual void CDirectiveData::writeTempData(TempData&) const’: armips.cpp:10135:60: error: ‘uint8_t’ was not declared in this scope 10135 | str += swprintf(str,20,L"0x%02X,",(uint8_t)customData[i]); | ^~~~~~~ armips.cpp:10135:60: note: ‘uint8_t’ is defined in header ‘<cstdint>’; this is probably fixable by adding ‘#include <cstdint>’ armips.cpp:10144:60: error: ‘uint8_t’ was not declared in this scope 10144 | str += swprintf(str,20,L"0x%02X,",(uint8_t)normalData[i]); | ^~~~~~~ armips.cpp:10144:60: note: ‘uint8_t’ is defined in header ‘<cstdint>’; this is probably fixable by adding ‘#include <cstdint>’ armips.cpp:10152:60: error: ‘uint16_t’ was not declared in this scope 10152 | str += swprintf(str,20,L"0x%04X,",(uint16_t)normalData[i]); | ^~~~~~~~ armips.cpp:10152:60: note: ‘uint16_t’ is defined in header ‘<cstdint>’; this is probably fixable by adding ‘#include <cstdint>’ armips.cpp:10161:60: error: ‘uint32_t’ was not declared in this scope 10161 | str += swprintf(str,20,L"0x%08X,",(uint32_t)normalData[i]); | ^~~~~~~~ armips.cpp:10161:60: note: ‘uint32_t’ is defined in header ‘<cstdint>’; this is probably fixable by adding ‘#include <cstdint>’ armips.cpp:10170:62: error: ‘uint64_t’ was not declared in this scope 10170 | str += swprintf(str,20,L"0x%16llX,",(uint64_t)normalData[i]); | ^~~~~~~~ armips.cpp:10170:62: note: ‘uint64_t’ is defined in header ‘<cstdint>’; this is probably fixable by adding ‘#include <cstdint>’ armips.cpp: In function ‘std::unique_ptr<CAssemblerCommand> parseDirectiveAlignFill(Parser&, int)’: armips.cpp:10984:59: error: ‘UINT64_C’ was not declared in this scope 10984 | return ::make_unique<CDirectiveAlignFill>(UINT64_C(4),mode); | ^~~~~~~~ armips.cpp:10984:59: note: the macro ‘UINT64_C’ had not yet been defined /usr/include/stdint.h:251:11: note: it was later defined here 251 | # define UINT64_C(c) c ## UL | ^~~~~~~~ armips.cpp: In member function ‘bool FileTokenizer::init(TextFile*)’: armips.cpp:13550:51: warning: moving a temporary object prevents copy elision [-Wpessimizing-move] 13550 | addToken(std::move(loadToken())); | ~~~~~~~~~^~~~~~~~~~~~~ armips.cpp:13550:51: note: remove ‘std::move’ call armips.cpp: In member function ‘bool ElfRelocator::relocateFile(ElfRelocatorFile&, int64_t&)’: armips.cpp:16772:41: error: ‘struct RelocationData’ has no member named ‘opcode’ 16772 | relData.opcode = sectionData.getDoubleWord(pos, elf->getEndianness()); | ^~~~~~ armips.cpp:16835:110: error: ‘const struct RelocationAction’ has no member named ‘newValue’ 16835 | sectionData.replaceDoubleWord(action.offset-relocationOffsets[index], action.newValue, elf->getEndianness()); | ^~~~~~~~ armips.cpp: At global scope: armips.cpp:19115:6: error: no declaration matches ‘bool FileManager::writeU8(uint8_t)’ 19115 | bool FileManager::writeU8(uint8_t data) | ^~~~~~~~~~~ armips.cpp:1924:14: note: candidate is: ‘bool FileManager::writeU8(int)’ 1924 | bool writeU8(uint8_t data); | ^~~~~~~ armips.cpp:1913:7: note: ‘class FileManager’ defined here 1913 | class FileManager | ^~~~~~~~~~~ armips.cpp:19120:6: error: no declaration matches ‘bool FileManager::writeU16(uint16_t)’ 19120 | bool FileManager::writeU16(uint16_t data) | ^~~~~~~~~~~ armips.cpp:1925:14: note: candidate is: ‘bool FileManager::writeU16(int)’ 1925 | bool writeU16(uint16_t data); | ^~~~~~~~ armips.cpp:1913:7: note: ‘class FileManager’ defined here 1913 | class FileManager | ^~~~~~~~~~~ armips.cpp:19128:6: error: no declaration matches ‘bool FileManager::writeU32(uint32_t)’ 19128 | bool FileManager::writeU32(uint32_t data) | ^~~~~~~~~~~ armips.cpp:1926:14: note: candidate is: ‘bool FileManager::writeU32(int)’ 1926 | bool writeU32(uint32_t data); | ^~~~~~~~ armips.cpp:1913:7: note: ‘class FileManager’ defined here 1913 | class FileManager | ^~~~~~~~~~~ armips.cpp:19136:6: error: no declaration matches ‘bool FileManager::writeU64(uint64_t)’ 19136 | bool FileManager::writeU64(uint64_t data) | ^~~~~~~~~~~ armips.cpp:1927:14: note: candidate is: ‘bool FileManager::writeU64(int)’ 1927 | bool writeU64(uint64_t data); | ^~~~~~~~ armips.cpp:1913:7: note: ‘class FileManager’ defined here 1913 | class FileManager | ^~~~~~~~~~~ make[1]: *** [Makefile:78: armips] Error 1 make[1]: *** Waiting for unfinished jobs.... Makefile:241: *** Failed to build tools. Stop.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions