kawasin73 / kos-sample Goto Github PK
View Code? Open in Web Editor NEW30日でできる! OS自作入門 を参考にした OS を作る
License: MIT License
30日でできる! OS自作入門 を参考にした OS を作る
License: MIT License
https://github.com/HariboteOS/tolsrc をコンパイルする。
$ make GCC=/usr/local/Cellar/gcc/8.3.0_2/bin/gcc-8
しかし、リンクがうまくできず以下のワーニングメッセージとともにエラーで失敗する。
ld: warning: The i386 architecture is deprecated for macOS (remove from the Xcode build setting: ARCHS)
$ make GCC=/usr/local/Cellar/gcc/8.3.0_2/bin/gcc-8
make -C go_0023s
make -C gcc
make -r gocpp0 gocc1 gocc1plus
/usr/local/Cellar/gcc/8.3.0_2/bin/gcc-8 -c -Os -m32 -DIN_GCC -DHAVE_CONFIG_H -I../include -o cppmain.o cppmain.c
/usr/local/Cellar/gcc/8.3.0_2/bin/gcc-8 -c -Os -m32 -DIN_GCC -DHAVE_CONFIG_H -I../include -o intl.o intl.c
/usr/local/Cellar/gcc/8.3.0_2/bin/gcc-8 -c -Os -m32 -DIN_GCC -DHAVE_CONFIG_H -I../include -o cpplib.o cpplib.c
cpplib.c:204:18: warning: initialization of 'const U_CHAR *' {aka 'const unsigned char *'} from incompatible pointer type 'unsigned int *' [-Wincompatible-pointer-types]
do_linemarker, U"#", 1, KANDR, IN_I
^~~~
cpplib.c:204:18: note: (near initialization for 'linemarker_dir.name')
cpplib.c: In function 'parse_include':
cpplib.c:566:9: warning: assignment to 'const unsigned char *' from incompatible pointer type 'unsigned int *' [-Wincompatible-pointer-types]
dir = U"pragma dependency";
^
/usr/local/Cellar/gcc/8.3.0_2/bin/gcc-8 -c -Os -m32 -DIN_GCC -DHAVE_CONFIG_H -I../include -o cpplex.o cpplex.c
cpplex.c:59:3: warning: initialization of 'const unsigned char *' from incompatible pointer type 'unsigned int *' [-Wincompatible-pointer-types]
{ U"%:", U"%:%:", U"<:", U":>", U"<%", U"%>" };
^~~~~
cpplex.c:59:3: note: (near initialization for 'digraph_spellings[0]')
cpplex.c:59:10: warning: initialization of 'const unsigned char *' from incompatible pointer type 'unsigned int *' [-Wincompatible-pointer-types]
{ U"%:", U"%:%:", U"<:", U":>", U"<%", U"%>" };
^~~~~~~
cpplex.c:59:10: note: (near initialization for 'digraph_spellings[1]')
cpplex.c:59:19: warning: initialization of 'const unsigned char *' from incompatible pointer type 'unsigned int *' [-Wincompatible-pointer-types]
{ U"%:", U"%:%:", U"<:", U":>", U"<%", U"%>" };
^~~~~
cpplex.c:59:19: note: (near initialization for 'digraph_spellings[2]')
cpplex.c:59:26: warning: initialization of 'const unsigned char *' from incompatible pointer type 'unsigned int *' [-Wincompatible-pointer-types]
{ U"%:", U"%:%:", U"<:", U":>", U"<%", U"%>" };
^~~~~
cpplex.c:59:26: note: (near initialization for 'digraph_spellings[3]')
cpplex.c:59:33: warning: initialization of 'const unsigned char *' from incompatible pointer type 'unsigned int *' [-Wincompatible-pointer-types]
{ U"%:", U"%:%:", U"<:", U":>", U"<%", U"%>" };
^~~~~
cpplex.c:59:33: note: (near initialization for 'digraph_spellings[4]')
cpplex.c:59:40: warning: initialization of 'const unsigned char *' from incompatible pointer type 'unsigned int *' [-Wincompatible-pointer-types]
{ U"%:", U"%:%:", U"<:", U":>", U"<%", U"%>" };
^~~~~
cpplex.c:59:40: note: (near initialization for 'digraph_spellings[5]')
/usr/local/Cellar/gcc/8.3.0_2/bin/gcc-8 -c -Os -m32 -DIN_GCC -DHAVE_CONFIG_H -I../include -o cppmacro.o cppmacro.c
/usr/local/Cellar/gcc/8.3.0_2/bin/gcc-8 -c -Os -m32 -DIN_GCC -DHAVE_CONFIG_H -I../include -o cppexp.o cppexp.c
/usr/local/Cellar/gcc/8.3.0_2/bin/gcc-8 -c -Os -m32 -DIN_GCC -DHAVE_CONFIG_H -I../include -o cppfiles.o cppfiles.c
/usr/local/Cellar/gcc/8.3.0_2/bin/gcc-8 -c -Os -m32 -DIN_GCC -DHAVE_CONFIG_H -I../include -o cpphash.o cpphash.c
/usr/local/Cellar/gcc/8.3.0_2/bin/gcc-8 -c -Os -m32 -DIN_GCC -DHAVE_CONFIG_H -I../include -o cpperror.o cpperror.c
/usr/local/Cellar/gcc/8.3.0_2/bin/gcc-8 -c -Os -m32 -DIN_GCC -DHAVE_CONFIG_H -I../include -o cppinit.o cppinit.c
/usr/local/Cellar/gcc/8.3.0_2/bin/gcc-8 -c -Os -m32 -DIN_GCC -DHAVE_CONFIG_H -I../include -o cppdefault.o cppdefault.c
/usr/local/Cellar/gcc/8.3.0_2/bin/gcc-8 -c -Os -m32 -DIN_GCC -DHAVE_CONFIG_H -I../include -o line-map.o line-map.c
/usr/local/Cellar/gcc/8.3.0_2/bin/gcc-8 -c -Os -m32 -DIN_GCC -DHAVE_CONFIG_H -I../include -o mkdeps.o mkdeps.c
/usr/local/Cellar/gcc/8.3.0_2/bin/gcc-8 -c -Os -m32 -DIN_GCC -DHAVE_CONFIG_H -I../include -o prefix.o prefix.c
/usr/local/Cellar/gcc/8.3.0_2/bin/gcc-8 -c -Os -m32 -DIN_GCC -DHAVE_CONFIG_H -I../include -o mbchar.o mbchar.c
ar rcs libcpp.lib cpplib.o cpplex.o cppmacro.o cppexp.o cppfiles.o cpphash.o cpperror.o cppinit.o cppdefault.o line-map.o mkdeps.o prefix.o mbchar.o
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: libcpp.lib(mbchar.o) has no symbols
/usr/local/Cellar/gcc/8.3.0_2/bin/gcc-8 -c -Os -m32 -DIN_GCC -DHAVE_CONFIG_H -I../include -o hashtable.o hashtable.c
/usr/local/Cellar/gcc/8.3.0_2/bin/gcc-8 -c -Os -m32 -DIN_GCC -DHAVE_CONFIG_H -I../include -o version.o version.c
make -C ../libiberty
make -r libiberty.lib
/usr/local/Cellar/gcc/8.3.0_2/bin/gcc-8 -c -Os -m32 -DIN_GCC -DHAVE_CONFIG_H -I../include -o alloca.o alloca.c
/usr/local/Cellar/gcc/8.3.0_2/bin/gcc-8 -c -Os -m32 -DIN_GCC -DHAVE_CONFIG_H -I../include -o argv.o argv.c
/usr/local/Cellar/gcc/8.3.0_2/bin/gcc-8 -c -Os -m32 -DIN_GCC -DHAVE_CONFIG_H -I../include -o choose-temp.o choose-temp.c
choose-temp.c: In function 'choose_temp_base':
choose-temp.c:70:3: warning: implicit declaration of function 'mktemp'; did you mean 'memcmp'? [-Wimplicit-function-declaration]
mktemp (temp_filename);
^~~~~~
memcmp
/usr/local/Cellar/gcc/8.3.0_2/bin/gcc-8 -c -Os -m32 -DIN_GCC -DHAVE_CONFIG_H -I../include -o concat.o concat.c
/usr/local/Cellar/gcc/8.3.0_2/bin/gcc-8 -c -Os -m32 -DIN_GCC -DHAVE_CONFIG_H -I../include -o dyn-string.o dyn-string.c
/usr/local/Cellar/gcc/8.3.0_2/bin/gcc-8 -c -Os -m32 -DIN_GCC -DHAVE_CONFIG_H -I../include -o fdmatch.o fdmatch.c
/usr/local/Cellar/gcc/8.3.0_2/bin/gcc-8 -c -Os -m32 -DIN_GCC -DHAVE_CONFIG_H -I../include -o fibheap.o fibheap.c
/usr/local/Cellar/gcc/8.3.0_2/bin/gcc-8 -c -Os -m32 -DIN_GCC -DHAVE_CONFIG_H -I../include -o floatformat.o floatformat.c
/usr/local/Cellar/gcc/8.3.0_2/bin/gcc-8 -c -Os -m32 -DIN_GCC -DHAVE_CONFIG_H -I../include -o fnmatch.o fnmatch.c
/usr/local/Cellar/gcc/8.3.0_2/bin/gcc-8 -c -Os -m32 -DIN_GCC -DHAVE_CONFIG_H -I../include -o getopt.o getopt.c
/usr/local/Cellar/gcc/8.3.0_2/bin/gcc-8 -c -Os -m32 -DIN_GCC -DHAVE_CONFIG_H -I../include -o getopt1.o getopt1.c
/usr/local/Cellar/gcc/8.3.0_2/bin/gcc-8 -c -Os -m32 -DIN_GCC -DHAVE_CONFIG_H -I../include -o getpwd.o getpwd.c
/usr/local/Cellar/gcc/8.3.0_2/bin/gcc-8 -c -Os -m32 -DIN_GCC -DHAVE_CONFIG_H -I../include -o hashtab.o hashtab.c
/usr/local/Cellar/gcc/8.3.0_2/bin/gcc-8 -c -Os -m32 -DIN_GCC -DHAVE_CONFIG_H -I../include -o hex.o hex.c
/usr/local/Cellar/gcc/8.3.0_2/bin/gcc-8 -c -Os -m32 -DIN_GCC -DHAVE_CONFIG_H -I../include -o lbasename.o lbasename.c
/usr/local/Cellar/gcc/8.3.0_2/bin/gcc-8 -c -Os -m32 -DIN_GCC -DHAVE_CONFIG_H -I../include -o make-temp-file.o make-temp-file.c
make-temp-file.c: In function 'try':
make-temp-file.c:68:10: warning: implicit declaration of function 'access' [-Wimplicit-function-declaration]
&& access (dir, R_OK | W_OK | X_OK) == 0)
^~~~~~
make-temp-file.c: In function 'make_temp_file':
make-temp-file.c:171:7: warning: implicit declaration of function 'close'; did you mean 'fclose'? [-Wimplicit-function-declaration]
if (close (fd))
^~~~~
fclose
/usr/local/Cellar/gcc/8.3.0_2/bin/gcc-8 -c -Os -m32 -DIN_GCC -DHAVE_CONFIG_H -I../include -o objalloc.o objalloc.c
/usr/local/Cellar/gcc/8.3.0_2/bin/gcc-8 -c -Os -m32 -DIN_GCC -DHAVE_CONFIG_H -I../include -o obstack.o obstack.c
/usr/local/Cellar/gcc/8.3.0_2/bin/gcc-8 -c -Os -m32 -DIN_GCC -DHAVE_CONFIG_H -I../include -o partition.o partition.c
/usr/local/Cellar/gcc/8.3.0_2/bin/gcc-8 -c -Os -m32 -DIN_GCC -DHAVE_CONFIG_H -I../include -o safe-ctype.o safe-ctype.c
/usr/local/Cellar/gcc/8.3.0_2/bin/gcc-8 -c -Os -m32 -DIN_GCC -DHAVE_CONFIG_H -I../include -o sort.o sort.c
/usr/local/Cellar/gcc/8.3.0_2/bin/gcc-8 -c -Os -m32 -DIN_GCC -DHAVE_CONFIG_H -I../include -o spaces.o spaces.c
/usr/local/Cellar/gcc/8.3.0_2/bin/gcc-8 -c -Os -m32 -DIN_GCC -DHAVE_CONFIG_H -I../include -o splay-tree.o splay-tree.c
/usr/local/Cellar/gcc/8.3.0_2/bin/gcc-8 -c -Os -m32 -DIN_GCC -DHAVE_CONFIG_H -I../include -o strerror.o strerror.c
strerror.c: In function 'strerror':
strerror.c:667:10: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
return (msg);
^
/usr/local/Cellar/gcc/8.3.0_2/bin/gcc-8 -c -Os -m32 -DIN_GCC -DHAVE_CONFIG_H -I../include -o strsignal.o strsignal.c
/usr/local/Cellar/gcc/8.3.0_2/bin/gcc-8 -c -Os -m32 -DIN_GCC -DHAVE_CONFIG_H -I../include -o ternary.o ternary.c
/usr/local/Cellar/gcc/8.3.0_2/bin/gcc-8 -c -Os -m32 -DIN_GCC -DHAVE_CONFIG_H -I../include -o xatexit.o xatexit.c
/usr/local/Cellar/gcc/8.3.0_2/bin/gcc-8 -c -Os -m32 -DIN_GCC -DHAVE_CONFIG_H -I../include -o xexit.o xexit.c
/usr/local/Cellar/gcc/8.3.0_2/bin/gcc-8 -c -Os -m32 -DIN_GCC -DHAVE_CONFIG_H -I../include -o xmalloc.o xmalloc.c
/usr/local/Cellar/gcc/8.3.0_2/bin/gcc-8 -c -Os -m32 -DIN_GCC -DHAVE_CONFIG_H -I../include -o xmemdup.o xmemdup.c
/usr/local/Cellar/gcc/8.3.0_2/bin/gcc-8 -c -Os -m32 -DIN_GCC -DHAVE_CONFIG_H -I../include -o xstrdup.o xstrdup.c
/usr/local/Cellar/gcc/8.3.0_2/bin/gcc-8 -c -Os -m32 -DIN_GCC -DHAVE_CONFIG_H -I../include -o xstrerror.o xstrerror.c
/usr/local/Cellar/gcc/8.3.0_2/bin/gcc-8 -c -Os -m32 -DIN_GCC -DHAVE_CONFIG_H -I../include -o regex.o regex.c
/usr/local/Cellar/gcc/8.3.0_2/bin/gcc-8 -c -Os -m32 -DIN_GCC -DHAVE_CONFIG_H -I../include -o cplus-dem.o cplus-dem.c
/usr/local/Cellar/gcc/8.3.0_2/bin/gcc-8 -c -Os -m32 -DIN_GCC -DHAVE_CONFIG_H -I../include -o cp-demangle.o cp-demangle.c
/usr/local/Cellar/gcc/8.3.0_2/bin/gcc-8 -c -Os -m32 -DIN_GCC -DHAVE_CONFIG_H -I../include -o md5.o md5.c
/usr/local/Cellar/gcc/8.3.0_2/bin/gcc-8 -c -Os -m32 -DIN_GCC -DHAVE_CONFIG_H -I../include -o asprintf.o asprintf.c
/usr/local/Cellar/gcc/8.3.0_2/bin/gcc-8 -c -Os -m32 -DIN_GCC -DHAVE_CONFIG_H -I../include -o basename.o basename.c
/usr/local/Cellar/gcc/8.3.0_2/bin/gcc-8 -c -Os -m32 -DIN_GCC -DHAVE_CONFIG_H -I../include -o insque.o insque.c
/usr/local/Cellar/gcc/8.3.0_2/bin/gcc-8 -c -Os -m32 -DIN_GCC -DHAVE_CONFIG_H -I../include -o sigsetmask.o sigsetmask.c
/usr/local/Cellar/gcc/8.3.0_2/bin/gcc-8 -c -Os -m32 -DIN_GCC -DHAVE_CONFIG_H -I../include -o vasprintf.o vasprintf.c
/usr/local/Cellar/gcc/8.3.0_2/bin/gcc-8 -c -Os -m32 -DIN_GCC -DHAVE_CONFIG_H -I../include -o strcasecmp.o strcasecmp.c
/usr/local/Cellar/gcc/8.3.0_2/bin/gcc-8 -c -Os -m32 -DIN_GCC -DHAVE_CONFIG_H -I../include -o strncasecmp.o strncasecmp.c
strncasecmp.c: In function 'strncasecmp':
strncasecmp.c:73:18: warning: argument 'n' doesn't match built-in prototype
register size_t n;
^
ar rcs libiberty.lib alloca.o argv.o choose-temp.o concat.o dyn-string.o fdmatch.o fibheap.o floatformat.o fnmatch.o getopt.o getopt1.o getpwd.o hashtab.o hex.o lbasename.o make-temp-file.o objalloc.o obstack.o partition.o safe-ctype.o sort.o spaces.o splay-tree.o strerror.o strsignal.o ternary.o xatexit.o xexit.o xmalloc.o xmemdup.o xstrdup.o xstrerror.o regex.o cplus-dem.o cp-demangle.o md5.o asprintf.o basename.o insque.o sigsetmask.o vasprintf.o strcasecmp.o strncasecmp.o
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: libiberty.lib(sigsetmask.o) has no symbols
make -C ../intl
make -r libintl.lib
/usr/local/Cellar/gcc/8.3.0_2/bin/gcc-8 -c -Os -m32 -DIN_GCC -DHAVE_CONFIG_H -I../include -o intl-compat.o intl-compat.c
/usr/local/Cellar/gcc/8.3.0_2/bin/gcc-8 -c -Os -m32 -DIN_GCC -DHAVE_CONFIG_H -I../include -o bindtextdom.o bindtextdom.c
/usr/local/Cellar/gcc/8.3.0_2/bin/gcc-8 -c -Os -m32 -DIN_GCC -DHAVE_CONFIG_H -I../include -o dcgettext.o dcgettext.c
/usr/local/Cellar/gcc/8.3.0_2/bin/gcc-8 -c -Os -m32 -DIN_GCC -DHAVE_CONFIG_H -I../include -o dgettext.o dgettext.c
/usr/local/Cellar/gcc/8.3.0_2/bin/gcc-8 -c -Os -m32 -DIN_GCC -DHAVE_CONFIG_H -I../include -o gettext.o gettext.c
/usr/local/Cellar/gcc/8.3.0_2/bin/gcc-8 -c -Os -m32 -DIN_GCC -DHAVE_CONFIG_H -I../include -o finddomain.o finddomain.c
/usr/local/Cellar/gcc/8.3.0_2/bin/gcc-8 -c -Os -m32 -DIN_GCC -DHAVE_CONFIG_H -I../include -o localealias.o localealias.c
localealias.c: In function 'alias_compare':
localealias.c:365:10: warning: implicit declaration of function 'strcasecmp' [-Wimplicit-function-declaration]
return strcasecmp (map1->alias, map2->alias);
^~~~~~~~~~
/usr/local/Cellar/gcc/8.3.0_2/bin/gcc-8 -c -Os -m32 -DIN_GCC -DHAVE_CONFIG_H -I../include -o textdomain.o textdomain.c
/usr/local/Cellar/gcc/8.3.0_2/bin/gcc-8 -c -Os -m32 -DIN_GCC -DHAVE_CONFIG_H -I../include -o explodename.o explodename.c
/usr/local/Cellar/gcc/8.3.0_2/bin/gcc-8 -c -Os -m32 -DIN_GCC -DHAVE_CONFIG_H -I../include -o dcigettext.o dcigettext.c
dcigettext.c: In function 'dcigettext__':
dcigettext.c:481:10: warning: implicit declaration of function 'getcwd'; did you mean 'getc'? [-Wimplicit-function-declaration]
ret = getcwd (dirname, path_max);
^~~~~~
getc
dcigettext.c:481:8: warning: assignment to 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
ret = getcwd (dirname, path_max);
^
/usr/local/Cellar/gcc/8.3.0_2/bin/gcc-8 -c -Os -m32 -DIN_GCC -DHAVE_CONFIG_H -I../include -o dcngettext.o dcngettext.c
/usr/local/Cellar/gcc/8.3.0_2/bin/gcc-8 -c -Os -m32 -DIN_GCC -DHAVE_CONFIG_H -I../include -o dngettext.o dngettext.c
/usr/local/Cellar/gcc/8.3.0_2/bin/gcc-8 -c -Os -m32 -DIN_GCC -DHAVE_CONFIG_H -I../include -o ngettext.o ngettext.c
/usr/local/Cellar/gcc/8.3.0_2/bin/gcc-8 -c -Os -m32 -DIN_GCC -DHAVE_CONFIG_H -I../include -o plural.o plural.c
/usr/local/Cellar/gcc/8.3.0_2/bin/gcc-8 -c -Os -m32 -DIN_GCC -DHAVE_CONFIG_H -I../include -o localcharset.o localcharset.c
/usr/local/Cellar/gcc/8.3.0_2/bin/gcc-8 -c -Os -m32 -DIN_GCC -DHAVE_CONFIG_H -I../include -o loadmsgcat.o loadmsgcat.c
/usr/local/Cellar/gcc/8.3.0_2/bin/gcc-8 -c -Os -m32 -DIN_GCC -DHAVE_CONFIG_H -I../include -o l10nflist.o l10nflist.c
ar rcs libintl.lib intl-compat.o bindtextdom.o dcgettext.o dgettext.o gettext.o finddomain.o localealias.o textdomain.o explodename.o dcigettext.o dcngettext.o dngettext.o ngettext.o plural.o localcharset.o loadmsgcat.o l10nflist.o
make -C ../go_lib
make -r go_lib.lib stdin.o
/usr/local/Cellar/gcc/8.3.0_2/bin/gcc-8 -c -Os -m32 -DIN_GCC -DHAVE_CONFIG_H -I../include -o memchr.o memchr.c
/usr/local/Cellar/gcc/8.3.0_2/bin/gcc-8 -c -Os -m32 -DIN_GCC -DHAVE_CONFIG_H -I../include -o memcmp.o memcmp.c
/usr/local/Cellar/gcc/8.3.0_2/bin/gcc-8 -c -Os -m32 -DIN_GCC -DHAVE_CONFIG_H -I../include -o memcpy.o memcpy.c
/usr/local/Cellar/gcc/8.3.0_2/bin/gcc-8 -c -Os -m32 -DIN_GCC -DHAVE_CONFIG_H -I../include -o memmove.o memmove.c
/usr/local/Cellar/gcc/8.3.0_2/bin/gcc-8 -c -Os -m32 -DIN_GCC -DHAVE_CONFIG_H -I../include -o memset.o memset.c
/usr/local/Cellar/gcc/8.3.0_2/bin/gcc-8 -c -Os -m32 -DIN_GCC -DHAVE_CONFIG_H -I../include -o strcat.o strcat.c
/usr/local/Cellar/gcc/8.3.0_2/bin/gcc-8 -c -Os -m32 -DIN_GCC -DHAVE_CONFIG_H -I../include -o strchr.o strchr.c
/usr/local/Cellar/gcc/8.3.0_2/bin/gcc-8 -c -Os -m32 -DIN_GCC -DHAVE_CONFIG_H -I../include -o strcmp.o strcmp.c
/usr/local/Cellar/gcc/8.3.0_2/bin/gcc-8 -c -Os -m32 -DIN_GCC -DHAVE_CONFIG_H -I../include -o strcpy.o strcpy.c
/usr/local/Cellar/gcc/8.3.0_2/bin/gcc-8 -c -Os -m32 -DIN_GCC -DHAVE_CONFIG_H -I../include -o strcspn.o strcspn.c
/usr/local/Cellar/gcc/8.3.0_2/bin/gcc-8 -c -Os -m32 -DIN_GCC -DHAVE_CONFIG_H -I../include -o strlen.o strlen.c
/usr/local/Cellar/gcc/8.3.0_2/bin/gcc-8 -c -Os -m32 -DIN_GCC -DHAVE_CONFIG_H -I../include -o strncat.o strncat.c
/usr/local/Cellar/gcc/8.3.0_2/bin/gcc-8 -c -Os -m32 -DIN_GCC -DHAVE_CONFIG_H -I../include -o strncmp.o strncmp.c
/usr/local/Cellar/gcc/8.3.0_2/bin/gcc-8 -c -Os -m32 -DIN_GCC -DHAVE_CONFIG_H -I../include -o strncpy.o strncpy.c
/usr/local/Cellar/gcc/8.3.0_2/bin/gcc-8 -c -Os -m32 -DIN_GCC -DHAVE_CONFIG_H -I../include -o strpbrk.o strpbrk.c
/usr/local/Cellar/gcc/8.3.0_2/bin/gcc-8 -c -Os -m32 -DIN_GCC -DHAVE_CONFIG_H -I../include -o strrchr.o strrchr.c
/usr/local/Cellar/gcc/8.3.0_2/bin/gcc-8 -c -Os -m32 -DIN_GCC -DHAVE_CONFIG_H -I../include -o strspn.o strspn.c
/usr/local/Cellar/gcc/8.3.0_2/bin/gcc-8 -c -Os -m32 -DIN_GCC -DHAVE_CONFIG_H -I../include -o strstr.o strstr.c
/usr/local/Cellar/gcc/8.3.0_2/bin/gcc-8 -c -Os -m32 -DIN_GCC -DHAVE_CONFIG_H -I../include -o strdup.o strdup.c
/usr/local/Cellar/gcc/8.3.0_2/bin/gcc-8 -c -Os -m32 -DIN_GCC -DHAVE_CONFIG_H -I../include -o ldexp.o ldexp.c
/usr/local/Cellar/gcc/8.3.0_2/bin/gcc-8 -c -Os -m32 -DIN_GCC -DHAVE_CONFIG_H -I../include -o frexp.o frexp.c
/usr/local/Cellar/gcc/8.3.0_2/bin/gcc-8 -c -Os -m32 -DIN_GCC -DHAVE_CONFIG_H -I../include -o atof.o atof.c
/usr/local/Cellar/gcc/8.3.0_2/bin/gcc-8 -c -Os -m32 -DIN_GCC -DHAVE_CONFIG_H -I../include -o atoi.o atoi.c
/usr/local/Cellar/gcc/8.3.0_2/bin/gcc-8 -c -Os -m32 -DIN_GCC -DHAVE_CONFIG_H -I../include -o abs.o abs.c
/usr/local/Cellar/gcc/8.3.0_2/bin/gcc-8 -c -Os -m32 -DIN_GCC -DHAVE_CONFIG_H -I../include -o rand.o rand.c
/usr/local/Cellar/gcc/8.3.0_2/bin/gcc-8 -c -Os -m32 -DIN_GCC -DHAVE_CONFIG_H -I../include -o errno.o errno.c
/usr/local/Cellar/gcc/8.3.0_2/bin/gcc-8 -c -Os -m32 -DIN_GCC -DHAVE_CONFIG_H -I../include -o abort.o abort.c
/usr/local/Cellar/gcc/8.3.0_2/bin/gcc-8 -c -Os -m32 -DIN_GCC -DHAVE_CONFIG_H -I../include -o sprintf.o sprintf.c
/usr/local/Cellar/gcc/8.3.0_2/bin/gcc-8 -c -Os -m32 -DIN_GCC -DHAVE_CONFIG_H -I../include -o fprintf.o fprintf.c
/usr/local/Cellar/gcc/8.3.0_2/bin/gcc-8 -c -Os -m32 -DIN_GCC -DHAVE_CONFIG_H -I../include -o vfprintf.o vfprintf.c
/usr/local/Cellar/gcc/8.3.0_2/bin/gcc-8 -c -Os -m32 -DIN_GCC -DHAVE_CONFIG_H -I../include -o calloc.o calloc.c
/usr/local/Cellar/gcc/8.3.0_2/bin/gcc-8 -c -Os -m32 -DIN_GCC -DHAVE_CONFIG_H -I../include -o fputs.o fputs.c
/usr/local/Cellar/gcc/8.3.0_2/bin/gcc-8 -c -Os -m32 -DIN_GCC -DHAVE_CONFIG_H -I../include -o fputc.o fputc.c
/usr/local/Cellar/gcc/8.3.0_2/bin/gcc-8 -c -Os -m32 -DIN_GCC -DHAVE_CONFIG_H -I../include -o fwrite.o fwrite.c
/usr/local/Cellar/gcc/8.3.0_2/bin/gcc-8 -c -Os -m32 -DIN_GCC -DHAVE_CONFIG_H -I../include -o feof.o feof.c
/usr/local/Cellar/gcc/8.3.0_2/bin/gcc-8 -c -Os -m32 -DIN_GCC -DHAVE_CONFIG_H -I../include -o ungetc.o ungetc.c
/usr/local/Cellar/gcc/8.3.0_2/bin/gcc-8 -c -Os -m32 -DIN_GCC -DHAVE_CONFIG_H -I../include -o fseek.o fseek.c
/usr/local/Cellar/gcc/8.3.0_2/bin/gcc-8 -c -Os -m32 -DIN_GCC -DHAVE_CONFIG_H -I../include -o ftell.o ftell.c
/usr/local/Cellar/gcc/8.3.0_2/bin/gcc-8 -c -Os -m32 -DIN_GCC -DHAVE_CONFIG_H -I../include -o fgets.o fgets.c
/usr/local/Cellar/gcc/8.3.0_2/bin/gcc-8 -c -Os -m32 -DIN_GCC -DHAVE_CONFIG_H -I../include -o fread.o fread.c
/usr/local/Cellar/gcc/8.3.0_2/bin/gcc-8 -c -Os -m32 -DIN_GCC -DHAVE_CONFIG_H -I../include -o malloc.o malloc.c
/usr/local/Cellar/gcc/8.3.0_2/bin/gcc-8 -c -Os -m32 -DIN_GCC -DHAVE_CONFIG_H -I../include -o realloc.o realloc.c
/usr/local/Cellar/gcc/8.3.0_2/bin/gcc-8 -c -Os -m32 -DIN_GCC -DHAVE_CONFIG_H -I../include -o dummy.o dummy.c
/usr/local/Cellar/gcc/8.3.0_2/bin/gcc-8 -c -Os -m32 -DIN_GCC -DHAVE_CONFIG_H -I../include -o fgetc.o fgetc.c
/usr/local/Cellar/gcc/8.3.0_2/bin/gcc-8 -c -Os -m32 -DIN_GCC -DHAVE_CONFIG_H -I../include -o mmmalloc.o mmmalloc.c
/usr/local/Cellar/gcc/8.3.0_2/bin/gcc-8 -c -Os -m32 -DIN_GCC -DHAVE_CONFIG_H -I../include -o symalloc.o symalloc.c
/usr/local/Cellar/gcc/8.3.0_2/bin/gcc-8 -c -Os -m32 -DIN_GCC -DHAVE_CONFIG_H -I../include -o vsprintf.o vsprintf.c
/usr/local/Cellar/gcc/8.3.0_2/bin/gcc-8 -c -Os -m32 -DIN_GCC -DHAVE_CONFIG_H -I../include -o fopen.o fopen.c
/usr/local/Cellar/gcc/8.3.0_2/bin/gcc-8 -c -Os -m32 -DIN_GCC -DHAVE_CONFIG_H -I../include -o fclose.o fclose.c
/usr/local/Cellar/gcc/8.3.0_2/bin/gcc-8 -c -Os -m32 -DIN_GCC -DHAVE_CONFIG_H -I../include -o mmreallo.o mmreallo.c
/usr/local/Cellar/gcc/8.3.0_2/bin/gcc-8 -c -Os -m32 -DIN_GCC -DHAVE_CONFIG_H -I../include -o printf.o printf.c
/usr/local/Cellar/gcc/8.3.0_2/bin/gcc-8 -c -Os -m32 -DIN_GCC -DHAVE_CONFIG_H -I../include -o strtoul.o strtoul.c
/usr/local/Cellar/gcc/8.3.0_2/bin/gcc-8 -c -Os -m32 -DIN_GCC -DHAVE_CONFIG_H -I../include -o strtoul0.o strtoul0.c
/usr/local/Cellar/gcc/8.3.0_2/bin/gcc-8 -c -Os -m32 -DIN_GCC -DHAVE_CONFIG_H -I../include -o strtol.o strtol.c
/usr/local/Cellar/gcc/8.3.0_2/bin/gcc-8 -c -Os -m32 -DIN_GCC -DHAVE_CONFIG_H -I../include -o qsort.o qsort.c
ar rcs go_lib.lib memchr.o memcmp.o memcpy.o memmove.o memset.o strcat.o strchr.o strcmp.o strcpy.o strcspn.o strlen.o strncat.o strncmp.o strncpy.o strpbrk.o strrchr.o strspn.o strstr.o strdup.o ldexp.o frexp.o atof.o atoi.o abs.o rand.o errno.o abort.o sprintf.o fprintf.o vfprintf.o calloc.o fputs.o fputc.o fwrite.o feof.o ungetc.o fseek.o ftell.o fgets.o fread.o malloc.o realloc.o dummy.o fgetc.o mmmalloc.o symalloc.o vsprintf.o fopen.o fclose.o mmreallo.o printf.o strtoul.o strtoul0.o strtol.o qsort.o
/usr/local/Cellar/gcc/8.3.0_2/bin/gcc-8 -c -Os -m32 -DIN_GCC -DHAVE_CONFIG_H -I../include -o stdin.o stdin.c
make -C ../drv_stdc
make -r cpp0main.obj cc1main.obj cc1pmain.obj drv_stdc.obj
/usr/local/Cellar/gcc/8.3.0_2/bin/gcc-8 -c -Os -m32 -o cpp0main.obj cpp0main.c
In file included from cpp0main.c:8:
cc1drv.c: In function 'main':
cc1drv.c:42:21: warning: passing argument 2 of 'GOL_callmain' from incompatible pointer type [-Wincompatible-pointer-types]
GOL_callmain(argc, argv);
^~~~
cc1drv.c:24:37: note: expected 'UCHAR **' {aka 'unsigned char **'} but argument is of type 'char **'
void GOL_callmain(int argc, UCHAR **argv);
~~~~~~~~^~~~
/usr/local/Cellar/gcc/8.3.0_2/bin/gcc-8 -c -Os -m32 -o cc1main.obj cc1main.c
In file included from cc1main.c:8:
cc1drv.c: In function 'main':
cc1drv.c:42:21: warning: passing argument 2 of 'GOL_callmain' from incompatible pointer type [-Wincompatible-pointer-types]
GOL_callmain(argc, argv);
^~~~
cc1drv.c:24:37: note: expected 'UCHAR **' {aka 'unsigned char **'} but argument is of type 'char **'
void GOL_callmain(int argc, UCHAR **argv);
~~~~~~~~^~~~
/usr/local/Cellar/gcc/8.3.0_2/bin/gcc-8 -c -Os -m32 -o cc1pmain.obj cc1pmain.c
In file included from cc1pmain.c:8:
cc1drv.c: In function 'main':
cc1drv.c:42:21: warning: passing argument 2 of 'GOL_callmain' from incompatible pointer type [-Wincompatible-pointer-types]
GOL_callmain(argc, argv);
^~~~
cc1drv.c:24:37: note: expected 'UCHAR **' {aka 'unsigned char **'} but argument is of type 'char **'
void GOL_callmain(int argc, UCHAR **argv);
~~~~~~~~^~~~
/usr/local/Cellar/gcc/8.3.0_2/bin/gcc-8 -c -Os -m32 -o drv_stdc.obj drv_stdc.c
In file included from drv_stdc.c:16:
../funcs/cc1sub.c: In function 'GOL_close':
../funcs/cc1sub.c:51:3: warning: implicit declaration of function 'GOL_sysfree'; did you mean 'GOL_sysabort'? [-Wimplicit-function-declaration]
GOL_sysfree(gfp->p0);
^~~~~~~~~~~
GOL_sysabort
/usr/local/Cellar/gcc/8.3.0_2/bin/gcc-8 -m32 -Wl,-s -o gocpp0 ../drv_stdc/cpp0main.obj cppmain.o intl.o \
libcpp.lib hashtable.o version.o ../intl/libintl.lib ../libiberty/libiberty.lib ../go_lib/go_lib.lib ../go_lib/stdin.o ../drv_stdc/drv_stdc.obj
ld: warning: option -s is obsolete and being ignored
ld: warning: The i386 architecture is deprecated for macOS (remove from the Xcode build setting: ARCHS)
ld: warning: ignoring file /usr/local/Cellar/gcc/8.3.0_2/lib/gcc/8/libgcc_ext.10.5.dylib, missing required architecture i386 in file /usr/local/Cellar/gcc/8.3.0_2/lib/gcc/8/libgcc_ext.10.5.dylib (1 slices)
ld: warning: ignoring file /usr/local/Cellar/gcc/8.3.0_2/lib/gcc/8/gcc/x86_64-apple-darwin18/8.3.0/libgcc.a, file was built for archive which is not the architecture being linked (i386): /usr/local/Cellar/gcc/8.3.0_2/lib/gcc/8/gcc/x86_64-apple-darwin18/8.3.0/libgcc.a
ld: warning: ignoring file /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib/libSystem.tbd, missing required architecture i386 in file /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib/libSystem.tbd
Undefined symbols for architecture i386:
"___stdoutp", referenced from:
_GOLD_write_t in drv_stdc.obj
"_exit", referenced from:
_GOL_sysabort in drv_stdc.obj
(maybe you meant: _obstack_exit_failure, _GO_exit )
"_fclose", referenced from:
_GOLD_write_t in drv_stdc.obj
_GOLD_getsize in drv_stdc.obj
_GOLD_read in drv_stdc.obj
(maybe you meant: _GO_fclose)
"_fopen$UNIX2003", referenced from:
_GOLD_write_t in drv_stdc.obj
_GOLD_getsize in drv_stdc.obj
_GOLD_read in drv_stdc.obj
"_fread", referenced from:
_GOLD_read in drv_stdc.obj
(maybe you meant: _GO_fread)
"_fseek", referenced from:
_GOLD_getsize in drv_stdc.obj
(maybe you meant: _GO_fseek)
"_ftell", referenced from:
_GOLD_getsize in drv_stdc.obj
(maybe you meant: _GO_ftell)
"_fwrite$UNIX2003", referenced from:
_GOLD_write_t in drv_stdc.obj
"_malloc", referenced from:
_main in cpp0main.obj
(maybe you meant: _GO_malloc)
ld: symbol(s) not found for architecture i386
collect2: error: ld returned 1 exit status
make[3]: *** [gocpp0] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all] Error 2
make: *** [all] Error 2
https://github.com/HariboteOS/tolsrc には fdimg0at.tek
が含まれていない。
そのため、Chapter 2 のビルドができない
$ make run
make -r helloos.img
./z_tools/nask ipl.nas ipl.bin ipl.lst
./z_tools/edimg imgin:./z_tools/fdimg0at.tek wbinimg src:ipl.bin len:512 from:0 to:0 imgout:helloos.img
opt-imgin load error. : ./z_tools/fdimg0at.tek
make[1]: *** [helloos.img] Error 16
make: *** [img] Error 2
30日 OS 本は windows で開発することを前提にしている。
macOS で開発するために類似ツールを利用する。
その類似ツールをまとめる。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.