arm-elf-eabi-gcc -c -Os -fno-pie -fno-stack-protector -fomit-frame-pointer -I. -ffunction-sections -fdata-sections -I/usr/include -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. -ffunction-sections -fdata-sections -I/usr/include -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. -ffunction-sections -fdata-sections -I/usr/include -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. -ffunction-sections -fdata-sections -I/usr/include -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. -ffunction-sections -fdata-sections -I/usr/include -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. -ffunction-sections -fdata-sections -I/usr/include -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. -ffunction-sections -fdata-sections -I/usr/include -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. -ffunction-sections -fdata-sections -I/usr/include -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. -ffunction-sections -fdata-sections -I/usr/include -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. -ffunction-sections -fdata-sections -I/usr/include -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. -ffunction-sections -fdata-sections -I/usr/include -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. -ffunction-sections -fdata-sections -I/usr/include -Itarget/ipodnano4g -DTARGET_ipodnano4g -o build/ipodnano4g/./snprintf.o snprintf.c arm-elf-eabi-gcc -c -Os -fno-pie -fno-stack-protector -fomit-frame-pointer -I. -ffunction-sections -fdata-sections -I/usr/include -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. -ffunction-sections -fdata-sections -I/usr/include -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. -ffunction-sections -fdata-sections -I/usr/include -Itarget/ipodnano4g -DTARGET_ipodnano4g -o build/ipodnano4g/./strlen.o strlen.c arm-elf-eabi-gcc -c -Os -fno-pie -fno-stack-protector -fomit-frame-pointer -I. -ffunction-sections -fdata-sections -I/usr/include -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. -ffunction-sections -fdata-sections -I/usr/include -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:123: 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. -ffunction-sections -fdata-sections -I/usr/include -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:35:19: error: power.h: No such file or directory usb/usb.c: In function 'usb_handle_transfer_complete': usb/usb.c:327: error: 'PLATFORM_ID' undeclared (first use in this function) usb/usb.c:327: error: (Each undeclared identifier is reported only once usb/usb.c:327: 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. -ffunction-sections -fdata-sections -I/usr/include -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. -ffunction-sections -fdata-sections -I/usr/include -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. -ffunction-sections -fdata-sections -I/usr/include -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. -ffunction-sections -fdata-sections -I/usr/include -Itarget/ipodnano4g -DTARGET_ipodnano4g -o build/ipodnano4g/./fat.o fat.c In file included from fat.c:24: 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. -ffunction-sections -fdata-sections -I/usr/include -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. -ffunction-sections -fdata-sections -I/usr/include -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. -ffunction-sections -fdata-sections -I/usr/include -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 make: Target `ipodnano4g' not remade because of errors.