pisilinux / PisiLinux

PiSi GNU/Linux devel package repository
75 stars 48 forks source link

Can't compile C++ programs #802

Closed chuuko closed 6 years ago

chuuko commented 6 years ago

I recently migrated to Pisi Linux 2.0 with a clean install and I found myself unable to compile even a simple "Hello World" program. First, gcc would say that the headers are missing from includepath/linux, then it says that it cannot find so-and-so header in includepath/asm. I symlinked the headers in my include path in both folders, but when I try to compile the program I get this: In file included from /usr/include/c++/6.3.0/bits/basic_string.h:5402:0, from /usr/include/c++/6.3.0/string:52, from /usr/include/c++/6.3.0/bits/locale_classes.h:40, from /usr/include/c++/6.3.0/bits/ios_base.h:41, from /usr/include/c++/6.3.0/ios:42, from /usr/include/c++/6.3.0/ostream:38, from /usr/include/c++/6.3.0/iostream:39, from squek.cxx:2: /usr/include/c++/6.3.0/ext/string_conversions.h: 関数 ‘_Ret __gnu_cxx::__stoa(_TRet ()(const _CharT, _CharT*, _Base ...), const char, const _CharT, std::size_t, _Base ...)’ 内: /usr/include/c++/6.3.0/ext/string_conversions.h:72:25: エラー: ‘ERANGE’ was not declared in this scope else if (errno == ERANGE ^~ In file included from /usr/include/c++/6.3.0/system_error:39:0, from /usr/include/c++/6.3.0/bits/ios_base.h:46, from /usr/include/c++/6.3.0/ios:42, from /usr/include/c++/6.3.0/ostream:38, from /usr/include/c++/6.3.0/iostream:39, from squek.cxx:2: /usr/include/c++/6.3.0/x86_64-pc-linux-gnu/bits/error_constants.h: 大域スコープ: /usr/include/c++/6.3.0/x86_64-pc-linux-gnu/bits/error_constants.h:42:40: エラー: ‘EAFNOSUPPORT’ was not declared in this scope address_family_not_supported = EAFNOSUPPORT, ^~~~ /usr/include/c++/6.3.0/x86_64-pc-linux-gnu/bits/error_constants.h:43:28: エラー: ‘EADDRINUSE’ was not declared in this scope address_in_use = EADDRINUSE, ^~~~~~ /usr/include/c++/6.3.0/x86_64-pc-linux-gnu/bits/error_constants.h:44:34: エラー: ‘EADDRNOTAVAIL’ was not declared in this scope address_not_available = EADDRNOTAVAIL, ^~~~~ /usr/include/c++/6.3.0/x86_64-pc-linux-gnu/bits/error_constants.h:45:30: エラー: ‘EISCONN’ was not declared in this scope already_connected = EISCONN, ^~~ /usr/include/c++/6.3.0/x86_64-pc-linux-gnu/bits/error_constants.h:46:35: エラー: ‘E2BIG’ was not declared in this scope argument_list_too_long = E2BIG, ^~~~~ /usr/include/c++/6.3.0/x86_64-pc-linux-gnu/bits/error_constants.h:47:35: エラー: ‘EDOM’ was not declared in this scope argument_out_of_domain = EDOM, ^~~~ /usr/include/c++/6.3.0/x86_64-pc-linux-gnu/bits/error_constants.h:48:25: エラー: ‘EFAULT’ was not declared in this scope bad_address = EFAULT, ^~ /usr/include/c++/6.3.0/x86_64-pc-linux-gnu/bits/error_constants.h:49:32: エラー: ‘EBADF’ was not declared in this scope bad_file_descriptor = EBADF, ^~~~~ /usr/include/c++/6.3.0/x86_64-pc-linux-gnu/bits/error_constants.h:52:25: エラー: ‘EBADMSG’ was not declared in this scope bad_message = EBADMSG, ^~~ /usr/include/c++/6.3.0/x86_64-pc-linux-gnu/bits/error_constants.h:55:25: エラー: ‘EPIPE’ was not declared in this scope broken_pipe = EPIPE, ^~~~~ /usr/include/c++/6.3.0/x86_64-pc-linux-gnu/bits/error_constants.h:56:31: エラー: ‘ECONNABORTED’ was not declared in this scope connection_aborted = ECONNABORTED, ^~~~ /usr/include/c++/6.3.0/x86_64-pc-linux-gnu/bits/error_constants.h:57:42: エラー: ‘EALREADY’ was not declared in this scope connection_already_in_progress = EALREADY, ^~~~ /usr/include/c++/6.3.0/x86_64-pc-linux-gnu/bits/error_constants.h:58:31: エラー: ‘ECONNREFUSED’ was not declared in this scope connection_refused = ECONNREFUSED, ^~~~ /usr/include/c++/6.3.0/x86_64-pc-linux-gnu/bits/error_constants.h:59:29: エラー: ‘ECONNRESET’ was not declared in this scope connection_reset = ECONNRESET, ^~~~~~ /usr/include/c++/6.3.0/x86_64-pc-linux-gnu/bits/error_constants.h:60:30: エラー: ‘EXDEV’ was not declared in this scope cross_device_link = EXDEV, ^~~~~ /usr/include/c++/6.3.0/x86_64-pc-linux-gnu/bits/error_constants.h:61:40: エラー: ‘EDESTADDRREQ’ was not declared in this scope destination_address_required = EDESTADDRREQ, ^~~~ /usr/include/c++/6.3.0/x86_64-pc-linux-gnu/bits/error_constants.h:62:35: エラー: ‘EBUSY’ was not declared in this scope device_or_resource_busy = EBUSY, ^~~~~ /usr/include/c++/6.3.0/x86_64-pc-linux-gnu/bits/error_constants.h:63:32: エラー: ‘ENOTEMPTY’ was not declared in this scope directory_not_empty = ENOTEMPTY, ^~~~~ /usr/include/c++/6.3.0/x86_64-pc-linux-gnu/bits/error_constants.h:64:35: エラー: ‘ENOEXEC’ was not declared in this scope executable_format_error = ENOEXEC, ^~~ /usr/include/c++/6.3.0/x86_64-pc-linux-gnu/bits/error_constants.h:65:32: エラー: ‘EEXIST’ was not declared in this scope file_exists = EEXIST, ^~ /usr/include/c++/6.3.0/x86_64-pc-linux-gnu/bits/error_constants.h:66:28: エラー: ‘EFBIG’ was not declared in this scope file_too_large = EFBIG, ^~~~~ /usr/include/c++/6.3.0/x86_64-pc-linux-gnu/bits/error_constants.h:67:30: エラー: ‘ENAMETOOLONG’ was not declared in this scope filename_too_long = ENAMETOOLONG, ^~~~ /usr/include/c++/6.3.0/x86_64-pc-linux-gnu/bits/error_constants.h:68:35: エラー: ‘ENOSYS’ was not declared in this scope function_not_supported = ENOSYS, ^~ /usr/include/c++/6.3.0/x86_64-pc-linux-gnu/bits/error_constants.h:69:29: エラー: ‘EHOSTUNREACH’ was not declared in this scope host_unreachable = EHOSTUNREACH, ^~~~ /usr/include/c++/6.3.0/x86_64-pc-linux-gnu/bits/error_constants.h:72:31: エラー: ‘EIDRM’ was not declared in this scope identifier_removed = EIDRM, ^~~~~ /usr/include/c++/6.3.0/x86_64-pc-linux-gnu/bits/error_constants.h:75:34: エラー: ‘EILSEQ’ was not declared in this scope illegal_byte_sequence = EILSEQ, ^~ /usr/include/c++/6.3.0/x86_64-pc-linux-gnu/bits/error_constants.h:76:45: エラー: ‘ENOTTY’ was not declared in this scope inappropriate_io_control_operation = ENOTTY, ^~ /usr/include/c++/6.3.0/x86_64-pc-linux-gnu/bits/error_constants.h:77:25: エラー: ‘EINTR’ was not declared in this scope interrupted = EINTR, ^~~~~ /usr/include/c++/6.3.0/x86_64-pc-linux-gnu/bits/error_constants.h:78:29: エラー: ‘EINVAL’ was not declared in this scope invalid_argument = EINVAL, ^~ /usr/include/c++/6.3.0/x86_64-pc-linux-gnu/bits/error_constants.h:79:26: エラー: ‘ESPIPE’ was not declared in this scope invalid_seek = ESPIPE, ^~ /usr/include/c++/6.3.0/x86_64-pc-linux-gnu/bits/error_constants.h:80:22: エラー: ‘EIO’ was not declared in this scope io_error = EIO, ^~~ /usr/include/c++/6.3.0/x86_64-pc-linux-gnu/bits/error_constants.h:81:28: エラー: ‘EISDIR’ was not declared in this scope is_a_directory = EISDIR, ^~ /usr/include/c++/6.3.0/x86_64-pc-linux-gnu/bits/error_constants.h:82:26: エラー: ‘EMSGSIZE’ was not declared in this scope message_size = EMSGSIZE, ^~~~ /usr/include/c++/6.3.0/x86_64-pc-linux-gnu/bits/error_constants.h:83:26: エラー: ‘ENETDOWN’ was not declared in this scope network_down = ENETDOWN, ^~~~ /usr/include/c++/6.3.0/x86_64-pc-linux-gnu/bits/error_constants.h:84:27: エラー: ‘ENETRESET’ was not declared in this scope network_reset = ENETRESET, ^~~~~ /usr/include/c++/6.3.0/x86_64-pc-linux-gnu/bits/error_constants.h:85:32: エラー: ‘ENETUNREACH’ was not declared in this scope network_unreachable = ENETUNREACH, ^~~ /usr/include/c++/6.3.0/x86_64-pc-linux-gnu/bits/error_constants.h:86:28: エラー: ‘ENOBUFS’ was not declared in this scope no_buffer_space = ENOBUFS, ^~~ /usr/include/c++/6.3.0/x86_64-pc-linux-gnu/bits/error_constants.h:87:29: エラー: ‘ECHILD’ was not declared in this scope no_child_process = ECHILD, ^~ /usr/include/c++/6.3.0/x86_64-pc-linux-gnu/bits/error_constants.h:90:21: エラー: ‘ENOLINK’ was not declared in this scope no_link = ENOLINK, ^~~ /usr/include/c++/6.3.0/x86_64-pc-linux-gnu/bits/error_constants.h:93:30: エラー: ‘ENOLCK’ was not declared in this scope no_lock_available = ENOLCK, ^~ /usr/include/c++/6.3.0/x86_64-pc-linux-gnu/bits/error_constants.h:96:33: エラー: ‘ENODATA’ was not declared in this scope no_message_available = ENODATA, ^~~ /usr/include/c++/6.3.0/x86_64-pc-linux-gnu/bits/error_constants.h:99:24: エラー: ‘ENOMSG’ was not declared in this scope no_message = ENOMSG, ^~ /usr/include/c++/6.3.0/x86_64-pc-linux-gnu/bits/error_constants.h:100:31: エラー: ‘ENOPROTOOPT’ was not declared in this scope no_protocol_option = ENOPROTOOPT, ^~~ /usr/include/c++/6.3.0/x86_64-pc-linux-gnu/bits/error_constants.h:101:31: エラー: ‘ENOSPC’ was not declared in this scope no_space_on_device = ENOSPC, ^~ /usr/include/c++/6.3.0/x86_64-pc-linux-gnu/bits/error_constants.h:104:32: エラー: ‘ENOSR’ was not declared in this scope no_stream_resources = ENOSR, ^~~~~ /usr/include/c++/6.3.0/x86_64-pc-linux-gnu/bits/error_constants.h:107:37: エラー: ‘ENXIO’ was not declared in this scope no_such_device_or_address = ENXIO, ^~~~~ /usr/include/c++/6.3.0/x86_64-pc-linux-gnu/bits/error_constants.h:108:28: エラー: ‘ENODEV’ was not declared in this scope no_such_device = ENODEV, ^~ /usr/include/c++/6.3.0/x86_64-pc-linux-gnu/bits/error_constants.h:109:37: エラー: ‘ENOENT’ was not declared in this scope no_such_file_or_directory = ENOENT, ^~ /usr/include/c++/6.3.0/x86_64-pc-linux-gnu/bits/error_constants.h:110:28: エラー: ‘ESRCH’ was not declared in this scope no_such_process = ESRCH, ^~~~~ /usr/include/c++/6.3.0/x86_64-pc-linux-gnu/bits/error_constants.h:111:28: エラー: ‘ENOTDIR’ was not declared in this scope not_a_directory = ENOTDIR, ^~~ /usr/include/c++/6.3.0/x86_64-pc-linux-gnu/bits/error_constants.h:112:26: エラー: ‘ENOTSOCK’ was not declared in this scope not_a_socket = ENOTSOCK, ^~~~ /usr/include/c++/6.3.0/x86_64-pc-linux-gnu/bits/error_constants.h:115:26: エラー: ‘ENOSTR’ was not declared in this scope not_a_stream = ENOSTR, ^~ /usr/include/c++/6.3.0/x86_64-pc-linux-gnu/bits/error_constants.h:118:27: エラー: ‘ENOTCONN’ was not declared in this scope not_connected = ENOTCONN, ^~~~ /usr/include/c++/6.3.0/x86_64-pc-linux-gnu/bits/error_constants.h:119:30: エラー: ‘ENOMEM’ was not declared in this scope not_enough_memory = ENOMEM, ^~ In file included from /usr/include/errno.h:35:0, from /usr/include/c++/6.3.0/cerrno:42, from /usr/include/c++/6.3.0/ext/string_conversions.h:44, from /usr/include/c++/6.3.0/bits/basic_string.h:5402, from /usr/include/c++/6.3.0/string:52, from /usr/include/c++/6.3.0/bits/locale_classes.h:40, from /usr/include/c++/6.3.0/bits/ios_base.h:41, from /usr/include/c++/6.3.0/ios:42, from /usr/include/c++/6.3.0/ostream:38, from /usr/include/c++/6.3.0/iostream:39, from squek.cxx:2: /usr/include/c++/6.3.0/x86_64-pc-linux-gnu/bits/error_constants.h:122:27: エラー: ‘EOPNOTSUPP’ was not declared in this scope not_supported = ENOTSUP, ^ In file included from /usr/include/c++/6.3.0/system_error:39:0, from /usr/include/c++/6.3.0/bits/ios_base.h:46, from /usr/include/c++/6.3.0/ios:42, from /usr/include/c++/6.3.0/ostream:38, from /usr/include/c++/6.3.0/iostream:39, from squek.cxx:2: /usr/include/c++/6.3.0/x86_64-pc-linux-gnu/bits/error_constants.h:129:34: エラー: ‘EINPROGRESS’ was not declared in this scope operation_in_progress = EINPROGRESS, ^~~ /usr/include/c++/6.3.0/x86_64-pc-linux-gnu/bits/error_constants.h:130:35: エラー: ‘EPERM’ was not declared in this scope operation_not_permitted = EPERM, ^~~~~ /usr/include/c++/6.3.0/x86_64-pc-linux-gnu/bits/error_constants.h:131:35: エラー: ‘EOPNOTSUPP’ was not declared in this scope operation_not_supported = EOPNOTSUPP, ^~~~~~ /usr/include/c++/6.3.0/x86_64-pc-linux-gnu/bits/error_constants.h:132:34: エラー: ‘EWOULDBLOCK’ was not declared in this scope operation_would_block = EWOULDBLOCK, ^~~ /usr/include/c++/6.3.0/x86_64-pc-linux-gnu/bits/error_constants.h:138:30: エラー: ‘EACCES’ was not declared in this scope permission_denied = EACCES, ^~ /usr/include/c++/6.3.0/x86_64-pc-linux-gnu/bits/error_constants.h:141:28: エラー: ‘EPROTO’ was not declared in this scope protocol_error = EPROTO, ^~ /usr/include/c++/6.3.0/x86_64-pc-linux-gnu/bits/error_constants.h:144:35: エラー: ‘EPROTONOSUPPORT’ was not declared in this scope protocol_not_supported = EPROTONOSUPPORT, ^~~~~~~ /usr/include/c++/6.3.0/x86_64-pc-linux-gnu/bits/error_constants.h:145:34: エラー: ‘EROFS’ was not declared in this scope read_only_file_system = EROFS, ^~~~~ /usr/include/c++/6.3.0/x86_64-pc-linux-gnu/bits/error_constants.h:146:41: エラー: ‘EDEADLK’ was not declared in this scope resource_deadlock_would_occur = EDEADLK, ^~~ /usr/include/c++/6.3.0/x86_64-pc-linux-gnu/bits/error_constants.h:147:42: エラー: ‘EAGAIN’ was not declared in this scope resource_unavailable_try_again = EAGAIN, ^~ /usr/include/c++/6.3.0/x86_64-pc-linux-gnu/bits/error_constants.h:148:32: エラー: ‘ERANGE’ was not declared in this scope result_out_of_range = ERANGE, ^~ /usr/include/c++/6.3.0/x86_64-pc-linux-gnu/bits/error_constants.h:155:28: エラー: ‘ETIME’ was not declared in this scope stream_timeout = ETIME, ^~~~~ /usr/include/c++/6.3.0/x86_64-pc-linux-gnu/bits/error_constants.h:159:28: エラー: ‘ETXTBSY’ was not declared in this scope text_file_busy = ETXTBSY, ^~~ /usr/include/c++/6.3.0/x86_64-pc-linux-gnu/bits/error_constants.h:162:23: エラー: ‘ETIMEDOUT’ was not declared in this scope timed_out = ETIMEDOUT, ^~~~~ /usr/include/c++/6.3.0/x86_64-pc-linux-gnu/bits/error_constants.h:163:41: エラー: ‘ENFILE’ was not declared in this scope too_many_files_open_in_system = ENFILE, ^~ /usr/include/c++/6.3.0/x86_64-pc-linux-gnu/bits/error_constants.h:164:32: エラー: ‘EMFILE’ was not declared in this scope too_many_files_open = EMFILE, ^~ /usr/include/c++/6.3.0/x86_64-pc-linux-gnu/bits/error_constants.h:165:28: エラー: ‘EMLINK’ was not declared in this scope too_many_links = EMLINK, ^~ /usr/include/c++/6.3.0/x86_64-pc-linux-gnu/bits/error_constants.h:166:41: エラー: ‘ELOOP’ was not declared in this scope too_many_symbolic_link_levels = ELOOP, ^~~~~ /usr/include/c++/6.3.0/x86_64-pc-linux-gnu/bits/error_constants.h:169:28: エラー: ‘EOVERFLOW’ was not declared in this scope value_too_large = EOVERFLOW, ^~~~~ /usr/include/c++/6.3.0/x86_64-pc-linux-gnu/bits/error_constants.h:172:32: エラー: ‘EPROTOTYPE’ was not declared in this scope wrong_protocol_type = EPROTOTYPE ^~~~~~