arm-elf-eabi-gcc -c -Os -fno-pie -fno-stack-protector -fomit-frame-pointer -I. -Ilibc/include -ffunction-sections -fdata-sections -Itarget/ipodnano4g -DTARGET_ipodnano4g -o build/ipodnano4g/target/ipodnano4g/crt0.o target/ipodnano4g/crt0.S arm-elf-eabi-gcc -c -Os -fno-pie -fno-stack-protector -fomit-frame-pointer -I. -Ilibc/include -ffunction-sections -fdata-sections -Itarget/ipodnano4g -DTARGET_ipodnano4g -o build/ipodnano4g/./target/ipodnano4g/mmu.o target/ipodnano4g/mmu.c arm-elf-eabi-gcc -c -Os -fno-pie -fno-stack-protector -fomit-frame-pointer -I. -Ilibc/include -ffunction-sections -fdata-sections -Itarget/ipodnano4g -DTARGET_ipodnano4g -o build/ipodnano4g/./target/ipodnano4g/lcd.o target/ipodnano4g/lcd.S arm-elf-eabi-gcc -c -Os -fno-pie -fno-stack-protector -fomit-frame-pointer -I. -Ilibc/include -ffunction-sections -fdata-sections -Itarget/ipodnano4g -DTARGET_ipodnano4g -o build/ipodnano4g/./arm/arm-support.o arm/arm-support.S arm-elf-eabi-gcc -c -Os -fno-pie -fno-stack-protector -fomit-frame-pointer -I. -Ilibc/include -ffunction-sections -fdata-sections -Itarget/ipodnano4g -DTARGET_ipodnano4g -o build/ipodnano4g/./arm/contextswitch.o arm/contextswitch.S arm-elf-eabi-gcc -c -Os -fno-pie -fno-stack-protector -fomit-frame-pointer -I. -Ilibc/include -ffunction-sections -fdata-sections -Itarget/ipodnano4g -DTARGET_ipodnano4g -o build/ipodnano4g/./init.o init.c init.c:30:17: error: i2c.h: No such file or directory init.c:31:17: error: pmu.h: No such file or directory make: *** [build/ipodnano4g/./init.o] Error 1 arm-elf-eabi-gcc -c -Os -fno-pie -fno-stack-protector -fomit-frame-pointer -I. -Ilibc/include -ffunction-sections -fdata-sections -Itarget/ipodnano4g -DTARGET_ipodnano4g -o build/ipodnano4g/./main.o main.c arm-elf-eabi-gcc -c -Os -fno-pie -fno-stack-protector -fomit-frame-pointer -I. -Ilibc/include -ffunction-sections -fdata-sections -Itarget/ipodnano4g -DTARGET_ipodnano4g -o build/ipodnano4g/./util.o util.c arm-elf-eabi-gcc -c -Os -fno-pie -fno-stack-protector -fomit-frame-pointer -I. -Ilibc/include -ffunction-sections -fdata-sections -Itarget/ipodnano4g -DTARGET_ipodnano4g -o build/ipodnano4g/./drawing.o drawing.S arm-elf-eabi-gcc -c -Os -fno-pie -fno-stack-protector -fomit-frame-pointer -I. -Ilibc/include -ffunction-sections -fdata-sections -Itarget/ipodnano4g -DTARGET_ipodnano4g -o build/ipodnano4g/./lcdconsole.o lcdconsole.c arm-elf-eabi-gcc -c -Os -fno-pie -fno-stack-protector -fomit-frame-pointer -I. -Ilibc/include -ffunction-sections -fdata-sections -Itarget/ipodnano4g -DTARGET_ipodnano4g -o build/ipodnano4g/./format.o format.c arm-elf-eabi-gcc -c -Os -fno-pie -fno-stack-protector -fomit-frame-pointer -I. -Ilibc/include -ffunction-sections -fdata-sections -Itarget/ipodnano4g -DTARGET_ipodnano4g -o build/ipodnano4g/./panic.o panic.c arm-elf-eabi-gcc -c -Os -fno-pie -fno-stack-protector -fomit-frame-pointer -I. -Ilibc/include -ffunction-sections -fdata-sections -Itarget/ipodnano4g -DTARGET_ipodnano4g -o build/ipodnano4g/./console.o console.c arm-elf-eabi-gcc -c -Os -fno-pie -fno-stack-protector -fomit-frame-pointer -I. -Ilibc/include -ffunction-sections -fdata-sections -Itarget/ipodnano4g -DTARGET_ipodnano4g -o build/ipodnano4g/./ucl.o ucl.S arm-elf-eabi-gcc -c -Os -fno-pie -fno-stack-protector -fomit-frame-pointer -I. -Ilibc/include -ffunction-sections -fdata-sections -Itarget/ipodnano4g -DTARGET_ipodnano4g -o build/ipodnano4g/./thread.o thread.c In file included from thread.c:26: target/ipodnano4g/timer.h:35: error: conflicting types for 'sleep' thread.h:124: note: previous declaration of 'sleep' was here target/ipodnano4g/timer.h: In function 'sleep': target/ipodnano4g/timer.h:37: error: 'USEC_TIMER' undeclared (first use in this function) target/ipodnano4g/timer.h:37: error: (Each undeclared identifier is reported only once target/ipodnano4g/timer.h:37: error: for each function it appears in.) In file included from dir.h:45, from thread.c:29: fat.h: At top level: fat.h:82: error: 'SECTOR_SIZE' undeclared here (not in a function) thread.c: In function 'mutex_lock': thread.c:99: error: 'USEC_TIMER' undeclared (first use in this function) thread.c: In function 'wakeup_wait': thread.c:171: error: 'USEC_TIMER' undeclared (first use in this function) thread.c: At top level: thread.c:206: error: conflicting types for 'sleep' target/ipodnano4g/timer.h:35: note: previous definition of 'sleep' was here thread.c: In function 'sleep': thread.c:214: error: 'USEC_TIMER' undeclared (first use in this function) thread.c: In function 'scheduler_init': thread.c:224: error: 'USEC_TIMER' undeclared (first use in this function) thread.c: In function 'scheduler_switch': thread.c:244: error: 'USEC_TIMER' undeclared (first use in this function) thread.c: In function 'thread_suspend': thread.c:359: error: 'USEC_TIMER' undeclared (first use in this function) thread.c: In function 'thread_resume': thread.c:395: error: 'USEC_TIMER' undeclared (first use in this function) make: *** [build/ipodnano4g/./thread.o] Error 1 arm-elf-eabi-gcc -c -Os -fno-pie -fno-stack-protector -fomit-frame-pointer -I. -Ilibc/include -ffunction-sections -fdata-sections -Itarget/ipodnano4g -DTARGET_ipodnano4g -o build/ipodnano4g/./usb/usb.o usb/usb.c usb/usb.c:32:17: error: i2c.h: No such file or directory usb/usb.c:34:19: error: power.h: No such file or directory usb/usb.c: In function 'usb_handle_transfer_complete': usb/usb.c:326: error: 'PLATFORM_ID' undeclared (first use in this function) usb/usb.c:326: error: (Each undeclared identifier is reported only once usb/usb.c:326: error: for each function it appears in.) make: *** [build/ipodnano4g/./usb/usb.o] Error 1 arm-elf-eabi-gcc -c -Os -fno-pie -fno-stack-protector -fomit-frame-pointer -I. -Ilibc/include -ffunction-sections -fdata-sections -Itarget/ipodnano4g -DTARGET_ipodnano4g -o build/ipodnano4g/./shutdown.o shutdown.c arm-elf-eabi-gcc -c -Os -fno-pie -fno-stack-protector -fomit-frame-pointer -I. -Ilibc/include -ffunction-sections -fdata-sections -Itarget/ipodnano4g -DTARGET_ipodnano4g -o build/ipodnano4g/./syscall.o syscall.c arm-elf-eabi-gcc -c -Os -fno-pie -fno-stack-protector -fomit-frame-pointer -I. -Ilibc/include -ffunction-sections -fdata-sections -Itarget/ipodnano4g -DTARGET_ipodnano4g -o build/ipodnano4g/./disk.o disk.c In file included from disk.c:25: fat.h:82: error: 'SECTOR_SIZE' undeclared here (not in a function) make: *** [build/ipodnano4g/./disk.o] Error 1 arm-elf-eabi-gcc -c -Os -fno-pie -fno-stack-protector -fomit-frame-pointer -I. -Ilibc/include -ffunction-sections -fdata-sections -Itarget/ipodnano4g -DTARGET_ipodnano4g -o build/ipodnano4g/./fat.o fat.c In file included from fat.c:25: fat.h:82: error: 'SECTOR_SIZE' undeclared here (not in a function) make: *** [build/ipodnano4g/./fat.o] Error 1 arm-elf-eabi-gcc -c -Os -fno-pie -fno-stack-protector -fomit-frame-pointer -I. -Ilibc/include -ffunction-sections -fdata-sections -Itarget/ipodnano4g -DTARGET_ipodnano4g -o build/ipodnano4g/./file.o file.c In file included from file.c:25: fat.h:82: error: 'SECTOR_SIZE' undeclared here (not in a function) make: *** [build/ipodnano4g/./file.o] Error 1 arm-elf-eabi-gcc -c -Os -fno-pie -fno-stack-protector -fomit-frame-pointer -I. -Ilibc/include -ffunction-sections -fdata-sections -Itarget/ipodnano4g -DTARGET_ipodnano4g -o build/ipodnano4g/./dir.o dir.c In file included from dir.c:24: fat.h:82: error: 'SECTOR_SIZE' undeclared here (not in a function) make: *** [build/ipodnano4g/./dir.o] Error 1 arm-elf-eabi-gcc -c -Os -fno-pie -fno-stack-protector -fomit-frame-pointer -I. -Ilibc/include -ffunction-sections -fdata-sections -Itarget/ipodnano4g -DTARGET_ipodnano4g -o build/ipodnano4g/./storage.o storage.c storage.c: In function 'storage_read_sectors': storage.c:74: error: 'read_sectors' undeclared (first use in this function) storage.c:74: error: (Each undeclared identifier is reported only once storage.c:74: error: for each function it appears in.) storage.c: In function 'storage_write_sectors': storage.c:116: error: 'write_sectors' undeclared (first use in this function) make: *** [build/ipodnano4g/./storage.o] Error 1 arm-elf-eabi-gcc -c -Os -fno-pie -fno-stack-protector -fomit-frame-pointer -I. -Ilibc/include -ffunction-sections -fdata-sections -Itarget/ipodnano4g -DTARGET_ipodnano4g -o build/ipodnano4g/./strcasestr.o strcasestr.c arm-elf-eabi-gcc -c -Os -fno-pie -fno-stack-protector -fomit-frame-pointer -I. -Ilibc/include -ffunction-sections -fdata-sections -Itarget/ipodnano4g -DTARGET_ipodnano4g -o build/ipodnano4g/./strcasecmp.o strcasecmp.c arm-elf-eabi-gcc -c -Os -fno-pie -fno-stack-protector -fomit-frame-pointer -I. -Ilibc/include -ffunction-sections -fdata-sections -Itarget/ipodnano4g -DTARGET_ipodnano4g -o build/ipodnano4g/./strlcpy.o strlcpy.c arm-elf-eabi-gcc -c -Os -fno-pie -fno-stack-protector -fomit-frame-pointer -I. -Ilibc/include -ffunction-sections -fdata-sections -Itarget/ipodnano4g -DTARGET_ipodnano4g -o build/ipodnano4g/./strlcat.o strlcat.c arm-elf-eabi-gcc -c -Os -fno-pie -fno-stack-protector -fomit-frame-pointer -I. -Ilibc/include -ffunction-sections -fdata-sections -Itarget/ipodnano4g -DTARGET_ipodnano4g -o build/ipodnano4g/./libc/strstr.o libc/strstr.c arm-elf-eabi-gcc -c -Os -fno-pie -fno-stack-protector -fomit-frame-pointer -I. -Ilibc/include -ffunction-sections -fdata-sections -Itarget/ipodnano4g -DTARGET_ipodnano4g -o build/ipodnano4g/./libc/strtok.o libc/strtok.c arm-elf-eabi-gcc -c -Os -fno-pie -fno-stack-protector -fomit-frame-pointer -I. -Ilibc/include -ffunction-sections -fdata-sections -Itarget/ipodnano4g -DTARGET_ipodnano4g -o build/ipodnano4g/./libc/atoi.o libc/atoi.c arm-elf-eabi-gcc -c -Os -fno-pie -fno-stack-protector -fomit-frame-pointer -I. -Ilibc/include -ffunction-sections -fdata-sections -Itarget/ipodnano4g -DTARGET_ipodnano4g -o build/ipodnano4g/./libc/ctype.o libc/ctype.c arm-elf-eabi-gcc -c -Os -fno-pie -fno-stack-protector -fomit-frame-pointer -I. -Ilibc/include -ffunction-sections -fdata-sections -Itarget/ipodnano4g -DTARGET_ipodnano4g -o build/ipodnano4g/./libc/memchr.o libc/memchr.c arm-elf-eabi-gcc -c -Os -fno-pie -fno-stack-protector -fomit-frame-pointer -I. -Ilibc/include -ffunction-sections -fdata-sections -Itarget/ipodnano4g -DTARGET_ipodnano4g -o build/ipodnano4g/./libc/memcmp.o libc/memcmp.c arm-elf-eabi-gcc -c -Os -fno-pie -fno-stack-protector -fomit-frame-pointer -I. -Ilibc/include -ffunction-sections -fdata-sections -Itarget/ipodnano4g -DTARGET_ipodnano4g -o build/ipodnano4g/./libc/memcpy.o libc/memcpy.c arm-elf-eabi-gcc -c -Os -fno-pie -fno-stack-protector -fomit-frame-pointer -I. -Ilibc/include -ffunction-sections -fdata-sections -Itarget/ipodnano4g -DTARGET_ipodnano4g -o build/ipodnano4g/./libc/memmove.o libc/memmove.c arm-elf-eabi-gcc -c -Os -fno-pie -fno-stack-protector -fomit-frame-pointer -I. -Ilibc/include -ffunction-sections -fdata-sections -Itarget/ipodnano4g -DTARGET_ipodnano4g -o build/ipodnano4g/./libc/memset.o libc/memset.c arm-elf-eabi-gcc -c -Os -fno-pie -fno-stack-protector -fomit-frame-pointer -I. -Ilibc/include -ffunction-sections -fdata-sections -Itarget/ipodnano4g -DTARGET_ipodnano4g -o build/ipodnano4g/./libc/mktime.o libc/mktime.c arm-elf-eabi-gcc -c -Os -fno-pie -fno-stack-protector -fomit-frame-pointer -I. -Ilibc/include -ffunction-sections -fdata-sections -Itarget/ipodnano4g -DTARGET_ipodnano4g -o build/ipodnano4g/./libc/qsort.o libc/qsort.c arm-elf-eabi-gcc -c -Os -fno-pie -fno-stack-protector -fomit-frame-pointer -I. -Ilibc/include -ffunction-sections -fdata-sections -Itarget/ipodnano4g -DTARGET_ipodnano4g -o build/ipodnano4g/./libc/random.o libc/random.c arm-elf-eabi-gcc -c -Os -fno-pie -fno-stack-protector -fomit-frame-pointer -I. -Ilibc/include -ffunction-sections -fdata-sections -Itarget/ipodnano4g -DTARGET_ipodnano4g -o build/ipodnano4g/./libc/sprintf.o libc/sprintf.c arm-elf-eabi-gcc -c -Os -fno-pie -fno-stack-protector -fomit-frame-pointer -I. -Ilibc/include -ffunction-sections -fdata-sections -Itarget/ipodnano4g -DTARGET_ipodnano4g -o build/ipodnano4g/./libc/sscanf.o libc/sscanf.c arm-elf-eabi-gcc -c -Os -fno-pie -fno-stack-protector -fomit-frame-pointer -I. -Ilibc/include -ffunction-sections -fdata-sections -Itarget/ipodnano4g -DTARGET_ipodnano4g -o build/ipodnano4g/./libc/strcat.o libc/strcat.c arm-elf-eabi-gcc -c -Os -fno-pie -fno-stack-protector -fomit-frame-pointer -I. -Ilibc/include -ffunction-sections -fdata-sections -Itarget/ipodnano4g -DTARGET_ipodnano4g -o build/ipodnano4g/./libc/strchr.o libc/strchr.c arm-elf-eabi-gcc -c -Os -fno-pie -fno-stack-protector -fomit-frame-pointer -I. -Ilibc/include -ffunction-sections -fdata-sections -Itarget/ipodnano4g -DTARGET_ipodnano4g -o build/ipodnano4g/./libc/strcmp.o libc/strcmp.c arm-elf-eabi-gcc -c -Os -fno-pie -fno-stack-protector -fomit-frame-pointer -I. -Ilibc/include -ffunction-sections -fdata-sections -Itarget/ipodnano4g -DTARGET_ipodnano4g -o build/ipodnano4g/./libc/strcpy.o libc/strcpy.c arm-elf-eabi-gcc -c -Os -fno-pie -fno-stack-protector -fomit-frame-pointer -I. -Ilibc/include -ffunction-sections -fdata-sections -Itarget/ipodnano4g -DTARGET_ipodnano4g -o build/ipodnano4g/./libc/strlen.o libc/strlen.c arm-elf-eabi-gcc -c -Os -fno-pie -fno-stack-protector -fomit-frame-pointer -I. -Ilibc/include -ffunction-sections -fdata-sections -Itarget/ipodnano4g -DTARGET_ipodnano4g -o build/ipodnano4g/./libc/strncmp.o libc/strncmp.c arm-elf-eabi-gcc -c -Os -fno-pie -fno-stack-protector -fomit-frame-pointer -I. -Ilibc/include -ffunction-sections -fdata-sections -Itarget/ipodnano4g -DTARGET_ipodnano4g -o build/ipodnano4g/./libc/strrchr.o libc/strrchr.c make: Target `ipodnano4g' not remade because of errors.