digitalmars.D - [Newbie] GDC Install error at FreeBSD
- namefag (527/527) Aug 14 2018 I wanted to install gdc at my FreeBSD,
-
Iain Buclaw
(8/30)
Aug 14 2018
I wanted to install gdc at my FreeBSD, and it went peacefully until I typed "sudo gmake install" then this error happened: /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/stdlib.d:204:9: error: undefined identifier 'wchar_t' int mbtowc(scope wchar_t* pwc, scope const char* s, size_t n); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/stdlib.d:206:9: error: undefined identifier 'wchar_t' int wctomb(scope char* s, wchar_t wc); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/stdlib.d:208:9: error: undefined identifier 'wchar_t' size_t mbstowcs(scope wchar_t* pwcs, scope const char* s, size_t n); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/stdlib.d:210:9: error: undefined identifier 'wchar_t' size_t wcstombs(scope char* s, scope const wchar_t* pwcs, size_t n); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/time.d:116:9: error: undefined identifier 'clock_t', did you mean function 'clock'? clock_t clock(); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/time.d:118:9: error: undefined identifier 'time_t', did you mean function 'time'? double difftime(time_t time1, time_t time0); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/time.d:118:9: error: undefined identifier 'time_t', did you mean function 'time'? double difftime(time_t time1, time_t time0); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/time.d:120:9: error: undefined identifier 'time_t', did you mean function 'time'? time_t mktime(tm* timeptr); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/time.d:120:9: error: undefined identifier 'tm' time_t mktime(tm* timeptr); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/time.d:122:9: error: undefined identifier 'time_t', did you mean function 'time'? time_t time(time_t* timer); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/time.d:122:9: error: undefined identifier 'time_t', did you mean function 'time'? time_t time(time_t* timer); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/time.d:124:9: error: undefined identifier 'tm' char* asctime(in tm* timeptr); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/time.d:126:9: error: undefined identifier 'time_t', did you mean function 'time'? char* ctime(in time_t* timer); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/time.d:128:9: error: undefined identifier 'tm' tm* gmtime(in time_t* timer); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/time.d:128:9: error: undefined identifier 'time_t', did you mean function 'time'? tm* gmtime(in time_t* timer); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/time.d:130:9: error: undefined identifier 'tm' tm* localtime(in time_t* timer); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/time.d:130:9: error: undefined identifier 'time_t', did you mean function 'time'? tm* localtime(in time_t* timer); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/time.d:132:17: error: undefined identifier 'tm' system size_t strftime(char* s, size_t maxsize, in char* format, in tm* timeptr); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/wchar_.d:80:14: error: undefined identifier 'wchar_t' enum wchar_t WEOF = 0xFFFF; ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/wchar_.d:83:5: error: undefined identifier 'FILE' int fwprintf(FILE* stream, in wchar_t* format, ...); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/wchar_.d:83:5: error: undefined identifier 'wchar_t' int fwprintf(FILE* stream, in wchar_t* format, ...); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/wchar_.d:85:5: error: undefined identifier 'FILE' int fwscanf(FILE* stream, in wchar_t* format, ...); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/wchar_.d:85:5: error: undefined identifier 'wchar_t' int fwscanf(FILE* stream, in wchar_t* format, ...); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/wchar_.d:86:5: error: undefined identifier 'wchar_t' int swscanf(in wchar_t* s, in wchar_t* format, ...); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/wchar_.d:86:5: error: undefined identifier 'wchar_t' int swscanf(in wchar_t* s, in wchar_t* format, ...); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/wchar_.d:88:5: error: undefined identifier 'FILE' int vfwprintf(FILE* stream, in wchar_t* format, va_list arg); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/wchar_.d:88:5: error: undefined identifier 'wchar_t' int vfwprintf(FILE* stream, in wchar_t* format, va_list arg); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/wchar_.d:90:5: error: undefined identifier 'FILE' int vfwscanf(FILE* stream, in wchar_t* format, va_list arg); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/wchar_.d:90:5: error: undefined identifier 'wchar_t' int vfwscanf(FILE* stream, in wchar_t* format, va_list arg); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/wchar_.d:91:5: error: undefined identifier 'wchar_t' int vswscanf(in wchar_t* s, in wchar_t* format, va_list arg); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/wchar_.d:91:5: error: undefined identifier 'wchar_t' int vswscanf(in wchar_t* s, in wchar_t* format, va_list arg); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/wchar_.d:93:5: error: undefined identifier 'wchar_t' int vwprintf(in wchar_t* format, va_list arg); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/wchar_.d:95:5: error: undefined identifier 'wchar_t' int vwscanf(in wchar_t* format, va_list arg); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/wchar_.d:97:5: error: undefined identifier 'wchar_t' int wprintf(in wchar_t* format, ...); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/wchar_.d:99:5: error: undefined identifier 'wchar_t' int wscanf(in wchar_t* format, ...); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/wchar_.d:117:9: error: undefined identifier 'wchar_t' int swprintf(wchar_t* s, size_t n, in wchar_t* format, ...); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/wchar_.d:117:9: error: undefined identifier 'wchar_t' int swprintf(wchar_t* s, size_t n, in wchar_t* format, ...); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/wchar_.d:119:9: error: undefined identifier 'wchar_t' int vswprintf(wchar_t* s, size_t n, in wchar_t* format, va_list arg); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/wchar_.d:119:9: error: undefined identifier 'wchar_t' int vswprintf(wchar_t* s, size_t n, in wchar_t* format, va_list arg); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/wchar_.d:77:7: error: undefined identifier 'wchar_t' alias wchar_t wint_t; ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/wchar_.d:126:12: error: undefined identifier 'FILE' wint_t fgetwc(FILE* stream); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/wchar_.d:128:12: error: undefined identifier 'wchar_t' wint_t fputwc(wchar_t c, FILE* stream); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/wchar_.d:128:12: error: undefined identifier 'FILE' wint_t fputwc(wchar_t c, FILE* stream); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/wchar_.d:132:10: error: undefined identifier 'wchar_t' wchar_t* fgetws(wchar_t* s, int n, FILE* stream); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/wchar_.d:132:10: error: undefined identifier 'wchar_t' wchar_t* fgetws(wchar_t* s, int n, FILE* stream); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/wchar_.d:132:10: error: undefined identifier 'FILE' wchar_t* fgetws(wchar_t* s, int n, FILE* stream); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/wchar_.d:134:10: error: undefined identifier 'wchar_t' int fputws(in wchar_t* s, FILE* stream); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/wchar_.d:134:10: error: undefined identifier 'FILE' int fputws(in wchar_t* s, FILE* stream); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/wchar_.d:142:12: error: undefined identifier 'wchar_t' wint_t putwchar(wchar_t c) { return fputwc(c,stdout); } ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/wchar_.d:144:12: error: undefined identifier 'FILE' wint_t getwc(FILE* stream) { return fgetwc(stream); } ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/wchar_.d:146:12: error: undefined identifier 'wchar_t' wint_t putwc(wchar_t c, FILE* stream) { return fputwc(c, stream); } ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/wchar_.d:146:12: error: undefined identifier 'FILE' wint_t putwc(wchar_t c, FILE* stream) { return fputwc(c, stream); } ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/wchar_.d:153:12: error: undefined identifier 'FILE' wint_t ungetwc(wint_t c, FILE* stream); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/wchar_.d:162:16: error: undefined identifier 'FILE' int fwide(FILE* stream, int mode); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/wchar_.d:167:9: error: undefined identifier 'wchar_t' double wcstod(in wchar_t* nptr, wchar_t** endptr); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/wchar_.d:167:9: error: undefined identifier 'wchar_t' double wcstod(in wchar_t* nptr, wchar_t** endptr); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/wchar_.d:169:9: error: undefined identifier 'wchar_t' float wcstof(in wchar_t* nptr, wchar_t** endptr); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/wchar_.d:169:9: error: undefined identifier 'wchar_t' float wcstof(in wchar_t* nptr, wchar_t** endptr); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/wchar_.d:171:9: error: undefined identifier 'wchar_t' real wcstold(in wchar_t* nptr, wchar_t** endptr); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/wchar_.d:171:9: error: undefined identifier 'wchar_t' real wcstold(in wchar_t* nptr, wchar_t** endptr); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/wchar_.d:173:9: error: undefined identifier 'wchar_t' c_long wcstol(in wchar_t* nptr, wchar_t** endptr, int base); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/wchar_.d:173:9: error: undefined identifier 'wchar_t' c_long wcstol(in wchar_t* nptr, wchar_t** endptr, int base); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/wchar_.d:175:9: error: undefined identifier 'wchar_t' long wcstoll(in wchar_t* nptr, wchar_t** endptr, int base); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/wchar_.d:175:9: error: undefined identifier 'wchar_t' long wcstoll(in wchar_t* nptr, wchar_t** endptr, int base); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/wchar_.d:177:9: error: undefined identifier 'wchar_t' c_ulong wcstoul(in wchar_t* nptr, wchar_t** endptr, int base); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/wchar_.d:177:9: error: undefined identifier 'wchar_t' c_ulong wcstoul(in wchar_t* nptr, wchar_t** endptr, int base); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/wchar_.d:179:9: error: undefined identifier 'wchar_t' ulong wcstoull(in wchar_t* nptr, wchar_t** endptr, int base); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/wchar_.d:179:9: error: undefined identifier 'wchar_t' ulong wcstoull(in wchar_t* nptr, wchar_t** endptr, int base); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/wchar_.d:182:10: error: undefined identifier 'wchar_t' wchar_t* wcscpy(wchar_t* s1, in wchar_t* s2); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/wchar_.d:182:10: error: undefined identifier 'wchar_t' wchar_t* wcscpy(wchar_t* s1, in wchar_t* s2); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/wchar_.d:182:10: error: undefined identifier 'wchar_t' wchar_t* wcscpy(wchar_t* s1, in wchar_t* s2); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/wchar_.d:184:10: error: undefined identifier 'wchar_t' wchar_t* wcsncpy(wchar_t* s1, in wchar_t* s2, size_t n); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/wchar_.d:184:10: error: undefined identifier 'wchar_t' wchar_t* wcsncpy(wchar_t* s1, in wchar_t* s2, size_t n); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/wchar_.d:184:10: error: undefined identifier 'wchar_t' wchar_t* wcsncpy(wchar_t* s1, in wchar_t* s2, size_t n); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/wchar_.d:186:10: error: undefined identifier 'wchar_t' wchar_t* wcscat(wchar_t* s1, in wchar_t* s2); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/wchar_.d:186:10: error: undefined identifier 'wchar_t' wchar_t* wcscat(wchar_t* s1, in wchar_t* s2); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/wchar_.d:186:10: error: undefined identifier 'wchar_t' wchar_t* wcscat(wchar_t* s1, in wchar_t* s2); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/wchar_.d:188:10: error: undefined identifier 'wchar_t' wchar_t* wcsncat(wchar_t* s1, in wchar_t* s2, size_t n); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/wchar_.d:188:10: error: undefined identifier 'wchar_t' wchar_t* wcsncat(wchar_t* s1, in wchar_t* s2, size_t n); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/wchar_.d:188:10: error: undefined identifier 'wchar_t' wchar_t* wcsncat(wchar_t* s1, in wchar_t* s2, size_t n); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/wchar_.d:190:10: error: undefined identifier 'wchar_t' int wcscmp(in wchar_t* s1, in wchar_t* s2); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/wchar_.d:190:10: error: undefined identifier 'wchar_t' int wcscmp(in wchar_t* s1, in wchar_t* s2); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/wchar_.d:192:10: error: undefined identifier 'wchar_t' int wcscoll(in wchar_t* s1, in wchar_t* s2); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/wchar_.d:192:10: error: undefined identifier 'wchar_t' int wcscoll(in wchar_t* s1, in wchar_t* s2); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/wchar_.d:194:10: error: undefined identifier 'wchar_t' int wcsncmp(in wchar_t* s1, in wchar_t* s2, size_t n); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/wchar_.d:194:10: error: undefined identifier 'wchar_t' int wcsncmp(in wchar_t* s1, in wchar_t* s2, size_t n); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/wchar_.d:196:10: error: undefined identifier 'wchar_t' size_t wcsxfrm(wchar_t* s1, in wchar_t* s2, size_t n); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/wchar_.d:196:10: error: undefined identifier 'wchar_t' size_t wcsxfrm(wchar_t* s1, in wchar_t* s2, size_t n); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/wchar_.d:198:10: error: undefined identifier 'wchar_t' wchar_t* wcschr(in wchar_t* s, wchar_t c); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/wchar_.d:198:10: error: undefined identifier 'wchar_t' wchar_t* wcschr(in wchar_t* s, wchar_t c); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/wchar_.d:198:10: error: undefined identifier 'wchar_t' wchar_t* wcschr(in wchar_t* s, wchar_t c); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/wchar_.d:200:10: error: undefined identifier 'wchar_t' size_t wcscspn(in wchar_t* s1, in wchar_t* s2); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/wchar_.d:200:10: error: undefined identifier 'wchar_t' size_t wcscspn(in wchar_t* s1, in wchar_t* s2); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/wchar_.d:202:10: error: undefined identifier 'wchar_t' wchar_t* wcspbrk(in wchar_t* s1, in wchar_t* s2); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/wchar_.d:202:10: error: undefined identifier 'wchar_t' wchar_t* wcspbrk(in wchar_t* s1, in wchar_t* s2); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/wchar_.d:202:10: error: undefined identifier 'wchar_t' wchar_t* wcspbrk(in wchar_t* s1, in wchar_t* s2); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/wchar_.d:204:10: error: undefined identifier 'wchar_t' wchar_t* wcsrchr(in wchar_t* s, wchar_t c); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/wchar_.d:204:10: error: undefined identifier 'wchar_t' wchar_t* wcsrchr(in wchar_t* s, wchar_t c); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/wchar_.d:204:10: error: undefined identifier 'wchar_t' wchar_t* wcsrchr(in wchar_t* s, wchar_t c); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/wchar_.d:206:10: error: undefined identifier 'wchar_t' size_t wcsspn(in wchar_t* s1, in wchar_t* s2); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/wchar_.d:206:10: error: undefined identifier 'wchar_t' size_t wcsspn(in wchar_t* s1, in wchar_t* s2); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/wchar_.d:208:10: error: undefined identifier 'wchar_t' wchar_t* wcsstr(in wchar_t* s1, in wchar_t* s2); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/wchar_.d:208:10: error: undefined identifier 'wchar_t' wchar_t* wcsstr(in wchar_t* s1, in wchar_t* s2); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/wchar_.d:208:10: error: undefined identifier 'wchar_t' wchar_t* wcsstr(in wchar_t* s1, in wchar_t* s2); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/wchar_.d:210:10: error: undefined identifier 'wchar_t' wchar_t* wcstok(wchar_t* s1, in wchar_t* s2, wchar_t** ptr); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/wchar_.d:210:10: error: undefined identifier 'wchar_t' wchar_t* wcstok(wchar_t* s1, in wchar_t* s2, wchar_t** ptr); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/wchar_.d:210:10: error: undefined identifier 'wchar_t' wchar_t* wcstok(wchar_t* s1, in wchar_t* s2, wchar_t** ptr); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/wchar_.d:210:10: error: undefined identifier 'wchar_t' wchar_t* wcstok(wchar_t* s1, in wchar_t* s2, wchar_t** ptr); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/wchar_.d:212:10: error: undefined identifier 'wchar_t' size_t wcslen(in wchar_t* s); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/wchar_.d:215:10: error: undefined identifier 'wchar_t' wchar_t* wmemchr(in wchar_t* s, wchar_t c, size_t n); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/wchar_.d:215:10: error: undefined identifier 'wchar_t' wchar_t* wmemchr(in wchar_t* s, wchar_t c, size_t n); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/wchar_.d:215:10: error: undefined identifier 'wchar_t' wchar_t* wmemchr(in wchar_t* s, wchar_t c, size_t n); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/wchar_.d:217:10: error: undefined identifier 'wchar_t' int wmemcmp(in wchar_t* s1, in wchar_t* s2, size_t n); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/wchar_.d:217:10: error: undefined identifier 'wchar_t' int wmemcmp(in wchar_t* s1, in wchar_t* s2, size_t n); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/wchar_.d:219:10: error: undefined identifier 'wchar_t' wchar_t* wmemcpy(wchar_t* s1, in wchar_t* s2, size_t n); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/wchar_.d:219:10: error: undefined identifier 'wchar_t' wchar_t* wmemcpy(wchar_t* s1, in wchar_t* s2, size_t n); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/wchar_.d:219:10: error: undefined identifier 'wchar_t' wchar_t* wmemcpy(wchar_t* s1, in wchar_t* s2, size_t n); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/wchar_.d:221:10: error: undefined identifier 'wchar_t' wchar_t* wmemmove(wchar_t*s1, in wchar_t* s2, size_t n); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/wchar_.d:221:10: error: undefined identifier 'wchar_t' wchar_t* wmemmove(wchar_t*s1, in wchar_t* s2, size_t n); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/wchar_.d:221:10: error: undefined identifier 'wchar_t' wchar_t* wmemmove(wchar_t*s1, in wchar_t* s2, size_t n); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/wchar_.d:223:10: error: undefined identifier 'wchar_t' wchar_t* wmemset(wchar_t* s, wchar_t c, size_t n); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/wchar_.d:223:10: error: undefined identifier 'wchar_t' wchar_t* wmemset(wchar_t* s, wchar_t c, size_t n); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/wchar_.d:223:10: error: undefined identifier 'wchar_t' wchar_t* wmemset(wchar_t* s, wchar_t c, size_t n); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/wchar_.d:226:8: error: undefined identifier 'wchar_t' size_t wcsftime(wchar_t* s, size_t maxsize, in wchar_t* format, in tm* timeptr); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/wchar_.d:226:8: error: undefined identifier 'wchar_t' size_t wcsftime(wchar_t* s, size_t maxsize, in wchar_t* format, in tm* timeptr); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/wchar_.d:226:8: error: undefined identifier 'tm' size_t wcsftime(wchar_t* s, size_t maxsize, in wchar_t* format, in tm* timeptr); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/wchar_.d:254:8: error: undefined identifier 'wchar_t' size_t mbrtowc(wchar_t* pwc, in char* s, size_t n, mbstate_t* ps); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/wchar_.d:256:8: error: undefined identifier 'wchar_t' size_t wcrtomb(char* s, wchar_t wc, mbstate_t* ps); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/wchar_.d:258:8: error: undefined identifier 'wchar_t' size_t mbsrtowcs(wchar_t* dst, in char** src, size_t len, mbstate_t* ps); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/wchar_.d:260:8: error: undefined identifier 'wchar_t' size_t wcsrtombs(char* dst, in wchar_t** src, size_t len, mbstate_t* ps); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/stdint.d:232:14: error: undefined identifier 'wchar_t' enum wchar_t WCHAR_MIN = wchar_t.min; ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/stdint.d:232:26: error: undefined identifier 'wchar_t' enum wchar_t WCHAR_MIN = wchar_t.min; ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/stdint.d:234:14: error: undefined identifier 'wchar_t' enum wchar_t WCHAR_MAX = wchar_t.max; ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/stdint.d:234:26: error: undefined identifier 'wchar_t' enum wchar_t WCHAR_MAX = wchar_t.max; ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/stdio.d:931:16: error: undefined identifier 'FILE' trusted FILE* tmpfile(); // No unsafe pointer manipulation. ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/stdio.d:936:7: error: undefined identifier 'FILE' int fclose(FILE* stream); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/stdio.d:942:11: error: undefined identifier 'FILE' int fflush(FILE* stream); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/stdio.d:946:7: error: undefined identifier 'FILE' FILE* fopen(scope const char* filename, scope const char* mode); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/stdio.d:948:7: error: undefined identifier 'FILE' FILE* freopen(scope const char* filename, scope const char* mode, FILE* stream); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/stdio.d:948:7: error: undefined identifier 'FILE' FILE* freopen(scope const char* filename, scope const char* mode, FILE* stream); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/stdio.d:951:6: error: undefined identifier 'FILE' void setbuf(FILE* stream, char* buf); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/stdio.d:953:6: error: undefined identifier 'FILE' int setvbuf(FILE* stream, char* buf, int mode, size_t size); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/stdio.d:1022:9: error: undefined identifier 'FILE' int fprintf(FILE* stream, scope const char* format, ...); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/stdio.d:1024:9: error: undefined identifier 'FILE' int fscanf(FILE* stream, scope const char* format, ...); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/stdio.d:1030:9: error: undefined identifier 'FILE' int vfprintf(FILE* stream, scope const char* format, va_list arg); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/stdio.d:1032:9: error: undefined identifier 'FILE' int vfscanf(FILE* stream, scope const char* format, va_list arg); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/stdio.d:1051:9: error: undefined identifier 'FILE' int fgetc(FILE* stream); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/stdio.d:1053:9: error: undefined identifier 'FILE' int fputc(int c, FILE* stream); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/stdio.d:1057:7: error: undefined identifier 'FILE' char* fgets(char* s, int n, FILE* stream); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/stdio.d:1059:7: error: undefined identifier 'FILE' int fputs(scope const char* s, FILE* stream); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/stdio.d:1073:9: error: undefined identifier 'FILE' int getc(FILE* stream) { return fgetc(stream); } ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/stdio.d:1075:9: error: undefined identifier 'FILE' int putc(int c, FILE* stream) { return fputc(c,stream); } ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/stdio.d:1079:14: error: undefined identifier 'FILE' trusted int ungetc(int c, FILE* stream); // No unsafe pointer manipulation. ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/stdio.d:1082:8: error: undefined identifier 'FILE' size_t fread(scope void* ptr, size_t size, size_t nmemb, FILE* stream); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/stdio.d:1084:8: error: undefined identifier 'FILE' size_t fwrite(scope const void* ptr, size_t size, size_t nmemb, FILE* stream); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/stdio.d:1090:9: error: undefined identifier 'FILE' int fgetpos(FILE* stream, scope fpos_t * pos); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/stdio.d:1090:9: error: undefined identifier 'fpos_t' int fgetpos(FILE* stream, scope fpos_t * pos); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/stdio.d:1092:9: error: undefined identifier 'FILE' int fsetpos(FILE* stream, scope const fpos_t* pos); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/stdio.d:1092:9: error: undefined identifier 'fpos_t' int fsetpos(FILE* stream, scope const fpos_t* pos); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/stdio.d:1095:12: error: undefined identifier 'FILE' int fseek(FILE* stream, c_long offset, int whence); ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/stdio.d:1097:12: error: undefined identifier 'FILE' c_long ftell(FILE* stream); ^ ../../../../gcc-7.3.0/libphobos/libdruntime/core/demangle.d:2622:16: error: module core.stdc.stdio import 'snprintf' not found, did you mean function 'sprintf'? import core.stdc.stdio : snprintf; ^ /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/stdlib.d:82:6: error: static assert "Unsupported platform" else static assert( false, "Unsupported platform" ); the last line was such confusing, 'cause when I saw stdlib.d file with vi, it said: 74 version(Windows) enum RAND_MAX = 0x7fff; 75 else version(CRuntime_Glibc) enum RAND_MAX = 0x7fffffff; 76 else version(Darwin) enum RAND_MAX = 0x7fffffff; 77 else version(FreeBSD) enum RAND_MAX = 0x7fffffff; 78 else version(NetBSD) enum RAND_MAX = 0x7fffffff; 79 else version(OpenBSD) enum RAND_MAX = 0x7fffffff; 80 else version(Solaris) enum RAND_MAX = 0x7fff; 81 else version(CRuntime_Bionic) enum RAND_MAX = 0x7fffffff; 82 else static assert( false, "Unsupported platform" ); as you see, it HAS FreeBSD support! then why it says "Unsupported platform"?
Aug 14 2018
On 14 August 2018 at 09:27, namefag via Digitalmars-d <digitalmars-d puremagic.com> wrote:I wanted to install gdc at my FreeBSD, and it went peacefully until I typed "sudo gmake install" then this error happened: /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/stdlib.d:204:9: error: undefined identifier 'wchar_t' int mbtowc(scope wchar_t* pwc, scope const char* s, size_t n); ^<snip>/usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/stdlib.d:82:6: error: static assert "Unsupported platform" else static assert( false, "Unsupported platform" ); the last line was such confusing, 'cause when I saw stdlib.d file with vi, it said: 74 version(Windows) enum RAND_MAX = 0x7fff; 75 else version(CRuntime_Glibc) enum RAND_MAX = 0x7fffffff; 76 else version(Darwin) enum RAND_MAX = 0x7fffffff; 77 else version(FreeBSD) enum RAND_MAX = 0x7fffffff; 78 else version(NetBSD) enum RAND_MAX = 0x7fffffff; 79 else version(OpenBSD) enum RAND_MAX = 0x7fffffff; 80 else version(Solaris) enum RAND_MAX = 0x7fff; 81 else version(CRuntime_Bionic) enum RAND_MAX = 0x7fffffff; 82 else static assert( false, "Unsupported platform" ); as you see, it HAS FreeBSD support! then why it says "Unsupported platform"?The compiler doesn't predefine the FreeBSD version as this is currently an untested configuration. How readily available are you to patch gcc? What you'll need to do is create a new source file, and hook it into config.gcc for the FreeBSD path.
Aug 14 2018