Build of gptfdisk with android toolchain

The build took 00h 01m 03s and was NOT successful.

The program in this build is written in the following languages, according to sloccount:

SLOCLanguage
8,294 cpp
244 sh
30 makefile
8,568 total

The process tree of the build process is here.

Several sub-process invocations were improper; see the process tree for details. Summary:

List of Errors

Log

To avoid scrolling, you may jump to the last line of the invocation of makepkg that was used to build this package.

Removed vanilla repositories from pacman.conf and added:
# [tuscan]
# Server = file:///var/cache/pacman/pkg/

CMD: pacman -Syy --noconfirm
# :: Synchronizing package databases...
# downloading tuscan.db...

Copied permanent toolchain into container-local sysroot
# /toolchain_root/arm-linux-androideabi --> /sysroot/arm-linux-androideabi
# /toolchain_root/COPYING3.LIB --> /sysroot/COPYING3.LIB
# /toolchain_root/sysroot --> /sysroot/sysroot
# /toolchain_root/COPYING.RUNTIME --> /sysroot/COPYING.RUNTIME
# /toolchain_root/lib --> /sysroot/lib
# /toolchain_root/SOURCES --> /sysroot/SOURCES
# /toolchain_root/lib64 --> /sysroot/lib64
# /toolchain_root/share --> /sysroot/share
# /toolchain_root/bin --> /sysroot/bin
# /toolchain_root/COPYING --> /sysroot/COPYING
# /toolchain_root/COPYING3 --> /sysroot/COPYING3
# /toolchain_root/COPYING.LIB --> /sysroot/COPYING.LIB
# /toolchain_root/include --> /sysroot/include
# /toolchain_root/libexec --> /sysroot/libexec

CMD: sudo -u tuscan PATH=/sysroot/bin:/sysroot/libexec/gcc/arm-linux-androideabi/4.8:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin CC=arm-linux-androideabi-gcc CXX=arm-linux-androideabi-g++ red makepkg --noextract --syncdeps --skipinteg --skippgpcheck --skipchecksums --noconfirm --nocolor --log --noprogressbar --nocheck
# ==> Making package: gptfdisk 1.0.1-2 (Tue Apr 4 21:10:27 UTC 2017)
# ==> Checking runtime dependencies...
# ==> Checking buildtime dependencies...
# ==> WARNING: Using existing $srcdir/ tree
# ==> Starting build()...
# g++ -Wall -D_FILE_OFFSET_BITS=64 -c -o crc32.o crc32.cc
# g++ -Wall -D_FILE_OFFSET_BITS=64 -c -o support.o support.cc
# g++ -Wall -D_FILE_OFFSET_BITS=64 -c -o guid.o guid.cc
# g++ -Wall -D_FILE_OFFSET_BITS=64 -c -o gptpart.o gptpart.cc
# cc1plus: error: no include path in which to search for stdc-predef.h
# crc32.cc:16:19: error: no include path in which to search for stdio.h
# #include
# ^
# crc32.cc:17:20: error: no include path in which to search for stdlib.h
# #include
# ^
# crc32.cc:18:23: error: no include path in which to search for sys/types.h
# #include
# ^
# In file included from crc32.cc:19:0:
# crc32.h:16:20: error: no include path in which to search for stdint.h
# #include
# ^
# crc32.h:19:1: error: 'uint32_t' does not name a type
# uint32_t chksum_crc32 (unsigned char *block, unsigned int length);
# ^
# crc32.cc:25:1: error: 'uint32_t' does not name a type
# uint32_t crc_tab[256];
# ^
# crc32.cc:32:1: error: 'uint32_t' does not name a type
# uint32_t chksum_crc32 (unsigned char *block, unsigned int length)
# ^
# make: *** [: crc32.o] Error 1
# make: *** Waiting for unfinished jobs....
# cc1plus: error: no include path in which to search for stdc-predef.h
# support.cc:12:19: error: no include path in which to search for stdio.h
# #include
# ^
# support.cc:13:20: error: no include path in which to search for stdint.h
# #include
# ^
# support.cc:14:19: error: no include path in which to search for errno.h
# #include
# ^
# support.cc:15:19: error: no include path in which to search for fcntl.h
# #include
# ^
# support.cc:16:20: error: no include path in which to search for string.h
# #include
# ^
# support.cc:17:22: error: no include path in which to search for sys/stat.h
# #include
# ^
# support.cc:18:18: error: no include path in which to search for string
# #include
# ^
# support.cc:19:20: error: no include path in which to search for iostream
# #include
# ^
# support.cc:20:19: error: no include path in which to search for sstream
# #include
# ^
# In file included from support.cc:21:0:
# support.h:4:20: error: no include path in which to search for stdint.h
# #include
# ^
# support.h:5:20: error: no include path in which to search for stdlib.h
# #include
# ^
# support.h:6:18: error: no include path in which to search for string
# #include
# ^
# support.h:44:22: error: no include path in which to search for linux/fs.h
# #include
# ^
# support.cc:23:23: error: no include path in which to search for sys/types.h
# #include
# ^
# cc1plus: error: no include path in which to search for stdc-predef.h
# In file included from support.cc:21:0:
# support.h:74:1: error: 'string' does not name a type
# string ReadString(void);
# ^
# guid.cc:17:19: error: no include path in which to search for stdio.h
# #include
# ^
# guid.cc:18:18: error: no include path in which to search for time.h
# #include
# ^
# support.h:75:49: error: 'string' does not name a type
# int GetNumber(int low, int high, int def, const string & prompt);
# ^
# guid.cc:19:20: error: no include path in which to search for string.h
# #include
# ^
# support.h:75:58: error: ISO C++ forbids declaration of 'prompt' with no type [-fpermissive]
# int GetNumber(int low, int high, int def, const string & prompt);
# ^
# guid.cc:20:18: error: no include path in which to search for string
# #include
# ^
# guid.cc:21:20: error: no include path in which to search for iostream
# #include
# ^
# support.h:77:1: error: 'uint64_t' does not name a type
# uint64_t GetSectorNum(uint64_t low, uint64_t high, uint64_t def, uint64_t sSize, const std::string& prompt);
# ^
# In file included from guid.cc:22:0:
# guid.h:17:20: error: no include path in which to search for stdint.h
# #include
# ^
# guid.h:18:18: error: no include path in which to search for string
# #include
# ^
# support.h:78:1: error: 'uint64_t' does not name a type
# uint64_t IeeeToInt(string IeeeValue, uint64_t sSize, uint64_t low, uint64_t high, uint64_t def = 0);
# ^
# guid.h:29:23: error: no include path in which to search for uuid/uuid.h
# #include
# ^
# support.h:79:1: error: 'string' does not name a type
# string BytesToIeee(uint64_t size, uint32_t sectorSize);
# ^
# support.h:80:30: error: 'string' does not name a type
# unsigned char StrToHex(const string & input, unsigned int position);
# ^
# support.h:80:39: error: ISO C++ forbids declaration of 'input' with no type [-fpermissive]
# unsigned char StrToHex(const string & input, unsigned int position);
# ^
# In file included from guid.cc:23:0:
# support.h:4:20: error: no include path in which to search for stdint.h
# #include
# ^
# support.h:5:20: error: no include path in which to search for stdlib.h
# #include
# ^
# support.h:81:11: error: 'string' was not declared in this scope
# int IsHex(string input); // Returns 1 if input can be hexadecimal number....
# ^
# support.h:6:18: error: no include path in which to search for string
# #include
# ^
# support.h:44:22: error: no include path in which to search for linux/fs.h
# #include
# ^
# support.cc:55:1: error: 'string' does not name a type
# string ReadString(void) {
# ^
# support.cc:70:49: error: 'string' does not name a type
# int GetNumber(int low, int high, int def, const string & prompt) {
# ^
# support.cc:70:58: error: ISO C++ forbids declaration of 'prompt' with no type [-fpermissive]
# int GetNumber(int low, int high, int def, const string & prompt) {
# ^
# support.cc: In function 'int GetNumber(int, int, int, const int&)':
# support.cc:76:10: error: 'cout' was not declared in this scope
# cout << prompt;
# ^
# support.cc:77:10: error: 'cin' was not declared in this scope
# cin.getline(line, 255);
# ^
# support.cc:79:19: error: 'exit' was not declared in this scope
# exit(5);
# ^
# In file included from guid.cc:22:0:
# guid.h:30:9: error: 'uuid_t' does not name a type
# typedef uuid_t my_uuid_t;
# ^
# support.cc:80:44: error: 'sscanf' was not declared in this scope
# num = sscanf(line, "%d", &response);
# ^
# cc1plus: error: no include path in which to search for stdc-predef.h
# guid.h:41:7: error: 'my_uuid_t' does not name a type
# my_uuid_t uuidData;
# ^
# gptpart.cc:24:20: error: no include path in which to search for string.h
# #include
# ^
# gptpart.cc:25:19: error: no include path in which to search for stdio.h
# #include
# ^
# guid.h:42:7: error: 'string' does not name a type
# string DeleteSpaces(string s);
# ^
# gptpart.cc:26:20: error: no include path in which to search for iostream
# #include
# ^
# support.cc:89:7: error: 'cout' was not declared in this scope
# cout << "Using " << low << "\n";
# ^
# In file included from gptpart.cc:27:0:
# gptpart.h:18:20: error: no include path in which to search for stdint.h
# #include
# ^
# guid.h:46:22: error: 'string' does not name a type
# GUIDData(const string & orig);
# ^
# gptpart.h:19:18: error: no include path in which to search for string
# #include
# ^
# gptpart.h:20:23: error: no include path in which to search for sys/types.h
# #include
# ^
# guid.h:46:31: error: ISO C++ forbids declaration of 'orig' with no type [-fpermissive]
# GUIDData(const string & orig);
# ^
# In file included from gptpart.h:21:0,
# from gptpart.cc:27:
# support.h:4:20: error: no include path in which to search for stdint.h
# #include
# ^
# support.cc: In function 'char GetYN()':
# support.cc:98:4: error: 'string' was not declared in this scope
# string line;
# ^
# support.h:5:20: error: no include path in which to search for stdlib.h
# #include
# ^
# support.h:6:18: error: no include path in which to search for string
# #include
# ^
# support.cc:98:11: error: expected ';' before 'line'
# string line;
# ^
# support.h:44:22: error: no include path in which to search for linux/fs.h
# #include
# ^
# guid.h:52:34: error: 'string' does not name a type
# GUIDData & operator=(const string & orig);
# ^
# support.cc:102:22: error: 'cout' was not declared in this scope
# if ( again ) { cout << "Your option? " ; }
# ^
# guid.h:52:43: error: ISO C++ forbids declaration of 'orig' with no type [-fpermissive]
# GUIDData & operator=(const string & orig);
# ^
# support.cc:104:7: error: 'cout' was not declared in this scope
# cout << "(Y/N): ";
# ^
# In file included from gptpart.h:22:0,
# from gptpart.cc:27:
# parttypes.h:4:20: error: no include path in which to search for stdint.h
# #include
# ^
# parttypes.h:5:20: error: no include path in which to search for stdlib.h
# #include
# ^
# support.cc:105:7: error: 'line' was not declared in this scope
# line = ReadString();
# ^
# parttypes.h:11:18: error: no include path in which to search for string
# #include
# ^
# support.cc:105:25: error: 'ReadString' was not declared in this scope
# line = ReadString();
# ^
# guid.h:62:7: error: 'string' does not name a type
# string AsString(void) const;
# ^
# In file included from parttypes.h:12:0,
# from gptpart.h:22,
# from gptpart.cc:27:
# support.h:4:20: error: no include path in which to search for stdint.h
# #include
# ^
# support.cc:106:33: error: 'toupper' was not declared in this scope
# response = toupper(line[0]);
# ^
# support.h:5:20: error: no include path in which to search for stdlib.h
# #include
# ^
# support.h:6:18: error: no include path in which to search for string
# #include
# ^
# guid.h:65:1: error: 'ostream' does not name a type
# ostream & operator<<(ostream & os, const GUIDData & data);
# ^
# support.cc: At global scope:
# support.cc:119:1: error: 'uint64_t' does not name a type
# uint64_t GetSectorNum(uint64_t low, uint64_t high, uint64_t def, uint64_t sSize,
# ^
# In file included from parttypes.h:13:0,
# from gptpart.h:22,
# from gptpart.cc:27:
# guid.h:17:20: error: no include path in which to search for stdint.h
# #include
# ^
# In file included from guid.cc:23:0:
# support.h:74:1: error: 'string' does not name a type
# string ReadString(void);
# ^
# guid.h:18:18: error: no include path in which to search for string
# #include
# ^
# support.cc:151:1: error: 'uint64_t' does not name a type
# uint64_t IeeeToInt(string inValue, uint64_t sSize, uint64_t low, uint64_t high, uint64_t def) {
# ^
# guid.h:29:23: error: no include path in which to search for uuid/uuid.h
# #include
# ^
# support.h:75:49: error: 'string' does not name a type
# int GetNumber(int low, int high, int def, const string & prompt);
# ^
# support.h:75:58: error: ISO C++ forbids declaration of 'prompt' with no type [-fpermissive]
# int GetNumber(int low, int high, int def, const string & prompt);
# ^
# support.cc:243:1: error: 'string' does not name a type
# string BytesToIeee(uint64_t size, uint32_t sectorSize) {
# ^
# support.h:77:1: error: 'uint64_t' does not name a type
# uint64_t GetSectorNum(uint64_t low, uint64_t high, uint64_t def, uint64_t sSize, const std::string& prompt);
# ^
# support.cc:276:30: error: 'string' does not name a type
# unsigned char StrToHex(const string & input, unsigned int position) {
# ^
# support.h:78:1: error: 'uint64_t' does not name a type
# uint64_t IeeeToInt(string IeeeValue, uint64_t sSize, uint64_t low, uint64_t high, uint64_t def = 0);
# ^
# support.cc:276:39: error: ISO C++ forbids declaration of 'input' with no type [-fpermissive]
# unsigned char StrToHex(const string & input, unsigned int position) {
# ^
# In file included from gptpart.h:24:0,
# from gptpart.cc:27:
# attributes.h:4:20: error: no include path in which to search for stdint.h
# #include
# ^
# support.h:79:1: error: 'string' does not name a type
# string BytesToIeee(uint64_t size, uint32_t sectorSize);
# ^
# attributes.h:5:18: error: no include path in which to search for string
# #include
# ^
# support.h:80:30: error: 'string' does not name a type
# unsigned char StrToHex(const string & input, unsigned int position);
# ^
# support.h:80:39: error: ISO C++ forbids declaration of 'input' with no type [-fpermissive]
# unsigned char StrToHex(const string & input, unsigned int position);
# ^
# support.cc: In function 'unsigned char StrToHex(const int&, unsigned int)':
# support.cc:280:14: error: request for member 'length' in 'input', which is of non-class type 'const int'
# if (input.length() > position) {
# ^
# support.h:81:11: error: 'string' was not declared in this scope
# int IsHex(string input); // Returns 1 if input can be hexadecimal number....
# ^
# support.cc:281:20: error: request for member 'substr' in 'input', which is of non-class type 'const int'
# sscanf(input.substr(position, 2).c_str(), "%x", &temp);
# ^
# In file included from gptpart.cc:28:0:
# attributes.h:4:20: error: no include path in which to search for stdint.h
# #include
# ^
# attributes.h:5:18: error: no include path in which to search for string
# #include
# ^
# support.cc:281:60: error: 'sscanf' was not declared in this scope
# sscanf(input.substr(position, 2).c_str(), "%x", &temp);
# ^
# guid.cc: In constructor 'GUIDData::GUIDData()':
# guid.cc:31:34: error: 'time' was not declared in this scope
# srand((unsigned int) time(0));
# ^
# support.cc: At global scope:
# support.cc:292:11: error: redefinition of 'int IsHex'
# int IsHex(string input) {
# ^
# guid.cc:31:35: error: 'srand' was not declared in this scope
# srand((unsigned int) time(0));
# ^
# In file included from support.cc:21:0:
# support.h:81:5: error: 'int IsHex' previously defined here
# int IsHex(string input); // Returns 1 if input can be hexadecimal number....
# ^
# support.cc:292:11: error: 'string' was not declared in this scope
# int IsHex(string input) {
# ^
# guid.cc: In copy constructor 'GUIDData::GUIDData(const GUIDData&)':
# guid.cc:38:11: error: 'uuidData' was not declared in this scope
# memcpy(uuidData, orig.uuidData, sizeof(uuidData));
# ^
# guid.cc:38:26: error: 'const class GUIDData' has no member named 'uuidData'
# memcpy(uuidData, orig.uuidData, sizeof(uuidData));
# ^
# guid.cc:38:52: error: 'memcpy' was not declared in this scope
# memcpy(uuidData, orig.uuidData, sizeof(uuidData));
# ^
# guid.cc: At global scope:
# guid.cc:41:26: error: 'string' does not name a type
# GUIDData::GUIDData(const string & orig) {
# ^
# guid.cc:41:35: error: ISO C++ forbids declaration of 'orig' with no type [-fpermissive]
# GUIDData::GUIDData(const string & orig) {
# ^
# In file included from gptpart.h:21:0,
# from gptpart.cc:27:
# support.h:74:1: error: 'string' does not name a type
# string ReadString(void);
# ^
# support.h:75:49: error: 'string' does not name a type
# int GetNumber(int low, int high, int def, const string & prompt);
# ^
# support.h:75:58: error: ISO C++ forbids declaration of 'prompt' with no type [-fpermissive]
# int GetNumber(int low, int high, int def, const string & prompt);
# ^
# support.h:77:1: error: 'uint64_t' does not name a type
# uint64_t GetSectorNum(uint64_t low, uint64_t high, uint64_t def, uint64_t sSize, const std::string& prompt);
# ^
# support.h:78:1: error: 'uint64_t' does not name a type
# uint64_t IeeeToInt(string IeeeValue, uint64_t sSize, uint64_t low, uint64_t high, uint64_t def = 0);
# ^
# support.h:79:1: error: 'string' does not name a type
# string BytesToIeee(uint64_t size, uint32_t sectorSize);
# ^
# support.h:80:30: error: 'string' does not name a type
# unsigned char StrToHex(const string & input, unsigned int position);
# ^
# support.h:80:39: error: ISO C++ forbids declaration of 'input' with no type [-fpermissive]
# unsigned char StrToHex(const string & input, unsigned int position);
# ^
# guid.cc: In member function 'GUIDData& GUIDData::operator=(const GUIDData&)':
# guid.cc:53:11: error: 'uuidData' was not declared in this scope
# memcpy(uuidData, orig.uuidData, sizeof(uuidData));
# ^
# support.h:81:11: error: 'string' was not declared in this scope
# int IsHex(string input); // Returns 1 if input can be hexadecimal number....
# ^
# guid.cc:53:26: error: 'const class GUIDData' has no member named 'uuidData'
# memcpy(uuidData, orig.uuidData, sizeof(uuidData));
# ^
# guid.cc:53:52: error: 'memcpy' was not declared in this scope
# memcpy(uuidData, orig.uuidData, sizeof(uuidData));
# ^
# In file included from parttypes.h:13:0,
# from gptpart.h:22,
# from gptpart.cc:27:
# guid.h:30:9: error: 'uuid_t' does not name a type
# typedef uuid_t my_uuid_t;
# ^
# guid.h:41:7: error: 'my_uuid_t' does not name a type
# my_uuid_t uuidData;
# ^
# guid.cc: At global scope:
# guid.cc:66:38: error: 'string' does not name a type
# GUIDData & GUIDData::operator=(const string & orig) {
# ^
# guid.h:42:7: error: 'string' does not name a type
# string DeleteSpaces(string s);
# ^
# guid.cc:66:47: error: ISO C++ forbids declaration of 'orig' with no type [-fpermissive]
# GUIDData & GUIDData::operator=(const string & orig) {
# ^
# guid.h:46:22: error: 'string' does not name a type
# GUIDData(const string & orig);
# ^
# guid.cc: In member function 'GUIDData& GUIDData::operator=(const int&)':
# guid.cc:67:4: error: 'string' was not declared in this scope
# string copy, fragment;
# ^
# guid.h:46:31: error: ISO C++ forbids declaration of 'orig' with no type [-fpermissive]
# GUIDData(const string & orig);
# ^
# guid.cc:67:11: error: expected ';' before 'copy'
# string copy, fragment;
# ^
# guid.cc:68:4: error: 'size_t' was not declared in this scope
# size_t len;
# ^
# guid.cc:68:11: error: expected ';' before 'len'
# size_t len;
# ^
# guid.cc:70:11: error: expected ';' before 'longSegs'
# size_t longSegs[6] = {0, 9, 14, 19, 24, 36};
# ^
# guid.h:52:34: error: 'string' does not name a type
# GUIDData & operator=(const string & orig);
# ^
# guid.cc:71:11: error: expected ';' before 'shortSegs'
# size_t shortSegs[6] = {0, 8, 12, 16, 20, 32};
# ^
# guid.h:52:43: error: ISO C++ forbids declaration of 'orig' with no type [-fpermissive]
# GUIDData & operator=(const string & orig);
# ^
# guid.cc:72:12: error: 'segStart' was not declared in this scope
# size_t *segStart = longSegs; // Assume there are separators between segments
# ^
# guid.cc:72:23: error: 'longSegs' was not declared in this scope
# size_t *segStart = longSegs; // Assume there are separators between segments
# ^
# guid.cc:76:15: error: invalid types 'const int[int]' for array subscript
# if ((orig[0] == 'R') || (orig[0] == 'r')) {
# ^
# guid.cc:76:35: error: invalid types 'const int[int]' for array subscript
# if ((orig[0] == 'R') || (orig[0] == 'r')) {
# ^
# guid.h:62:7: error: 'string' does not name a type
# string AsString(void) const;
# ^
# guid.cc:82:7: error: 'copy' was not declared in this scope
# copy = DeleteSpaces(orig);
# ^
# guid.h:65:1: error: 'ostream' does not name a type
# ostream & operator<<(ostream & os, const GUIDData & data);
# ^
# guid.cc:82:31: error: 'DeleteSpaces' was not declared in this scope
# copy = DeleteSpaces(orig);
# ^
# In file included from gptpart.h:22:0,
# from gptpart.cc:27:
# parttypes.h:25:4: error: 'uint16_t' does not name a type
# uint16_t MBRType;
# ^
# guid.cc:85:7: error: 'len' was not declared in this scope
# len = copy.length();
# ^
# parttypes.h:27:4: error: 'string' does not name a type
# string name;
# ^
# guid.cc:87:21: error: 'shortSegs' was not declared in this scope
# segStart = shortSegs;
# ^
# guid.cc:93:10: error: 'uuidData' was not declared in this scope
# uuidData[3] = StrToHex(copy, 0);
# ^
# guid.cc:99:10: error: 'uuidData' was not declared in this scope
# uuidData[5] = StrToHex(copy, (unsigned int) segStart[1]);
# ^
# parttypes.h:45:16: error: 'uint16_t' has not been declared
# int AddType(uint16_t mbrType, const char * guidData, const char * name, int toDisplay = 1);
# ^
# make: *** [: support.o] Error 1
# guid.cc:103:10: error: 'uuidData' was not declared in this scope
# uuidData[7] = StrToHex(copy, (unsigned int) segStart[2]);
# ^
# parttypes.h:48:31: error: 'string' does not name a type
# PartType & operator=(const string & orig);
# ^
# parttypes.h:48:40: error: ISO C++ forbids declaration of 'orig' with no type [-fpermissive]
# PartType & operator=(const string & orig);
# ^
# guid.cc:107:10: error: 'uuidData' was not declared in this scope
# uuidData[8] = StrToHex(copy, (unsigned int) segStart[3]);
# ^
# guid.cc:111:10: error: 'uuidData' was not declared in this scope
# uuidData[10] = StrToHex(copy, (unsigned int) segStart[4]);
# ^
# parttypes.h:55:25: error: declaration of 'operator=' as non-function
# PartType & operator=(uint16_t ID); // Use MBR type code times 0x0100 to assign GUID
# ^
# parttypes.h:55:23: error: expected ';' at end of member declaration
# PartType & operator=(uint16_t ID); // Use MBR type code times 0x0100 to assign GUID
# ^
# parttypes.h:55:34: error: expected ')' before 'ID'
# PartType & operator=(uint16_t ID); // Use MBR type code times 0x0100 to assign GUID
# ^
# parttypes.h:58:4: error: 'string' does not name a type
# string TypeName(void) const;
# ^
# In file included from gptpart.h:22:0,
# from gptpart.cc:27:
# parttypes.h:9:23: error: 'string' does not name a type
# #define UnicodeString string
# ^
# parttypes.h:59:4: note: in expansion of macro 'UnicodeString'
# UnicodeString UTypeName(void) const;
# ^
# In file included from gptpart.h:22:0,
# from gptpart.cc:27:
# parttypes.h:60:4: error: 'uint16_t' does not name a type
# uint16_t GetHexType() const;
# ^
# parttypes.h:64:14: error: 'uint16_t' has not been declared
# int Valid(uint16_t code) const;
# ^
# guid.cc: In member function 'GUIDData& GUIDData::operator=(const char*)':
# guid.cc:125:22: error: 'string' was not declared in this scope
# return operator=((string) orig);
# ^
# guid.cc: In member function 'void GUIDData::Zero()':
# guid.cc:130:11: error: 'uuidData' was not declared in this scope
# memset(uuidData, 0, sizeof(uuidData));
# ^
# guid.cc:130:40: error: 'memset' was not declared in this scope
# memset(uuidData, 0, sizeof(uuidData));
# ^
# In file included from gptpart.h:24:0,
# from gptpart.cc:27:
# attributes.h:17:11: error: 'string' does not name a type
# static string atNames[NUM_ATR];
# ^
# attributes.h:20:4: error: 'uint64_t' does not name a type
# uint64_t attributes;
# ^
# guid.cc: In member function 'void GUIDData::Randomize()':
# guid.cc:160:7: error: 'cerr' was not declared in this scope
# cerr << "Warning! Unable to generate a proper UUID! Creating an improper one as a last\n"
# ^
# attributes.h:24:21: error: 'uint64_t' does not name a type
# Attributes(const uint64_t a);
# ^
# attributes.h:24:30: error: ISO C++ forbids declaration of 'a' with no type [-fpermissive]
# Attributes(const uint64_t a);
# ^
# attributes.h:26:19: error: 'uint64_t' has not been declared
# void operator=(uint64_t a) {attributes = a;}
# ^
# guid.cc:163:10: error: 'uuidData' was not declared in this scope
# uuidData[i] = (unsigned char) (256.0 * (rand() / (RAND_MAX + 1.0)));
# ^
# attributes.h:28:4: error: 'uint64_t' does not name a type
# uint64_t GetAttributes(void) const {return attributes;}
# ^
# guid.cc:163:55: error: 'rand' was not declared in this scope
# uuidData[i] = (unsigned char) (256.0 * (rand() / (RAND_MAX + 1.0)));
# ^
# attributes.h:30:30: error: 'uint32_t' does not name a type
# void ShowAttributes(const uint32_t partNum);
# ^
# guid.cc:163:60: error: 'RAND_MAX' was not declared in this scope
# uuidData[i] = (unsigned char) (256.0 * (rand() / (RAND_MAX + 1.0)));
# ^
# attributes.h:30:39: error: ISO C++ forbids declaration of 'partNum' with no type [-fpermissive]
# void ShowAttributes(const uint32_t partNum);
# ^
# attributes.h:33:35: error: 'uint32_t' does not name a type
# bool OperateOnAttributes(const uint32_t partNum, const string& attributeOperator, const string& attributeBits);
# ^
# attributes.h:33:44: error: ISO C++ forbids declaration of 'partNum' with no type [-fpermissive]
# bool OperateOnAttributes(const uint32_t partNum, const string& attributeOperator, const string& attributeBits);
# ^
# attributes.h:33:59: error: 'string' does not name a type
# bool OperateOnAttributes(const uint32_t partNum, const string& attributeOperator, const string& attributeBits);
# ^
# guid.cc: In member function 'int GUIDData::operator==(const GUIDData&) const':
# guid.cc:169:19: error: 'uuidData' was not declared in this scope
# return !memcmp(uuidData, orig.uuidData, sizeof(uuidData));
# ^
# attributes.h:33:67: error: ISO C++ forbids declaration of 'attributeOperator' with no type [-fpermissive]
# bool OperateOnAttributes(const uint32_t partNum, const string& attributeOperator, const string& attributeBits);
# ^
# guid.cc:169:34: error: 'const class GUIDData' has no member named 'uuidData'
# return !memcmp(uuidData, orig.uuidData, sizeof(uuidData));
# ^
# attributes.h:33:92: error: 'string' does not name a type
# bool OperateOnAttributes(const uint32_t partNum, const string& attributeOperator, const string& attributeBits);
# ^
# attributes.h:33:100: error: ISO C++ forbids declaration of 'attributeBits' with no type [-fpermissive]
# bool OperateOnAttributes(const uint32_t partNum, const string& attributeOperator, const string& attributeBits);
# ^
# guid.cc:169:60: error: 'memcmp' was not declared in this scope
# return !memcmp(uuidData, orig.uuidData, sizeof(uuidData));
# ^
# attributes.h:35:17: error: 'string' does not name a type
# static const string& GetAttributeName(const uint32_t bitNum) {return atNames [bitNum];}
# ^
# attributes.h: In member function 'void Attributes::operator=(int)':
# attributes.h:26:32: error: 'attributes' was not declared in this scope
# void operator=(uint64_t a) {attributes = a;}
# ^
# guid.cc: At global scope:
# guid.cc:178:1: error: 'string' does not name a type
# string GUIDData::AsString(void) const {
# ^
# attributes.h: At global scope:
# attributes.h:39:1: error: 'ostream' does not name a type
# ostream & operator<<(ostream & os, const Attributes & data);
# ^
# guid.cc:192:1: error: 'string' does not name a type
# string GUIDData::DeleteSpaces(string s) {
# ^
# In file included from gptpart.cc:27:0:
# gptpart.h:50:7: error: 'uint64_t' does not name a type
# uint64_t firstLBA;
# ^
# guid.cc:212:1: error: 'ostream' does not name a type
# ostream & operator<<(ostream & os, const GUIDData & data) {
# ^
# gptpart.h:51:7: error: 'uint64_t' does not name a type
# uint64_t lastLBA;
# ^
# gptpart.h:53:7: error: 'uint16_t' does not name a type
# uint16_t name[NAME_SIZE];
# ^
# gptpart.h:60:7: error: 'uint16_t' does not name a type
# uint16_t GetHexType(void) const;
# ^
# gptpart.h:61:7: error: 'string' does not name a type
# string GetTypeName(void);
# ^
# In file included from gptpart.h:22:0,
# from gptpart.cc:27:
# parttypes.h:9:23: error: 'string' does not name a type
# #define UnicodeString string
# ^
# gptpart.h:62:7: note: in expansion of macro 'UnicodeString'
# UnicodeString GetUTypeName(void);
# ^
# In file included from gptpart.cc:27:0:
# gptpart.h:64:7: error: 'uint64_t' does not name a type
# uint64_t GetFirstLBA(void) const {return firstLBA;}
# ^
# gptpart.h:65:7: error: 'uint64_t' does not name a type
# uint64_t GetLastLBA(void) const {return lastLBA;}
# ^
# gptpart.h:66:7: error: 'uint64_t' does not name a type
# uint64_t GetLengthLBA(void) const;
# ^
# gptpart.h:68:27: error: 'uint32_t' has not been declared
# void ShowAttributes(uint32_t partNum) {attributes.ShowAttributes(partNum);}
# ^
# In file included from gptpart.h:22:0,
# from gptpart.cc:27:
# parttypes.h:9:23: error: 'string' does not name a type
# #define UnicodeString string
# ^
# gptpart.h:69:7: note: in expansion of macro 'UnicodeString'
# UnicodeString GetDescription(void);
# ^
# guid.cc: In member function 'GUIDData& GUIDData::operator=(const char*)':
# guid.cc:126:1: warning: control reaches end of non-void function [-Wreturn-type]
# } // GUIDData::operator=(const char * orig)
# ^
# In file included from gptpart.cc:27:0:
# gptpart.h:75:20: error: 'uint16_t' has not been declared
# void SetType(uint16_t hex) {partitionType = hex;}
# ^
# gptpart.h:78:24: error: 'uint64_t' has not been declared
# void SetFirstLBA(uint64_t f) {firstLBA = f;}
# ^
# guid.cc: In member function 'int GUIDData::operator==(const GUIDData&) const':
# guid.cc:170:1: warning: control reaches end of non-void function [-Wreturn-type]
# } // GUIDData::operator==
# ^
# gptpart.h:79:23: error: 'uint64_t' has not been declared
# void SetLastLBA(uint64_t l) {lastLBA = l;}
# ^
# gptpart.h:80:26: error: 'uint64_t' has not been declared
# void SetAttributes(uint64_t a) {attributes = a;}
# ^
# gptpart.h:82:26: error: 'string' does not name a type
# void SetName(const string & theName);
# ^
# gptpart.h:82:35: error: ISO C++ forbids declaration of 'theName' with no type [-fpermissive]
# void SetName(const string & theName);
# ^
# gptpart.h:91:37: error: 'uint32_t' has not been declared
# void ShowSummary(int partNum, uint32_t blockSize); // display summary information (1-line)
# ^
# gptpart.h:92:24: error: 'uint32_t' has not been declared
# void ShowDetails(uint32_t blockSize); // display detailed information (multi-line)
# ^
# gptpart.h: In member function 'void GPTPart::SetFirstLBA(int)':
# gptpart.h:78:37: error: 'firstLBA' was not declared in this scope
# void SetFirstLBA(uint64_t f) {firstLBA = f;}
# ^
# gptpart.h: In member function 'void GPTPart::SetLastLBA(int)':
# gptpart.h:79:36: error: 'lastLBA' was not declared in this scope
# void SetLastLBA(uint64_t l) {lastLBA = l;}
# ^
# make: *** [: guid.o] Error 1
# gptpart.cc: In constructor 'GPTPart::GPTPart()':
# gptpart.cc:35:4: error: 'firstLBA' was not declared in this scope
# firstLBA = 0;
# ^
# gptpart.cc:36:4: error: 'lastLBA' was not declared in this scope
# lastLBA = 0;
# ^
# gptpart.cc:38:11: error: 'name' was not declared in this scope
# memset(name, 0, NAME_SIZE * sizeof(name[0]) );
# ^
# gptpart.cc:38:48: error: 'memset' was not declared in this scope
# memset(name, 0, NAME_SIZE * sizeof(name[0]) );
# ^
# gptpart.cc: At global scope:
# gptpart.cc:45:1: error: 'uint16_t' does not name a type
# uint16_t GPTPart::GetHexType(void) const {
# ^
# gptpart.cc:51:1: error: 'string' does not name a type
# string GPTPart::GetTypeName(void) {
# ^
# gptpart.cc:65:1: error: 'uint64_t' does not name a type
# uint64_t GPTPart::GetLengthLBA(void) const {
# ^
# gptpart.cc:80:1: error: 'string' does not name a type
# string GPTPart::GetDescription(void) {
# ^
# gptpart.cc: In member function 'int GPTPart::IsSizedForMBR()':
# gptpart.cc:146:9: error: 'firstLBA' was not declared in this scope
# if ((firstLBA > UINT32_MAX) || ((lastLBA - firstLBA) > UINT32_MAX) || (firstLBA > lastLBA))
# ^
# gptpart.cc:146:20: error: 'UINT32_MAX' was not declared in this scope
# if ((firstLBA > UINT32_MAX) || ((lastLBA - firstLBA) > UINT32_MAX) || (firstLBA > lastLBA))
# ^
# gptpart.cc:146:37: error: 'lastLBA' was not declared in this scope
# if ((firstLBA > UINT32_MAX) || ((lastLBA - firstLBA) > UINT32_MAX) || (firstLBA > lastLBA))
# ^
# gptpart.cc: In member function 'void GPTPart::SetType(PartType)':
# gptpart.cc:161:23: error: 'GetDescription' was not declared in this scope
# if (GetDescription() == partitionType.TypeName()) {
# ^
# gptpart.cc:161:42: error: 'class PartType' has no member named 'TypeName'
# if (GetDescription() == partitionType.TypeName()) {
# ^
# gptpart.cc:163:17: error: 'class PartType' has no member named 'TypeName'
# SetName(t.TypeName());
# ^
# gptpart.cc: At global scope:
# gptpart.cc:192:29: error: 'string' does not name a type
# void GPTPart::SetName(const string & theName) {
# ^
# gptpart.cc:192:38: error: ISO C++ forbids declaration of 'theName' with no type [-fpermissive]
# void GPTPart::SetName(const string & theName) {
# ^
# gptpart.cc: In member function 'void GPTPart::SetName(const int&)':
# gptpart.cc:194:4: error: 'size_t' was not declared in this scope
# size_t len = theName.length() ;
# ^
# gptpart.cc:194:11: error: expected ';' before 'len'
# size_t len = theName.length() ;
# ^
# gptpart.cc:195:11: error: expected ';' before 'pos'
# size_t pos = 0 ;
# ^
# gptpart.cc:196:17: error: expected ';' before 'i'
# for ( size_t i = 0 ; pos < NAME_SIZE && i < len ; ) {
# ^
# gptpart.cc:196:25: error: 'pos' was not declared in this scope
# for ( size_t i = 0 ; pos < NAME_SIZE && i < len ; ) {
# ^
# gptpart.cc:196:44: error: 'i' was not declared in this scope
# for ( size_t i = 0 ; pos < NAME_SIZE && i < len ; ) {
# ^
# gptpart.cc:196:48: error: 'len' was not declared in this scope
# for ( size_t i = 0 ; pos < NAME_SIZE && i < len ; ) {
# ^
# gptpart.cc:197:7: error: 'uint32_t' was not declared in this scope
# uint32_t uni ;
# ^
# gptpart.cc:197:16: error: expected ';' before 'uni'
# uint32_t uni ;
# ^
# gptpart.cc:198:7: error: 'uint8_t' was not declared in this scope
# uint8_t cp = theName[ i ++ ] ;
# ^
# gptpart.cc:198:15: error: expected ';' before 'cp'
# uint8_t cp = theName[ i ++ ] ;
# ^
# gptpart.cc:200:12: error: 'cp' was not declared in this scope
# if ( cp < 0x80 ) {
# ^
# gptpart.cc:201:10: error: 'uni' was not declared in this scope
# uni = cp ;
# ^
# gptpart.cc:209:10: error: 'uni' was not declared in this scope
# uni = cp & 0x1f ;
# ^
# gptpart.cc:213:10: error: 'uni' was not declared in this scope
# uni = cp & 0x0f ;
# ^
# gptpart.cc:217:10: error: 'uni' was not declared in this scope
# uni = cp & 0x7 ;
# ^
# gptpart.cc:225:10: error: 'cp' was not declared in this scope
# cp = theName[ i ++ ] ;
# ^
# gptpart.cc:230:10: error: 'uni' was not declared in this scope
# uni <<= 6 ;
# ^
# gptpart.cc:235:12: error: 'uni' was not declared in this scope
# if ( uni < 0x10000 ) {
# ^
# gptpart.cc:236:10: error: 'name' was not declared in this scope
# name[ pos ] = (uint16_t) uni ;
# ^
# gptpart.cc:236:25: error: 'uint16_t' was not declared in this scope
# name[ pos ] = (uint16_t) uni ;
# ^
# gptpart.cc:236:35: error: expected ';' before 'uni'
# name[ pos ] = (uint16_t) uni ;
# ^
# gptpart.cc:246:10: error: 'name' was not declared in this scope
# name[ pos ] = (uint16_t)( uni >> 10 ) | 0xd800 ;
# ^
# gptpart.cc:246:25: error: 'uint16_t' was not declared in this scope
# name[ pos ] = (uint16_t)( uni >> 10 ) | 0xd800 ;
# ^
# gptpart.cc:256:12: error: 'pos' was not declared in this scope
# while ( pos < NAME_SIZE ) {
# ^
# gptpart.cc:257:7: error: 'name' was not declared in this scope
# name[ pos ++ ] = 0 ;
# ^
# gptpart.cc: In member function 'void GPTPart::SetDefaultDescription()':
# gptpart.cc:265:26: error: 'class PartType' has no member named 'TypeName'
# SetName(partitionType.TypeName());
# ^
# gptpart.cc: In member function 'GPTPart& GPTPart::operator=(const GPTPart&)':
# gptpart.cc:271:4: error: 'firstLBA' was not declared in this scope
# firstLBA = orig.firstLBA;
# ^
# gptpart.cc:271:20: error: 'const class GPTPart' has no member named 'firstLBA'
# firstLBA = orig.firstLBA;
# ^
# gptpart.cc:272:4: error: 'lastLBA' was not declared in this scope
# lastLBA = orig.lastLBA;
# ^
# gptpart.cc:272:19: error: 'const class GPTPart' has no member named 'lastLBA'
# lastLBA = orig.lastLBA;
# ^
# gptpart.cc:274:11: error: 'name' was not declared in this scope
# memcpy(name, orig.name, NAME_SIZE * sizeof( name[ 0 ] ) );
# ^
# gptpart.cc:274:22: error: 'const class GPTPart' has no member named 'name'
# memcpy(name, orig.name, NAME_SIZE * sizeof( name[ 0 ] ) );
# ^
# gptpart.cc:274:60: error: 'memcpy' was not declared in this scope
# memcpy(name, orig.name, NAME_SIZE * sizeof( name[ 0 ] ) );
# ^
# gptpart.cc: In member function 'bool GPTPart::operator<(const GPTPart&) const':
# gptpart.cc:284:8: error: 'firstLBA' was not declared in this scope
# if (firstLBA && other.firstLBA)
# ^
# gptpart.cc:284:26: error: 'const class GPTPart' has no member named 'firstLBA'
# if (firstLBA && other.firstLBA)
# ^
# gptpart.cc:285:32: error: 'const class GPTPart' has no member named 'firstLBA'
# return (firstLBA < other.firstLBA);
# ^
# gptpart.cc:287:21: error: 'const class GPTPart' has no member named 'firstLBA'
# return (other.firstLBA < firstLBA);
# ^
# gptpart.cc: At global scope:
# gptpart.cc:291:40: error: 'uint32_t' has not been declared
# void GPTPart::ShowSummary(int partNum, uint32_t blockSize) {
# ^
# gptpart.cc: In member function 'void GPTPart::ShowSummary(int, int)':
# gptpart.cc:292:4: error: 'string' was not declared in this scope
# string sizeInIeee;
# ^
# gptpart.cc:292:11: error: expected ';' before 'sizeInIeee'
# string sizeInIeee;
# ^
# gptpart.cc:293:18: error: expected ';' before 'description'
# UnicodeString description;
# ^
# gptpart.cc:294:4: error: 'size_t' was not declared in this scope
# size_t i;
# ^
# gptpart.cc:294:11: error: expected ';' before 'i'
# size_t i;
# ^
# gptpart.cc:296:8: error: 'firstLBA' was not declared in this scope
# if (firstLBA != 0) {
# ^
# gptpart.cc:297:7: error: 'sizeInIeee' was not declared in this scope
# sizeInIeee = BytesToIeee(lastLBA - firstLBA + 1, blockSize);
# ^
# gptpart.cc:297:32: error: 'lastLBA' was not declared in this scope
# sizeInIeee = BytesToIeee(lastLBA - firstLBA + 1, blockSize);
# ^
# gptpart.cc:297:65: error: 'BytesToIeee' was not declared in this scope
# sizeInIeee = BytesToIeee(lastLBA - firstLBA + 1, blockSize);
# ^
# gptpart.cc:298:7: error: 'cout' was not declared in this scope
# cout.fill(' ');
# ^
# gptpart.cc:307:15: error: 'i' was not declared in this scope
# for (i = 0; i < 10 - sizeInIeee.length(); i++)
# ^
# gptpart.cc:311:17: error: 'ios' has not been declared
# cout.setf(ios::uppercase);
# ^
# gptpart.cc:312:15: error: 'hex' was not declared in this scope
# cout << hex << partitionType.GetHexType() << " " << dec;
# ^
# gptpart.cc:312:36: error: 'class PartType' has no member named 'GetHexType'
# cout << hex << partitionType.GetHexType() << " " << dec;
# ^
# gptpart.cc:312:60: error: 'dec' was not declared in this scope
# cout << hex << partitionType.GetHexType() << " " << dec;
# ^
# gptpart.cc:318:14: error: expected ';' before 'desc'
# string desc = GetDescription() ;
# ^
# gptpart.cc:319:14: error: expected ';' before 'n'
# size_t n = 0 ;
# ^
# gptpart.cc:320:14: error: expected ';' before 'i'
# size_t i = 0 ;
# ^
# gptpart.cc:321:14: error: expected ';' before 'len'
# size_t len = desc.length() ;
# ^
# gptpart.cc:322:15: error: 'n' was not declared in this scope
# while ( n < 22 && i < len ) {
# ^
# gptpart.cc:322:25: error: 'i' was not declared in this scope
# while ( n < 22 && i < len ) {
# ^
# gptpart.cc:322:29: error: 'len' was not declared in this scope
# while ( n < 22 && i < len ) {
# ^
# gptpart.cc:329:33: error: 'desc' was not declared in this scope
# while ( i < len && ( ( desc[ i ] & 0xC0 ) == 0x80 ) ) {
# ^
# gptpart.cc:335:12: error: 'i' was not declared in this scope
# if ( i < len ) {
# ^
# gptpart.cc:335:16: error: 'len' was not declared in this scope
# if ( i < len ) {
# ^
# gptpart.cc:336:10: error: 'n' was not declared in this scope
# n = 0 ;
# ^
# gptpart.cc:346:36: error: 'desc' was not declared in this scope
# while ( i < len && ( ( desc[ i ] & 0xC0 ) == 0x80 ) ) {
# ^
# gptpart.cc:353:30: error: 'GetDescription' was not declared in this scope
# cout << GetDescription().substr( 0 , i ) ;
# ^
# gptpart.cc:353:44: error: 'i' was not declared in this scope
# cout << GetDescription().substr( 0 , i ) ;
# ^
# gptpart.cc:354:16: error: 'len' was not declared in this scope
# if ( i < len ) cout << "..." ;
# ^
# gptpart.cc: At global scope:
# gptpart.cc:363:27: error: variable or field 'ShowDetails' declared void
# void GPTPart::ShowDetails(uint32_t blockSize) {
# ^
# gptpart.cc:363:27: error: 'uint32_t' was not declared in this scope
# gptpart.cc: In member function 'bool GPTPart::operator<(const GPTPart&) const':
# gptpart.cc:288:1: warning: control reaches end of non-void function [-Wreturn-type]
# } // GPTPart::operator<()
# ^
# make: *** [: gptpart.o] Error 1
# ==> ERROR: A failure occurred in build().
# Aborting...