diff --git a/Makefile b/Makefile index 7b41ffe0..ab0e6e18 100644 --- a/Makefile +++ b/Makefile @@ -104,7 +104,7 @@ GUI_OBJS = $(SDL_GUI)/SDL_gui.o $(SDL_GUI)/Exception.o $(SDL_GUI)/Object.o \ CONSOLE_OBJ = $(SDL_CONSOLE)/SDL_console.o $(SDL_CONSOLE)/DT_drawtext.o \ $(SDL_CONSOLE)/internal.o -DRIVERS_OBJ = $(SRC_DIR)/drivers/spi.o $(SRC_DIR)/drivers/enc28j60.o +DRIVERS_OBJ = UTILS_DIR = $(SRC_DIR)/utils UTILS_OBJ = $(SRC_DIR)/utils.o $(UTILS_DIR)/gmtime.o $(UTILS_DIR)/strftime.o \ diff --git a/exports.txt b/exports.txt index b4bda310..84119592 100644 --- a/exports.txt +++ b/exports.txt @@ -1582,17 +1582,6 @@ cfg_fprint_error cfg_get_error_str cfg_get_static_error_str # -spi_init -spi_shutdown -spi_cs_on -spi_cs_off -spi_send_byte -spi_rec_byte -spi_sr_byte -spi_slow_sr_byte -spi_send_data -spi_rec_data -# # Parallax plx_font_load plx_font_destroy diff --git a/firmware/isoldr/loader/Makefile.cfg b/firmware/isoldr/loader/Makefile.cfg index 0b7fd45c..59cc9c6a 100644 --- a/firmware/isoldr/loader/Makefile.cfg +++ b/firmware/isoldr/loader/Makefile.cfg @@ -41,7 +41,7 @@ TARGETSIZE = $(TARGETPREFIX)-size TARGETLDFLAGS = -Wl,--gc-sections -Wl,--no-warn-rwx-segments \ -Tshlelf.xc -Ttext=$(TARGET) \ -nostartfiles -nostdlib -nodefaultlibs -TARGETCFLAGS = -ml -m4-single-only -ffunction-sections -fdata-sections -ffreestanding \ +TARGETCFLAGS = -ml -m4-single -ffunction-sections -fdata-sections -ffreestanding \ -fno-builtin -fno-strict-aliasing -fomit-frame-pointer \ -freorder-blocks-algorithm=simple -flto=auto \ -Wall -std=c17 -Wextra -Werror \ diff --git a/firmware/isoldr/syscalls/Makefile b/firmware/isoldr/syscalls/Makefile index 787cc32e..e4aff963 100644 --- a/firmware/isoldr/syscalls/Makefile +++ b/firmware/isoldr/syscalls/Makefile @@ -16,7 +16,7 @@ TARGETLD = $(TARGETPREFIX)-ld TARGETAS = $(TARGETPREFIX)-as TARGETSIZE = $(TARGETPREFIX)-size TARGETLDFLAGS = -Wl,--gc-sections -Tshlelf.xc -nostartfiles -nostdlib -nodefaultlibs -TARGETCFLAGS = -ml -m4-single-only -ffunction-sections -fdata-sections -ffreestanding \ +TARGETCFLAGS = -ml -m4-single -ffunction-sections -fdata-sections -ffreestanding \ -fno-builtin -fno-strict-aliasing -fomit-frame-pointer \ -Wall -std=c17 -Wextra -Werror diff --git a/include/gl/gl.h b/include/gl/gl.h index 0db65a2d..9d8e409c 100644 --- a/include/gl/gl.h +++ b/include/gl/gl.h @@ -32,7 +32,7 @@ typedef int32 GLsizei; /* 4-byte signed */ typedef float GLfloat; /* single precision float */ typedef float GLclampf; /* single precision float in [0,1] */ -/* For these next two, KOS is generally compiled in m4-single-only, so we +/* For these next two, KOS is generally compiled in m4-single, so we just use floats for everything anyway. */ typedef float GLdouble; /* double precision float */ typedef float GLclampd; /* double precision float in [0,1] */ diff --git a/modules/mp3/libmp3/libmp3/sndmp3.c b/modules/mp3/libmp3/libmp3/sndmp3.c index 74eb0d34..a37814c5 100644 --- a/modules/mp3/libmp3/libmp3/sndmp3.c +++ b/modules/mp3/libmp3/libmp3/sndmp3.c @@ -9,7 +9,7 @@ /* This library is designed to be called from another program in a thread. It expects an input filename, and it will do all the setup and playback work. - This requires a working math library for m4-single-only (such as newlib). + This requires a working math library for m4-single (such as newlib). */ diff --git a/modules/mp3/libmp3/libmp3/sndmp3_mpg123.c b/modules/mp3/libmp3/libmp3/sndmp3_mpg123.c index 7dce2fab..4d421aa7 100644 --- a/modules/mp3/libmp3/libmp3/sndmp3_mpg123.c +++ b/modules/mp3/libmp3/libmp3/sndmp3_mpg123.c @@ -7,7 +7,7 @@ /* This library is designed to be called from another program in a thread. It expects an input filename, and it will do all the setup and playback work. - This requires a working math library for m4-single-only (such as newlib). + This requires a working math library for m4-single (such as newlib). */ diff --git a/modules/mp3/libmp3/libmp3/sndmp3_mpglib.c b/modules/mp3/libmp3/libmp3/sndmp3_mpglib.c index c774289e..1e6e870c 100644 --- a/modules/mp3/libmp3/libmp3/sndmp3_mpglib.c +++ b/modules/mp3/libmp3/libmp3/sndmp3_mpglib.c @@ -16,7 +16,7 @@ /* This library is designed to be called from another program in a thread. It expects an input filename, and it will do all the setup and playback work. - This requires a working math library for m4-single-only (such as newlib). + This requires a working math library for m4-single (such as newlib). */ diff --git a/modules/mp3/libmp3/mpg123/Makefile.orig b/modules/mp3/libmp3/mpg123/Makefile.orig index 2d1e73ef..287a3c56 100644 --- a/modules/mp3/libmp3/mpg123/Makefile.orig +++ b/modules/mp3/libmp3/mpg123/Makefile.orig @@ -109,9 +109,9 @@ AWK = gawk CC = /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc CCAS = /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc CCASDEPMODE = depmode=gcc3 -CCASFLAGS = -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing +CCASFLAGS = -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing CCDEPMODE = depmode=gcc3 -CFLAGS = -O2 -fomit-frame-pointer -funroll-all-loops -finline-functions -ffast-math -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing +CFLAGS = -O2 -fomit-frame-pointer -funroll-all-loops -finline-functions -ffast-math -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing COREAUDIO_CFLAGS = COREAUDIO_LDFLAGS = COREAUDIO_LIBS = -framework AudioToolbox -framework AudioUnit -framework CoreServices @@ -158,7 +158,7 @@ INSTALL_STRIP_PROGRAM = $(install_sh) -c -s JACK_CFLAGS = JACK_LDFLAGS = JACK_LIBS = -LDFLAGS = -ml -m4-single-only -Wl,-Ttext=0x8c010000 -T/usr/local/dc/kos/kos/utils/ldscripts/shlelf.xc -nodefaultlibs -L/usr/local/dc/kos/kos/lib/dreamcast -L/usr/local/dc/kos/kos/addons/lib/dreamcast +LDFLAGS = -ml -m4-single -Wl,-Ttext=0x8c010000 -T/usr/local/dc/kos/kos/utils/ldscripts/shlelf.xc -nodefaultlibs -L/usr/local/dc/kos/kos/lib/dreamcast -L/usr/local/dc/kos/kos/addons/lib/dreamcast LFS_LOBJ = lfs_alias.lo LIBMPG123_VERSION = 32:0:32 LIBOBJS = diff --git a/modules/mp3/libmp3/mpg123/config.log b/modules/mp3/libmp3/mpg123/config.log index 791d8b69..3f6bc033 100644 --- a/modules/mp3/libmp3/mpg123/config.log +++ b/modules/mp3/libmp3/mpg123/config.log @@ -4,7 +4,7 @@ running configure, to aid debugging if configure makes a mistake. It was created by mpg123 configure 20110808000000, which was generated by GNU Autoconf 2.61. Invocation command line was - $ ./configure --host=sh-elf --with-cpu=generic_fpu CFLAGS=-O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing LDFLAGS= -ml -m4-single-only -Wl,-Ttext=0x8c010000 -T/usr/local/dc/kos/kos/utils/ldscripts/shlelf.xc -nodefaultlibs -L/usr/local/dc/kos/kos/lib/dreamcast -L/usr/local/dc/kos/kos/addons/lib/dreamcast LIBS=-Wl,--start-group -lkallisti -lc -lgcc -Wl,--end-group CC=/opt/toolchains/dc/sh-elf/bin/sh-elf-gcc + $ ./configure --host=sh-elf --with-cpu=generic_fpu CFLAGS=-O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing LDFLAGS= -ml -m4-single -Wl,-Ttext=0x8c010000 -T/usr/local/dc/kos/kos/utils/ldscripts/shlelf.xc -nodefaultlibs -L/usr/local/dc/kos/kos/lib/dreamcast -L/usr/local/dc/kos/kos/addons/lib/dreamcast LIBS=-Wl,--start-group -lkallisti -lc -lgcc -Wl,--end-group CC=/opt/toolchains/dc/sh-elf/bin/sh-elf-gcc ## --------- ## ## Platform. ## @@ -97,7 +97,7 @@ Using built-in specs. COLLECT_GCC=/opt/toolchains/dc/sh-elf/bin/sh-elf-gcc COLLECT_LTO_WRAPPER=/opt/toolchains/dc/sh-elf/libexec/gcc/sh-elf/4.5.2/lto-wrapper.exe Target: sh-elf -Configured with: ../gcc-4.5.2/configure --target=sh-elf --prefix=/opt/toolchains/dc/sh-elf --without-headers --with-newlib --enable-languages=c --disable-libssp --disable-tls --with-multilib-list=m4-single-only,m4-nofpu,m4 --with-endian=little --with-cpu=m4-single-only : (reconfigured) ../gcc-4.5.2/configure --target=sh-elf --prefix=/opt/toolchains/dc/sh-elf --with-newlib --disable-libssp --disable-tls --enable-threads=kos --enable-languages=c,c++,objc,obj-c++ --with-multilib-list=m4-single-only,m4-nofpu,m4 --with-endian=little --with-cpu=m4-single-only : (reconfigured) ../gcc-4.5.2/configure --target=sh-elf --prefix=/opt/toolchains/dc/sh-elf --with-newlib --disable-libssp --disable-tls --enable-threads=kos --enable-languages=c,c++,objc,obj-c++ --with-multilib-list=m4-single-only,m4-nofpu,m4 --with-endian=little --with-cpu=m4-single-only : (reconfigured) ../gcc-4.5.2/configure --target=sh-elf --prefix=/opt/toolchains/dc/sh-elf --with-newlib --disable-libssp --disable-tls --enable-threads=kos --enable-languages=c,c++,objc,obj-c++ --with-multilib-list=m4-single-only,m4-nofpu,m4 --with-endian=little --with-cpu=m4-single-only +Configured with: ../gcc-4.5.2/configure --target=sh-elf --prefix=/opt/toolchains/dc/sh-elf --without-headers --with-newlib --enable-languages=c --disable-libssp --disable-tls --with-multilib-list=m4-single,m4-nofpu,m4 --with-endian=little --with-cpu=m4-single : (reconfigured) ../gcc-4.5.2/configure --target=sh-elf --prefix=/opt/toolchains/dc/sh-elf --with-newlib --disable-libssp --disable-tls --enable-threads=kos --enable-languages=c,c++,objc,obj-c++ --with-multilib-list=m4-single,m4-nofpu,m4 --with-endian=little --with-cpu=m4-single : (reconfigured) ../gcc-4.5.2/configure --target=sh-elf --prefix=/opt/toolchains/dc/sh-elf --with-newlib --disable-libssp --disable-tls --enable-threads=kos --enable-languages=c,c++,objc,obj-c++ --with-multilib-list=m4-single,m4-nofpu,m4 --with-endian=little --with-cpu=m4-single : (reconfigured) ../gcc-4.5.2/configure --target=sh-elf --prefix=/opt/toolchains/dc/sh-elf --with-newlib --disable-libssp --disable-tls --enable-threads=kos --enable-languages=c,c++,objc,obj-c++ --with-multilib-list=m4-single,m4-nofpu,m4 --with-endian=little --with-cpu=m4-single Thread model: kos gcc version 4.5.2 (GCC) configure:3214: $? = 0 @@ -105,7 +105,7 @@ configure:3221: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -V >&5 sh-elf-gcc: '-V' option must have argument configure:3224: $? = 1 configure:3247: checking for C compiler default output file name -configure:3274: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing -ml -m4-single-only -Wl,-Ttext=0x8c010000 -T/usr/local/dc/kos/kos/utils/ldscripts/shlelf.xc -nodefaultlibs -L/usr/local/dc/kos/kos/lib/dreamcast -L/usr/local/dc/kos/kos/addons/lib/dreamcast conftest.c -Wl,--start-group -lkallisti -lc -lgcc -Wl,--end-group >&5 +configure:3274: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing -ml -m4-single -Wl,-Ttext=0x8c010000 -T/usr/local/dc/kos/kos/utils/ldscripts/shlelf.xc -nodefaultlibs -L/usr/local/dc/kos/kos/lib/dreamcast -L/usr/local/dc/kos/kos/addons/lib/dreamcast conftest.c -Wl,--start-group -lkallisti -lc -lgcc -Wl,--end-group >&5 configure:3277: $? = 0 configure:3315: result: a.out configure:3332: checking whether the C compiler works @@ -116,15 +116,15 @@ configure:3362: result: yes configure:3369: checking whether we are cross compiling configure:3371: result: yes configure:3374: checking for suffix of executables -configure:3381: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -o conftest -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing -ml -m4-single-only -Wl,-Ttext=0x8c010000 -T/usr/local/dc/kos/kos/utils/ldscripts/shlelf.xc -nodefaultlibs -L/usr/local/dc/kos/kos/lib/dreamcast -L/usr/local/dc/kos/kos/addons/lib/dreamcast conftest.c -Wl,--start-group -lkallisti -lc -lgcc -Wl,--end-group >&5 +configure:3381: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -o conftest -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing -ml -m4-single -Wl,-Ttext=0x8c010000 -T/usr/local/dc/kos/kos/utils/ldscripts/shlelf.xc -nodefaultlibs -L/usr/local/dc/kos/kos/lib/dreamcast -L/usr/local/dc/kos/kos/addons/lib/dreamcast conftest.c -Wl,--start-group -lkallisti -lc -lgcc -Wl,--end-group >&5 configure:3384: $? = 0 configure:3408: result: configure:3414: checking for suffix of object files -configure:3440: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 +configure:3440: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 configure:3443: $? = 0 configure:3466: result: o configure:3470: checking whether we are using the GNU C compiler -configure:3499: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 +configure:3499: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 configure:3505: $? = 0 configure:3522: result: yes configure:3527: checking whether /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc accepts -g @@ -132,7 +132,7 @@ configure:3557: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -g conftest.c >&5 configure:3563: $? = 0 configure:3662: result: yes configure:3679: checking for /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc option to accept ISO C89 -configure:3753: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 +configure:3753: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 configure:3759: $? = 0 configure:3782: result: none needed configure:3802: checking dependency style of /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc @@ -154,7 +154,7 @@ Using built-in specs. COLLECT_GCC=/opt/toolchains/dc/sh-elf/bin/sh-elf-gcc COLLECT_LTO_WRAPPER=/opt/toolchains/dc/sh-elf/libexec/gcc/sh-elf/4.5.2/lto-wrapper.exe Target: sh-elf -Configured with: ../gcc-4.5.2/configure --target=sh-elf --prefix=/opt/toolchains/dc/sh-elf --without-headers --with-newlib --enable-languages=c --disable-libssp --disable-tls --with-multilib-list=m4-single-only,m4-nofpu,m4 --with-endian=little --with-cpu=m4-single-only : (reconfigured) ../gcc-4.5.2/configure --target=sh-elf --prefix=/opt/toolchains/dc/sh-elf --with-newlib --disable-libssp --disable-tls --enable-threads=kos --enable-languages=c,c++,objc,obj-c++ --with-multilib-list=m4-single-only,m4-nofpu,m4 --with-endian=little --with-cpu=m4-single-only : (reconfigured) ../gcc-4.5.2/configure --target=sh-elf --prefix=/opt/toolchains/dc/sh-elf --with-newlib --disable-libssp --disable-tls --enable-threads=kos --enable-languages=c,c++,objc,obj-c++ --with-multilib-list=m4-single-only,m4-nofpu,m4 --with-endian=little --with-cpu=m4-single-only : (reconfigured) ../gcc-4.5.2/configure --target=sh-elf --prefix=/opt/toolchains/dc/sh-elf --with-newlib --disable-libssp --disable-tls --enable-threads=kos --enable-languages=c,c++,objc,obj-c++ --with-multilib-list=m4-single-only,m4-nofpu,m4 --with-endian=little --with-cpu=m4-single-only +Configured with: ../gcc-4.5.2/configure --target=sh-elf --prefix=/opt/toolchains/dc/sh-elf --without-headers --with-newlib --enable-languages=c --disable-libssp --disable-tls --with-multilib-list=m4-single,m4-nofpu,m4 --with-endian=little --with-cpu=m4-single : (reconfigured) ../gcc-4.5.2/configure --target=sh-elf --prefix=/opt/toolchains/dc/sh-elf --with-newlib --disable-libssp --disable-tls --enable-threads=kos --enable-languages=c,c++,objc,obj-c++ --with-multilib-list=m4-single,m4-nofpu,m4 --with-endian=little --with-cpu=m4-single : (reconfigured) ../gcc-4.5.2/configure --target=sh-elf --prefix=/opt/toolchains/dc/sh-elf --with-newlib --disable-libssp --disable-tls --enable-threads=kos --enable-languages=c,c++,objc,obj-c++ --with-multilib-list=m4-single,m4-nofpu,m4 --with-endian=little --with-cpu=m4-single : (reconfigured) ../gcc-4.5.2/configure --target=sh-elf --prefix=/opt/toolchains/dc/sh-elf --with-newlib --disable-libssp --disable-tls --enable-threads=kos --enable-languages=c,c++,objc,obj-c++ --with-multilib-list=m4-single,m4-nofpu,m4 --with-endian=little --with-cpu=m4-single Thread model: kos gcc version 4.5.2 (GCC) configure:4356: $? = 0 @@ -212,38 +212,38 @@ configure:5191: result: /usr/bin/grep configure:5196: checking for egrep configure:5274: result: /usr/bin/grep -E configure:5280: checking for an ANSI C-conforming const -configure:5355: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 +configure:5355: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 conftest.c: In function 'main': conftest.c:39:10: warning: 't' is used uninitialized in this function conftest.c:55:23: warning: 'b' is used uninitialized in this function configure:5361: $? = 0 configure:5376: result: yes configure:5386: checking for inline -configure:5412: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 +configure:5412: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 configure:5418: $? = 0 configure:5436: result: inline configure:5456: checking for ANSI C header files -configure:5486: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 +configure:5486: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 configure:5492: $? = 0 configure:5620: result: yes configure:5644: checking for sys/types.h -configure:5665: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 +configure:5665: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 configure:5671: $? = 0 configure:5687: result: yes configure:5644: checking for sys/stat.h -configure:5665: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 +configure:5665: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 configure:5671: $? = 0 configure:5687: result: yes configure:5644: checking for stdlib.h -configure:5665: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 +configure:5665: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 configure:5671: $? = 0 configure:5687: result: yes configure:5644: checking for string.h -configure:5665: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 +configure:5665: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 configure:5671: $? = 0 configure:5687: result: yes configure:5644: checking for memory.h -configure:5665: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 +configure:5665: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 conftest.c:49:20: fatal error: memory.h: No such file or directory compilation terminated. configure:5671: $? = 1 @@ -299,25 +299,25 @@ configure: failed program was: | #include configure:5687: result: no configure:5644: checking for strings.h -configure:5665: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 +configure:5665: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 configure:5671: $? = 0 configure:5687: result: yes configure:5644: checking for inttypes.h -configure:5665: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 +configure:5665: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 configure:5671: $? = 0 configure:5687: result: yes configure:5644: checking for stdint.h -configure:5665: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 +configure:5665: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 configure:5671: $? = 0 configure:5687: result: yes configure:5644: checking for unistd.h -configure:5665: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 +configure:5665: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 configure:5671: $? = 0 configure:5687: result: yes configure:5699: checking whether byte ordering is bigendian -configure:5732: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 +configure:5732: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 configure:5738: $? = 0 -configure:5770: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 +configure:5770: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 conftest.c: In function 'main': conftest.c:26:2: error: 'not' undeclared (first use in this function) conftest.c:26:2: note: each undeclared identifier is reported only once for each function it appears in @@ -357,7 +357,7 @@ configure: failed program was: | } configure:5916: result: no configure:6026: checking for lt_dlinit in -lltdl -configure:6061: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -o conftest -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing -ml -m4-single-only -Wl,-Ttext=0x8c010000 -T/usr/local/dc/kos/kos/utils/ldscripts/shlelf.xc -nodefaultlibs -L/usr/local/dc/kos/kos/lib/dreamcast -L/usr/local/dc/kos/kos/addons/lib/dreamcast conftest.c -lltdl -Wl,--start-group -lkallisti -lc -lgcc -Wl,--end-group >&5 +configure:6061: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -o conftest -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing -ml -m4-single -Wl,-Ttext=0x8c010000 -T/usr/local/dc/kos/kos/utils/ldscripts/shlelf.xc -nodefaultlibs -L/usr/local/dc/kos/kos/lib/dreamcast -L/usr/local/dc/kos/kos/addons/lib/dreamcast conftest.c -lltdl -Wl,--start-group -lkallisti -lc -lgcc -Wl,--end-group >&5 /opt/toolchains/dc/sh-elf/lib/gcc/sh-elf/4.5.2/../../../../sh-elf/bin/ld: cannot find -lltdl collect2: ld returned 1 exit status configure:6067: $? = 1 @@ -413,7 +413,7 @@ configure:6547: result: yes configure:6554: checking how to recognize dependent libraries configure:6740: result: unknown configure:7284: checking dlfcn.h usability -configure:7301: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 +configure:7301: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 conftest.c:53:19: fatal error: dlfcn.h: No such file or directory compilation terminated. configure:7307: $? = 1 @@ -517,7 +517,7 @@ Using built-in specs. COLLECT_GCC=sh-elf-g++ COLLECT_LTO_WRAPPER=/opt/toolchains/dc/sh-elf/libexec/gcc/sh-elf/4.5.2/lto-wrapper.exe Target: sh-elf -Configured with: ../gcc-4.5.2/configure --target=sh-elf --prefix=/opt/toolchains/dc/sh-elf --without-headers --with-newlib --enable-languages=c --disable-libssp --disable-tls --with-multilib-list=m4-single-only,m4-nofpu,m4 --with-endian=little --with-cpu=m4-single-only : (reconfigured) ../gcc-4.5.2/configure --target=sh-elf --prefix=/opt/toolchains/dc/sh-elf --with-newlib --disable-libssp --disable-tls --enable-threads=kos --enable-languages=c,c++,objc,obj-c++ --with-multilib-list=m4-single-only,m4-nofpu,m4 --with-endian=little --with-cpu=m4-single-only : (reconfigured) ../gcc-4.5.2/configure --target=sh-elf --prefix=/opt/toolchains/dc/sh-elf --with-newlib --disable-libssp --disable-tls --enable-threads=kos --enable-languages=c,c++,objc,obj-c++ --with-multilib-list=m4-single-only,m4-nofpu,m4 --with-endian=little --with-cpu=m4-single-only : (reconfigured) ../gcc-4.5.2/configure --target=sh-elf --prefix=/opt/toolchains/dc/sh-elf --with-newlib --disable-libssp --disable-tls --enable-threads=kos --enable-languages=c,c++,objc,obj-c++ --with-multilib-list=m4-single-only,m4-nofpu,m4 --with-endian=little --with-cpu=m4-single-only +Configured with: ../gcc-4.5.2/configure --target=sh-elf --prefix=/opt/toolchains/dc/sh-elf --without-headers --with-newlib --enable-languages=c --disable-libssp --disable-tls --with-multilib-list=m4-single,m4-nofpu,m4 --with-endian=little --with-cpu=m4-single : (reconfigured) ../gcc-4.5.2/configure --target=sh-elf --prefix=/opt/toolchains/dc/sh-elf --with-newlib --disable-libssp --disable-tls --enable-threads=kos --enable-languages=c,c++,objc,obj-c++ --with-multilib-list=m4-single,m4-nofpu,m4 --with-endian=little --with-cpu=m4-single : (reconfigured) ../gcc-4.5.2/configure --target=sh-elf --prefix=/opt/toolchains/dc/sh-elf --with-newlib --disable-libssp --disable-tls --enable-threads=kos --enable-languages=c,c++,objc,obj-c++ --with-multilib-list=m4-single,m4-nofpu,m4 --with-endian=little --with-cpu=m4-single : (reconfigured) ../gcc-4.5.2/configure --target=sh-elf --prefix=/opt/toolchains/dc/sh-elf --with-newlib --disable-libssp --disable-tls --enable-threads=kos --enable-languages=c,c++,objc,obj-c++ --with-multilib-list=m4-single,m4-nofpu,m4 --with-endian=little --with-cpu=m4-single Thread model: kos gcc version 4.5.2 (GCC) configure:7550: $? = 0 @@ -724,16 +724,16 @@ configure:8355: result: no configure:8384: checking the maximum length of command line arguments configure:8496: result: 8192 configure:8508: checking command to parse /opt/toolchains/dc/sh-elf/bin/sh-elf-nm -B output from /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc object -configure:8613: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 +configure:8613: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 configure:8616: $? = 0 configure:8620: /opt/toolchains/dc/sh-elf/bin/sh-elf-nm -B conftest.o \| sed -n -e 's/^.*[ ]\([ABCDGIRSTW][ABCDGIRSTW]*\)[ ][ ]*\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2 \2/p' \> conftest.nm configure:8623: $? = 0 cannot find nm_test_var in conftest.nm -configure:8613: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 +configure:8613: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 configure:8616: $? = 0 configure:8620: /opt/toolchains/dc/sh-elf/bin/sh-elf-nm -B conftest.o \| sed -n -e 's/^.*[ ]\([ABCDGIRSTW][ABCDGIRSTW]*\)[ ][ ]*_\([_A-Za-z][_A-Za-z0-9]*\)$/\1 _\2 \2/p' \> conftest.nm configure:8623: $? = 0 -configure:8675: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -o conftest -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing -ml -m4-single-only -Wl,-Ttext=0x8c010000 -T/usr/local/dc/kos/kos/utils/ldscripts/shlelf.xc -nodefaultlibs -L/usr/local/dc/kos/kos/lib/dreamcast -L/usr/local/dc/kos/kos/addons/lib/dreamcast conftest.c conftstm.o >&5 +configure:8675: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -o conftest -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing -ml -m4-single -Wl,-Ttext=0x8c010000 -T/usr/local/dc/kos/kos/utils/ldscripts/shlelf.xc -nodefaultlibs -L/usr/local/dc/kos/kos/lib/dreamcast -L/usr/local/dc/kos/kos/addons/lib/dreamcast conftest.c conftstm.o >&5 /opt/toolchains/dc/sh-elf/lib/gcc/sh-elf/4.5.2/crt1.o: In function `main_addr': (.text+0xdc): undefined reference to `_arch_main' /opt/toolchains/dc/sh-elf/lib/gcc/sh-elf/4.5.2/crt1.o: In function `fpscr_addr': @@ -754,26 +754,26 @@ configure:8910: result: sh-elf-ranlib configure:8979: checking for sh-elf-strip configure:9006: result: sh-elf-strip configure:9644: checking if /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc supports -fno-rtti -fno-exceptions -configure:9662: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing -fno-rtti -fno-exceptions conftest.c >&5 +configure:9662: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing -fno-rtti -fno-exceptions conftest.c >&5 cc1: warning: command line option "-fno-rtti" is valid for C++/ObjC++ but not for C configure:9666: $? = 0 configure:9679: result: no configure:9694: checking for /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc option to produce PIC configure:9926: result: -fPIC configure:9934: checking if /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc PIC flag -fPIC works -configure:9952: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing -fPIC -DPIC conftest.c >&5 +configure:9952: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing -fPIC -DPIC conftest.c >&5 configure:9956: $? = 0 configure:9969: result: yes configure:9997: checking if /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc static flag -static works configure:10025: result: yes configure:10035: checking if /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc supports -c -o file.o -configure:10056: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing -o out/conftest2.o conftest.c >&5 +configure:10056: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing -o out/conftest2.o conftest.c >&5 configure:10060: $? = 0 configure:10082: result: yes configure:10108: checking whether the /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc linker (/opt/toolchains/dc/sh-elf/sh-elf/bin/ld.exe) supports shared libraries configure:11089: result: yes configure:11110: checking whether -lc should be explicitly linked in -configure:11115: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 +configure:11115: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 configure:11118: $? = 0 configure:11133: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -shared conftest.o -v -Wl,-soname -Wl,conftest -o conftest 2\>\&1 \| grep -lc \>/dev/null 2\>\&1 configure:11136: $? = 1 @@ -825,7 +825,7 @@ configure:22845: result: yes configure:22856: checking for ANSI C header files configure:23020: result: yes configure:23059: checking stdio.h usability -configure:23076: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 +configure:23076: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 configure:23082: $? = 0 configure:23096: result: yes configure:23100: checking stdio.h presence @@ -841,7 +841,7 @@ configure:23055: result: yes configure:23049: checking for unistd.h configure:23055: result: yes configure:23059: checking sched.h usability -configure:23076: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 +configure:23076: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 configure:23082: $? = 0 configure:23096: result: yes configure:23100: checking sched.h presence @@ -851,7 +851,7 @@ configure:23135: result: yes configure:23168: checking for sched.h configure:23176: result: yes configure:23059: checking sys/ioctl.h usability -configure:23076: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 +configure:23076: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 conftest.c:62:23: fatal error: sys/ioctl.h: No such file or directory compilation terminated. configure:23082: $? = 1 @@ -962,7 +962,7 @@ configure:23055: result: yes configure:23049: checking for stdint.h configure:23055: result: yes configure:23059: checking limits.h usability -configure:23076: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 +configure:23076: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 configure:23082: $? = 0 configure:23096: result: yes configure:23100: checking limits.h presence @@ -974,7 +974,7 @@ configure:23176: result: yes configure:23049: checking for inttypes.h configure:23055: result: yes configure:23059: checking sys/time.h usability -configure:23076: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 +configure:23076: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 configure:23082: $? = 0 configure:23096: result: yes configure:23100: checking sys/time.h presence @@ -984,7 +984,7 @@ configure:23135: result: yes configure:23168: checking for sys/time.h configure:23176: result: yes configure:23059: checking sys/wait.h usability -configure:23076: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 +configure:23076: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 configure:23082: $? = 0 configure:23096: result: yes configure:23100: checking sys/wait.h presence @@ -994,7 +994,7 @@ configure:23135: result: yes configure:23168: checking for sys/wait.h configure:23176: result: yes configure:23059: checking sys/resource.h usability -configure:23076: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 +configure:23076: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 configure:23082: $? = 0 configure:23096: result: yes configure:23100: checking sys/resource.h presence @@ -1004,7 +1004,7 @@ configure:23135: result: yes configure:23168: checking for sys/resource.h configure:23176: result: yes configure:23059: checking sys/signal.h usability -configure:23076: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 +configure:23076: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 configure:23082: $? = 0 configure:23096: result: yes configure:23100: checking sys/signal.h presence @@ -1014,7 +1014,7 @@ configure:23135: result: yes configure:23168: checking for sys/signal.h configure:23176: result: yes configure:23059: checking signal.h usability -configure:23076: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 +configure:23076: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 configure:23082: $? = 0 configure:23096: result: yes configure:23100: checking signal.h presence @@ -1026,7 +1026,7 @@ configure:23176: result: yes configure:23199: checking for special C compiler options needed for large files configure:23292: result: no configure:23298: checking for _FILE_OFFSET_BITS value needed for large files -configure:23333: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 +configure:23333: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 conftest.c:44:3: warning: left shift count >= width of type conftest.c:44:3: warning: left shift count >= width of type conftest.c:45:10: warning: left shift count >= width of type @@ -1088,7 +1088,7 @@ configure: failed program was: | ; | return 0; | } -configure:23383: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 +configure:23383: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 conftest.c:45:3: warning: left shift count >= width of type conftest.c:45:3: warning: left shift count >= width of type conftest.c:46:10: warning: left shift count >= width of type @@ -1153,7 +1153,7 @@ configure: failed program was: | } configure:23407: result: unknown configure:23419: checking for _LARGE_FILES value needed for large files -configure:23454: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 +configure:23454: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 conftest.c:44:3: warning: left shift count >= width of type conftest.c:44:3: warning: left shift count >= width of type conftest.c:45:10: warning: left shift count >= width of type @@ -1215,7 +1215,7 @@ configure: failed program was: | ; | return 0; | } -configure:23504: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 +configure:23504: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 conftest.c:45:3: warning: left shift count >= width of type conftest.c:45:3: warning: left shift count >= width of type conftest.c:46:10: warning: left shift count >= width of type @@ -1280,43 +1280,43 @@ configure: failed program was: | } configure:23528: result: unknown configure:23550: checking for size_t -configure:23580: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 +configure:23580: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 configure:23586: $? = 0 configure:23601: result: yes configure:23613: checking for uintptr_t -configure:23643: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 +configure:23643: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 configure:23649: $? = 0 configure:23664: result: yes configure:23676: checking for ssize_t -configure:23706: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 +configure:23706: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 configure:23712: $? = 0 configure:23727: result: yes configure:23739: checking for off_t -configure:23769: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 +configure:23769: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 configure:23775: $? = 0 configure:23790: result: yes configure:23802: checking for int32_t -configure:23832: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 +configure:23832: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 configure:23838: $? = 0 configure:23853: result: yes configure:23865: checking for uint32_t -configure:23895: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 +configure:23895: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 configure:23901: $? = 0 configure:23916: result: yes configure:23928: checking for int16_t -configure:23958: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 +configure:23958: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 configure:23964: $? = 0 configure:23979: result: yes configure:23991: checking for uint16_t -configure:24021: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 +configure:24021: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 configure:24027: $? = 0 configure:24042: result: yes configure:24054: checking for size_t configure:24105: result: yes configure:24112: checking size of size_t -configure:24143: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 +configure:24143: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 configure:24149: $? = 0 -configure:24180: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 +configure:24180: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 conftest.c: In function 'main': conftest.c:75:12: error: size of array 'test_array' is negative configure:24186: $? = 1 @@ -1401,7 +1401,7 @@ configure: failed program was: | ; | return 0; | } -configure:24180: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 +configure:24180: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 conftest.c: In function 'main': conftest.c:75:12: error: size of array 'test_array' is negative configure:24186: $? = 1 @@ -1486,7 +1486,7 @@ configure: failed program was: | ; | return 0; | } -configure:24180: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 +configure:24180: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 conftest.c: In function 'main': conftest.c:75:12: error: size of array 'test_array' is negative configure:24186: $? = 1 @@ -1571,19 +1571,19 @@ configure: failed program was: | ; | return 0; | } -configure:24180: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 +configure:24180: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 configure:24186: $? = 0 -configure:24335: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 +configure:24335: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 configure:24341: $? = 0 -configure:24335: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 +configure:24335: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 configure:24341: $? = 0 configure:24449: result: 4 configure:24459: checking for ssize_t configure:24510: result: yes configure:24517: checking size of ssize_t -configure:24548: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 +configure:24548: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 configure:24554: $? = 0 -configure:24585: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 +configure:24585: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 conftest.c: In function 'main': conftest.c:76:12: error: size of array 'test_array' is negative configure:24591: $? = 1 @@ -1669,7 +1669,7 @@ configure: failed program was: | ; | return 0; | } -configure:24585: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 +configure:24585: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 conftest.c: In function 'main': conftest.c:76:12: error: size of array 'test_array' is negative configure:24591: $? = 1 @@ -1755,7 +1755,7 @@ configure: failed program was: | ; | return 0; | } -configure:24585: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 +configure:24585: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 conftest.c: In function 'main': conftest.c:76:12: error: size of array 'test_array' is negative configure:24591: $? = 1 @@ -1841,19 +1841,19 @@ configure: failed program was: | ; | return 0; | } -configure:24585: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 +configure:24585: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 configure:24591: $? = 0 -configure:24740: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 +configure:24740: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 configure:24746: $? = 0 -configure:24740: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 +configure:24740: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 configure:24746: $? = 0 configure:24854: result: 4 configure:24864: checking for off_t configure:24915: result: yes configure:24922: checking size of off_t -configure:24953: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 +configure:24953: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 configure:24959: $? = 0 -configure:24990: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 +configure:24990: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 conftest.c: In function 'main': conftest.c:77:12: error: size of array 'test_array' is negative configure:24996: $? = 1 @@ -1940,7 +1940,7 @@ configure: failed program was: | ; | return 0; | } -configure:24990: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 +configure:24990: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 conftest.c: In function 'main': conftest.c:77:12: error: size of array 'test_array' is negative configure:24996: $? = 1 @@ -2027,7 +2027,7 @@ configure: failed program was: | ; | return 0; | } -configure:24990: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 +configure:24990: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 conftest.c: In function 'main': conftest.c:77:12: error: size of array 'test_array' is negative configure:24996: $? = 1 @@ -2114,19 +2114,19 @@ configure: failed program was: | ; | return 0; | } -configure:24990: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 +configure:24990: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 configure:24996: $? = 0 -configure:25145: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 +configure:25145: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 configure:25151: $? = 0 -configure:25145: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 +configure:25145: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 configure:25151: $? = 0 configure:25259: result: 4 configure:25269: checking for int32_t configure:25320: result: yes configure:25327: checking size of int32_t -configure:25358: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 +configure:25358: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 configure:25364: $? = 0 -configure:25395: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 +configure:25395: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 conftest.c: In function 'main': conftest.c:78:12: error: size of array 'test_array' is negative configure:25401: $? = 1 @@ -2214,7 +2214,7 @@ configure: failed program was: | ; | return 0; | } -configure:25395: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 +configure:25395: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 conftest.c: In function 'main': conftest.c:78:12: error: size of array 'test_array' is negative configure:25401: $? = 1 @@ -2302,7 +2302,7 @@ configure: failed program was: | ; | return 0; | } -configure:25395: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 +configure:25395: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 conftest.c: In function 'main': conftest.c:78:12: error: size of array 'test_array' is negative configure:25401: $? = 1 @@ -2390,21 +2390,21 @@ configure: failed program was: | ; | return 0; | } -configure:25395: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 +configure:25395: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 configure:25401: $? = 0 -configure:25550: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 +configure:25550: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 configure:25556: $? = 0 -configure:25550: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 +configure:25550: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 configure:25556: $? = 0 configure:25664: result: 4 configure:25674: checking for long -configure:25704: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 +configure:25704: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 configure:25710: $? = 0 configure:25725: result: yes configure:25732: checking size of long -configure:25763: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 +configure:25763: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 configure:25769: $? = 0 -configure:25800: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 +configure:25800: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 conftest.c: In function 'main': conftest.c:79:12: error: size of array 'test_array' is negative configure:25806: $? = 1 @@ -2493,7 +2493,7 @@ configure: failed program was: | ; | return 0; | } -configure:25800: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 +configure:25800: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 conftest.c: In function 'main': conftest.c:79:12: error: size of array 'test_array' is negative configure:25806: $? = 1 @@ -2582,7 +2582,7 @@ configure: failed program was: | ; | return 0; | } -configure:25800: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 +configure:25800: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 conftest.c: In function 'main': conftest.c:79:12: error: size of array 'test_array' is negative configure:25806: $? = 1 @@ -2671,11 +2671,11 @@ configure: failed program was: | ; | return 0; | } -configure:25800: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 +configure:25800: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 configure:25806: $? = 0 -configure:25955: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 +configure:25955: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 configure:25961: $? = 0 -configure:25955: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 +configure:25955: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 configure:25961: $? = 0 configure:26069: result: 4 configure:26117: checking if we want to enable alias wrappers for largefile @@ -2685,7 +2685,7 @@ configure:26144: result: yes configure:26138: checking for unistd.h configure:26144: result: yes configure:26282: checking for getpagesize -configure:26338: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -o conftest -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing -ml -m4-single-only -Wl,-Ttext=0x8c010000 -T/usr/local/dc/kos/kos/utils/ldscripts/shlelf.xc -nodefaultlibs -L/usr/local/dc/kos/kos/lib/dreamcast -L/usr/local/dc/kos/kos/addons/lib/dreamcast conftest.c -Wl,--start-group -lkallisti -lc -lgcc -Wl,--end-group >&5 +configure:26338: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -o conftest -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing -ml -m4-single -Wl,-Ttext=0x8c010000 -T/usr/local/dc/kos/kos/utils/ldscripts/shlelf.xc -nodefaultlibs -L/usr/local/dc/kos/kos/lib/dreamcast -L/usr/local/dc/kos/kos/addons/lib/dreamcast conftest.c -Wl,--start-group -lkallisti -lc -lgcc -Wl,--end-group >&5 /tmp/ccyt74h3.o: In function `main': /usr/local/dc/kos/kos/ds/lib/libmp3/mpg123/conftest.c:83: undefined reference to `_getpagesize' collect2: ld returned 1 exit status @@ -2778,7 +2778,7 @@ configure:26362: result: no configure:26372: checking for working mmap configure:26547: result: no configure:26560: checking POSIX termios -configure:26590: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -o conftest -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing -ml -m4-single-only -Wl,-Ttext=0x8c010000 -T/usr/local/dc/kos/kos/utils/ldscripts/shlelf.xc -nodefaultlibs -L/usr/local/dc/kos/kos/lib/dreamcast -L/usr/local/dc/kos/kos/addons/lib/dreamcast conftest.c -Wl,--start-group -lkallisti -lc -lgcc -Wl,--end-group >&5 +configure:26590: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -o conftest -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing -ml -m4-single -Wl,-Ttext=0x8c010000 -T/usr/local/dc/kos/kos/utils/ldscripts/shlelf.xc -nodefaultlibs -L/usr/local/dc/kos/kos/lib/dreamcast -L/usr/local/dc/kos/kos/addons/lib/dreamcast conftest.c -Wl,--start-group -lkallisti -lc -lgcc -Wl,--end-group >&5 In file included from conftest.c:48:0: /opt/toolchains/dc/sh-elf/lib/gcc/sh-elf/4.5.2/../../../../sh-elf/include/termios.h:4:25: fatal error: sys/termios.h: No such file or directory compilation terminated. @@ -2843,7 +2843,7 @@ configure: failed program was: | } configure:26613: result: no configure:26628: checking for random -configure:26684: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -o conftest -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing -ml -m4-single-only -Wl,-Ttext=0x8c010000 -T/usr/local/dc/kos/kos/utils/ldscripts/shlelf.xc -nodefaultlibs -L/usr/local/dc/kos/kos/lib/dreamcast -L/usr/local/dc/kos/kos/addons/lib/dreamcast conftest.c -Wl,--start-group -lkallisti -lc -lgcc -Wl,--end-group >&5 +configure:26684: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -o conftest -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing -ml -m4-single -Wl,-Ttext=0x8c010000 -T/usr/local/dc/kos/kos/utils/ldscripts/shlelf.xc -nodefaultlibs -L/usr/local/dc/kos/kos/lib/dreamcast -L/usr/local/dc/kos/kos/addons/lib/dreamcast conftest.c -Wl,--start-group -lkallisti -lc -lgcc -Wl,--end-group >&5 /tmp/cc8YFRjR.o: In function `main': /usr/local/dc/kos/kos/ds/lib/libmp3/mpg123/conftest.c:83: undefined reference to `_random' collect2: ld returned 1 exit status @@ -2934,7 +2934,7 @@ configure: failed program was: | } configure:26708: result: no configure:26726: checking for sched_setscheduler -configure:26782: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -o conftest -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing -ml -m4-single-only -Wl,-Ttext=0x8c010000 -T/usr/local/dc/kos/kos/utils/ldscripts/shlelf.xc -nodefaultlibs -L/usr/local/dc/kos/kos/lib/dreamcast -L/usr/local/dc/kos/kos/addons/lib/dreamcast conftest.c -Wl,--start-group -lkallisti -lc -lgcc -Wl,--end-group >&5 +configure:26782: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -o conftest -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing -ml -m4-single -Wl,-Ttext=0x8c010000 -T/usr/local/dc/kos/kos/utils/ldscripts/shlelf.xc -nodefaultlibs -L/usr/local/dc/kos/kos/lib/dreamcast -L/usr/local/dc/kos/kos/addons/lib/dreamcast conftest.c -Wl,--start-group -lkallisti -lc -lgcc -Wl,--end-group >&5 /tmp/ccJJrQZm.o: In function `main': /usr/local/dc/kos/kos/ds/lib/libmp3/mpg123/conftest.c:83: undefined reference to `_sched_setscheduler' collect2: ld returned 1 exit status @@ -3025,7 +3025,7 @@ configure: failed program was: | } configure:26806: result: no configure:26726: checking for setuid -configure:26782: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -o conftest -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing -ml -m4-single-only -Wl,-Ttext=0x8c010000 -T/usr/local/dc/kos/kos/utils/ldscripts/shlelf.xc -nodefaultlibs -L/usr/local/dc/kos/kos/lib/dreamcast -L/usr/local/dc/kos/kos/addons/lib/dreamcast conftest.c -Wl,--start-group -lkallisti -lc -lgcc -Wl,--end-group >&5 +configure:26782: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -o conftest -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing -ml -m4-single -Wl,-Ttext=0x8c010000 -T/usr/local/dc/kos/kos/utils/ldscripts/shlelf.xc -nodefaultlibs -L/usr/local/dc/kos/kos/lib/dreamcast -L/usr/local/dc/kos/kos/addons/lib/dreamcast conftest.c -Wl,--start-group -lkallisti -lc -lgcc -Wl,--end-group >&5 /tmp/cc7bcywK.o: In function `main': /usr/local/dc/kos/kos/ds/lib/libmp3/mpg123/conftest.c:83: undefined reference to `_setuid' collect2: ld returned 1 exit status @@ -3116,7 +3116,7 @@ configure: failed program was: | } configure:26806: result: no configure:26726: checking for getuid -configure:26782: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -o conftest -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing -ml -m4-single-only -Wl,-Ttext=0x8c010000 -T/usr/local/dc/kos/kos/utils/ldscripts/shlelf.xc -nodefaultlibs -L/usr/local/dc/kos/kos/lib/dreamcast -L/usr/local/dc/kos/kos/addons/lib/dreamcast conftest.c -Wl,--start-group -lkallisti -lc -lgcc -Wl,--end-group >&5 +configure:26782: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -o conftest -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing -ml -m4-single -Wl,-Ttext=0x8c010000 -T/usr/local/dc/kos/kos/utils/ldscripts/shlelf.xc -nodefaultlibs -L/usr/local/dc/kos/kos/lib/dreamcast -L/usr/local/dc/kos/kos/addons/lib/dreamcast conftest.c -Wl,--start-group -lkallisti -lc -lgcc -Wl,--end-group >&5 /tmp/cc8WK26R.o: In function `main': /usr/local/dc/kos/kos/ds/lib/libmp3/mpg123/conftest.c:83: undefined reference to `_getuid' collect2: ld returned 1 exit status @@ -3207,7 +3207,7 @@ configure: failed program was: | } configure:26806: result: no configure:26822: checking for setpriority -configure:26878: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -o conftest -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing -ml -m4-single-only -Wl,-Ttext=0x8c010000 -T/usr/local/dc/kos/kos/utils/ldscripts/shlelf.xc -nodefaultlibs -L/usr/local/dc/kos/kos/lib/dreamcast -L/usr/local/dc/kos/kos/addons/lib/dreamcast conftest.c -Wl,--start-group -lkallisti -lc -lgcc -Wl,--end-group >&5 +configure:26878: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -o conftest -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing -ml -m4-single -Wl,-Ttext=0x8c010000 -T/usr/local/dc/kos/kos/utils/ldscripts/shlelf.xc -nodefaultlibs -L/usr/local/dc/kos/kos/lib/dreamcast -L/usr/local/dc/kos/kos/addons/lib/dreamcast conftest.c -Wl,--start-group -lkallisti -lc -lgcc -Wl,--end-group >&5 /tmp/ccSqHDc4.o: In function `main': /usr/local/dc/kos/kos/ds/lib/libmp3/mpg123/conftest.c:83: undefined reference to `_setpriority' collect2: ld returned 1 exit status @@ -3298,27 +3298,27 @@ configure: failed program was: | } configure:26902: result: no configure:26917: checking for strerror -configure:26973: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -o conftest -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing -ml -m4-single-only -Wl,-Ttext=0x8c010000 -T/usr/local/dc/kos/kos/utils/ldscripts/shlelf.xc -nodefaultlibs -L/usr/local/dc/kos/kos/lib/dreamcast -L/usr/local/dc/kos/kos/addons/lib/dreamcast conftest.c -Wl,--start-group -lkallisti -lc -lgcc -Wl,--end-group >&5 +configure:26973: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -o conftest -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing -ml -m4-single -Wl,-Ttext=0x8c010000 -T/usr/local/dc/kos/kos/utils/ldscripts/shlelf.xc -nodefaultlibs -L/usr/local/dc/kos/kos/lib/dreamcast -L/usr/local/dc/kos/kos/addons/lib/dreamcast conftest.c -Wl,--start-group -lkallisti -lc -lgcc -Wl,--end-group >&5 configure:26979: $? = 0 configure:26997: result: yes configure:27013: checking for setlocale -configure:27069: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -o conftest -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing -ml -m4-single-only -Wl,-Ttext=0x8c010000 -T/usr/local/dc/kos/kos/utils/ldscripts/shlelf.xc -nodefaultlibs -L/usr/local/dc/kos/kos/lib/dreamcast -L/usr/local/dc/kos/kos/addons/lib/dreamcast conftest.c -Wl,--start-group -lkallisti -lc -lgcc -Wl,--end-group >&5 +configure:27069: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -o conftest -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing -ml -m4-single -Wl,-Ttext=0x8c010000 -T/usr/local/dc/kos/kos/utils/ldscripts/shlelf.xc -nodefaultlibs -L/usr/local/dc/kos/kos/lib/dreamcast -L/usr/local/dc/kos/kos/addons/lib/dreamcast conftest.c -Wl,--start-group -lkallisti -lc -lgcc -Wl,--end-group >&5 configure:27075: $? = 0 configure:27093: result: yes configure:27013: checking for nl_langinfo -configure:27069: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -o conftest -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing -ml -m4-single-only -Wl,-Ttext=0x8c010000 -T/usr/local/dc/kos/kos/utils/ldscripts/shlelf.xc -nodefaultlibs -L/usr/local/dc/kos/kos/lib/dreamcast -L/usr/local/dc/kos/kos/addons/lib/dreamcast conftest.c -Wl,--start-group -lkallisti -lc -lgcc -Wl,--end-group >&5 +configure:27069: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -o conftest -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing -ml -m4-single -Wl,-Ttext=0x8c010000 -T/usr/local/dc/kos/kos/utils/ldscripts/shlelf.xc -nodefaultlibs -L/usr/local/dc/kos/kos/lib/dreamcast -L/usr/local/dc/kos/kos/addons/lib/dreamcast conftest.c -Wl,--start-group -lkallisti -lc -lgcc -Wl,--end-group >&5 configure:27075: $? = 0 configure:27093: result: yes configure:27108: checking for strdup -configure:27164: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -o conftest -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing -ml -m4-single-only -Wl,-Ttext=0x8c010000 -T/usr/local/dc/kos/kos/utils/ldscripts/shlelf.xc -nodefaultlibs -L/usr/local/dc/kos/kos/lib/dreamcast -L/usr/local/dc/kos/kos/addons/lib/dreamcast conftest.c -Wl,--start-group -lkallisti -lc -lgcc -Wl,--end-group >&5 +configure:27164: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -o conftest -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing -ml -m4-single -Wl,-Ttext=0x8c010000 -T/usr/local/dc/kos/kos/utils/ldscripts/shlelf.xc -nodefaultlibs -L/usr/local/dc/kos/kos/lib/dreamcast -L/usr/local/dc/kos/kos/addons/lib/dreamcast conftest.c -Wl,--start-group -lkallisti -lc -lgcc -Wl,--end-group >&5 configure:27170: $? = 0 configure:27188: result: yes configure:27203: checking for atoll -configure:27259: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -o conftest -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing -ml -m4-single-only -Wl,-Ttext=0x8c010000 -T/usr/local/dc/kos/kos/utils/ldscripts/shlelf.xc -nodefaultlibs -L/usr/local/dc/kos/kos/lib/dreamcast -L/usr/local/dc/kos/kos/addons/lib/dreamcast conftest.c -Wl,--start-group -lkallisti -lc -lgcc -Wl,--end-group >&5 +configure:27259: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -o conftest -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing -ml -m4-single -Wl,-Ttext=0x8c010000 -T/usr/local/dc/kos/kos/utils/ldscripts/shlelf.xc -nodefaultlibs -L/usr/local/dc/kos/kos/lib/dreamcast -L/usr/local/dc/kos/kos/addons/lib/dreamcast conftest.c -Wl,--start-group -lkallisti -lc -lgcc -Wl,--end-group >&5 configure:27265: $? = 0 configure:27283: result: yes configure:27298: checking for mkfifo -configure:27354: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -o conftest -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing -ml -m4-single-only -Wl,-Ttext=0x8c010000 -T/usr/local/dc/kos/kos/utils/ldscripts/shlelf.xc -nodefaultlibs -L/usr/local/dc/kos/kos/lib/dreamcast -L/usr/local/dc/kos/kos/addons/lib/dreamcast conftest.c -Wl,--start-group -lkallisti -lc -lgcc -Wl,--end-group >&5 +configure:27354: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -o conftest -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing -ml -m4-single -Wl,-Ttext=0x8c010000 -T/usr/local/dc/kos/kos/utils/ldscripts/shlelf.xc -nodefaultlibs -L/usr/local/dc/kos/kos/lib/dreamcast -L/usr/local/dc/kos/kos/addons/lib/dreamcast conftest.c -Wl,--start-group -lkallisti -lc -lgcc -Wl,--end-group >&5 /tmp/ccMXMvfK.o: In function `main': /usr/local/dc/kos/kos/ds/lib/libmp3/mpg123/conftest.c:88: undefined reference to `_mkfifo' collect2: ld returned 1 exit status @@ -3414,7 +3414,7 @@ configure: failed program was: | } configure:27378: result: no configure:27409: checking locale.h usability -configure:27426: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 +configure:27426: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 configure:27432: $? = 0 configure:27446: result: yes configure:27450: checking locale.h presence @@ -3424,7 +3424,7 @@ configure:27485: result: yes configure:27518: checking for locale.h configure:27526: result: yes configure:27409: checking langinfo.h usability -configure:27426: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 +configure:27426: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 configure:27432: $? = 0 configure:27446: result: yes configure:27450: checking langinfo.h presence @@ -3434,7 +3434,7 @@ configure:27485: result: yes configure:27518: checking for langinfo.h configure:27526: result: yes configure:27560: checking netdb.h usability -configure:27577: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 +configure:27577: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 conftest.c:86:19: fatal error: netdb.h: No such file or directory compilation terminated. configure:27583: $? = 1 @@ -3589,7 +3589,7 @@ configure:27636: result: no configure:27669: checking for netdb.h configure:27677: result: no configure:27560: checking sys/param.h usability -configure:27577: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 +configure:27577: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 configure:27583: $? = 0 configure:27597: result: yes configure:27601: checking sys/param.h presence @@ -3599,7 +3599,7 @@ configure:27636: result: yes configure:27669: checking for sys/param.h configure:27677: result: yes configure:27560: checking sys/socket.h usability -configure:27577: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 +configure:27577: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 configure:27583: $? = 0 configure:27597: result: yes configure:27601: checking sys/socket.h presence @@ -3668,7 +3668,7 @@ configure:27644: WARNING: sys/socket.h: proceeding with the compiler's result configure:27669: checking for sys/socket.h configure:27677: result: yes configure:27560: checking netinet/in.h usability -configure:27577: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 +configure:27577: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 configure:27583: $? = 0 configure:27597: result: yes configure:27601: checking netinet/in.h presence @@ -3738,7 +3738,7 @@ configure:27644: WARNING: netinet/in.h: proceeding with the compiler's result configure:27669: checking for netinet/in.h configure:27677: result: yes configure:27560: checking arpa/inet.h usability -configure:27577: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 +configure:27577: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 configure:27583: $? = 0 configure:27597: result: yes configure:27601: checking arpa/inet.h presence @@ -3809,7 +3809,7 @@ configure:27644: WARNING: arpa/inet.h: proceeding with the compiler's result configure:27669: checking for arpa/inet.h configure:27677: result: yes configure:27701: checking for library containing gethostbyname -configure:27742: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -o conftest -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing -ml -m4-single-only -Wl,-Ttext=0x8c010000 -T/usr/local/dc/kos/kos/utils/ldscripts/shlelf.xc -nodefaultlibs -L/usr/local/dc/kos/kos/lib/dreamcast -L/usr/local/dc/kos/kos/addons/lib/dreamcast conftest.c -Wl,--start-group -lkallisti -lc -lgcc -Wl,--end-group >&5 +configure:27742: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -o conftest -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing -ml -m4-single -Wl,-Ttext=0x8c010000 -T/usr/local/dc/kos/kos/utils/ldscripts/shlelf.xc -nodefaultlibs -L/usr/local/dc/kos/kos/lib/dreamcast -L/usr/local/dc/kos/kos/addons/lib/dreamcast conftest.c -Wl,--start-group -lkallisti -lc -lgcc -Wl,--end-group >&5 /tmp/ccUIAdt5.o: In function `main': /usr/local/dc/kos/kos/ds/lib/libmp3/mpg123/conftest.c:71: undefined reference to `_gethostbyname' collect2: ld returned 1 exit status @@ -3886,7 +3886,7 @@ configure: failed program was: | ; | return 0; | } -configure:27742: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -o conftest -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing -ml -m4-single-only -Wl,-Ttext=0x8c010000 -T/usr/local/dc/kos/kos/utils/ldscripts/shlelf.xc -nodefaultlibs -L/usr/local/dc/kos/kos/lib/dreamcast -L/usr/local/dc/kos/kos/addons/lib/dreamcast conftest.c -lnsl -Wl,--start-group -lkallisti -lc -lgcc -Wl,--end-group >&5 +configure:27742: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -o conftest -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing -ml -m4-single -Wl,-Ttext=0x8c010000 -T/usr/local/dc/kos/kos/utils/ldscripts/shlelf.xc -nodefaultlibs -L/usr/local/dc/kos/kos/lib/dreamcast -L/usr/local/dc/kos/kos/addons/lib/dreamcast conftest.c -lnsl -Wl,--start-group -lkallisti -lc -lgcc -Wl,--end-group >&5 /opt/toolchains/dc/sh-elf/lib/gcc/sh-elf/4.5.2/../../../../sh-elf/bin/ld: cannot find -lnsl collect2: ld returned 1 exit status configure:27748: $? = 1 @@ -3962,7 +3962,7 @@ configure: failed program was: | ; | return 0; | } -configure:27742: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -o conftest -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing -ml -m4-single-only -Wl,-Ttext=0x8c010000 -T/usr/local/dc/kos/kos/utils/ldscripts/shlelf.xc -nodefaultlibs -L/usr/local/dc/kos/kos/lib/dreamcast -L/usr/local/dc/kos/kos/addons/lib/dreamcast conftest.c -lsocket -Wl,--start-group -lkallisti -lc -lgcc -Wl,--end-group >&5 +configure:27742: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -o conftest -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing -ml -m4-single -Wl,-Ttext=0x8c010000 -T/usr/local/dc/kos/kos/utils/ldscripts/shlelf.xc -nodefaultlibs -L/usr/local/dc/kos/kos/lib/dreamcast -L/usr/local/dc/kos/kos/addons/lib/dreamcast conftest.c -lsocket -Wl,--start-group -lkallisti -lc -lgcc -Wl,--end-group >&5 /opt/toolchains/dc/sh-elf/lib/gcc/sh-elf/4.5.2/../../../../sh-elf/bin/ld: cannot find -lsocket collect2: ld returned 1 exit status configure:27748: $? = 1 @@ -4040,11 +4040,11 @@ configure: failed program was: | } configure:27776: result: no configure:27784: checking for library containing socket -configure:27825: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -o conftest -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing -ml -m4-single-only -Wl,-Ttext=0x8c010000 -T/usr/local/dc/kos/kos/utils/ldscripts/shlelf.xc -nodefaultlibs -L/usr/local/dc/kos/kos/lib/dreamcast -L/usr/local/dc/kos/kos/addons/lib/dreamcast conftest.c -Wl,--start-group -lkallisti -lc -lgcc -Wl,--end-group >&5 +configure:27825: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -o conftest -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing -ml -m4-single -Wl,-Ttext=0x8c010000 -T/usr/local/dc/kos/kos/utils/ldscripts/shlelf.xc -nodefaultlibs -L/usr/local/dc/kos/kos/lib/dreamcast -L/usr/local/dc/kos/kos/addons/lib/dreamcast conftest.c -Wl,--start-group -lkallisti -lc -lgcc -Wl,--end-group >&5 configure:27831: $? = 0 configure:27859: result: none required configure:27872: checking for getaddrinfo -configure:27928: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -o conftest -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing -ml -m4-single-only -Wl,-Ttext=0x8c010000 -T/usr/local/dc/kos/kos/utils/ldscripts/shlelf.xc -nodefaultlibs -L/usr/local/dc/kos/kos/lib/dreamcast -L/usr/local/dc/kos/kos/addons/lib/dreamcast conftest.c -Wl,--start-group -lkallisti -lc -lgcc -Wl,--end-group >&5 +configure:27928: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -o conftest -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing -ml -m4-single -Wl,-Ttext=0x8c010000 -T/usr/local/dc/kos/kos/utils/ldscripts/shlelf.xc -nodefaultlibs -L/usr/local/dc/kos/kos/lib/dreamcast -L/usr/local/dc/kos/kos/addons/lib/dreamcast conftest.c -Wl,--start-group -lkallisti -lc -lgcc -Wl,--end-group >&5 /tmp/ccMEF3vx.o: In function `main': /usr/local/dc/kos/kos/ds/lib/libmp3/mpg123/conftest.c:94: undefined reference to `_getaddrinfo' collect2: ld returned 1 exit status @@ -4148,11 +4148,11 @@ configure:27952: result: no configure:27966: checking for working AI_ADDRCONFIG configure:28039: result: no configure:28076: checking for sqrt in -lm -configure:28111: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -o conftest -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing -ml -m4-single-only -Wl,-Ttext=0x8c010000 -T/usr/local/dc/kos/kos/utils/ldscripts/shlelf.xc -nodefaultlibs -L/usr/local/dc/kos/kos/lib/dreamcast -L/usr/local/dc/kos/kos/addons/lib/dreamcast conftest.c -lm -Wl,--start-group -lkallisti -lc -lgcc -Wl,--end-group >&5 +configure:28111: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -o conftest -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing -ml -m4-single -Wl,-Ttext=0x8c010000 -T/usr/local/dc/kos/kos/utils/ldscripts/shlelf.xc -nodefaultlibs -L/usr/local/dc/kos/kos/lib/dreamcast -L/usr/local/dc/kos/kos/addons/lib/dreamcast conftest.c -lm -Wl,--start-group -lkallisti -lc -lgcc -Wl,--end-group >&5 configure:28117: $? = 0 configure:28135: result: yes configure:28147: checking for powf in -lmx -configure:28182: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -o conftest -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing -ml -m4-single-only -Wl,-Ttext=0x8c010000 -T/usr/local/dc/kos/kos/utils/ldscripts/shlelf.xc -nodefaultlibs -L/usr/local/dc/kos/kos/lib/dreamcast -L/usr/local/dc/kos/kos/addons/lib/dreamcast conftest.c -lmx -lm -Wl,--start-group -lkallisti -lc -lgcc -Wl,--end-group >&5 +configure:28182: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -o conftest -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing -ml -m4-single -Wl,-Ttext=0x8c010000 -T/usr/local/dc/kos/kos/utils/ldscripts/shlelf.xc -nodefaultlibs -L/usr/local/dc/kos/kos/lib/dreamcast -L/usr/local/dc/kos/kos/addons/lib/dreamcast conftest.c -lmx -lm -Wl,--start-group -lkallisti -lc -lgcc -Wl,--end-group >&5 /opt/toolchains/dc/sh-elf/lib/gcc/sh-elf/4.5.2/../../../../sh-elf/bin/ld: cannot find -lmx collect2: ld returned 1 exit status configure:28188: $? = 1 @@ -4231,7 +4231,7 @@ configure: failed program was: | } configure:28206: result: no configure:28245: checking os2.h usability -configure:28262: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 +configure:28262: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 conftest.c:91:17: fatal error: os2.h: No such file or directory compilation terminated. configure:28268: $? = 1 @@ -4408,7 +4408,7 @@ configuration is useful to you, please write to autoconf@gnu.org. configure:28731: checking pkg-config is at least version 0.9.0 configure:28734: result: yes configure:28917: checking for snd_pcm_open in -lasound -configure:28952: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -o conftest -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing -ml -m4-single-only -Wl,-Ttext=0x8c010000 -T/usr/local/dc/kos/kos/utils/ldscripts/shlelf.xc -nodefaultlibs -L/usr/local/dc/kos/kos/lib/dreamcast -L/usr/local/dc/kos/kos/addons/lib/dreamcast conftest.c -lasound -lm -Wl,--start-group -lkallisti -lc -lgcc -Wl,--end-group >&5 +configure:28952: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -o conftest -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing -ml -m4-single -Wl,-Ttext=0x8c010000 -T/usr/local/dc/kos/kos/utils/ldscripts/shlelf.xc -nodefaultlibs -L/usr/local/dc/kos/kos/lib/dreamcast -L/usr/local/dc/kos/kos/addons/lib/dreamcast conftest.c -lasound -lm -Wl,--start-group -lkallisti -lc -lgcc -Wl,--end-group >&5 /opt/toolchains/dc/sh-elf/lib/gcc/sh-elf/4.5.2/../../../../sh-elf/bin/ld: cannot find -lasound collect2: ld returned 1 exit status configure:28958: $? = 1 @@ -4487,7 +4487,7 @@ configure: failed program was: | } configure:28976: result: no configure:28774: checking sys/soundcard.h usability -configure:28791: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 +configure:28791: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 conftest.c:91:27: fatal error: sys/soundcard.h: No such file or directory compilation terminated. configure:28797: $? = 1 @@ -4652,7 +4652,7 @@ configure:28850: result: no configure:28883: checking for sys/soundcard.h configure:28891: result: no configure:28774: checking linux/soundcard.h usability -configure:28791: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 +configure:28791: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 conftest.c:91:29: fatal error: linux/soundcard.h: No such file or directory compilation terminated. configure:28797: $? = 1 @@ -4817,7 +4817,7 @@ configure:28850: result: no configure:28883: checking for linux/soundcard.h configure:28891: result: no configure:28774: checking machine/soundcard.h usability -configure:28791: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 +configure:28791: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 conftest.c:91:31: fatal error: machine/soundcard.h: No such file or directory compilation terminated. configure:28797: $? = 1 @@ -4982,7 +4982,7 @@ configure:28850: result: no configure:28883: checking for machine/soundcard.h configure:28891: result: no configure:30676: checking AudioUnit/AudioUnit.h usability -configure:30693: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 +configure:30693: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 conftest.c:91:33: fatal error: AudioUnit/AudioUnit.h: No such file or directory compilation terminated. configure:30699: $? = 1 @@ -5147,7 +5147,7 @@ configure:30752: result: no configure:30785: checking for AudioUnit/AudioUnit.h configure:30793: result: no configure:30676: checking CoreServices/CoreServices.h usability -configure:30693: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 +configure:30693: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 conftest.c:91:39: fatal error: CoreServices/CoreServices.h: No such file or directory compilation terminated. configure:30699: $? = 1 @@ -5312,7 +5312,7 @@ configure:30752: result: no configure:30785: checking for CoreServices/CoreServices.h configure:30793: result: no configure:30676: checking AudioToolbox/AudioToolbox.h usability -configure:30693: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 +configure:30693: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 conftest.c:91:39: fatal error: AudioToolbox/AudioToolbox.h: No such file or directory compilation terminated. configure:30699: $? = 1 @@ -5477,7 +5477,7 @@ configure:30752: result: no configure:30785: checking for AudioToolbox/AudioToolbox.h configure:30793: result: no configure:30283: checking for sio_open in -lsndio -configure:30318: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -o conftest -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing -ml -m4-single-only -Wl,-Ttext=0x8c010000 -T/usr/local/dc/kos/kos/utils/ldscripts/shlelf.xc -nodefaultlibs -L/usr/local/dc/kos/kos/lib/dreamcast -L/usr/local/dc/kos/kos/addons/lib/dreamcast conftest.c -lsndio -lm -Wl,--start-group -lkallisti -lc -lgcc -Wl,--end-group >&5 +configure:30318: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -o conftest -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing -ml -m4-single -Wl,-Ttext=0x8c010000 -T/usr/local/dc/kos/kos/utils/ldscripts/shlelf.xc -nodefaultlibs -L/usr/local/dc/kos/kos/lib/dreamcast -L/usr/local/dc/kos/kos/addons/lib/dreamcast conftest.c -lsndio -lm -Wl,--start-group -lkallisti -lc -lgcc -Wl,--end-group >&5 /opt/toolchains/dc/sh-elf/lib/gcc/sh-elf/4.5.2/../../../../sh-elf/bin/ld: cannot find -lsndio collect2: ld returned 1 exit status configure:30324: $? = 1 @@ -5556,7 +5556,7 @@ configure: failed program was: | } configure:30342: result: no configure:30517: checking sun/audioio.h usability -configure:30534: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 +configure:30534: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 conftest.c:91:25: fatal error: sun/audioio.h: No such file or directory compilation terminated. configure:30540: $? = 1 @@ -5721,7 +5721,7 @@ configure:30593: result: no configure:30626: checking for sun/audioio.h configure:30634: result: no configure:30517: checking sys/audioio.h usability -configure:30534: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 +configure:30534: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 conftest.c:91:25: fatal error: sys/audioio.h: No such file or directory compilation terminated. configure:30540: $? = 1 @@ -5886,7 +5886,7 @@ configure:30593: result: no configure:30626: checking for sys/audioio.h configure:30634: result: no configure:30517: checking asm/audioio.h usability -configure:30534: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 +configure:30534: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 conftest.c:91:25: fatal error: asm/audioio.h: No such file or directory compilation terminated. configure:30540: $? = 1 @@ -6051,7 +6051,7 @@ configure:30593: result: no configure:30626: checking for asm/audioio.h configure:30634: result: no configure:30517: checking sys/audio.h usability -configure:30534: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 +configure:30534: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 conftest.c:91:23: fatal error: sys/audio.h: No such file or directory compilation terminated. configure:30540: $? = 1 @@ -6216,7 +6216,7 @@ configure:30593: result: no configure:30626: checking for sys/audio.h configure:30634: result: no configure:30148: checking windows.h usability -configure:30165: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 +configure:30165: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 conftest.c:91:21: fatal error: windows.h: No such file or directory compilation terminated. configure:30171: $? = 1 @@ -6413,7 +6413,7 @@ configure:29157: $? = 1 No package 'jack' found configure:29185: result: no configure:29562: checking for Pa_Initialize in -lportaudio -configure:29597: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -o conftest -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing -ml -m4-single-only -Wl,-Ttext=0x8c010000 -T/usr/local/dc/kos/kos/utils/ldscripts/shlelf.xc -nodefaultlibs -L/usr/local/dc/kos/kos/lib/dreamcast -L/usr/local/dc/kos/kos/addons/lib/dreamcast conftest.c -lportaudio -lm -Wl,--start-group -lkallisti -lc -lgcc -Wl,--end-group >&5 +configure:29597: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -o conftest -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing -ml -m4-single -Wl,-Ttext=0x8c010000 -T/usr/local/dc/kos/kos/utils/ldscripts/shlelf.xc -nodefaultlibs -L/usr/local/dc/kos/kos/lib/dreamcast -L/usr/local/dc/kos/kos/addons/lib/dreamcast conftest.c -lportaudio -lm -Wl,--start-group -lkallisti -lc -lgcc -Wl,--end-group >&5 /opt/toolchains/dc/sh-elf/lib/gcc/sh-elf/4.5.2/../../../../sh-elf/bin/ld: cannot find -lportaudio collect2: ld returned 1 exit status configure:29603: $? = 1 @@ -6522,7 +6522,7 @@ configure:29877: $? = 1 No package 'sdl' found configure:29905: result: no configure:29920: checking for AuOpenServer in -laudio -configure:29955: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -o conftest -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing -ml -m4-single-only -Wl,-Ttext=0x8c010000 -T/usr/local/dc/kos/kos/utils/ldscripts/shlelf.xc -nodefaultlibs -L/usr/local/dc/kos/kos/lib/dreamcast -L/usr/local/dc/kos/kos/addons/lib/dreamcast conftest.c -laudio -lm -Wl,--start-group -lkallisti -lc -lgcc -Wl,--end-group >&5 +configure:29955: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -o conftest -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing -ml -m4-single -Wl,-Ttext=0x8c010000 -T/usr/local/dc/kos/kos/utils/ldscripts/shlelf.xc -nodefaultlibs -L/usr/local/dc/kos/kos/lib/dreamcast -L/usr/local/dc/kos/kos/addons/lib/dreamcast conftest.c -laudio -lm -Wl,--start-group -lkallisti -lc -lgcc -Wl,--end-group >&5 /opt/toolchains/dc/sh-elf/lib/gcc/sh-elf/4.5.2/../../../../sh-elf/bin/ld: cannot find -laudio collect2: ld returned 1 exit status configure:29961: $? = 1 @@ -6603,7 +6603,7 @@ configure:29979: result: no configure:30822: checking for artsc configure:30832: result: no configure:30858: checking OpenAL/al.h usability -configure:30875: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 +configure:30875: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 conftest.c:91:23: fatal error: OpenAL/al.h: No such file or directory compilation terminated. configure:30881: $? = 1 @@ -6768,7 +6768,7 @@ configure:30934: result: no configure:30967: checking for OpenAL/al.h configure:30975: result: no configure:30858: checking OpenAL/alc.h usability -configure:30875: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 +configure:30875: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 conftest.c:91:24: fatal error: OpenAL/alc.h: No such file or directory compilation terminated. configure:30881: $? = 1 @@ -6933,7 +6933,7 @@ configure:30934: result: no configure:30967: checking for OpenAL/alc.h configure:30975: result: no configure:30858: checking AL/al.h usability -configure:30875: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 +configure:30875: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 conftest.c:91:19: fatal error: AL/al.h: No such file or directory compilation terminated. configure:30881: $? = 1 @@ -7098,7 +7098,7 @@ configure:30934: result: no configure:30967: checking for AL/al.h configure:30975: result: no configure:30858: checking AL/alc.h usability -configure:30875: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 +configure:30875: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 conftest.c:91:20: fatal error: AL/alc.h: No such file or directory compilation terminated. configure:30881: $? = 1 @@ -7263,7 +7263,7 @@ configure:30934: result: no configure:30967: checking for AL/alc.h configure:30975: result: no configure:30858: checking al.h usability -configure:30875: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 +configure:30875: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 conftest.c:91:16: fatal error: al.h: No such file or directory compilation terminated. configure:30881: $? = 1 @@ -7428,7 +7428,7 @@ configure:30934: result: no configure:30967: checking for al.h configure:30975: result: no configure:30858: checking alc.h usability -configure:30875: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 +configure:30875: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc -c -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing conftest.c >&5 conftest.c:91:17: fatal error: alc.h: No such file or directory compilation terminated. configure:30881: $? = 1 @@ -7643,7 +7643,7 @@ ac_cv_env_CCC_value= ac_cv_env_CC_set=set ac_cv_env_CC_value=/opt/toolchains/dc/sh-elf/bin/sh-elf-gcc ac_cv_env_CFLAGS_set=set -ac_cv_env_CFLAGS_value='-O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing' +ac_cv_env_CFLAGS_value='-O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing' ac_cv_env_CPPFLAGS_set= ac_cv_env_CPPFLAGS_value= ac_cv_env_CPP_set= @@ -7667,7 +7667,7 @@ ac_cv_env_JACK_CFLAGS_value= ac_cv_env_JACK_LIBS_set= ac_cv_env_JACK_LIBS_value= ac_cv_env_LDFLAGS_set=set -ac_cv_env_LDFLAGS_value=' -ml -m4-single-only -Wl,-Ttext=0x8c010000 -T/usr/local/dc/kos/kos/utils/ldscripts/shlelf.xc -nodefaultlibs -L/usr/local/dc/kos/kos/lib/dreamcast -L/usr/local/dc/kos/kos/addons/lib/dreamcast' +ac_cv_env_LDFLAGS_value=' -ml -m4-single -Wl,-Ttext=0x8c010000 -T/usr/local/dc/kos/kos/utils/ldscripts/shlelf.xc -nodefaultlibs -L/usr/local/dc/kos/kos/lib/dreamcast -L/usr/local/dc/kos/kos/addons/lib/dreamcast' ac_cv_env_LIBS_set=set ac_cv_env_LIBS_value='-Wl,--start-group -lkallisti -lc -lgcc -Wl,--end-group' ac_cv_env_PKG_CONFIG_set= @@ -7858,9 +7858,9 @@ AWK='gawk' CC='/opt/toolchains/dc/sh-elf/bin/sh-elf-gcc' CCAS='/opt/toolchains/dc/sh-elf/bin/sh-elf-gcc' CCASDEPMODE='depmode=gcc3' -CCASFLAGS='-O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing' +CCASFLAGS='-O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing' CCDEPMODE='depmode=gcc3' -CFLAGS='-O2 -fomit-frame-pointer -funroll-all-loops -finline-functions -ffast-math -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing' +CFLAGS='-O2 -fomit-frame-pointer -funroll-all-loops -finline-functions -ffast-math -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing' COREAUDIO_CFLAGS='' COREAUDIO_LDFLAGS='' COREAUDIO_LIBS='-framework AudioToolbox -framework AudioUnit -framework CoreServices' @@ -7950,7 +7950,7 @@ INSTALL_STRIP_PROGRAM='$(install_sh) -c -s' JACK_CFLAGS='' JACK_LDFLAGS='' JACK_LIBS='' -LDFLAGS=' -ml -m4-single-only -Wl,-Ttext=0x8c010000 -T/usr/local/dc/kos/kos/utils/ldscripts/shlelf.xc -nodefaultlibs -L/usr/local/dc/kos/kos/lib/dreamcast -L/usr/local/dc/kos/kos/addons/lib/dreamcast' +LDFLAGS=' -ml -m4-single -Wl,-Ttext=0x8c010000 -T/usr/local/dc/kos/kos/utils/ldscripts/shlelf.xc -nodefaultlibs -L/usr/local/dc/kos/kos/lib/dreamcast -L/usr/local/dc/kos/kos/addons/lib/dreamcast' LFS_LOBJ=' lfs_alias.lo' LIBMPG123_VERSION='32:0:32' LIBOBJS='' diff --git a/modules/mp3/libmp3/mpg123/config.status b/modules/mp3/libmp3/mpg123/config.status index 185dcd63..b463accb 100644 --- a/modules/mp3/libmp3/mpg123/config.status +++ b/modules/mp3/libmp3/mpg123/config.status @@ -335,7 +335,7 @@ Report bugs to ." ac_cs_version="\ mpg123 config.status 20110808000000 configured by ./configure, generated by GNU Autoconf 2.61, - with options \"'--host=sh-elf' '--with-cpu=generic_fpu' 'CFLAGS=-O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing' 'LDFLAGS= -ml -m4-single-only -Wl,-Ttext=0x8c010000 -T/usr/local/dc/kos/kos/utils/ldscripts/shlelf.xc -nodefaultlibs -L/usr/local/dc/kos/kos/lib/dreamcast -L/usr/local/dc/kos/kos/addons/lib/dreamcast' 'LIBS=-Wl,--start-group -lkallisti -lc -lgcc -Wl,--end-group' 'CC=/opt/toolchains/dc/sh-elf/bin/sh-elf-gcc' 'host_alias=sh-elf'\" + with options \"'--host=sh-elf' '--with-cpu=generic_fpu' 'CFLAGS=-O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing' 'LDFLAGS= -ml -m4-single -Wl,-Ttext=0x8c010000 -T/usr/local/dc/kos/kos/utils/ldscripts/shlelf.xc -nodefaultlibs -L/usr/local/dc/kos/kos/lib/dreamcast -L/usr/local/dc/kos/kos/addons/lib/dreamcast' 'LIBS=-Wl,--start-group -lkallisti -lc -lgcc -Wl,--end-group' 'CC=/opt/toolchains/dc/sh-elf/bin/sh-elf-gcc' 'host_alias=sh-elf'\" Copyright (C) 2006 Free Software Foundation, Inc. This config.status script is free software; the Free Software Foundation @@ -410,10 +410,10 @@ if $ac_cs_silent; then fi if $ac_cs_recheck; then - echo "running CONFIG_SHELL=/bin/sh /bin/sh ./configure " '--host=sh-elf' '--with-cpu=generic_fpu' 'CFLAGS=-O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing' 'LDFLAGS= -ml -m4-single-only -Wl,-Ttext=0x8c010000 -T/usr/local/dc/kos/kos/utils/ldscripts/shlelf.xc -nodefaultlibs -L/usr/local/dc/kos/kos/lib/dreamcast -L/usr/local/dc/kos/kos/addons/lib/dreamcast' 'LIBS=-Wl,--start-group -lkallisti -lc -lgcc -Wl,--end-group' 'CC=/opt/toolchains/dc/sh-elf/bin/sh-elf-gcc' 'host_alias=sh-elf' $ac_configure_extra_args " --no-create --no-recursion" >&6 + echo "running CONFIG_SHELL=/bin/sh /bin/sh ./configure " '--host=sh-elf' '--with-cpu=generic_fpu' 'CFLAGS=-O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing' 'LDFLAGS= -ml -m4-single -Wl,-Ttext=0x8c010000 -T/usr/local/dc/kos/kos/utils/ldscripts/shlelf.xc -nodefaultlibs -L/usr/local/dc/kos/kos/lib/dreamcast -L/usr/local/dc/kos/kos/addons/lib/dreamcast' 'LIBS=-Wl,--start-group -lkallisti -lc -lgcc -Wl,--end-group' 'CC=/opt/toolchains/dc/sh-elf/bin/sh-elf-gcc' 'host_alias=sh-elf' $ac_configure_extra_args " --no-create --no-recursion" >&6 CONFIG_SHELL=/bin/sh export CONFIG_SHELL - exec /bin/sh "./configure" '--host=sh-elf' '--with-cpu=generic_fpu' 'CFLAGS=-O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing' 'LDFLAGS= -ml -m4-single-only -Wl,-Ttext=0x8c010000 -T/usr/local/dc/kos/kos/utils/ldscripts/shlelf.xc -nodefaultlibs -L/usr/local/dc/kos/kos/lib/dreamcast -L/usr/local/dc/kos/kos/addons/lib/dreamcast' 'LIBS=-Wl,--start-group -lkallisti -lc -lgcc -Wl,--end-group' 'CC=/opt/toolchains/dc/sh-elf/bin/sh-elf-gcc' 'host_alias=sh-elf' $ac_configure_extra_args --no-create --no-recursion + exec /bin/sh "./configure" '--host=sh-elf' '--with-cpu=generic_fpu' 'CFLAGS=-O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing' 'LDFLAGS= -ml -m4-single -Wl,-Ttext=0x8c010000 -T/usr/local/dc/kos/kos/utils/ldscripts/shlelf.xc -nodefaultlibs -L/usr/local/dc/kos/kos/lib/dreamcast -L/usr/local/dc/kos/kos/addons/lib/dreamcast' 'LIBS=-Wl,--start-group -lkallisti -lc -lgcc -Wl,--end-group' 'CC=/opt/toolchains/dc/sh-elf/bin/sh-elf-gcc' 'host_alias=sh-elf' $ac_configure_extra_args --no-create --no-recursion fi exec 5>>config.log @@ -572,8 +572,8 @@ s,@AMTAR@,|#_!!_#|${SHELL} /usr/local/dc/kos/kos/ds/lib/libmp3/mpg123/build/miss s,@am__tar@,|#_!!_#|${AMTAR} chof - "$$tardir",g s,@am__untar@,|#_!!_#|${AMTAR} xf -,g s,@CC@,|#_!!_#|/opt/toolchains/dc/sh-elf/bin/sh-elf-gcc,g -s,@CFLAGS@,|#_!!_#|-O2 -fomit-frame-pointer -funroll-all-loops -finline-functions -ffast-math -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing,g -s,@LDFLAGS@,|#_!!_#| -ml -m4-single-only -Wl\,-Ttext=0x8c010000 -T/usr/local/dc/kos/kos/utils/ldscripts/shlelf.xc -nodefaultlibs -L/usr/local/dc/kos/kos/lib/dreamcast -L/usr/local/dc/kos/kos/addons/lib/dreamcast,g +s,@CFLAGS@,|#_!!_#|-O2 -fomit-frame-pointer -funroll-all-loops -finline-functions -ffast-math -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing,g +s,@LDFLAGS@,|#_!!_#| -ml -m4-single -Wl\,-Ttext=0x8c010000 -T/usr/local/dc/kos/kos/utils/ldscripts/shlelf.xc -nodefaultlibs -L/usr/local/dc/kos/kos/lib/dreamcast -L/usr/local/dc/kos/kos/addons/lib/dreamcast,g s,@CPPFLAGS@,|#_!!_#| -DOPT_GENERIC -DREAL_IS_FLOAT -DNOXFERMEM ,g s,@ac_ct_CC@,|#_!!_#|,g s,@EXEEXT@,|#_!!_#|,g @@ -588,7 +588,7 @@ s,@CCDEPMODE@,|#_!!_#|depmode=gcc3,g s,@am__fastdepCC_TRUE@,|#_!!_#|,g s,@am__fastdepCC_FALSE@,|#_!!_#|#,g s,@CCAS@,|#_!!_#|/opt/toolchains/dc/sh-elf/bin/sh-elf-gcc,g -s,@CCASFLAGS@,|#_!!_#|-O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing,g +s,@CCASFLAGS@,|#_!!_#|-O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing,g s,@CCASDEPMODE@,|#_!!_#|depmode=gcc3,g s,@am__fastdepCCAS_TRUE@,|#_!!_#|,g s,@am__fastdepCCAS_FALSE@,|#_!!_#|#,g diff --git a/modules/mp3/libmp3/mpg123/doc/Makefile b/modules/mp3/libmp3/mpg123/doc/Makefile index 290f32a6..17858fc5 100644 --- a/modules/mp3/libmp3/mpg123/doc/Makefile +++ b/modules/mp3/libmp3/mpg123/doc/Makefile @@ -68,9 +68,9 @@ AWK = gawk CC = /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc CCAS = /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc CCASDEPMODE = depmode=gcc3 -CCASFLAGS = -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing +CCASFLAGS = -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing CCDEPMODE = depmode=gcc3 -CFLAGS = -O2 -fomit-frame-pointer -funroll-all-loops -finline-functions -ffast-math -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing +CFLAGS = -O2 -fomit-frame-pointer -funroll-all-loops -finline-functions -ffast-math -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing COREAUDIO_CFLAGS = COREAUDIO_LDFLAGS = COREAUDIO_LIBS = -framework AudioToolbox -framework AudioUnit -framework CoreServices @@ -117,7 +117,7 @@ INSTALL_STRIP_PROGRAM = $(install_sh) -c -s JACK_CFLAGS = JACK_LDFLAGS = JACK_LIBS = -LDFLAGS = -ml -m4-single-only -Wl,-Ttext=0x8c010000 -T/usr/local/dc/kos/kos/utils/ldscripts/shlelf.xc -nodefaultlibs -L/usr/local/dc/kos/kos/lib/dreamcast -L/usr/local/dc/kos/kos/addons/lib/dreamcast +LDFLAGS = -ml -m4-single -Wl,-Ttext=0x8c010000 -T/usr/local/dc/kos/kos/utils/ldscripts/shlelf.xc -nodefaultlibs -L/usr/local/dc/kos/kos/lib/dreamcast -L/usr/local/dc/kos/kos/addons/lib/dreamcast LFS_LOBJ = lfs_alias.lo LIBMPG123_VERSION = 32:0:32 LIBOBJS = diff --git a/modules/mp3/libmp3/mpg123/libtool b/modules/mp3/libmp3/mpg123/libtool index cdf32516..c9d83fa6 100644 --- a/modules/mp3/libmp3/mpg123/libtool +++ b/modules/mp3/libmp3/mpg123/libtool @@ -85,7 +85,7 @@ AR_FLAGS="cru" LTCC="/opt/toolchains/dc/sh-elf/bin/sh-elf-gcc" # LTCC compiler flags. -LTCFLAGS="-O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing" +LTCFLAGS="-O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing" # A language-specific compiler. CC="/opt/toolchains/dc/sh-elf/bin/sh-elf-gcc" @@ -7358,7 +7358,7 @@ AR_FLAGS="cru" LTCC="/opt/toolchains/dc/sh-elf/bin/sh-elf-gcc" # LTCC compiler flags. -LTCFLAGS="-O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing" +LTCFLAGS="-O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing" # A language-specific compiler. CC="sh-elf-g++" diff --git a/modules/mp3/libmp3/mpg123/src/Makefile b/modules/mp3/libmp3/mpg123/src/Makefile index c9cbf06d..64749118 100644 --- a/modules/mp3/libmp3/mpg123/src/Makefile +++ b/modules/mp3/libmp3/mpg123/src/Makefile @@ -144,9 +144,9 @@ AWK = gawk CC = /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc CCAS = /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc CCASDEPMODE = depmode=gcc3 -CCASFLAGS = -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing +CCASFLAGS = -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing CCDEPMODE = depmode=gcc3 -CFLAGS = -O2 -fomit-frame-pointer -funroll-all-loops -finline-functions -ffast-math -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing +CFLAGS = -O2 -fomit-frame-pointer -funroll-all-loops -finline-functions -ffast-math -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing COREAUDIO_CFLAGS = COREAUDIO_LDFLAGS = COREAUDIO_LIBS = -framework AudioToolbox -framework AudioUnit -framework CoreServices @@ -193,7 +193,7 @@ INSTALL_STRIP_PROGRAM = $(install_sh) -c -s JACK_CFLAGS = JACK_LDFLAGS = JACK_LIBS = -LDFLAGS = -ml -m4-single-only -Wl,-Ttext=0x8c010000 -T/usr/local/dc/kos/kos/utils/ldscripts/shlelf.xc -nodefaultlibs -L/usr/local/dc/kos/kos/lib/dreamcast -L/usr/local/dc/kos/kos/addons/lib/dreamcast +LDFLAGS = -ml -m4-single -Wl,-Ttext=0x8c010000 -T/usr/local/dc/kos/kos/utils/ldscripts/shlelf.xc -nodefaultlibs -L/usr/local/dc/kos/kos/lib/dreamcast -L/usr/local/dc/kos/kos/addons/lib/dreamcast LFS_LOBJ = lfs_alias.lo LIBMPG123_VERSION = 32:0:32 LIBOBJS = diff --git a/modules/mp3/libmp3/mpg123/src/libmpg123/Makefile b/modules/mp3/libmp3/mpg123/src/libmpg123/Makefile index 1a1231c4..67bf1e73 100644 --- a/modules/mp3/libmp3/mpg123/src/libmpg123/Makefile +++ b/modules/mp3/libmp3/mpg123/src/libmpg123/Makefile @@ -114,9 +114,9 @@ AWK = gawk CC = /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc CCAS = /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc CCASDEPMODE = depmode=gcc3 -CCASFLAGS = -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing +CCASFLAGS = -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing CCDEPMODE = depmode=gcc3 -CFLAGS = -O2 -fomit-frame-pointer -funroll-all-loops -finline-functions -ffast-math -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing +CFLAGS = -O2 -fomit-frame-pointer -funroll-all-loops -finline-functions -ffast-math -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing COREAUDIO_CFLAGS = COREAUDIO_LDFLAGS = COREAUDIO_LIBS = -framework AudioToolbox -framework AudioUnit -framework CoreServices @@ -163,7 +163,7 @@ INSTALL_STRIP_PROGRAM = $(install_sh) -c -s JACK_CFLAGS = JACK_LDFLAGS = JACK_LIBS = -LDFLAGS = -ml -m4-single-only -Wl,-Ttext=0x8c010000 -T/usr/local/dc/kos/kos/utils/ldscripts/shlelf.xc -nodefaultlibs -L/usr/local/dc/kos/kos/lib/dreamcast -L/usr/local/dc/kos/kos/addons/lib/dreamcast +LDFLAGS = -ml -m4-single -Wl,-Ttext=0x8c010000 -T/usr/local/dc/kos/kos/utils/ldscripts/shlelf.xc -nodefaultlibs -L/usr/local/dc/kos/kos/lib/dreamcast -L/usr/local/dc/kos/kos/addons/lib/dreamcast LFS_LOBJ = lfs_alias.lo LIBMPG123_VERSION = 32:0:32 LIBOBJS = diff --git a/modules/mp3/libmp3/mpg123/src/output/Makefile b/modules/mp3/libmp3/mpg123/src/output/Makefile index 5126af6f..fac54b5a 100644 --- a/modules/mp3/libmp3/mpg123/src/output/Makefile +++ b/modules/mp3/libmp3/mpg123/src/output/Makefile @@ -368,9 +368,9 @@ AWK = gawk CC = /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc CCAS = /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc CCASDEPMODE = depmode=gcc3 -CCASFLAGS = -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing +CCASFLAGS = -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing CCDEPMODE = depmode=gcc3 -CFLAGS = -O2 -fomit-frame-pointer -funroll-all-loops -finline-functions -ffast-math -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing +CFLAGS = -O2 -fomit-frame-pointer -funroll-all-loops -finline-functions -ffast-math -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing COREAUDIO_CFLAGS = COREAUDIO_LDFLAGS = COREAUDIO_LIBS = -framework AudioToolbox -framework AudioUnit -framework CoreServices @@ -417,7 +417,7 @@ INSTALL_STRIP_PROGRAM = $(install_sh) -c -s JACK_CFLAGS = JACK_LDFLAGS = JACK_LIBS = -LDFLAGS = -ml -m4-single-only -Wl,-Ttext=0x8c010000 -T/usr/local/dc/kos/kos/utils/ldscripts/shlelf.xc -nodefaultlibs -L/usr/local/dc/kos/kos/lib/dreamcast -L/usr/local/dc/kos/kos/addons/lib/dreamcast +LDFLAGS = -ml -m4-single -Wl,-Ttext=0x8c010000 -T/usr/local/dc/kos/kos/utils/ldscripts/shlelf.xc -nodefaultlibs -L/usr/local/dc/kos/kos/lib/dreamcast -L/usr/local/dc/kos/kos/addons/lib/dreamcast LFS_LOBJ = lfs_alias.lo LIBMPG123_VERSION = 32:0:32 LIBOBJS = diff --git a/modules/xvid/xvidcore/build/generic/platform.inc b/modules/xvid/xvidcore/build/generic/platform.inc index ec65983b..f1bc409c 100644 --- a/modules/xvid/xvidcore/build/generic/platform.inc +++ b/modules/xvid/xvidcore/build/generic/platform.inc @@ -32,7 +32,7 @@ OBJECT_EXTENSION=o CC=$(KOS_CC) SPECIFIC_CFLAGS= ALTIVEC_CFLAGS= -CFLAGS=-O2 -fomit-frame-pointer -ml -m4-single-only -ffunction-sections -fdata-sections -Wno-incompatible-pointer-types -I$(KOS_BASE)/include -I$(KOS_BASE)/kernel/arch/dreamcast/include -I$(KOS_BASE)/addons/include -I$(KOS_BASE)/../kos-ports/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -I$(KOS_BASE)/ds/include +CFLAGS=-O2 -fomit-frame-pointer -ml -m4-single -ffunction-sections -fdata-sections -Wno-incompatible-pointer-types -I$(KOS_BASE)/include -I$(KOS_BASE)/kernel/arch/dreamcast/include -I$(KOS_BASE)/addons/include -I$(KOS_BASE)/../kos-ports/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -I$(KOS_BASE)/ds/include # ============================================================================ # Assembler diff --git a/sdk/Makefile.loadable b/sdk/Makefile.loadable index 7af6a7b6..00e5fc26 100644 --- a/sdk/Makefile.loadable +++ b/sdk/Makefile.loadable @@ -101,10 +101,10 @@ all: increment_build $(TARGET) # of zero so we can do tracebacks later), second one makes the real file. $(TARGET): $(OBJS) ifndef NO_LD_DEBUG - $(KOS_CC) -g -ml -m4-single-only -O2 -g -Wl,-Ttext=0x00000000 -e _start -nostartfiles -nodefaultlibs \ + $(KOS_CC) -g -ml -m4-single -O2 -g -Wl,-Ttext=0x00000000 -e _start -nostartfiles -nodefaultlibs \ -o dbg-$(TARGET) $(OBJS) $(KOS_LIB_PATHS) -Wl,--start-group $(LIBS) $(DBG_LIBS) $(DBG_GCC_LIB) -Wl,--end-group endif - $(KOS_CC) -g -ml -m4-single-only -O2 -Wl,-d -Wl,-r -Wl,-S -Wl,-x -nostartfiles -nodefaultlibs \ + $(KOS_CC) -g -ml -m4-single -O2 -Wl,-d -Wl,-r -Wl,-S -Wl,-x -nostartfiles -nodefaultlibs \ -o $(TARGET) -Wl,-T $(KOS_BASE)/loadable/shlelf_dc.xr $(OBJS) $(KOS_LIB_PATHS) -Wl,--start-group $(LIBS) $(GCC_LIB) -Wl,--end-group ifdef VER_MAJOR @echo "\033[42m Compiled: $(TARGET_NAME) v$(VER_MAJOR).$(VER_MINOR).$(VER_MICRO) build $(VER_BUILD) \033[0m" diff --git a/sdk/toolchain/environ.sh b/sdk/toolchain/environ.sh index 44f1f7f1..39da04d3 100644 --- a/sdk/toolchain/environ.sh +++ b/sdk/toolchain/environ.sh @@ -23,15 +23,13 @@ export KOS_ARCH="dreamcast" # is targeting or uses an existing value that # can be set externally via your IDE. # +# Only needs to be set if not using default. +# # Valid values: # "pristine" - Dreamcast console or HKT-0120 devkit (default) # "naomi" - NAOMI or NAOMI 2 arcade board # -if [ -z "${KOS_SUBARCH}" ] ; then - export KOS_SUBARCH="pristine" -else - export KOS_SUBARCH -fi +#export KOS_SUBARCH="naomi" # KOS Root Path # @@ -75,7 +73,7 @@ export DC_TOOLS_BASE="/opt/toolchains/dc/bin" # Specifies the path to the toolchain file used to target # KOS with the "cmake" build utility. # -export KOS_CMAKE_TOOLCHAIN="${KOS_BASE}/utils/cmake/dreamcast.toolchain.cmake" +export KOS_CMAKE_TOOLCHAIN="${KOS_BASE}/utils/cmake/kallistios.toolchain.cmake" # Genromfs Utility Path # @@ -107,6 +105,12 @@ export KOS_LOADER="${KOS_BASE}/ds/sdk/bin/dc-tool-ip -t 192.168.1.252 -x" #export KOS_LOADER="dc-tool-ip -t 192.168.1.100 -x" #export KOS_LOADER="dc-tool-ser -t /dev/ttyS0 -x" +# GDB utility +# +# The kos-gdb helper will attempt to auto-detect the proper GDB program +# to use. You can force it by specifying the path here. +#export KOS_GDB="sh-elf-gdb" + # Default Compiler Flags # # Resets build flags. You can also initialize them to some preset @@ -119,36 +123,56 @@ export KOS_LDFLAGS="" export KOS_AFLAGS="" export DC_ARM_LDFLAGS="" -# Debug Builds +# Debug Options # -# Controls whether to disable additional debugging checks and assertions, -# such as for parameter validation or internal errors. Uncomment this if -# you do not wish to compile with this additional logic enabled. +# NDEBUG controls whether to disable `assert` per C standard, and +# DBGLOG_DISABLED controls whether other debug output will be provided +# (see ./kos/dbglog.h). Enable these if you want to remove assert checks +# and disable logging output, as is desirable for release builds. # -#export KOS_CFLAGS="${KOS_CFLAGS} -DNDEBUG" +#export KOS_CFLAGS="${KOS_CFLAGS} -DNDEBUG -DDBGLOG_DISABLED" # Optimization Level # # Controls the baseline optimization level to use when building. -# Typically this is -Og (debugging), -O0, -01, -02, or -03. +# Typically this is -Og (debugging), -O0, -O1, -O2, or -O3. # NOTE: For our target, -O4 is a valid optimization level that has -# been seen to have some performance impact as well. +# been seen to have some performance impact as well. # export KOS_CFLAGS="${KOS_CFLAGS} -O2" +# Link-Time Optimization +# +# Uncomment this to enable LTO, which can substantially improve performance +# of the generated code by enabling the linker to perform inlining, at the +# cost of longer build times and fatter object files. +# NOTE: Certain ports and examples require fat LTO objects to work with LTO, +# and LTO itself is known to cause issues in code with undefined behavior. +# +#export KOS_CFLAGS="${KOS_CFLAGS} -flto=auto -ffat-lto-objects" + # Additional Optimizations # -# Uncomment this to enable what has been found empirically to be -# the optimal set of additional flags for release build performance -# on the current stable toolchain. NOTE: Certain KOS-ports and examples -# do not work properly with "-flto=auto"! +# Uncomment these to enable what have been found empirically to be a decent +# set of additional flags for optimal release build performance with the +# current stable toolchain. # -#export KOS_CFLAGS="${KOS_CFLAGS} -freorder-blocks-algorithm=simple -flto=auto" +#export KOS_CFLAGS="${KOS_CFLAGS} -freorder-blocks-algorithm=simple" +#export KOS_CFLAGS="${KOS_CFLAGS} -fipa-pta" + +# Position-Independent Code +# +# Comment this line out to enable position-independent code. Codegen is slightly +# slower, and you lose a register, but it's required when building dynamically +# linked libraries or code whose symbols aren't resolved until runtime. +# +#export KOS_CFLAGS="${KOS_CFLAGS} -fno-PIC -fno-PIE" # Frame Pointers # -# Controls whether frame pointers are emitted or not. Disabled by -# default. Enable them if you plan to use GDB for debugging. +# Controls whether frame pointers are emitted or not. Disabled by default, as +# they use an extra register. Enable them if you plan to use GDB for debugging +# or need additional stack trace # export KOS_CFLAGS="${KOS_CFLAGS} -fomit-frame-pointer" #export KOS_CFLAGS="${KOS_CFLAGS} -fno-omit-frame-pointer -DFRAME_POINTERS" @@ -166,11 +190,10 @@ export KOS_CFLAGS="${KOS_CFLAGS} -fomit-frame-pointer" # GCC Builtin Functions # -# Comment out this line to enable GCC to use its own builtin implementations of -# certain standard library functions. Under certain conditions, this can allow -# compiler-optimized implementations to replace standard function invocations. -# The downside of this is that it COULD interfere with Newlib or KOS implementations -# of these functions, and it has not been tested thoroughly to ensure compatibility. +# Uncomment this line to prevent GCC from using its own builtin implementations of +# certain standard library functions. Under certain conditions, using builtins +# allows for compiler-optimized routines to replace function calls to the C standard +# library which are backed by Newlib or KOS. # export KOS_CFLAGS="${KOS_CFLAGS} -fno-builtin" @@ -180,23 +203,27 @@ export KOS_CFLAGS="${KOS_CFLAGS} -fno-builtin" # FSCA, and FSQRT) for calculating sin/cos, inverse square root, and square roots. # These can result in substantial performance gains for these kinds of operations; # however, they do so at the price of accuracy and are not IEEE compliant. -# NOTE: Enabling this option will also override -fno-builtin! +# NOTE: If these cause issues when enabled globally, it's advised to try to enable +# them on individual files in the critical path to still gain performance. # #export KOS_CFLAGS="${KOS_CFLAGS} -fbuiltin -ffast-math -ffp-contract=fast -mfsrra -mfsca" -# SH4 Floating Point Arithmetic Precision +# SH4 Floating-Point Arithmetic Precision +# +# KallistiOS supports both the single-precision-default ABI (m4-single) and the +# single-precision-only ABI (m4-single-only). When using m4-single, the SH4 will +# be in single-precision mode upon function entry but will switch to double- +# precision mode if 64-bit doubles are used. When using m4-single-only, the SH4 +# will always be in single-precision mode and 64-bit doubles will be truncated to +# 32-bit floats. Historically, m4-single-only was used in both official and +# homebrew Dreamcast software, but m4-single is the default as of KOS 2.2.0 to +# increase compatibility with newer libraries which require 64-bit doubles. # -# KallistiOS only officially supports the single-precision-only floating-point -# arithmetic mode (-m4-single-only), but double precision, single default -# (-m4-single) or double precision default (-m4) modes can be enabled here by -# adjusting KOS_SH4_PRECISION. -# WARNING: Adjusting this setting has a high likelihood of breaking KallistiOS, -# kos-ports, and existing codebases which assume -m4-single-only. -# Do not touch this setting unless you know what you are doing! -# NOTE: Altering this setting also requires your toolchain to have been built -# with support for these modes, which is not the case by default! +# WARNING: When adjusting this setting, make sure all software, including +# kos-ports and linked external libraries, are rebuilt using the same +# floating-point precision ABI setting! # -export KOS_SH4_PRECISION="-m4-single-only" +export KOS_SH4_PRECISION="-m4-single" # Use LRA (Local Register Allocator) Pass # diff --git a/src/drivers/enc28j60.c b/src/drivers/enc28j60.c deleted file mode 100644 index 0f4fa61f..00000000 --- a/src/drivers/enc28j60.c +++ /dev/null @@ -1,1176 +0,0 @@ -/* KallistiOS ##version## - - drivers/enc28j60.c - - Copyright (C) 2011-2014 SWAT - -*/ - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include "drivers/enc28j60.h" -#include "drivers/spi.h" - - -/** - * partitioning of the internal 8kB tx/rx buffers - */ -#define RX_START 0x0000 /* do not change this! */ -#define TX_END (0x2000 - 1) /* do not change this! */ -#define TX_START 0x1a00 -#define RX_END (TX_START - 1) - -/** - * register addresses consist of three parts: - * bits 4-0: real address - * bits 6-5: bank number - * bit 7: skip a dummy byte (for mac/phy access) - */ -#define MASK_ADDR 0x1f -#define MASK_BANK 0x60 -#define MASK_DBRD 0x80 -#define SHIFT_ADDR 0 -#define SHIFT_BANK 5 -#define SHIFT_DBRD 7 - -/* bank independent */ -#define EIE 0x1b -#define EIR 0x1c -#define ESTAT 0x1d -#define ECON2 0x1e -#define ECON1 0x1f - -/* bank 0 */ -#define ERDPTL (0x00 | 0x00) -#define ERDPTH (0x01 | 0x00) -#define EWRPTL (0x02 | 0x00) -#define EWRPTH (0x03 | 0x00) -#define ETXSTL (0x04 | 0x00) -#define ETXSTH (0x05 | 0x00) -#define ETXNDL (0x06 | 0x00) -#define ETXNDH (0x07 | 0x00) -#define ERXSTL (0x08 | 0x00) -#define ERXSTH (0x09 | 0x00) -#define ERXNDL (0x0a | 0x00) -#define ERXNDH (0x0b | 0x00) -#define ERXRDPTL (0x0c | 0x00) -#define ERXRDPTH (0x0d | 0x00) -#define ERXWRPTL (0x0e | 0x00) -#define ERXWRPTH (0x0f | 0x00) -#define EDMASTL (0x10 | 0x00) -#define EDMASTH (0x11 | 0x00) -#define EDMANDL (0x12 | 0x00) -#define EDMANDH (0x13 | 0x00) -#define EDMADSTL (0x14 | 0x00) -#define EDMADSTH (0x15 | 0x00) -#define EDMACSL (0x16 | 0x00) -#define EDMACSH (0x17 | 0x00) - -/* bank 1 */ -#define EHT0 (0x00 | 0x20) -#define EHT1 (0x01 | 0x20) -#define EHT2 (0x02 | 0x20) -#define EHT3 (0x03 | 0x20) -#define EHT4 (0x04 | 0x20) -#define EHT5 (0x05 | 0x20) -#define EHT6 (0x06 | 0x20) -#define EHT7 (0x07 | 0x20) -#define EPMM0 (0x08 | 0x20) -#define EPMM1 (0x09 | 0x20) -#define EPMM2 (0x0a | 0x20) -#define EPMM3 (0x0b | 0x20) -#define EPMM4 (0x0c | 0x20) -#define EPMM5 (0x0d | 0x20) -#define EPMM6 (0x0e | 0x20) -#define EPMM7 (0x0f | 0x20) -#define EPMCSL (0x10 | 0x20) -#define EPMCSH (0x11 | 0x20) -#define EPMOL (0x14 | 0x20) -#define EPMOH (0x15 | 0x20) -#define EWOLIE (0x16 | 0x20) -#define EWOLIR (0x17 | 0x20) -#define ERXFCON (0x18 | 0x20) -#define EPKTCNT (0x19 | 0x20) - -/* bank 2 */ -#define MACON1 (0x00 | 0x40 | 0x80) -#define MACON2 (0x01 | 0x40 | 0x80) -#define MACON3 (0x02 | 0x40 | 0x80) -#define MACON4 (0x03 | 0x40 | 0x80) -#define MABBIPG (0x04 | 0x40 | 0x80) -#define MAIPGL (0x06 | 0x40 | 0x80) -#define MAIPGH (0x07 | 0x40 | 0x80) -#define MACLCON1 (0x08 | 0x40 | 0x80) -#define MACLCON2 (0x09 | 0x40 | 0x80) -#define MAMXFLL (0x0a | 0x40 | 0x80) -#define MAMXFLH (0x0b | 0x40 | 0x80) -#define MAPHSUP (0x0d | 0x40 | 0x80) -#define MICON (0x11 | 0x40 | 0x80) -#define MICMD (0x12 | 0x40 | 0x80) -#define MIREGADR (0x14 | 0x40 | 0x80) -#define MIWRL (0x16 | 0x40 | 0x80) -#define MIWRH (0x17 | 0x40 | 0x80) -#define MIRDL (0x18 | 0x40 | 0x80) -#define MIRDH (0x19 | 0x40 | 0x80) - -/* bank 3 */ -#define MAADR1 (0x00 | 0x60 | 0x80) -#define MAADR0 (0x01 | 0x60 | 0x80) -#define MAADR3 (0x02 | 0x60 | 0x80) -#define MAADR2 (0x03 | 0x60 | 0x80) -#define MAADR5 (0x04 | 0x60 | 0x80) -#define MAADR4 (0x05 | 0x60 | 0x80) -#define EBSTSD (0x06 | 0x60) -#define EBSTCON (0x07 | 0x60) -#define EBSTCSL (0x08 | 0x60) -#define EBSTCSH (0x09 | 0x60) -#define MISTAT (0x0a | 0x60 | 0x80) -#define EREVID (0x12 | 0x60) -#define ECOCON (0x15 | 0x60) -#define EFLOCON (0x17 | 0x60) -#define EPAUSL (0x18 | 0x60) -#define EPAUSH (0x19 | 0x60) - -/* phy */ -#define PHCON1 0x00 -#define PHSTAT1 0x01 -#define PHID1 0x02 -#define PHID2 0x03 -#define PHCON2 0x10 -#define PHSTAT2 0x11 -#define PHIE 0x12 -#define PHIR 0x13 -#define PHLCON 0x14 - -/* EIE */ -#define EIE_INTIE 7 -#define EIE_PKTIE 6 -#define EIE_DMAIE 5 -#define EIE_LINKIE 4 -#define EIE_TXIE 3 -#define EIE_WOLIE 2 -#define EIE_TXERIE 1 -#define EIE_RXERIE 0 - -/* EIR */ -#define EIR_PKTIF 6 -#define EIR_DMAIF 5 -#define EIR_LINKIF 4 -#define EIR_TXIF 3 -#define EIR_WOLIF 2 -#define EIR_TXERIF 1 -#define EIR_RXERIF 0 - -/* ESTAT */ -#define ESTAT_INT 7 -#define ESTAT_LATECOL 4 -#define ESTAT_RXBUSY 2 -#define ESTAT_TXABRT 1 -#define ESTAT_CLKRDY 0 - -/* ECON2 */ -#define ECON2_AUTOINC 7 -#define ECON2_PKTDEC 6 -#define ECON2_PWRSV 5 -#define ECON2_VRPS 4 - -/* ECON1 */ -#define ECON1_TXRST 7 -#define ECON1_RXRST 6 -#define ECON1_DMAST 5 -#define ECON1_CSUMEN 4 -#define ECON1_TXRTS 3 -#define ECON1_RXEN 2 -#define ECON1_BSEL1 1 -#define ECON1_BSEL0 0 - -/* EWOLIE */ -#define EWOLIE_UCWOLIE 7 -#define EWOLIE_AWOLIE 6 -#define EWOLIE_PMWOLIE 4 -#define EWOLIE_MPWOLIE 3 -#define EWOLIE_HTWOLIE 2 -#define EWOLIE_MCWOLIE 1 -#define EWOLIE_BCWOLIE 0 - -/* EWOLIR */ -#define EWOLIR_UCWOLIF 7 -#define EWOLIR_AWOLIF 6 -#define EWOLIR_PMWOLIF 4 -#define EWOLIR_MPWOLIF 3 -#define EWOLIR_HTWOLIF 2 -#define EWOLIR_MCWOLIF 1 -#define EWOLIR_BCWOLIF 0 - -/* ERXFCON */ -#define ERXFCON_UCEN 7 -#define ERXFCON_ANDOR 6 -#define ERXFCON_CRCEN 5 -#define ERXFCON_PMEN 4 -#define ERXFCON_MPEN 3 -#define ERXFCON_HTEN 2 -#define ERXFCON_MCEN 1 -#define ERXFCON_BCEN 0 - -/* MACON1 */ -#define MACON1_LOOPBK 4 -#define MACON1_TXPAUS 3 -#define MACON1_RXPAUS 2 -#define MACON1_PASSALL 1 -#define MACON1_MARXEN 0 - -/* MACON2 */ -#define MACON2_MARST 7 -#define MACON2_RNDRST 6 -#define MACON2_MARXRST 3 -#define MACON2_RFUNRST 2 -#define MACON2_MATXRST 1 -#define MACON2_TFUNRST 0 - -/* MACON3 */ -#define MACON3_PADCFG2 7 -#define MACON3_PADCFG1 6 -#define MACON3_PADCFG0 5 -#define MACON3_TXCRCEN 4 -#define MACON3_PHDRLEN 3 -#define MACON3_HFRMEN 2 -#define MACON3_FRMLNEN 1 -#define MACON3_FULDPX 0 - -/* MACON4 */ -#define MACON4_DEFER 6 -#define MACON4_BPEN 5 -#define MACON4_NOBKOFF 4 -#define MACON4_LONGPRE 1 -#define MACON4_PUREPRE 0 - -/* MAPHSUP */ -#define MAPHSUP_RSTINTFC 7 -#define MAPHSUP_RSTRMII 3 - -/* MICON */ -#define MICON_RSTMII 7 - -/* MICMD */ -#define MICMD_MIISCAN 1 -#define MICMD_MIIRD 0 - -/* EBSTCON */ -#define EBSTCON_PSV2 7 -#define EBSTCON_PSV1 6 -#define EBSTCON_PSV0 5 -#define EBSTCON_PSEL 4 -#define EBSTCON_TMSEL1 3 -#define EBSTCON_TMSEL0 2 -#define EBSTCON_TME 1 -#define EBSTCON_BISTST 0 - -/* MISTAT */ -#define MISTAT_NVALID 2 -#define MISTAT_SCAN 1 -#define MISTAT_BUSY 0 - -/* ECOCON */ -#define ECOCON_COCON2 2 -#define ECOCON_COCON1 1 -#define ECOCON_COCON0 0 - -/* EFLOCON */ -#define EFLOCON_FULDPXS 2 -#define EFLOCON_FCEN1 1 -#define EFLOCON_FCEN0 0 - -/* PHCON1 */ -#define PHCON1_PRST 15 -#define PHCON1_PLOOPBK 14 -#define PHCON1_PPWRSV 11 -#define PHCON1_PDPXMD 8 - -/* PHSTAT1 */ -#define PHSTAT1_PFDPX 12 -#define PHSTAT1_PHDPX 11 -#define PHSTAT1_LLSTAT 2 -#define PHSTAT1_JBSTAT 1 - -/* PHCON2 */ -#define PHCON2_FRCLNK 14 -#define PHCON2_TXDIS 13 -#define PHCON2_JABBER 10 -#define PHCON2_HDLDIS 8 - -/* PHSTAT2 */ -#define PHSTAT2_TXSTAT 13 -#define PHSTAT2_RXSTAT 12 -#define PHSTAT2_COLSTAT 11 -#define PHSTAT2_LSTAT 10 -#define PHSTAT2_DPXSTAT 9 -#define PHSTAT2_PLRITY 4 - -/* PHIE */ -#define PHIE_PLINKIE 4 -#define PHIE_PGEIE 1 - -/* PHIR */ -#define PHIR_LINKIF 4 -#define PHIR_PGIF 2 - -/* PHLCON */ -#define PHLCON_LACFG3 11 -#define PHLCON_LACFG2 10 -#define PHLCON_LACFG1 9 -#define PHLCON_LACFG0 8 -#define PHLCON_LBCFG3 7 -#define PHLCON_LBCFG2 6 -#define PHLCON_LBCFG1 5 -#define PHLCON_LBCFG0 4 -#define PHLCON_LFRQ1 3 -#define PHLCON_LFRQ0 2 -#define PHLCON_STRCH 1 - -#define ENC28J60_FULL_DUPLEX 1 - - - -/** - * \internal - * Microchip ENC28J60 I/O implementation - * - */ - -#define enc28j60_rcr(address) spi_cc_send_byte(0x00 | (address)) -#define enc28j60_rbm() spi_cc_send_byte(0x3a) -#define enc28j60_wcr(address) spi_cc_send_byte(0x40 | (address)) -#define enc28j60_wbm(address) spi_cc_send_byte(0x7a) -#define enc28j60_bfs(address) spi_cc_send_byte(0x80 | (address)) -#define enc28j60_bfc(address) spi_cc_send_byte(0xa0 | (address)) -#define enc28j60_sc() spi_cc_send_byte(0xff) - - -static int spi_cs = SPI_CS_ENC28J60; -static int spi_reset = -1; -static int old_spi_delay = SPI_DEFAULT_DELAY; - - -#define enc28j60_select() do { \ - spi_cs_on(spi_cs); \ - old_spi_delay = spi_get_delay(); \ - if(old_spi_delay != SPI_ENC28J60_DELAY) \ - spi_set_delay(SPI_ENC28J60_DELAY); \ -} while(0) - -#define enc28j60_deselect() do { \ - if(old_spi_delay != SPI_ENC28J60_DELAY) \ - spi_set_delay(old_spi_delay); \ - spi_cs_off(spi_cs); \ -} while(0) - - -#define enc28j60_reset_on() spi_cs_on(spi_reset) -#define enc28j60_reset_off() spi_cs_off(spi_reset) - -//#define ENC_DEBUG 1 - - -/** - * \internal - * Initializes the SPI interface to the ENC28J60 chips. - */ -void enc28j60_io_init(int cs, int rs) -{ - if(cs > -1) { - spi_cs = cs; - } - - if(rs > -1) { - spi_reset = rs; - } - - /* Initialize SPI */ - spi_init(0); -} - -/** - * \internal - * Forces a reset to the ENC28J60. - * - * After the reset a reinitialization is necessary. - */ -void enc28j60_reset() -{ - enc28j60_reset_on(); - thd_sleep(10); - enc28j60_reset_off(); - thd_sleep(10); -} - -/** - * \internal - * Reads the value of a hardware register. - * - * \param[in] address The address of the register to read. - * \returns The register value. - */ -uint8 enc28j60_read(uint8 address) -{ - uint8 result; - - /* switch to register bank */ - enc28j60_bank((address & MASK_BANK) >> SHIFT_BANK); - - /* read from address */ - enc28j60_select(); - enc28j60_rcr((address & MASK_ADDR) >> SHIFT_ADDR); - if(address & MASK_DBRD) - spi_cc_rec_byte(); - result = spi_cc_rec_byte(); - enc28j60_deselect(); - - return result; -} - -/** - * \internal - * Writes the value of a hardware register. - * - * \param[in] address The address of the register to write. - * \param[in] value The value to write into the register. - */ -void enc28j60_write(uint8 address, uint8 value) -{ - /* switch to register bank */ - enc28j60_bank((address & MASK_BANK) >> SHIFT_BANK); - - /* write to address */ - enc28j60_select(); - enc28j60_wcr((address & MASK_ADDR) >> SHIFT_ADDR); - spi_cc_send_byte(value); - enc28j60_deselect(); -} - -/** - * \internal - * Clears bits in a hardware register. - * - * Performs a NAND operation on the current register value - * and the given bitmask. - * - * \param[in] address The address of the register to alter. - * \param[in] bits A bitmask specifiying the bits to clear. - */ -void enc28j60_clear_bits(uint8 address, uint8 bits) -{ - /* switch to register bank */ - enc28j60_bank((address & MASK_BANK) >> SHIFT_BANK); - - /* write to address */ - enc28j60_select(); - enc28j60_bfc((address & MASK_ADDR) >> SHIFT_ADDR); - spi_cc_send_byte(bits); - enc28j60_deselect(); -} - -/** - * \internal - * Sets bits in a hardware register. - * - * Performs an OR operation on the current register value - * and the given bitmask. - * - * \param[in] address The address of the register to alter. - * \param[in] bits A bitmask specifiying the bits to set. - */ -void enc28j60_set_bits(uint8 address, uint8 bits) -{ - /* switch to register bank */ - enc28j60_bank((address & MASK_BANK) >> SHIFT_BANK); - - /* write to address */ - enc28j60_select(); - enc28j60_bfs((address & MASK_ADDR) >> SHIFT_ADDR); - spi_cc_send_byte(bits); - enc28j60_deselect(); -} - -/** - * \internal - * Reads the value of a hardware PHY register. - * - * \param[in] address The address of the PHY register to read. - * \returns The register value. - */ -uint16 enc28j60_read_phy(uint8 address) -{ - enc28j60_write(MIREGADR, address); - enc28j60_set_bits(MICMD, (1 << MICMD_MIIRD)); - - thd_sleep(10); - - while(enc28j60_read(MISTAT) & (1 << MISTAT_BUSY)); - - enc28j60_clear_bits(MICMD, (1 << MICMD_MIIRD)); - - return ((uint16_t) enc28j60_read(MIRDH)) << 8 | - ((uint16_t) enc28j60_read(MIRDL)); -} - -/** - * \internal - * Writes the value to a hardware PHY register. - * - * \param[in] address The address of the PHY register to write. - * \param[in] value The value to write into the register. - */ -void enc28j60_write_phy(uint8 address, uint16 value) -{ - enc28j60_write(MIREGADR, address); - enc28j60_write(MIWRL, value & 0xff); - enc28j60_write(MIWRH, value >> 8); - - thd_sleep(10); - - while(enc28j60_read(MISTAT) & (1 << MISTAT_BUSY)); -} - -/** - * \internal - * Reads a byte from the RAM buffer at the current position. - * - * \returns The byte read from the current RAM position. - */ -uint8 enc28j60_read_buffer_byte() -{ - uint8_t b; - - enc28j60_select(); - enc28j60_rbm(); - - b = spi_cc_rec_byte(); - - enc28j60_deselect(); - - return b; -} - -/** - * \internal - * Writes a byte to the RAM buffer at the current position. - * - * \param[in] b The data byte to write. - */ -void enc28j60_write_buffer_byte(uint8 b) -{ - enc28j60_select(); - enc28j60_wbm(); - - spi_cc_send_byte(b); - - enc28j60_deselect(); -} - -/** - * \internal - * Reads multiple bytes from the RAM buffer. - * - * \param[out] buffer A pointer to the buffer which receives the data. - * \param[in] buffer_len The buffer length and number of bytes to read. - */ -void enc28j60_read_buffer(uint8* buffer, uint16 buffer_len) -{ - enc28j60_select(); - enc28j60_rbm(); - - spi_cc_rec_data(buffer, buffer_len); - - enc28j60_deselect(); -} - -/** - * \internal - * Writes multiple bytes to the RAM buffer. - * - * \param[in] buffer A pointer to the buffer containing the data to write. - * \param[in] buffer_len The number of bytes to write. - */ -void enc28j60_write_buffer(const uint8* buffer, uint16 buffer_len) -{ - enc28j60_select(); - enc28j60_wbm(); - - spi_cc_send_data(buffer, buffer_len); - - enc28j60_deselect(); -} - -/** - * Switches the hardware register bank. - * - * \param[in] num The index of the register bank to switch to. - */ -void enc28j60_bank(uint8 num) -{ - static uint8 bank = 0xff; - - if(num == bank) - return; - - /* clear bank bits */ - enc28j60_select(); - enc28j60_bfc(ECON1); - spi_cc_send_byte(0x03); - enc28j60_deselect(); - - /* set bank bits */ - enc28j60_select(); - enc28j60_bfs(ECON1); - spi_cc_send_byte(num); - enc28j60_deselect(); - - bank = num; -} - - - -/** - * Reset and initialize the ENC28J60 and starts packet transmission/reception. - * - * \param[in] mac A pointer to a 6-byte buffer containing the MAC address. - * \returns \c true on success, \c false on failure. - */ -int enc28j60_init(const uint8* mac) -{ - /* init i/o */ - enc28j60_io_init(spi_cs, spi_reset); - - /* reset device */ - enc28j60_reset(); - - /* configure rx/tx buffers */ - enc28j60_write(ERXSTL, RX_START & 0xff); - enc28j60_write(ERXSTH, RX_START >> 8); - enc28j60_write(ERXNDL, RX_END & 0xff); - enc28j60_write(ERXNDH, RX_END >> 8); - - enc28j60_write(ERXWRPTL, RX_START & 0xff); - enc28j60_write(ERXWRPTH, RX_START >> 8); - enc28j60_write(ERXRDPTL, RX_START & 0xff); - enc28j60_write(ERXRDPTH, RX_START >> 8); - - /* configure frame filters */ - enc28j60_write(ERXFCON, (1 << ERXFCON_UCEN) | /* accept unicast packets */ - (1 << ERXFCON_CRCEN) | /* accept packets with valid CRC only */ - (0 << ERXFCON_PMEN) | /* no pattern matching */ - (0 << ERXFCON_MPEN) | /* ignore magic packets */ - (0 << ERXFCON_HTEN) | /* disable hash table filter */ - (0 << ERXFCON_MCEN) | /* ignore multicast packets */ - (1 << ERXFCON_BCEN) | /* accept broadcast packets */ - (0 << ERXFCON_ANDOR) /* packets must meet at least one criteria */ - ); - - /* configure MAC */ - enc28j60_clear_bits(MACON2, (1 << MACON2_MARST)); - enc28j60_write(MACON1, (0 << MACON1_LOOPBK) | -#if ENC28J60_FULL_DUPLEX - (1 << MACON1_TXPAUS) | - (1 << MACON1_RXPAUS) | -#else - (0 << MACON1_TXPAUS) | - (0 << MACON1_RXPAUS) | -#endif - (0 << MACON1_PASSALL) | - (1 << MACON1_MARXEN) - ); - enc28j60_write(MACON3, (1 << MACON3_PADCFG2) | - (1 << MACON3_PADCFG1) | - (1 << MACON3_PADCFG0) | - (1 << MACON3_TXCRCEN) | - (0 << MACON3_PHDRLEN) | - (0 << MACON3_HFRMEN) | - (1 << MACON3_FRMLNEN) | -#if ENC28J60_FULL_DUPLEX - (1 << MACON3_FULDPX) -#else - (0 << MACON3_FULDPX) -#endif - ); - enc28j60_write(MAMXFLL, 0xee); - enc28j60_write(MAMXFLH, 0x05); -#if ENC28J60_FULL_DUPLEX - enc28j60_write(MABBIPG, 0x15); -#else - enc28j60_write(MABBIPG, 0x12); -#endif - enc28j60_write(MAIPGL, 0x12); -#if !ENC28J60_FULL_DUPLEX - enc28j60_write(MAIPGH, 0x0c); -#endif - enc28j60_write(MAADR0, mac[5]); - enc28j60_write(MAADR1, mac[4]); - enc28j60_write(MAADR2, mac[3]); - enc28j60_write(MAADR3, mac[2]); - enc28j60_write(MAADR4, mac[1]); - enc28j60_write(MAADR5, mac[0]); - - /* configure PHY */ - enc28j60_write_phy(PHLCON, (1 << PHLCON_LACFG3) | - (1 << PHLCON_LACFG2) | - (0 << PHLCON_LACFG1) | - (1 << PHLCON_LACFG0) | - (0 << PHLCON_LBCFG3) | - (1 << PHLCON_LBCFG2) | - (0 << PHLCON_LBCFG1) | - (1 << PHLCON_LBCFG0) | - (0 << PHLCON_LFRQ1) | - (0 << PHLCON_LFRQ0) | - (1 << PHLCON_STRCH) - ); - enc28j60_write_phy(PHCON1, (0 << PHCON1_PRST) | - (0 << PHCON1_PLOOPBK) | - (0 << PHCON1_PPWRSV) | -#if ENC28J60_FULL_DUPLEX - (1 << PHCON1_PDPXMD) -#else - (0 << PHCON1_PDPXMD) -#endif - ); - enc28j60_write_phy(PHCON2, (0 << PHCON2_FRCLNK) | - (0 << PHCON2_TXDIS) | - (0 << PHCON2_JABBER) | - (1 << PHCON2_HDLDIS) - ); - - /* start receiving packets */ - enc28j60_set_bits(ECON2, (1 << ECON2_AUTOINC)); - enc28j60_set_bits(ECON1, (1 << ECON1_RXEN)); - - return 1; -} - - -int enc28j60_link_up() { - uint16 phstat1 = enc28j60_read_phy(PHSTAT1); - return phstat1 & (1 << PHSTAT1_LLSTAT); -} - - - -/** - * \internal - * Microchip ENC28J60 packet handling - * - */ - -static uint16 packet_ptr = RX_START; - -/** - * Fetches a pending packet from the RAM buffer of the ENC28J60. - * - * The packet is written into the given buffer and the size of the packet - * (ethernet header plus payload, exclusive the CRC) is returned. - * - * Zero is returned in the following cases: - * - There is no packet pending. - * - The packet is too large to completely fit into the buffer. - * - Some error occured. - * - * \param[out] buffer The pointer to the buffer which receives the packet. - * \param[in] buffer_len The length of the buffer. - * \returns The packet size in bytes on success, \c 0 in the cases noted above. - */ -uint16 enc28j60_receive_packet(uint8* buffer, uint16 buffer_len) -{ - if(!enc28j60_read(EPKTCNT)) - return 0; - - /* set read pointer */ - enc28j60_write(ERDPTL, packet_ptr & 0xff); - enc28j60_write(ERDPTH, packet_ptr >> 8); - - /* read pointer to next packet */ - packet_ptr = ((uint16_t) enc28j60_read_buffer_byte()) | - ((uint16_t) enc28j60_read_buffer_byte()) << 8; - - /* read packet length */ - uint16 packet_len = ((uint16_t) enc28j60_read_buffer_byte()) | - ((uint16_t) enc28j60_read_buffer_byte()) << 8; - packet_len -= 4; /* ignore CRC */ - - /* read receive status */ - enc28j60_read_buffer_byte(); - enc28j60_read_buffer_byte(); - - /* read packet */ - if(packet_len <= buffer_len) - enc28j60_read_buffer(buffer, packet_len); - - /* free packet memory */ - /* errata #13 */ - uint16 packet_ptr_errata = packet_ptr - 1; - if(packet_ptr_errata < RX_START || packet_ptr_errata > RX_END) - packet_ptr_errata = RX_END; - enc28j60_write(ERXRDPTL, packet_ptr_errata & 0xff); - enc28j60_write(ERXRDPTH, packet_ptr_errata >> 8); - - /* decrement packet counter */ - enc28j60_set_bits(ECON2, (1 << ECON2_PKTDEC)); - - if(packet_len <= buffer_len) - return packet_len; - else - return 0; -} - -/** - * Writes a packet to the RAM buffer of the ENC28J60 and starts transmission. - * - * The packet buffer contains the ethernet header and the payload without CRC. - * The checksum is automatically generated by the on-chip calculator. - * - * \param[in] buffer A pointer to the buffer containing the packet to be sent. - * \param[in] buffer_len The length of the ethernet packet header plus payload. - * \returns \c true if the packet was sent, \c false otherwise. - */ -int enc28j60_send_packet(const uint8* buffer, uint16 buffer_len) -{ - if(!buffer || !buffer_len) - return 0; - - /* errata #12 */ - if(enc28j60_read(EIR) & (1 << EIR_TXERIF)) - { - enc28j60_set_bits(ECON1, (1 << ECON1_TXRST)); - enc28j60_clear_bits(ECON1, (1 << ECON1_TXRST)); - } - - /* wait until previous packet was sent */ - while(enc28j60_read(ECON1) & (1 << ECON1_TXRTS)); - - /* set start of packet */ - enc28j60_write(ETXSTL, TX_START & 0xff); - enc28j60_write(ETXSTH, TX_START >> 8); - - /* set end of packet */ - enc28j60_write(ETXNDL, (TX_START + buffer_len) & 0xff); - enc28j60_write(ETXNDH, (TX_START + buffer_len) >> 8); - - /* set write pointer */ - enc28j60_write(EWRPTL, TX_START & 0xff); - enc28j60_write(EWRPTH, TX_START >> 8); - - /* per packet control byte */ - enc28j60_write_buffer_byte(0x00); - - /* send packet */ - enc28j60_write_buffer(buffer, buffer_len); - - /* start transmission */ - enc28j60_set_bits(ECON1, (1 << ECON1_TXRTS)); - - return 1; -} - - - -/****************************************************************************/ -/* Netcore interface */ - -netif_t enc_if; - -static void set_ipv6_lladdr() { - /* Set up the IPv6 link-local address. This is done in accordance with - Section 4/5 of RFC 2464 based on the MAC Address of the adapter. */ - enc_if.ip6_lladdr.__s6_addr.__s6_addr8[0] = 0xFE; - enc_if.ip6_lladdr.__s6_addr.__s6_addr8[1] = 0x80; - enc_if.ip6_lladdr.__s6_addr.__s6_addr8[8] = enc_if.mac_addr[0] ^ 0x02; - enc_if.ip6_lladdr.__s6_addr.__s6_addr8[9] = enc_if.mac_addr[1]; - enc_if.ip6_lladdr.__s6_addr.__s6_addr8[10] = enc_if.mac_addr[2]; - enc_if.ip6_lladdr.__s6_addr.__s6_addr8[11] = 0xFF; - enc_if.ip6_lladdr.__s6_addr.__s6_addr8[12] = 0xFE; - enc_if.ip6_lladdr.__s6_addr.__s6_addr8[13] = enc_if.mac_addr[3]; - enc_if.ip6_lladdr.__s6_addr.__s6_addr8[14] = enc_if.mac_addr[4]; - enc_if.ip6_lladdr.__s6_addr.__s6_addr8[15] = enc_if.mac_addr[5]; -} - -static int enc_if_detect(netif_t * self) { - if (self->flags & NETIF_DETECTED) - return 0; - - uint8 reg; - - /* init i/o */ - enc28j60_io_init(spi_cs, spi_reset); - - /* reset device */ - enc28j60_reset(); - reg = enc28j60_read(EREVID); - - if(reg == 0x00 || reg == 0xff) { -#ifdef ENC_DEBUG - dbglog(DBG_DEBUG, "DS_ENC28J60: Can't detect rev: %02x\n", reg); -#endif - return -1; - //return 0; - } -//#ifdef ENC_DEBUG - dbglog(DBG_INFO, "DS_ENC28J60: Detected rev: %02x\n", reg); -//#endif - - self->flags |= NETIF_DETECTED; - return 0; -} - -static int enc_if_init(netif_t * self) { - if (self->flags & NETIF_INITIALIZED) - return 0; - - //Initialise the device - uint8 mac[6] = {'D', 'S', '4', 'N', 'E', 'T'}; - enc28j60_init(mac); -#ifdef ENC_DEBUG - dbglog(DBG_DEBUG, "DS_ENC28J60: Inited\n"); -#endif - memcpy(self->mac_addr, mac, 6); - set_ipv6_lladdr(); - self->flags |= NETIF_INITIALIZED; - return 0; -} - -static int enc_if_shutdown(netif_t * self) { - if (!(self->flags & NETIF_INITIALIZED)) - return 0; - - enc28j60_reset(); -#ifdef ENC_DEBUG - dbglog(DBG_DEBUG, "DS_ENC28J60: Shutdown\n"); -#endif - - self->flags &= ~(NETIF_DETECTED | NETIF_INITIALIZED | NETIF_RUNNING); - return 0; -} - -static int enc_if_start(netif_t * self) { - if (!(self->flags & NETIF_INITIALIZED)) - return -1; - - self->flags |= NETIF_RUNNING; - - /* start receiving packets */ - //enc28j60_set_bits(ECON1, (1 << ECON1_RXEN)); - - //enc28j60_write_phy(PHIE, PHIE_PGEIE | PHIE_PLNKIE); - //enc28j60_clear_bits(EIR, EIR_DMAIF | EIR_LINKIF | EIR_TXIF | EIR_TXERIF | EIR_RXERIF | EIR_PKTIF); - //enc28j60_write(EIE, EIE_INTIE | EIE_PKTIE | EIE_LINKIE | EIE_TXIE | EIE_TXERIE | EIE_RXERIE); -#ifdef ENC_DEBUG - dbglog(DBG_DEBUG, "DS_ENC28J60: Start\n"); -#endif - return 0; -} - -static int enc_if_stop(netif_t * self) { - if (!(self->flags & NETIF_RUNNING)) - return -1; - - self->flags &= ~NETIF_RUNNING; - - /* stop receiving packets */ - //enc28j60_write(EIE, 0x00); - enc28j60_clear_bits(ECON1, (1 << ECON1_RXEN)); -#ifdef ENC_DEBUG - dbglog(DBG_DEBUG, "DS_ENC28J60: Stop\n"); -#endif - - return 0; -} - -static int enc_if_tx(netif_t * self, const uint8 * data, int len, int blocking) { - if (!(self->flags & NETIF_RUNNING)) - return -1; - -#ifdef ENC_DEBUG - dbglog(DBG_INFO, "DS_ENC28J60: Send packet "); -#endif - - if(!enc28j60_send_packet(data, len)) { -#ifdef ENC_DEBUG - dbglog(DBG_DEBUG, "Error\n"); -#endif - return -1; - } - -#ifdef ENC_DEBUG - dbglog(DBG_DEBUG, "OK\n"); -#endif - - return 0; -} - -/* We'll auto-commit for now */ -static int enc_if_tx_commit(netif_t * self) { - return 0; -} - -static int enc_if_rx_poll(netif_t * self) { - - uint len = 1514; - uint8 pkt[1514]; - -#ifdef ENC_DEBUG - dbglog(DBG_DEBUG, "DS_ENC28J60: Receive packet "); -#endif - - len = enc28j60_receive_packet(pkt, len); - - if(!len) { -#ifdef ENC_DEBUG - dbglog(DBG_DEBUG, "Error\n"); -#endif - return -1; - } - -#ifdef ENC_DEBUG - dbglog(DBG_INFO, "OK\n"); -#endif - - /* Submit it for processing */ - net_input(&enc_if, pkt, len); - return 0; -} - -/* Don't need to hook anything here yet */ -static int enc_if_set_flags(netif_t * self, uint32 flags_and, uint32 flags_or) { - self->flags = (self->flags & flags_and) | flags_or; - return 0; -} - -static int enc_if_set_mc(netif_t *self, const uint8 *list, int count) { -#ifdef ENC_DEBUG - dbglog(DBG_DEBUG, "DS_ENC28J60: Set multicast: %d\n", count); -#endif - //return -1; - if(count == 0) { - enc28j60_write(ERXFCON, (1 << ERXFCON_UCEN) | /* accept unicast packets */ - (1 << ERXFCON_CRCEN) | /* accept packets with valid CRC only */ - (0 << ERXFCON_PMEN) | /* no pattern matching */ - (0 << ERXFCON_MPEN) | /* ignore magic packets */ - (0 << ERXFCON_HTEN) | /* disable hash table filter */ - (0 << ERXFCON_MCEN) | /* ignore multicast packets */ - (1 << ERXFCON_BCEN) | /* accept broadcast packets */ - (0 << ERXFCON_ANDOR) /* packets must meet at least one criteria */ - ); - } else { - enc28j60_write(ERXFCON, (1 << ERXFCON_UCEN) | /* accept unicast packets */ - (1 << ERXFCON_CRCEN) | /* accept packets with valid CRC only */ - (0 << ERXFCON_PMEN) | /* no pattern matching */ - (0 << ERXFCON_MPEN) | /* ignore magic packets */ - (0 << ERXFCON_HTEN) | /* disable hash table filter */ - (1 << ERXFCON_MCEN) | /* accept multicast packets */ - (1 << ERXFCON_BCEN) | /* accept broadcast packets */ - (0 << ERXFCON_ANDOR) /* packets must meet at least one criteria */ - ); - } - - return 0; -} - -/* Set ISP configuration from the flashrom, as long as we're configured staticly */ -static void enc_set_ispcfg() { - - uint8 ip_addr[4] = {192, 168, 1, 110}; - uint8 netmask[4] = {255, 255, 255, 0}; - uint8 gateway[4] = {192, 168, 1, 1}; - uint8 broadcast[4] = {0, 0, 0, 0}; - - memcpy(enc_if.ip_addr, &ip_addr, 4); - memcpy(enc_if.netmask, &netmask, 4); - memcpy(enc_if.gateway, &gateway, 4); - memcpy(enc_if.broadcast, &broadcast, 4); - -#ifdef ENC_DEBUG - dbglog(DBG_DEBUG, "DS_ENC28J60: Default IP=%d.%d.%d.%d\n", enc_if.ip_addr[0], enc_if.ip_addr[1], enc_if.ip_addr[2], enc_if.ip_addr[3]); -#endif - - flashrom_ispcfg_t isp; - uint32 fields = FLASHROM_ISP_IP | FLASHROM_ISP_NETMASK | - FLASHROM_ISP_BROADCAST | FLASHROM_ISP_GATEWAY; - - if(flashrom_get_ispcfg(&isp) == -1) - return; - - if((isp.valid_fields & fields) != fields) - return; - - if(isp.method != FLASHROM_ISP_STATIC) - return; - - - memcpy(enc_if.ip_addr, isp.ip, 4); - memcpy(enc_if.netmask, isp.nm, 4); - memcpy(enc_if.gateway, isp.gw, 4); - memcpy(enc_if.broadcast, isp.bc, 4); - -#ifdef ENC_DEBUG - dbglog(DBG_DEBUG, "enc: Setting up IP=%d.%d.%d.%d\n", enc_if.ip_addr[0], enc_if.ip_addr[1], enc_if.ip_addr[2], enc_if.ip_addr[3]); -#endif -} - -/* Initialize */ -int enc28j60_if_init(int cs, int rs) { - - if(cs > -1) { - spi_cs = cs; - } - - if(rs > -1) { - spi_reset = rs; - } - - /* Setup the netcore structure */ - enc_if.name = "enc"; - enc_if.descr = "ENC28J60"; - enc_if.index = 0; - enc_if.dev_id = 0; - enc_if.flags = NETIF_NO_FLAGS; - memset(enc_if.ip_addr, 0, sizeof(enc_if.ip_addr)); - memset(enc_if.netmask, 0, sizeof(enc_if.netmask)); - memset(enc_if.gateway, 0, sizeof(enc_if.gateway)); - memset(enc_if.broadcast, 0, sizeof(enc_if.broadcast)); - memset(enc_if.dns, 0, sizeof(enc_if.dns)); - enc_if.mtu = 1500; /* The Ethernet v2 MTU */ - memset(&enc_if.ip6_lladdr, 0, sizeof(enc_if.ip6_lladdr)); - enc_if.ip6_addrs = NULL; - enc_if.ip6_addr_count = 0; - memset(&enc_if.ip6_gateway, 0, sizeof(enc_if.ip6_gateway)); - enc_if.mtu6 = 0; - enc_if.hop_limit = 0; - enc_if.if_detect = enc_if_detect; - enc_if.if_init = enc_if_init; - enc_if.if_shutdown = enc_if_shutdown; - enc_if.if_start = enc_if_start; - enc_if.if_stop = enc_if_stop; - enc_if.if_tx = enc_if_tx; - enc_if.if_tx_commit = enc_if_tx_commit; - enc_if.if_rx_poll = enc_if_rx_poll; - enc_if.if_set_flags = enc_if_set_flags; - enc_if.if_set_mc = enc_if_set_mc; - - /* Attempt to set up our IP address et al from the flashrom */ - enc_set_ispcfg(); - - /* Append it to the chain */ - return net_reg_device(&enc_if); -} - -/* Shutdown */ -int enc28j60_if_shutdown() { - enc_if_shutdown(&enc_if); - return 0; -} - diff --git a/src/drivers/sd.c b/src/drivers/sd.c deleted file mode 100644 index da6eb5ba..00000000 --- a/src/drivers/sd.c +++ /dev/null @@ -1,813 +0,0 @@ -/** - * Copyright (c) 2014, 2023 by SWAT - * - * This file is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 as - * published by the Free Software Foundation. - */ - -#include -#include -#include -#include -#include -#include -#include -#include -#include - -/* For CRC16-CCITT */ -#include - -#include -#include - -//#define SD_DEBUG 1 - -#define MAX_RETRIES 500000 -#define READ_RETRIES 50000 -#define WRITE_RETRIES 150000 -#define MAX_RETRY 10 - - -/* MMC/SD command (in SPI) */ -#define CMD(n) (n | 0x40) -#define CMD0 (0x40+0) /* GO_IDLE_STATE */ -#define CMD1 (0x40+1) /* SEND_OP_COND */ -#define CMD8 (0x40+8) /* SEND_IF_COND */ -#define CMD9 (0x40+9) /* SEND_CSD */ -#define CMD10 (0x40+10) /* SEND_CID */ -#define CMD12 (0x40+12) /* STOP_TRANSMISSION */ -#define CMD16 (0x40+16) /* SET_BLOCKLEN */ -#define CMD17 (0x40+17) /* READ_SINGLE_BLOCK */ -#define CMD18 (0x40+18) /* READ_MULTIPLE_BLOCK */ -#define CMD23 (0x40+23) /* SET_BLOCK_COUNT */ -#define CMD24 (0x40+24) /* WRITE_BLOCK */ -#define CMD25 (0x40+25) /* WRITE_MULTIPLE_BLOCK */ -#define CMD41 (0x40+41) /* SEND_OP_COND (ACMD) */ -#define CMD55 (0x40+55) /* APP_CMD */ -#define CMD58 (0x40+58) /* READ_OCR */ -#define CMD59 (0x40+59) /* CRC_ON_OFF */ - - -static inline uint16_t sdc_get_uint16( const uint8_t *s) -{ - return (uint16_t) ((s [0] << 8) | s [1]); -} - -static inline uint32_t sdc_get_uint32( const uint8_t *s) -{ - return ((uint32_t) s [0] << 24) | ((uint32_t) s [1] << 16) | ((uint32_t) s [2] << 8) | (uint32_t) s [3]; -} - - -/** - * @name Card Identification - * @{ - */ - -#define SD_MMC_CID_SIZE 16 - -#define SD_MMC_CID_GET_MID( cid) ((cid) [0]) -#define SD_MMC_CID_GET_OID( cid) sdc_get_uint16( cid + 1) -#define SD_MMC_CID_GET_PNM( cid, i) ((char) (cid) [3 + (i)]) -#define SD_MMC_CID_GET_PRV( cid) ((cid) [9]) -#define SD_MMC_CID_GET_PSN( cid) sdc_get_uint32( cid + 10) -#define SD_MMC_CID_GET_MDT( cid) ((cid) [14]) -#define SD_MMC_CID_GET_CRC7( cid) ((cid) [15] >> 1) - -/** @} */ - - -/* The type of the dev_data in the block device structure */ -typedef struct sd_devdata { - uint64_t block_count; - uint64_t start_block; -} sd_devdata_t; - - -//static const int card_spi_delay = SPI_SDC_MMC_DELAY; -//static int old_spi_delay = SPI_SDC_MMC_DELAY; - -static int byte_mode = 0; -static int is_mmc = 0; -static int initted = 0; - -#define SELECT() spi_cs_on(SPI_CS_SDC) -#define DESELECT() spi_cs_off(SPI_CS_SDC) -/* -#define SELECT() do { \ - spi_cs_on(SPI_CS_SDC); \ - old_spi_delay = spi_get_delay(); \ - if(old_spi_delay != card_spi_delay) \ - spi_set_delay(card_spi_delay); \ -} while(0) - - -#define DESELECT() do { \ - if(old_spi_delay != card_spi_delay) \ - spi_set_delay(old_spi_delay); \ - spi_cs_off(SPI_CS_SDC); \ -} while(0) -*/ - -static uint8 wait_ready (void) { - int i; - uint8 res; - - (void)spi_sr_byte(0xFF); - i = 0; - do { - res = spi_sr_byte(0xFF); - i++; - } while ((res != 0xFF) && i < MAX_RETRIES); - - return res; -} - - -static uint8 send_cmd ( - uint8 cmd, /* Command byte */ - uint32 arg /* Argument */ -) -{ - uint8 n, res; - uint8 cb[6]; - - if (wait_ready() != 0xFF) { -#ifdef SD_DEBUG - dbglog(DBG_DEBUG, "%s: CMD 0x%02x wait ready error\n", __func__, cmd); -#endif - return 0xFF; - } - - cb[0] = cmd; - cb[1] = (uint8)(arg >> 24); - cb[2] = (uint8)(arg >> 16); - cb[3] = (uint8)(arg >> 8); - cb[4] = (uint8)arg; - cb[5] = sd_crc7(cb, 5, 0); - /* Send command packet */ - - spi_send_byte(cmd); /* Command */ - spi_send_byte(cb[1]); /* Argument[31..24] */ - spi_send_byte(cb[2]); /* Argument[23..16] */ - spi_send_byte(cb[3]); /* Argument[15..8] */ - spi_send_byte(cb[4]); /* Argument[7..0] */ - spi_send_byte(cb[5]); /* CRC7 */ - - /* Receive command response */ - if (cmd == CMD12) - (void)spi_rec_byte(); /* Skip a stuff byte when stop reading */ - - n = 20; /* Wait for a valid response in timeout of 10 attempts */ - - do { - res = spi_rec_byte(); - } while ((res & 0x80) && --n); - -#ifdef SD_DEBUG - dbglog(DBG_DEBUG, "%s: CMD 0x%02x response 0x%02x\n", __func__, cmd, res); -#endif - - return res; /* Return with the response value */ -} - - -static uint8 send_slow_cmd ( - uint8 cmd, /* Command byte */ - uint32 arg /* Argument */ -) -{ - uint8 n, res; - uint8 cb[6]; - int i; - - (void)spi_slow_sr_byte(0xff); - i = 0; - - do { - - res = spi_slow_sr_byte(0xff); - i++; - - } while ((res != 0xFF) && i < 100000); - - if (res != 0xff) { -#ifdef SD_DEBUG - dbglog(DBG_DEBUG, "%s: CMD 0x%02x error\n", __func__, cmd); -#endif - return(0xff); - } - - cb[0] = cmd; - cb[1] = (uint8)(arg >> 24); - cb[2] = (uint8)(arg >> 16); - cb[3] = (uint8)(arg >> 8); - cb[4] = (uint8)arg; - cb[5] = sd_crc7(cb, 5, 0); - /* Send command packet */ - spi_slow_sr_byte(cmd); /* Command */ - spi_slow_sr_byte(cb[1]); /* Argument[31..24] */ - spi_slow_sr_byte(cb[2]); /* Argument[23..16] */ - spi_slow_sr_byte(cb[3]); /* Argument[15..8] */ - spi_slow_sr_byte(cb[4]); /* Argument[7..0] */ - spi_slow_sr_byte(cb[5]); // CRC7 - - /* Receive command response */ - if (cmd == CMD12) - (void)spi_slow_sr_byte(0xff);/* Skip a stuff byte when stop reading */ - - n = 20; /* Wait for a valid response in timeout of 10 attempts */ - - do { - res = spi_slow_sr_byte(0xff); - } while ((res & 0x80) && --n); - -#ifdef SD_DEBUG - dbglog(DBG_DEBUG, "%s: CMD 0x%02x response 0x%02x\n", __func__, cmd, res); -#endif - - return res; /* Return with the response value */ -} - - -int sdc_init(void) { - - int i; - uint8 n, ty = 0, ocr[4]; - - if(initted) { - return 0; - } - - if(spi_init(0)) { - return -1; - } - - thd_sleep(20); - SELECT(); - - /* 80 dummy clocks */ - for (n = 10; n; n--) - (void)spi_slow_sr_byte(0xff); - - - if (send_slow_cmd(CMD0, 0) == 1) { /* Enter Idle state */ - -#ifdef SD_DEBUG - dbglog(DBG_DEBUG, "%s: Enter Idle state\n", __func__); -#endif - thd_sleep(20); - - i = 0; - - if (send_slow_cmd(CMD8, 0x1AA) == 1) { /* SDC Ver2+ */ - - for (n = 0; n < 4; n++) - ocr[n] = spi_slow_sr_byte(0xff); - - if (ocr[2] == 0x01 && ocr[3] == 0xAA) { /* The card can work at vdd range of 2.7-3.6V */ - - do { - - /* ACMD41 with HCS bit */ - if (send_slow_cmd(CMD55, 0) <= 1 && send_slow_cmd(CMD41, 1UL << 30) == 0) - break; - - ++i; - - } while (i < 300000); - - if (i < 300000 && send_slow_cmd(CMD58, 0) == 0) { /* Check CCS bit */ - - for (n = 0; n < 4; n++) - ocr[n] = spi_slow_sr_byte(0xff); - - ty = (ocr[0] & 0x40) ? 6 : 2; - } - } - - } else { /* SDC Ver1 or MMC */ - - ty = (send_slow_cmd(CMD55, 0) <= 1 && send_slow_cmd(CMD41, 0) <= 1) ? 2 : 1; /* SDC : MMC */ - - do { - - if (ty == 2) { - - if (send_slow_cmd(CMD55, 0) <= 1 && send_slow_cmd(CMD41, 0) == 0) /* ACMD41 */ - break; - - } else { - - if (send_slow_cmd(CMD1, 0) == 0) { /* CMD1 */ - is_mmc = 1; - break; - } - } - - ++i; - - } while (i < 300000); - - if (!(i < 300000) || send_slow_cmd(CMD16, 512) != 0) /* Select R/W block length */ - ty = 0; - } - } - - send_slow_cmd(CMD59, 1); // crc check - -#ifdef SD_DEBUG - dbglog(DBG_DEBUG, "%s: card type = 0x%02x\n", __func__, ty & 0xff); -#endif - - if(!(ty & 4)) { - byte_mode = 1; - } - - DESELECT(); - (void)spi_slow_sr_byte(0xff); /* Idle (Release DO) */ - - if (ty) { /* Initialization succeded */ - initted = 1; - return 0; - } - - /* Initialization failed */ - sdc_shutdown(); - return -1; -} - - -int sdc_shutdown(void) { - - if(!initted) - return -1; - - SELECT(); - wait_ready(); - DESELECT(); - (void)spi_rec_byte(); - - spi_shutdown(); - initted = 0; - return 0; -} - - -static int read_data ( - uint8 *buff, /* Data buffer to store received data */ - size_t len /* Byte count (must be even number) */ -) -{ - uint8 token; - int i; - - uint16 crc, crc2; - i = 0; - - do { /* Wait for data packet in timeout of 100ms */ - token = spi_rec_byte(); - ++i; - } while ((token == 0xFF) && i < READ_RETRIES); - - if(token != 0xFE) { -#ifdef SD_DEBUG - dbglog(DBG_DEBUG, "%s: not valid data token: %02x\n", __func__, token); -#endif - return -1; /* If not valid data token, return with error */ - } - - spi_rec_data(buff, len); - - crc = (uint16)spi_rec_byte() << 8; - crc |= (uint16)spi_rec_byte(); - - crc2 = net_crc16ccitt(buff, len, 0); - - if(crc != crc2) { - errno = EIO; - return -1; - } - - return 0; /* Return with success */ -} - - -int sdc_read_blocks(uint32 block, size_t count, uint8 *buf) { - - if(!initted) { - errno = ENXIO; - return -1; - } - -#ifdef SD_DEBUG - dbglog(DBG_DEBUG, "%s: block=%ld count=%d\n", __func__, block, count); -#endif - - uint8 *p; - int retry, cnt; - - if (byte_mode) block <<= 9; /* Convert to byte address if needed */ - - for (retry = 0; retry < MAX_RETRY; retry++) { - p = buf; - cnt = count; - - SELECT(); - - if (cnt == 1) { /* Single block read */ - - if ((send_cmd(CMD17, block) == 0) && !read_data(p, 512)) { - cnt = 0; - } - - } else { /* Multiple block read */ - if (send_cmd(CMD18, block) == 0) { - - do { - - if (read_data(p, 512)) - break; - - p += 512; - - } while (--cnt); - - send_cmd(CMD12, 0); /* STOP_TRANSMISSION */ - } - } - - DESELECT(); - (void)spi_rec_byte(); /* Idle (Release DO) */ - if (cnt == 0) break; - } - - if((retry >= MAX_RETRY || cnt > 0)) { - errno = EIO; - return -1; - } - - return 0; -} - - -static int write_data ( - uint8 *buff, /* 512 byte data block to be transmitted */ - uint8 token /* Data/Stop token */ -) -{ - uint8 resp; - uint16 crc; - - if (wait_ready() != 0xFF) - return -1; - - spi_send_byte(token); /* Xmit data token */ - - if (token != 0xFD) { /* Is data token */ - - crc = net_crc16ccitt(buff, 512, 0); - - spi_send_data(buff, 512); - spi_send_byte((uint8)(crc >> 8)); - spi_send_byte((uint8)crc); - - resp = spi_rec_byte(); /* Reсeive data response */ - - if ((resp & 0x1F) != 0x05) { /* If not accepted, return with error */ -#ifdef SD_DEBUG - dbglog(DBG_DEBUG, "%s: not accepted: %02x\n", __func__, resp); -#endif - errno = EIO; - return -1; - } - } - return 0; -} - - -int sdc_write_blocks(uint32 block, size_t count, const uint8 *buf) { - - if(!initted) { - errno = ENXIO; - return -1; - } - -#ifdef SD_DEBUG - dbglog(DBG_DEBUG, "%s: block=%ld count=%d\n", __func__, block, count); -#endif - - uint8 cnt, *p; - int retry; - - if (byte_mode) block <<= 9; /* Convert to byte address if needed */ - - for (retry = 0; retry < MAX_RETRY; retry++) { - - p = (uint8 *)buf; - cnt = count; - - SELECT(); /* CS = L */ - - if (count == 1) { /* Single block write */ - if ((send_cmd(CMD24, block) == 0) && !write_data(p, 0xFE)) - cnt = 0; - } - else { /* Multiple block write */ - if (!is_mmc) { - send_cmd(CMD55, 0); - send_cmd(CMD23, cnt); /* ACMD23 */ - } - if (send_cmd(CMD25, block) == 0) { - - do { - - if (write_data(p, 0xFC)) - break; - - p += 512; - - } while (--cnt); - - if (write_data(0, 0xFD)) /* STOP_TRAN token */ - cnt = 1; - } - } - - DESELECT(); /* CS = H */ - (void)spi_rec_byte(); /* Idle (Release DO) */ - if (cnt == 0) break; - } - - if((retry >= MAX_RETRY || cnt > 0)) { - errno = EIO; - return -1; - } - - return 0; -} - - -uint64 sdc_get_size(void) { - - uint8 csd[16]; - int exponent; - uint64 rv = 0; - - if(!initted) { - errno = ENXIO; - return (uint64)-1; - } - - SELECT(); - - if(send_cmd(CMD9, 0)) { - rv = (uint64)-1; - errno = EIO; - goto out; - } - - /* Read back the register */ - if(read_data(csd, 16)) { - rv = (uint64)-1; - errno = EIO; - goto out; - } - - /* Figure out what version of the CSD register we're looking at */ - switch(csd[0] >> 6) { - case 0: - /* CSD version 1.0 (SD) - C_SIZE is bits 62-73 of the CSD, C_SIZE_MULT is bits 47-49, - READ_BL_LEN is bits 80-83. - Card size is calculated as follows: - (C_SIZE + 1) * 2^(C_SIZE_MULT + 2) * 2^(READ_BL_LEN) */ - exponent = (csd[5] & 0x0F) + ((csd[9] & 0x03) << 1) + - (csd[10] >> 7) + 2; - rv = ((csd[8] >> 6) | (csd[7] << 2) | ((csd[6] & 0x03) << 10)) + 1; - rv <<= exponent; - break; - - case 1: - /* CSD version 2.0 (SDHC/SDXC) - C_SIZE is bits 48-69 of the CSD, card size is calculated as - (C_SIZE + 1) * 512KiB */ - rv = ((((uint64)csd[9]) | (uint64)(csd[8] << 8) | - ((uint64)(csd[7] & 0x3F) << 16)) + 1) << 19; - break; - - default: - /* Unknown version, punt. */ - rv = (uint64)-1; - errno = ENODEV; - goto out; - } - -out: - DESELECT(); - (void)spi_rec_byte(); - return rv; -} - - -int sdc_print_ident(void) { - - uint8 cid[SD_MMC_CID_SIZE]; - int rv = 0; - - if(!initted) { - errno = ENXIO; - return -1; - } - - SELECT(); - - if(send_cmd(CMD10, 0)) { - rv = -1; - errno = EIO; - goto out; - } - - memset(cid, 0, SD_MMC_CID_SIZE); - - /* Read back the register */ - if(read_data(cid, SD_MMC_CID_SIZE)) { - rv = -1; - errno = EIO; - goto out; - } - -// dbglog(DBG_DEBUG, "*** Card Identification ***\n"); - dbglog(DBG_DEBUG, "Manufacturer ID : %" PRIu8 "\n", SD_MMC_CID_GET_MID(cid)); - dbglog(DBG_DEBUG, "OEM/Application ID : %" PRIu16 "\n", SD_MMC_CID_GET_OID(cid)); - dbglog(DBG_DEBUG, - "Product name : %c%c%c%c%c%c\n", - SD_MMC_CID_GET_PNM(cid, 0), - SD_MMC_CID_GET_PNM(cid, 1), - SD_MMC_CID_GET_PNM(cid, 2), - SD_MMC_CID_GET_PNM(cid, 3), - SD_MMC_CID_GET_PNM(cid, 4), - SD_MMC_CID_GET_PNM(cid, 5) - ); - dbglog(DBG_DEBUG, "Product revision : %" PRIu8 "\n", SD_MMC_CID_GET_PRV(cid)); - dbglog(DBG_DEBUG, "Product serial number : %" PRIu32 "\n", SD_MMC_CID_GET_PSN(cid)); - dbglog(DBG_DEBUG, "Manufacturing date : %" PRIu8 "\n", SD_MMC_CID_GET_MDT(cid)); - dbglog(DBG_DEBUG, "7-bit CRC checksum : %" PRIu8 "\n", SD_MMC_CID_GET_CRC7(cid)); - -out: - DESELECT(); - (void)spi_rec_byte(); - return rv; -} - - -static int sdb_init(kos_blockdev_t *d) { - (void)d; - - if(!initted) { - errno = ENODEV; - return -1; - } - - return 0; -} - -static int sdb_shutdown(kos_blockdev_t *d) { - free(d->dev_data); - return 0; -} - -static int sdb_read_blocks(kos_blockdev_t *d, uint64_t block, size_t count, - void *buf) { - sd_devdata_t *data = (sd_devdata_t *)d->dev_data; - - return sdc_read_blocks(block + data->start_block, count, (uint8 *)buf); -} - -static int sdb_write_blocks(kos_blockdev_t *d, uint64_t block, size_t count, - const void *buf) { - sd_devdata_t *data = (sd_devdata_t *)d->dev_data; - - return sdc_write_blocks(block + data->start_block, count, - (const uint8 *)buf); -} - -static uint64_t sdb_count_blocks(kos_blockdev_t *d) { - sd_devdata_t *data = (sd_devdata_t *)d->dev_data; - - return data->block_count; -} - -static int sdb_flush(kos_blockdev_t *d) { - (void)d; - - SELECT(); - wait_ready(); - DESELECT(); - (void)spi_rec_byte(); - - return 0; -} - -static kos_blockdev_t sd_blockdev = { - NULL, /* dev_data */ - 9, /* l_block_size (block size of 512 bytes) */ - &sdb_init, /* init */ - &sdb_shutdown, /* shutdown */ - &sdb_read_blocks, /* read_blocks */ - &sdb_write_blocks, /* write_blocks */ - &sdb_count_blocks, /* count_blocks */ - &sdb_flush /* flush */ -}; - -int sdc_blockdev_for_partition(int partition, kos_blockdev_t *rv, - uint8 *partition_type) { - uint8 buf[512]; - int pval; - sd_devdata_t *ddata; - - if(!initted) { - errno = ENXIO; - return -1; - } - - if(!rv || !partition_type) { - errno = EFAULT; - return -1; - } - - /* Make sure the partition asked for is sane */ - if(partition < 0 || partition > 3) { - dbglog(DBG_DEBUG, "Invalid partition number given: %d\n", partition); - errno = EINVAL; - return -1; - } - - /* Read the MBR from the card */ - if(sdc_read_blocks(0, 1, buf)) { - return -1; - } - - /* Make sure the SD card uses MBR partitions. - TODO: Support GPT partitioning at some point. */ - if(buf[0x01FE] != 0x55 || buf[0x1FF] != 0xAA) { - dbglog(DBG_DEBUG, "SD card doesn't appear to have a MBR\n"); - errno = ENOENT; - return -1; - } - - /* Figure out where the partition record we're concerned with is, and make - sure that the partition actually exists. */ - pval = 16 * partition + 0x01BE; - - if(buf[pval + 4] == 0) { - dbglog(DBG_DEBUG, "Partition %d appears to be empty\n", partition); - errno = ENOENT; - return -1; - } - - /* Allocate the device data */ - if(!(ddata = (sd_devdata_t *)malloc(sizeof(sd_devdata_t)))) { - errno = ENOMEM; - return -1; - } - - /* Copy in the template block device and fill it in */ - memcpy(rv, &sd_blockdev, sizeof(kos_blockdev_t)); - ddata->block_count = buf[pval + 0x0C] | (buf[pval + 0x0D] << 8) | - (buf[pval + 0x0E] << 16) | (buf[pval + 0x0F] << 24); - ddata->start_block = buf[pval + 0x08] | (buf[pval + 0x09] << 8) | - (buf[pval + 0x0A] << 16) | (buf[pval + 0x0B] << 24); - rv->dev_data = ddata; - *partition_type = buf[pval + 4]; - - return 0; -} - -int sdc_blockdev_for_device(kos_blockdev_t *rv) { - sd_devdata_t *ddata; - - if(!initted) { - errno = ENXIO; - return -1; - } - - if(!rv) { - errno = EFAULT; - return -1; - } - - /* Allocate the device data */ - if(!(ddata = (sd_devdata_t *)malloc(sizeof(sd_devdata_t)))) { - errno = ENOMEM; - return -1; - } - - ddata->start_block = 0; - ddata->block_count = (sdc_get_size() / 512); - rv->dev_data = ddata; - - return 0; -} diff --git a/src/drivers/spi.c b/src/drivers/spi.c deleted file mode 100644 index a7f08e8f..00000000 --- a/src/drivers/spi.c +++ /dev/null @@ -1,904 +0,0 @@ -/** - * Copyright (c) 2011-2015, 2023-2024 by SWAT - * - * This file is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 as - * published by the Free Software Foundation. - * - * Dreamcast SCIF <=> SPI interface - * - * SCIF SD Card - * ----------------------- - * RTS (SPI CS) --> /CS - * CTS (SPI CLK) --> CLK - * TX (SPI DOUT) --> DIN - * RX (SPI DIN) <-- DOUT - */ - - -#include -#include -#include "drivers/spi.h" -#include "drivers/sh7750_regs.h" - -#define _NO_VIDEO_H -#include "console.h" - -#ifdef DEBUG - #define SPI_DEBUG - //#define SPI_DEBUG_RW -#endif - -static uint16 pwork = 0; -// static mutex_t spi_mutex = MUTEX_INITIALIZER; -static int spi_inited = 0; -static int spi_delay = SPI_DEFAULT_DELAY; - -#define MSB 0x80 - -#define RX_BIT() (reg_read_16(SCSPTR2) & SCSPTR2_SPB2DT) - -#define TX_BIT() \ - _pwork = b & MSB ? (_pwork | SCSPTR2_SPB2DT) : (_pwork & ~SCSPTR2_SPB2DT); \ - reg_write_16(SCSPTR2, _pwork) - -#define CTS_ON() \ - reg_write_16(SCSPTR2, _pwork | SCSPTR2_CTSDT); \ - if(spi_delay != SPI_DEFAULT_DELAY) timer_spin_delay_ns(spi_delay) - -#define CTS_ON_FAST() reg_write_16(SCSPTR2, _pwork | SCSPTR2_CTSDT) -#define CTS_OFF() reg_write_16(SCSPTR2, _pwork & ~SCSPTR2_CTSDT) - - -#ifdef SPI_DEBUG - -static void dump_regs() { - - uint32 gpio; - char gpios[512]; - char gr[32]; - - pwork = reg_read_16(SCSPTR2); - gpio = reg_read_32(PCTRA); - - dbglog(DBG_DEBUG, "SCIF registers: \n" - " SCSCR2: %04x\n" - " SCSMR2: %04x\n" - " SCFCR2: %04x\n" - " SCSSR2: %04x\n" - " SCLSR2: %04x\n" - " SCSPTR2: %04x\n" - " TX: %d\n" - " RX: %02x\n" - " CLK: %d\n" - " CS: %d\n\n", - reg_read_16(SCSCR2), - reg_read_16(SCSMR2), - reg_read_16(SCFCR2), - reg_read_16(SCSSR2), - reg_read_16(SCLSR2), - pwork, - (int)(pwork & SCSPTR2_SPB2DT), - (uint8)(pwork & 0x0001), - (int)(pwork & SCSPTR2_CTSDT), - (int)(pwork & SCSPTR2_RTSDT)); - - dbglog(DBG_DEBUG, "GPIO registers: \n" - " GPIOIC: %08lx\n" - " PDTRA: %08lx\n" - " PCTRA: %08lx\n\n", - reg_read_32(GPIOIC), - reg_read_16(PDTRA), - gpio); - - for(int i = 0; i < 10; i++) { - sprintf(gr, " GPIO_%d: %d\n", i, (int)(gpio & (1 << i))); - if(!i) { - strcpy(gpios, gr); - } else { - strcat(gpios, gr); - } - } - dbglog(DBG_DEBUG, "%s\n", gpios); -} - -#endif - -/** - * Initializes the SPI interface. - * - */ -int spi_init(int use_gpio) { - - if(spi_inited) { - return 0; - } - - if(*DCLOADMAGICADDR == DCLOADMAGICVALUE && dcload_type == DCLOAD_TYPE_SER) { - dbglog(DBG_KDEBUG, "scif_spi_init: no spi device -- using " - "dcload-serial\n"); - return -1; - } - - scif_shutdown(); - -#ifdef SPI_DEBUG - dump_regs(); -#endif - - int cable = CT_NONE; - uint32 reg; - - // TX:1 CTS:0 RTS:1 (spiout:1 spiclk:0 spics:1) - pwork = SCSPTR2_SPB2IO | SCSPTR2_CTSIO | SCSPTR2_RTSIO | SCSPTR2_SPB2DT | SCSPTR2_RTSDT; - - reg_write_16(SCSCR2, 0); - reg_write_16(SCSMR2, 0); - reg_write_16(SCFCR2, 0); - reg_write_16(SCSPTR2, pwork); - reg_write_16(SCSSR2, 0); - reg_write_16(SCLSR2, 0); - reg_write_16(SCSCR2, 0); - - spi_cs_off(SPI_CS_SCIF_RTS); - - if(use_gpio) { - - cable = vid_check_cable(); - - if(cable != CT_VGA && cable != CT_RGB) { - - reg_write_16(PDTRA, 0); - reg_write_32(PCTRA, 0); - - reg_write_16(PDTRA, PDTRA_BIT(SPI_CS_GPIO_VGA) | PDTRA_BIT(SPI_CS_GPIO_RGB)); /* disable */ - - reg = reg_read_32(PCTRA); - reg &= ~PCTRA_PBNPUP(SPI_CS_GPIO_VGA); - reg |= PCTRA_PBOUT(SPI_CS_GPIO_VGA); - reg &= ~PCTRA_PBNPUP(SPI_CS_GPIO_RGB); - reg |= PCTRA_PBOUT(SPI_CS_GPIO_RGB); - - reg_write_32(PCTRA, reg); - - spi_cs_off(SPI_CS_GPIO_VGA); - spi_cs_off(SPI_CS_GPIO_RGB); - - } else if(cable != CT_VGA) { - - reg_write_16(PDTRA, 0); - reg_write_32(PCTRA, 0); - - reg_write_16(PDTRA, PDTRA_BIT(SPI_CS_GPIO_VGA)); /* disable */ - - reg = reg_read_32(PCTRA); - reg &= ~PCTRA_PBNPUP(SPI_CS_GPIO_VGA); - reg |= PCTRA_PBOUT(SPI_CS_GPIO_VGA); - reg_write_32(PCTRA, reg); - - spi_cs_off(SPI_CS_GPIO_VGA); - - } else { - ; - } - } - -#ifdef SPI_DEBUG - dump_regs(); -#endif - - spi_set_delay(SPI_DEFAULT_DELAY); - spi_inited = 1; - return 0; -} - -int spi_shutdown() { - - if(spi_inited) { - scif_init(); - spi_inited = 0; - return 0; - } - - return -1; -} - -void spi_set_delay(int delay) { - spi_delay = delay; -#ifdef SPI_DEBUG - dbglog(DBG_DEBUG, "spi_set_delay: %d\n", spi_delay); -#endif -} - -int spi_get_delay() { - return spi_delay; -} - - -void spi_cs_on(int cs) { - -// mutex_lock(&spi_mutex); - uint16 reg; - - switch(cs) { - case SPI_CS_SCIF_RTS: - - pwork &= ~SCSPTR2_RTSDT; - reg_write_16(SCSPTR2, pwork); - - break; - case SPI_CS_GPIO_VGA: - case SPI_CS_GPIO_RGB: - - reg = reg_read_16(PDTRA); - reg &= ~(1 << cs); - reg_write_16(PDTRA, reg); - - break; - default: - break; - } - -#ifdef SPI_DEBUG - dbglog(DBG_DEBUG, "spi_cs_on: %d\n", cs); -#endif -} - -void spi_cs_off(int cs) { - - uint16 reg; - - switch(cs) { - case SPI_CS_SCIF_RTS: - - pwork |= SCSPTR2_RTSDT; - reg_write_16(SCSPTR2, pwork); - - break; - case SPI_CS_GPIO_VGA: - case SPI_CS_GPIO_RGB: - - reg = reg_read_16(PDTRA); - reg |= (1 << cs); - reg_write_16(PDTRA, reg); - - break; - default: - break; - } - -// mutex_unlock(&spi_mutex); - -#ifdef SPI_DEBUG - dbglog(DBG_DEBUG, "spi_cs_off: %d\n", cs); -#endif -} - - -/** - * Sends a byte over the SPI bus. - * - * \param[in] b The byte to send. - */ -void spi_cc_send_byte(register uint8 b) { - - register uint16 _pwork; - _pwork = pwork; - - TX_BIT(); - CTS_ON(); /* SPI clock ON */ - b = (b << 1); - CTS_OFF(); /* SPI clock OFF */ - TX_BIT(); - CTS_ON(); /* SPI clock ON */ - b = (b << 1); - CTS_OFF(); /* SPI clock OFF */ - TX_BIT(); - CTS_ON(); /* SPI clock ON */ - b = (b << 1); - CTS_OFF(); /* SPI clock OFF */ - TX_BIT(); - CTS_ON(); /* SPI clock ON */ - b = (b << 1); - CTS_OFF(); /* SPI clock OFF */ - TX_BIT(); - CTS_ON(); /* SPI clock ON */ - b = (b << 1); - CTS_OFF(); /* SPI clock OFF */ - TX_BIT(); - CTS_ON(); /* SPI clock ON */ - b = (b << 1); - CTS_OFF(); /* SPI clock OFF */ - TX_BIT(); - CTS_ON(); /* SPI clock ON */ - b = (b << 1); - CTS_OFF(); /* SPI clock OFF */ - TX_BIT(); - CTS_ON(); /* SPI clock ON */ - b = (b << 1); - CTS_OFF(); /* SPI clock OFF */ - -#ifdef SPI_DEBUG_RW - dbglog(DBG_DEBUG, "spi_send_byte: %02x\n", b); - //dump_regs(); -#endif -} - -void spi_send_byte(register uint8 b) { - - register uint16 _pwork; - _pwork = pwork; - - TX_BIT(); - CTS_ON_FAST(); /* SPI clock ON */ - b = (b << 1); - CTS_OFF(); /* SPI clock OFF */ - TX_BIT(); - CTS_ON_FAST(); /* SPI clock ON */ - b = (b << 1); - CTS_OFF(); /* SPI clock OFF */ - TX_BIT(); - CTS_ON_FAST(); /* SPI clock ON */ - b = (b << 1); - CTS_OFF(); /* SPI clock OFF */ - TX_BIT(); - CTS_ON_FAST(); /* SPI clock ON */ - b = (b << 1); - CTS_OFF(); /* SPI clock OFF */ - TX_BIT(); - CTS_ON_FAST(); /* SPI clock ON */ - b = (b << 1); - CTS_OFF(); /* SPI clock OFF */ - TX_BIT(); - CTS_ON_FAST(); /* SPI clock ON */ - b = (b << 1); - CTS_OFF(); /* SPI clock OFF */ - TX_BIT(); - CTS_ON_FAST(); /* SPI clock ON */ - b = (b << 1); - CTS_OFF(); /* SPI clock OFF */ - TX_BIT(); - CTS_ON_FAST(); /* SPI clock ON */ - b = (b << 1); - CTS_OFF(); /* SPI clock OFF */ - -#ifdef SPI_DEBUG_RW - dbglog(DBG_DEBUG, "spi_send_byte: %02x\n", b); - //dump_regs(); -#endif -} - - -/** - * Receives a byte from the SPI bus. - * - * \returns The received byte. - */ -uint8 spi_cc_rec_byte() { - - register uint8 b; - register uint16 _pwork; - - _pwork = pwork; - b = 0xff; - - TX_BIT(); - CTS_ON(); /* SPI clock ON */ - b = (b << 1) | RX_BIT(); /* SPI data input */ - CTS_OFF(); /* SPI clock OFF */ - CTS_ON(); /* SPI clock ON */ - b = (b << 1) | RX_BIT(); /* SPI data input */ - CTS_OFF(); /* SPI clock OFF */ - CTS_ON(); /* SPI clock ON */ - b = (b << 1) | RX_BIT(); /* SPI data input */ - CTS_OFF(); /* SPI clock OFF */ - CTS_ON(); /* SPI clock ON */ - b = (b << 1) | RX_BIT(); /* SPI data input */ - CTS_OFF(); /* SPI clock OFF */ - CTS_ON(); /* SPI clock ON */ - b = (b << 1) | RX_BIT(); /* SPI data input */ - CTS_OFF(); /* SPI clock OFF */ - CTS_ON(); /* SPI clock ON */ - b = (b << 1) | RX_BIT(); /* SPI data input */ - CTS_OFF(); /* SPI clock OFF */ - CTS_ON(); /* SPI clock ON */ - b = (b << 1) | RX_BIT(); /* SPI data input */ - CTS_OFF(); /* SPI clock OFF */ - CTS_ON(); /* SPI clock ON */ - b = (b << 1) | RX_BIT(); /* SPI data input */ - CTS_OFF(); /* SPI clock OFF */ - -#ifdef SPI_DEBUG_RW - dbglog(DBG_DEBUG, "spi_rec_byte: %02x\n", b); - //dump_regs(); -#endif - - return b; -} - -uint8 spi_rec_byte() { - - register uint8 b; - register uint16 _pwork; - - _pwork = pwork; - b = 0xff; - - TX_BIT(); - CTS_ON_FAST(); /* SPI clock ON */ - b = (b << 1) | RX_BIT(); /* SPI data input */ - CTS_OFF(); /* SPI clock OFF */ - CTS_ON_FAST(); /* SPI clock ON */ - b = (b << 1) | RX_BIT(); /* SPI data input */ - CTS_OFF(); /* SPI clock OFF */ - CTS_ON_FAST(); /* SPI clock ON */ - b = (b << 1) | RX_BIT(); /* SPI data input */ - CTS_OFF(); /* SPI clock OFF */ - CTS_ON_FAST(); /* SPI clock ON */ - b = (b << 1) | RX_BIT(); /* SPI data input */ - CTS_OFF(); /* SPI clock OFF */ - CTS_ON_FAST(); /* SPI clock ON */ - b = (b << 1) | RX_BIT(); /* SPI data input */ - CTS_OFF(); /* SPI clock OFF */ - CTS_ON_FAST(); /* SPI clock ON */ - b = (b << 1) | RX_BIT(); /* SPI data input */ - CTS_OFF(); /* SPI clock OFF */ - CTS_ON_FAST(); /* SPI clock ON */ - b = (b << 1) | RX_BIT(); /* SPI data input */ - CTS_OFF(); /* SPI clock OFF */ - CTS_ON_FAST(); /* SPI clock ON */ - b = (b << 1) | RX_BIT(); /* SPI data input */ - CTS_OFF(); /* SPI clock OFF */ - -#ifdef SPI_DEBUG_RW - dbglog(DBG_DEBUG, "spi_rec_byte: %02x\n", b); - //dump_regs(); -#endif - - return b; -} - - -/** - * Send and receive a byte to/from the SPI bus. - * - * \param[in] b The byte to send. - * \returns The received byte. - */ -uint8 spi_cc_sr_byte(register uint8 b) { - - register uint16 _pwork; - _pwork = pwork; - -#ifdef SPI_DEBUG_RW - dbglog(DBG_DEBUG, "spi_sr_byte: send: %02x\n", b); - //dump_regs(); -#endif - - TX_BIT(); - CTS_ON(); /* SPI clock ON */ - b = (b << 1) | RX_BIT(); /* SPI data input */ - CTS_OFF(); /* SPI clock OFF */ - TX_BIT(); - CTS_ON(); /* SPI clock ON */ - b = (b << 1) | RX_BIT(); /* SPI data input */ - CTS_OFF(); /* SPI clock OFF */ - TX_BIT(); - CTS_ON(); /* SPI clock ON */ - b = (b << 1) | RX_BIT(); /* SPI data input */ - CTS_OFF(); /* SPI clock OFF */ - TX_BIT(); - CTS_ON(); /* SPI clock ON */ - b = (b << 1) | RX_BIT(); /* SPI data input */ - CTS_OFF(); /* SPI clock OFF */ - TX_BIT(); - CTS_ON(); /* SPI clock ON */ - b = (b << 1) | RX_BIT(); /* SPI data input */ - CTS_OFF(); /* SPI clock OFF */ - TX_BIT(); - CTS_ON(); /* SPI clock ON */ - b = (b << 1) | RX_BIT(); /* SPI data input */ - CTS_OFF(); /* SPI clock OFF */ - TX_BIT(); - CTS_ON(); /* SPI clock ON */ - b = (b << 1) | RX_BIT(); /* SPI data input */ - CTS_OFF(); /* SPI clock OFF */ - TX_BIT(); - CTS_ON(); /* SPI clock ON */ - b = (b << 1) | RX_BIT(); /* SPI data input */ - CTS_OFF(); /* SPI clock OFF */ - -#ifdef SPI_DEBUG_RW - dbglog(DBG_DEBUG, "spi_sr_byte: receive: %02x\n", b); - //dump_regs(); -#endif - - return b; -} - -uint8 spi_sr_byte(register uint8 b) { - - register uint16 _pwork; - _pwork = pwork; - -#ifdef SPI_DEBUG_RW - dbglog(DBG_DEBUG, "spi_sr_byte: send: %02x\n", b); - //dump_regs(); -#endif - - TX_BIT(); - CTS_ON_FAST(); /* SPI clock ON */ - b = (b << 1) | RX_BIT(); /* SPI data input */ - CTS_OFF(); /* SPI clock OFF */ - TX_BIT(); - CTS_ON_FAST(); /* SPI clock ON */ - b = (b << 1) | RX_BIT(); /* SPI data input */ - CTS_OFF(); /* SPI clock OFF */ - TX_BIT(); - CTS_ON_FAST(); /* SPI clock ON */ - b = (b << 1) | RX_BIT(); /* SPI data input */ - CTS_OFF(); /* SPI clock OFF */ - TX_BIT(); - CTS_ON_FAST(); /* SPI clock ON */ - b = (b << 1) | RX_BIT(); /* SPI data input */ - CTS_OFF(); /* SPI clock OFF */ - TX_BIT(); - CTS_ON_FAST(); /* SPI clock ON */ - b = (b << 1) | RX_BIT(); /* SPI data input */ - CTS_OFF(); /* SPI clock OFF */ - TX_BIT(); - CTS_ON_FAST(); /* SPI clock ON */ - b = (b << 1) | RX_BIT(); /* SPI data input */ - CTS_OFF(); /* SPI clock OFF */ - TX_BIT(); - CTS_ON_FAST(); /* SPI clock ON */ - b = (b << 1) | RX_BIT(); /* SPI data input */ - CTS_OFF(); /* SPI clock OFF */ - TX_BIT(); - CTS_ON_FAST(); /* SPI clock ON */ - b = (b << 1) | RX_BIT(); /* SPI data input */ - CTS_OFF(); /* SPI clock OFF */ - -#ifdef SPI_DEBUG_RW - dbglog(DBG_DEBUG, "spi_sr_byte: receive: %02x\n", b); - //dump_regs(); -#endif - - return b; -} - - -/** - * Slow send and receive a byte to/from the SPI bus. - * - * \param[in] b The byte to send. - * \returns The received byte. - */ -uint8 spi_slow_sr_byte(register uint8 b) { - - register int cnt; -#ifdef SPI_DEBUG_RW - dbglog(DBG_DEBUG, "spi_slow_sr_byte: send: %02x\n", b); -#endif - - for (cnt = 0; cnt < 8; cnt++) { - - pwork = b & MSB ? (pwork | SCSPTR2_SPB2DT) : (pwork & ~SCSPTR2_SPB2DT); - reg_write_16(SCSPTR2, pwork); - - timer_spin_delay_ns(1500); - pwork |= SCSPTR2_CTSDT; - reg_write_16(SCSPTR2, pwork); - b = (b << 1) | RX_BIT(); - timer_spin_delay_ns(1500); - - pwork &= ~SCSPTR2_CTSDT; - reg_write_16(SCSPTR2, pwork); - } - -#ifdef SPI_DEBUG_RW - dbglog(DBG_DEBUG, "spi_slow_sr_byte: receive: %02x\n", b); - //dump_regs(); -#endif - - return b; -} - - -/** - * Sends data contained in a buffer over the SPI bus. - * - * \param[in] data A pointer to the buffer which contains the data to send. - * \param[in] len The number of bytes to send. - */ -void spi_cc_send_data(const uint8* data, uint16 len) { - do { - /* Used send/receive byte because only receive works unstable */ - spi_cc_sr_byte(*data++); - } while(--len); -} - -void spi_send_data(const uint8* data, uint16 len) { - - register uint8 b; - register uint16 _pwork; - _pwork = pwork; - - /* Used send/receive byte because only receive works unstable */ - for(; len > 0; len -= 4) { - - b = data[0]; - - TX_BIT(); - CTS_ON_FAST(); /* SPI clock ON */ - b = (b << 1) | RX_BIT(); /* SPI data input */ - CTS_OFF(); /* SPI clock OFF */ - TX_BIT(); - CTS_ON_FAST(); /* SPI clock ON */ - b = (b << 1) | RX_BIT(); /* SPI data input */ - CTS_OFF(); /* SPI clock OFF */ - TX_BIT(); - CTS_ON_FAST(); /* SPI clock ON */ - b = (b << 1) | RX_BIT(); /* SPI data input */ - CTS_OFF(); /* SPI clock OFF */ - TX_BIT(); - CTS_ON_FAST(); /* SPI clock ON */ - b = (b << 1) | RX_BIT(); /* SPI data input */ - CTS_OFF(); /* SPI clock OFF */ - TX_BIT(); - CTS_ON_FAST(); /* SPI clock ON */ - b = (b << 1) | RX_BIT(); /* SPI data input */ - CTS_OFF(); /* SPI clock OFF */ - TX_BIT(); - CTS_ON_FAST(); /* SPI clock ON */ - b = (b << 1) | RX_BIT(); /* SPI data input */ - CTS_OFF(); /* SPI clock OFF */ - TX_BIT(); - CTS_ON_FAST(); /* SPI clock ON */ - b = (b << 1) | RX_BIT(); /* SPI data input */ - CTS_OFF(); /* SPI clock OFF */ - TX_BIT(); - CTS_ON_FAST(); /* SPI clock ON */ - b = (b << 1) | RX_BIT(); /* SPI data input */ - CTS_OFF(); /* SPI clock OFF */ - - b = data[1]; - - TX_BIT(); - CTS_ON_FAST(); /* SPI clock ON */ - b = (b << 1) | RX_BIT(); /* SPI data input */ - CTS_OFF(); /* SPI clock OFF */ - TX_BIT(); - CTS_ON_FAST(); /* SPI clock ON */ - b = (b << 1) | RX_BIT(); /* SPI data input */ - CTS_OFF(); /* SPI clock OFF */ - TX_BIT(); - CTS_ON_FAST(); /* SPI clock ON */ - b = (b << 1) | RX_BIT(); /* SPI data input */ - CTS_OFF(); /* SPI clock OFF */ - TX_BIT(); - CTS_ON_FAST(); /* SPI clock ON */ - b = (b << 1) | RX_BIT(); /* SPI data input */ - CTS_OFF(); /* SPI clock OFF */ - TX_BIT(); - CTS_ON_FAST(); /* SPI clock ON */ - b = (b << 1) | RX_BIT(); /* SPI data input */ - CTS_OFF(); /* SPI clock OFF */ - TX_BIT(); - CTS_ON_FAST(); /* SPI clock ON */ - b = (b << 1) | RX_BIT(); /* SPI data input */ - CTS_OFF(); /* SPI clock OFF */ - TX_BIT(); - CTS_ON_FAST(); /* SPI clock ON */ - b = (b << 1) | RX_BIT(); /* SPI data input */ - CTS_OFF(); /* SPI clock OFF */ - TX_BIT(); - CTS_ON_FAST(); /* SPI clock ON */ - b = (b << 1) | RX_BIT(); /* SPI data input */ - CTS_OFF(); /* SPI clock OFF */ - - b = data[2]; - - TX_BIT(); - CTS_ON_FAST(); /* SPI clock ON */ - b = (b << 1) | RX_BIT(); /* SPI data input */ - CTS_OFF(); /* SPI clock OFF */ - TX_BIT(); - CTS_ON_FAST(); /* SPI clock ON */ - b = (b << 1) | RX_BIT(); /* SPI data input */ - CTS_OFF(); /* SPI clock OFF */ - TX_BIT(); - CTS_ON_FAST(); /* SPI clock ON */ - b = (b << 1) | RX_BIT(); /* SPI data input */ - CTS_OFF(); /* SPI clock OFF */ - TX_BIT(); - CTS_ON_FAST(); /* SPI clock ON */ - b = (b << 1) | RX_BIT(); /* SPI data input */ - CTS_OFF(); /* SPI clock OFF */ - TX_BIT(); - CTS_ON_FAST(); /* SPI clock ON */ - b = (b << 1) | RX_BIT(); /* SPI data input */ - CTS_OFF(); /* SPI clock OFF */ - TX_BIT(); - CTS_ON_FAST(); /* SPI clock ON */ - b = (b << 1) | RX_BIT(); /* SPI data input */ - CTS_OFF(); /* SPI clock OFF */ - TX_BIT(); - CTS_ON_FAST(); /* SPI clock ON */ - b = (b << 1) | RX_BIT(); /* SPI data input */ - CTS_OFF(); /* SPI clock OFF */ - TX_BIT(); - CTS_ON_FAST(); /* SPI clock ON */ - b = (b << 1) | RX_BIT(); /* SPI data input */ - CTS_OFF(); /* SPI clock OFF */ - - b = data[3]; - - TX_BIT(); - CTS_ON_FAST(); /* SPI clock ON */ - b = (b << 1) | RX_BIT(); /* SPI data input */ - CTS_OFF(); /* SPI clock OFF */ - TX_BIT(); - CTS_ON_FAST(); /* SPI clock ON */ - b = (b << 1) | RX_BIT(); /* SPI data input */ - CTS_OFF(); /* SPI clock OFF */ - TX_BIT(); - CTS_ON_FAST(); /* SPI clock ON */ - b = (b << 1) | RX_BIT(); /* SPI data input */ - CTS_OFF(); /* SPI clock OFF */ - TX_BIT(); - CTS_ON_FAST(); /* SPI clock ON */ - b = (b << 1) | RX_BIT(); /* SPI data input */ - CTS_OFF(); /* SPI clock OFF */ - TX_BIT(); - CTS_ON_FAST(); /* SPI clock ON */ - b = (b << 1) | RX_BIT(); /* SPI data input */ - CTS_OFF(); /* SPI clock OFF */ - TX_BIT(); - CTS_ON_FAST(); /* SPI clock ON */ - b = (b << 1) | RX_BIT(); /* SPI data input */ - CTS_OFF(); /* SPI clock OFF */ - TX_BIT(); - CTS_ON_FAST(); /* SPI clock ON */ - b = (b << 1) | RX_BIT(); /* SPI data input */ - CTS_OFF(); /* SPI clock OFF */ - TX_BIT(); - CTS_ON_FAST(); /* SPI clock ON */ - b = (b << 1) | RX_BIT(); /* SPI data input */ - CTS_OFF(); /* SPI clock OFF */ - - data += 4; - } -} - - -/** - * Receives multiple bytes from the SPI bus and writes them to a buffer. - * - * \param[out] buffer A pointer to the buffer into which the data gets written. - * \param[in] len The number of bytes to read. - */ -void spi_cc_rec_data(uint8* buffer, uint16 len) { - do { - *buffer++ = spi_rec_byte(); - } while(--len); -} - -void spi_rec_data(uint8* buffer, uint16 len) { - uint8 b = 0xff; - uint16 cts_off = (pwork & ~SCSPTR2_CTSDT) | SCSPTR2_SPB2DT; - uint16 cts_on = (pwork | SCSPTR2_CTSDT | SCSPTR2_SPB2DT); - - reg_write_16(SCSPTR2, cts_off); - - for(; len > 0; len -= 4) { - reg_write_16(SCSPTR2, cts_on); /* SPI clock ON */ - b = (b << 1) | RX_BIT(); /* SPI data input */ - reg_write_16(SCSPTR2, cts_off); /* SPI clock OFF */ - reg_write_16(SCSPTR2, cts_on); /* SPI clock ON */ - b = (b << 1) | RX_BIT(); /* SPI data input */ - reg_write_16(SCSPTR2, cts_off); /* SPI clock OFF */ - reg_write_16(SCSPTR2, cts_on); /* SPI clock ON */ - b = (b << 1) | RX_BIT(); /* SPI data input */ - reg_write_16(SCSPTR2, cts_off); /* SPI clock OFF */ - reg_write_16(SCSPTR2, cts_on); /* SPI clock ON */ - b = (b << 1) | RX_BIT(); /* SPI data input */ - reg_write_16(SCSPTR2, cts_off); /* SPI clock OFF */ - reg_write_16(SCSPTR2, cts_on); /* SPI clock ON */ - b = (b << 1) | RX_BIT(); /* SPI data input */ - reg_write_16(SCSPTR2, cts_off); /* SPI clock OFF */ - reg_write_16(SCSPTR2, cts_on); /* SPI clock ON */ - b = (b << 1) | RX_BIT(); /* SPI data input */ - reg_write_16(SCSPTR2, cts_off); /* SPI clock OFF */ - reg_write_16(SCSPTR2, cts_on); /* SPI clock ON */ - b = (b << 1) | RX_BIT(); /* SPI data input */ - reg_write_16(SCSPTR2, cts_off); /* SPI clock OFF */ - reg_write_16(SCSPTR2, cts_on); /* SPI clock ON */ - b = (b << 1) | RX_BIT(); /* SPI data input */ - reg_write_16(SCSPTR2, cts_off); /* SPI clock OFF */ - - buffer[0] = b; - - reg_write_16(SCSPTR2, cts_on); /* SPI clock ON */ - b = (b << 1) | RX_BIT(); /* SPI data input */ - reg_write_16(SCSPTR2, cts_off); /* SPI clock OFF */ - reg_write_16(SCSPTR2, cts_on); /* SPI clock ON */ - b = (b << 1) | RX_BIT(); /* SPI data input */ - reg_write_16(SCSPTR2, cts_off); /* SPI clock OFF */ - reg_write_16(SCSPTR2, cts_on); /* SPI clock ON */ - b = (b << 1) | RX_BIT(); /* SPI data input */ - reg_write_16(SCSPTR2, cts_off); /* SPI clock OFF */ - reg_write_16(SCSPTR2, cts_on); /* SPI clock ON */ - b = (b << 1) | RX_BIT(); /* SPI data input */ - reg_write_16(SCSPTR2, cts_off); /* SPI clock OFF */ - reg_write_16(SCSPTR2, cts_on); /* SPI clock ON */ - b = (b << 1) | RX_BIT(); /* SPI data input */ - reg_write_16(SCSPTR2, cts_off); /* SPI clock OFF */ - reg_write_16(SCSPTR2, cts_on); /* SPI clock ON */ - b = (b << 1) | RX_BIT(); /* SPI data input */ - reg_write_16(SCSPTR2, cts_off); /* SPI clock OFF */ - reg_write_16(SCSPTR2, cts_on); /* SPI clock ON */ - b = (b << 1) | RX_BIT(); /* SPI data input */ - reg_write_16(SCSPTR2, cts_off); /* SPI clock OFF */ - reg_write_16(SCSPTR2, cts_on); /* SPI clock ON */ - b = (b << 1) | RX_BIT(); /* SPI data input */ - reg_write_16(SCSPTR2, cts_off); /* SPI clock OFF */ - - buffer[1] = b; - - reg_write_16(SCSPTR2, cts_on); /* SPI clock ON */ - b = (b << 1) | RX_BIT(); /* SPI data input */ - reg_write_16(SCSPTR2, cts_off); /* SPI clock OFF */ - reg_write_16(SCSPTR2, cts_on); /* SPI clock ON */ - b = (b << 1) | RX_BIT(); /* SPI data input */ - reg_write_16(SCSPTR2, cts_off); /* SPI clock OFF */ - reg_write_16(SCSPTR2, cts_on); /* SPI clock ON */ - b = (b << 1) | RX_BIT(); /* SPI data input */ - reg_write_16(SCSPTR2, cts_off); /* SPI clock OFF */ - reg_write_16(SCSPTR2, cts_on); /* SPI clock ON */ - b = (b << 1) | RX_BIT(); /* SPI data input */ - reg_write_16(SCSPTR2, cts_off); /* SPI clock OFF */ - reg_write_16(SCSPTR2, cts_on); /* SPI clock ON */ - b = (b << 1) | RX_BIT(); /* SPI data input */ - reg_write_16(SCSPTR2, cts_off); /* SPI clock OFF */ - reg_write_16(SCSPTR2, cts_on); /* SPI clock ON */ - b = (b << 1) | RX_BIT(); /* SPI data input */ - reg_write_16(SCSPTR2, cts_off); /* SPI clock OFF */ - reg_write_16(SCSPTR2, cts_on); /* SPI clock ON */ - b = (b << 1) | RX_BIT(); /* SPI data input */ - reg_write_16(SCSPTR2, cts_off); /* SPI clock OFF */ - reg_write_16(SCSPTR2, cts_on); /* SPI clock ON */ - b = (b << 1) | RX_BIT(); /* SPI data input */ - reg_write_16(SCSPTR2, cts_off); /* SPI clock OFF */ - - buffer[2] = b; - - reg_write_16(SCSPTR2, cts_on); /* SPI clock ON */ - b = (b << 1) | RX_BIT(); /* SPI data input */ - reg_write_16(SCSPTR2, cts_off); /* SPI clock OFF */ - reg_write_16(SCSPTR2, cts_on); /* SPI clock ON */ - b = (b << 1) | RX_BIT(); /* SPI data input */ - reg_write_16(SCSPTR2, cts_off); /* SPI clock OFF */ - reg_write_16(SCSPTR2, cts_on); /* SPI clock ON */ - b = (b << 1) | RX_BIT(); /* SPI data input */ - reg_write_16(SCSPTR2, cts_off); /* SPI clock OFF */ - reg_write_16(SCSPTR2, cts_on); /* SPI clock ON */ - b = (b << 1) | RX_BIT(); /* SPI data input */ - reg_write_16(SCSPTR2, cts_off); /* SPI clock OFF */ - reg_write_16(SCSPTR2, cts_on); /* SPI clock ON */ - b = (b << 1) | RX_BIT(); /* SPI data input */ - reg_write_16(SCSPTR2, cts_off); /* SPI clock OFF */ - reg_write_16(SCSPTR2, cts_on); /* SPI clock ON */ - b = (b << 1) | RX_BIT(); /* SPI data input */ - reg_write_16(SCSPTR2, cts_off); /* SPI clock OFF */ - reg_write_16(SCSPTR2, cts_on); /* SPI clock ON */ - b = (b << 1) | RX_BIT(); /* SPI data input */ - reg_write_16(SCSPTR2, cts_off); /* SPI clock OFF */ - reg_write_16(SCSPTR2, cts_on); /* SPI clock ON */ - b = (b << 1) | RX_BIT(); /* SPI data input */ - reg_write_16(SCSPTR2, cts_off); /* SPI clock OFF */ - - buffer[3] = b; - buffer += 4; - } -}