I appear to be getting this whenever I compile for no discernible reason.
Code:
Code:
/usr/local/cross/bin/sh3eb-elf-gcc -MMD -MP -MF /home/atrt7/libfxcg/projects/jenncraft/build/main.d -Os -Wall -mb -m4a-nofpu -mhitachi -nostdlib -I/home/atrt7/libfxcg/projects/jenncraft/build -I/home/atrt7/libfxcg/include -ffunction-sections -fdata-sections -std=c99 -c /home/atrt7/libfxcg/projects/jenncraft/src/main.c -o main.o
/usr/local/cross/bin/sh3eb-elf-gcc drawing.o fixed.o input.o main.o util.o -mb -m4a-nofpu -mhitachi -nostdlib -T/home/atrt7/libfxcg/toolchain/prizm.x -Wl,-static -Wl,-gc-sections -L/home/atrt7/libfxcg/lib -lfxcg -lc -lgcc -o /home/atrt7/libfxcg/projects/jenncraft/jenncraft.bin
/usr/local/cross/lib/gcc/sh3eb-elf/10.3.0/../../../../sh3eb-elf/bin/ld: /home/atrt7/libfxcg/lib/libc.a(string.o): in function `strcat':
/home/atrt7/libfxcg/libc/string.c:65: undefined reference to `_strlen'
/usr/local/cross/lib/gcc/sh3eb-elf/10.3.0/../../../../sh3eb-elf/bin/ld: /home/atrt7/libfxcg/lib/libc.a(string.o): in function `strdup':
/home/atrt7/libfxcg/libc/string.c:115: undefined reference to `_strlen'
/usr/local/cross/lib/gcc/sh3eb-elf/10.3.0/../../../../sh3eb-elf/bin/ld: /home/atrt7/libfxcg/lib/libc.a(string.o): in function `strncpy':
/home/atrt7/libfxcg/libc/string.c:153: undefined reference to `_strlen'
/usr/local/cross/lib/gcc/sh3eb-elf/10.3.0/../../../../sh3eb-elf/bin/ld: /home/atrt7/libfxcg/lib/libc.a(string.o): in function `strncat':
/home/atrt7/libfxcg/libc/string.c:122: undefined reference to `_strlen'
/usr/local/cross/lib/gcc/sh3eb-elf/10.3.0/../../../../sh3eb-elf/bin/ld: /home/atrt7/libfxcg/lib/libc.a(string.o): in function `strpbrk':
/home/atrt7/libfxcg/libc/string.c:172: undefined reference to `_strlen'
/usr/local/cross/lib/gcc/sh3eb-elf/10.3.0/../../../../sh3eb-elf/bin/ld: /home/atrt7/libfxcg/lib/libc.a(string.o):/home/atrt7/libfxcg/libc/string.c:109: more undefined references to `_strlen' follow
/usr/local/cross/lib/gcc/sh3eb-elf/10.3.0/../../../../sh3eb-elf/bin/ld: /home/atrt7/libfxcg/lib/libc.a(stdlib.o): in function `malloc':
/home/atrt7/libfxcg/libc/stdlib.c:14: undefined reference to `_sys_malloc'
/usr/local/cross/lib/gcc/sh3eb-elf/10.3.0/../../../../sh3eb-elf/bin/ld: /home/atrt7/libfxcg/lib/libc.a(stdlib.o): in function `realloc':
/home/atrt7/libfxcg/libc/stdlib.c:18: undefined reference to `_sys_realloc'
/usr/local/cross/lib/gcc/sh3eb-elf/10.3.0/../../../../sh3eb-elf/bin/ld: /home/atrt7/libfxcg/lib/libc.a(stdlib.o): in function `free':
/home/atrt7/libfxcg/libc/stdlib.c:22: undefined reference to `_sys_free'
/usr/local/cross/lib/gcc/sh3eb-elf/10.3.0/../../../../sh3eb-elf/bin/ld: /home/atrt7/libfxcg/lib/libc.a(stdlib.o): in function `exit':
/home/atrt7/libfxcg/libc/stdlib.c:53: undefined reference to `_EnableStatusArea'
/usr/local/cross/lib/gcc/sh3eb-elf/10.3.0/../../../../sh3eb-elf/bin/ld: /home/atrt7/libfxcg/libc/stdlib.c:53: undefined reference to `_DefineStatusAreaFlags'
/usr/local/cross/lib/gcc/sh3eb-elf/10.3.0/../../../../sh3eb-elf/bin/ld: /home/atrt7/libfxcg/libc/stdlib.c:53: undefined reference to `_DefineStatusMessage'
/usr/local/cross/lib/gcc/sh3eb-elf/10.3.0/../../../../sh3eb-elf/bin/ld: /home/atrt7/libfxcg/libc/stdlib.c:53: undefined reference to `_DisplayStatusArea'
/usr/local/cross/lib/gcc/sh3eb-elf/10.3.0/../../../../sh3eb-elf/bin/ld: /home/atrt7/libfxcg/lib/libc.a(stdlib.o): in function `abort':
/home/atrt7/libfxcg/libc/stdlib.c:72: undefined reference to `_EnableStatusArea'
/usr/local/cross/lib/gcc/sh3eb-elf/10.3.0/../../../../sh3eb-elf/bin/ld: /home/atrt7/libfxcg/libc/stdlib.c:72: undefined reference to `_DefineStatusAreaFlags'
/usr/local/cross/lib/gcc/sh3eb-elf/10.3.0/../../../../sh3eb-elf/bin/ld: /home/atrt7/libfxcg/libc/stdlib.c:72: undefined reference to `_DefineStatusMessage'
/usr/local/cross/lib/gcc/sh3eb-elf/10.3.0/../../../../sh3eb-elf/bin/ld: /home/atrt7/libfxcg/libc/stdlib.c:72: undefined reference to `_DisplayStatusArea'
/usr/local/cross/lib/gcc/sh3eb-elf/10.3.0/../../../../sh3eb-elf/bin/ld: /home/atrt7/libfxcg/lib/libc.a(stdio.o): in function `serial_ensureopen':
/home/atrt7/libfxcg/libc/stdio.c:136: undefined reference to `_Serial_IsOpen'
/usr/local/cross/lib/gcc/sh3eb-elf/10.3.0/../../../../sh3eb-elf/bin/ld: /home/atrt7/libfxcg/libc/stdio.c:136: undefined reference to `_Serial_Open'
/usr/local/cross/lib/gcc/sh3eb-elf/10.3.0/../../../../sh3eb-elf/bin/ld: /home/atrt7/libfxcg/lib/libc.a(stdio.o): in function `fopen':
/home/atrt7/libfxcg/libc/stdio.c:108: undefined reference to `_strlen'
/usr/local/cross/lib/gcc/sh3eb-elf/10.3.0/../../../../sh3eb-elf/bin/ld: /home/atrt7/libfxcg/libc/stdio.c:108: undefined reference to `_Bfile_OpenFile_OS'
/usr/local/cross/lib/gcc/sh3eb-elf/10.3.0/../../../../sh3eb-elf/bin/ld: /home/atrt7/libfxcg/libc/stdio.c:108: undefined reference to `_Bfile_StrToName_ncpy'
/usr/local/cross/lib/gcc/sh3eb-elf/10.3.0/../../../../sh3eb-elf/bin/ld: /home/atrt7/libfxcg/libc/stdio.c:108: undefined reference to `_Bfile_CreateEntry_OS'
/usr/local/cross/lib/gcc/sh3eb-elf/10.3.0/../../../../sh3eb-elf/bin/ld: /home/atrt7/libfxcg/libc/stdio.c:108: undefined reference to `_sys_malloc'
/usr/local/cross/lib/gcc/sh3eb-elf/10.3.0/../../../../sh3eb-elf/bin/ld: /home/atrt7/libfxcg/lib/libc.a(stdio.o): in function `fclose':
/home/atrt7/libfxcg/libc/stdio.c:126: undefined reference to `_Bfile_CloseFile_OS'
/usr/local/cross/lib/gcc/sh3eb-elf/10.3.0/../../../../sh3eb-elf/bin/ld: /home/atrt7/libfxcg/libc/stdio.c:126: undefined reference to `_sys_free'
/usr/local/cross/lib/gcc/sh3eb-elf/10.3.0/../../../../sh3eb-elf/bin/ld: /home/atrt7/libfxcg/lib/libc.a(stdio.o): in function `fwrite_term':
/home/atrt7/libfxcg/libc/stdio.c:195: undefined reference to `_Serial_PollTX'
/usr/local/cross/lib/gcc/sh3eb-elf/10.3.0/../../../../sh3eb-elf/bin/ld: /home/atrt7/libfxcg/libc/stdio.c:195: undefined reference to `_Serial_Write'
/usr/local/cross/lib/gcc/sh3eb-elf/10.3.0/../../../../sh3eb-elf/bin/ld: /home/atrt7/libfxcg/libc/stdio.c:195: undefined reference to `_sys_malloc'
/usr/local/cross/lib/gcc/sh3eb-elf/10.3.0/../../../../sh3eb-elf/bin/ld: /home/atrt7/libfxcg/libc/stdio.c:195: undefined reference to `_PrintMiniMini'
/usr/local/cross/lib/gcc/sh3eb-elf/10.3.0/../../../../sh3eb-elf/bin/ld: /home/atrt7/libfxcg/libc/stdio.c:195: undefined reference to `_Bfile_WriteFile_OS'
/usr/local/cross/lib/gcc/sh3eb-elf/10.3.0/../../../../sh3eb-elf/bin/ld: /home/atrt7/libfxcg/libc/stdio.c:195: undefined reference to `_sys_free'
/usr/local/cross/lib/gcc/sh3eb-elf/10.3.0/../../../../sh3eb-elf/bin/ld: /home/atrt7/libfxcg/lib/libc.a(stdio.o): in function `fread_serial':
/home/atrt7/libfxcg/libc/stdio.c:229: undefined reference to `_Serial_PollRX'
/usr/local/cross/lib/gcc/sh3eb-elf/10.3.0/../../../../sh3eb-elf/bin/ld: /home/atrt7/libfxcg/libc/stdio.c:229: undefined reference to `_Serial_Read'
/usr/local/cross/lib/gcc/sh3eb-elf/10.3.0/../../../../sh3eb-elf/bin/ld: /home/atrt7/libfxcg/lib/libc.a(stdio.o): in function `fread':
/home/atrt7/libfxcg/libc/stdio.c:254: undefined reference to `_Bfile_ReadFile_OS'
/usr/local/cross/lib/gcc/sh3eb-elf/10.3.0/../../../../sh3eb-elf/bin/ld: /home/atrt7/libfxcg/lib/libc.a(stdio.o): in function `fputs':
/home/atrt7/libfxcg/libc/stdio.c:272: undefined reference to `_strlen'
/usr/local/cross/lib/gcc/sh3eb-elf/10.3.0/../../../../sh3eb-elf/bin/ld: /home/atrt7/libfxcg/lib/libc.a(stdio.o): in function `ftell':
/home/atrt7/libfxcg/libc/stdio.c:344: undefined reference to `_Bfile_TellFile_OS'
/usr/local/cross/lib/gcc/sh3eb-elf/10.3.0/../../../../sh3eb-elf/bin/ld: /home/atrt7/libfxcg/lib/libc.a(stdio.o): in function `fseek':
/home/atrt7/libfxcg/libc/stdio.c:320: undefined reference to `_Bfile_SeekFile_OS'
/usr/local/cross/lib/gcc/sh3eb-elf/10.3.0/../../../../sh3eb-elf/bin/ld: /home/atrt7/libfxcg/lib/libc.a(stdio.o): in function `perror':
/home/atrt7/libfxcg/libc/stdio.c:356: undefined reference to `_strlen'
/usr/local/cross/lib/gcc/sh3eb-elf/10.3.0/../../../../sh3eb-elf/bin/ld: /home/atrt7/libfxcg/lib/libc.a(stdio.o): in function `remove':
/home/atrt7/libfxcg/libc/stdio.c:377: undefined reference to `_strlen'
/usr/local/cross/lib/gcc/sh3eb-elf/10.3.0/../../../../sh3eb-elf/bin/ld: /home/atrt7/libfxcg/libc/stdio.c:377: undefined reference to `_Bfile_StrToName_ncpy'
/usr/local/cross/lib/gcc/sh3eb-elf/10.3.0/../../../../sh3eb-elf/bin/ld: /home/atrt7/libfxcg/libc/stdio.c:377: undefined reference to `_Bfile_DeleteEntry'
/usr/local/cross/lib/gcc/sh3eb-elf/10.3.0/../../../../sh3eb-elf/bin/ld: /home/atrt7/libfxcg/lib/libc.a(stdio.o): in function `rename':
/home/atrt7/libfxcg/libc/stdio.c:393: undefined reference to `_strlen'
/usr/local/cross/lib/gcc/sh3eb-elf/10.3.0/../../../../sh3eb-elf/bin/ld: /home/atrt7/libfxcg/libc/stdio.c:393: undefined reference to `_Bfile_StrToName_ncpy'
/usr/local/cross/lib/gcc/sh3eb-elf/10.3.0/../../../../sh3eb-elf/bin/ld: /home/atrt7/libfxcg/libc/stdio.c:393: undefined reference to `_Bfile_RenameEntry'
/usr/local/cross/lib/gcc/sh3eb-elf/10.3.0/../../../../sh3eb-elf/bin/ld: /home/atrt7/libfxcg/lib/libc.a(stdio.o): in function `mkdir':
/home/atrt7/libfxcg/libc/stdio.c:411: undefined reference to `_strlen'
/usr/local/cross/lib/gcc/sh3eb-elf/10.3.0/../../../../sh3eb-elf/bin/ld: /home/atrt7/libfxcg/libc/stdio.c:411: undefined reference to `_Bfile_StrToName_ncpy'
/usr/local/cross/lib/gcc/sh3eb-elf/10.3.0/../../../../sh3eb-elf/bin/ld: /home/atrt7/libfxcg/libc/stdio.c:411: undefined reference to `_Bfile_CreateEntry_OS'
collect2: error: ld returned 1 exit status
make[1]: *** [/home/atrt7/libfxcg/toolchain/prizm_rules:83: /home/atrt7/libfxcg/projects/jenncraft/jenncraft.bin] Error 1
make: *** [Makefile:104: all] Error 2