Skip to content

Instantly share code, notes, and snippets.

@kellydunn
Last active December 27, 2015 23:19
Show Gist options
  • Save kellydunn/7405196 to your computer and use it in GitHub Desktop.
Save kellydunn/7405196 to your computer and use it in GitHub Desktop.
basan compiler error
/home/kelly/work/arduino-1.0.5/hardware/tools/arm-none-eabi/bin/arm-none-eabi-g++ -std=gnu++0x -felide-constructors -fno-exceptions -fno-rtti -Wall -g -Os -mcpu=cortex-m4 -nostdlib -mthumb -MMD -DF_CPU=48000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -D__MK20DX128__ -DARDUIO=104 -I. -I/home/kelly/work/arduino-1.0.5/hardware/teensy/cores/teensy3/ -I/home/kelly/work/arduino-1.0.5/libraries -I/home/kelly/work/arduino-1.0.5/libraries/SD/ -I/home/kelly/work/arduino-1.0.5/libraries/SD/utility/ -Ilib/ -c -o src/basan.o src/basan.cpp
src/basan.cpp: In function 'int main()':
src/basan.cpp:22:12: warning: unused variable 'sd' [-Wunused-variable]
src/basan.cpp:23:12: warning: unused variable 'current_phrase' [-Wunused-variable]
src/basan.cpp:24:12: warning: unused variable 'current_sample' [-Wunused-variable]
src/basan.cpp:27:10: warning: variable 'x' set but not used [-Wunused-but-set-variable]
/home/kelly/work/arduino-1.0.5/hardware/tools/arm-none-eabi/bin/arm-none-eabi-g++ -std=gnu++0x -felide-constructors -fno-exceptions -fno-rtti -Wall -g -Os -mcpu=cortex-m4 -nostdlib -mthumb -MMD -DF_CPU=48000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -D__MK20DX128__ -DARDUIO=104 -I. -I/home/kelly/work/arduino-1.0.5/hardware/teensy/cores/teensy3/ -I/home/kelly/work/arduino-1.0.5/libraries -I/home/kelly/work/arduino-1.0.5/libraries/SD/ -I/home/kelly/work/arduino-1.0.5/libraries/SD/utility/ -Ilib/ -c -o src/sd_card.o src/sd_card.cpp
src/sd_card.cpp: In static member function 'static int SdCard::loop_phrases(pt*)':
src/sd_card.cpp:27:3: warning: variable 'PT_YIELD_FLAG' set but not used [-Wunused-but-set-variable]
src/sd_card.cpp: In member function 'void SdCard::add_phrase()':
src/sd_card.cpp:40:12: warning: unused variable 'p' [-Wunused-variable]
/home/kelly/work/arduino-1.0.5/hardware/tools/arm-none-eabi/bin/arm-none-eabi-g++ -std=gnu++0x -felide-constructors -fno-exceptions -fno-rtti -Wall -g -Os -mcpu=cortex-m4 -nostdlib -mthumb -MMD -DF_CPU=48000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -D__MK20DX128__ -DARDUIO=104 -I. -I/home/kelly/work/arduino-1.0.5/hardware/teensy/cores/teensy3/ -I/home/kelly/work/arduino-1.0.5/libraries -I/home/kelly/work/arduino-1.0.5/libraries/SD/ -I/home/kelly/work/arduino-1.0.5/libraries/SD/utility/ -Ilib/ -c -o src/phrase.o src/phrase.cpp
/home/kelly/work/arduino-1.0.5/hardware/tools/arm-none-eabi/bin/arm-none-eabi-g++ -std=gnu++0x -felide-constructors -fno-exceptions -fno-rtti -Wall -g -Os -mcpu=cortex-m4 -nostdlib -mthumb -MMD -DF_CPU=48000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -D__MK20DX128__ -DARDUIO=104 -I. -I/home/kelly/work/arduino-1.0.5/hardware/teensy/cores/teensy3/ -I/home/kelly/work/arduino-1.0.5/libraries -I/home/kelly/work/arduino-1.0.5/libraries/SD/ -I/home/kelly/work/arduino-1.0.5/libraries/SD/utility/ -Ilib/ -c -o src/sample.o src/sample.cpp
/home/kelly/work/arduino-1.0.5/hardware/tools/arm-none-eabi/bin/arm-none-eabi-gcc -Os -Wl,--gc-sections -mcpu=cortex-m4 -mthumb -T/home/kelly/work/arduino-1.0.5/hardware/teensy/cores/teensy3/mk20dx128.ld -o basan.elf /home/kelly/work/arduino-1.0.5/hardware/teensy/cores/teensy3/usb_mouse.o /home/kelly/work/arduino-1.0.5/hardware/teensy/cores/teensy3/usb_keyboard.o /home/kelly/work/arduino-1.0.5/hardware/teensy/cores/teensy3/keylayouts.o /home/kelly/work/arduino-1.0.5/hardware/teensy/cores/teensy3/usb_midi.o /home/kelly/work/arduino-1.0.5/hardware/teensy/cores/teensy3/pins_teensy.o /home/kelly/work/arduino-1.0.5/hardware/teensy/cores/teensy3/math_helper.o /home/kelly/work/arduino-1.0.5/hardware/teensy/cores/teensy3/usb_rawhid.o /home/kelly/work/arduino-1.0.5/hardware/teensy/cores/teensy3/yield.o /home/kelly/work/arduino-1.0.5/hardware/teensy/cores/teensy3/usb_desc.o /home/kelly/work/arduino-1.0.5/hardware/teensy/cores/teensy3/serial3.o /home/kelly/work/arduino-1.0.5/hardware/teensy/cores/teensy3/nonstd.o /home/kelly/work/arduino-1.0.5/hardware/teensy/cores/teensy3/eeprom.o /home/kelly/work/arduino-1.0.5/hardware/teensy/cores/teensy3/usb_mem.o /home/kelly/work/arduino-1.0.5/hardware/teensy/cores/teensy3/usb_joystick.o /home/kelly/work/arduino-1.0.5/hardware/teensy/cores/teensy3/serial1.o /home/kelly/work/arduino-1.0.5/hardware/teensy/cores/teensy3/usb_dev.o /home/kelly/work/arduino-1.0.5/hardware/teensy/cores/teensy3/mk20dx128.o /home/kelly/work/arduino-1.0.5/hardware/teensy/cores/teensy3/touch.o /home/kelly/work/arduino-1.0.5/hardware/teensy/cores/teensy3/serial2.o /home/kelly/work/arduino-1.0.5/hardware/teensy/cores/teensy3/analog.o /home/kelly/work/arduino-1.0.5/hardware/teensy/cores/teensy3/usb_seremu.o /home/kelly/work/arduino-1.0.5/hardware/teensy/cores/teensy3/usb_serial.o src/basan.o src/sd_card.o src/phrase.o src/sample.o /home/kelly/work/arduino-1.0.5/hardware/teensy/cores/teensy3/HardwareSerial1.o /home/kelly/work/arduino-1.0.5/hardware/teensy/cores/teensy3/Stream.o /home/kelly/work/arduino-1.0.5/hardware/teensy/cores/teensy3/Print.o /home/kelly/work/arduino-1.0.5/hardware/teensy/cores/teensy3/usb_flightsim.o /home/kelly/work/arduino-1.0.5/hardware/teensy/cores/teensy3/usb_inst.o /home/kelly/work/arduino-1.0.5/hardware/teensy/cores/teensy3/Tone.o /home/kelly/work/arduino-1.0.5/hardware/teensy/cores/teensy3/AudioStream.o /home/kelly/work/arduino-1.0.5/hardware/teensy/cores/teensy3/HardwareSerial3.o /home/kelly/work/arduino-1.0.5/hardware/teensy/cores/teensy3/IPAddress.o /home/kelly/work/arduino-1.0.5/hardware/teensy/cores/teensy3/WString.o /home/kelly/work/arduino-1.0.5/hardware/teensy/cores/teensy3/WMath.o /home/kelly/work/arduino-1.0.5/hardware/teensy/cores/teensy3/HardwareSerial2.o /home/kelly/work/arduino-1.0.5/hardware/teensy/cores/teensy3/avr_emulation.o /home/kelly/work/arduino-1.0.5/hardware/teensy/cores/teensy3/IntervalTimer.o /home/kelly/work/arduino-1.0.5/libraries/SD/SD.o /home/kelly/work/arduino-1.0.5/libraries/SD/File.o /home/kelly/work/arduino-1.0.5/libraries/SD/utility/SdFile.o /home/kelly/work/arduino-1.0.5/libraries/SD/utility/Sd2Card.o /home/kelly/work/arduino-1.0.5/libraries/SD/utility/SdVolume.o
src/sample.o: In function `Sample::Sample(Phrase*, char const*)':
/home/kelly/work/basan-firmware/src/sample.cpp:19: undefined reference to `sf_open_virtual'
src/sample.o: In function `Sample::read(double*, long long)':
/home/kelly/work/basan-firmware/src/sample.cpp:43: undefined reference to `sf_read_double'
src/sample.o: In function `Sample::write(double*, long long)':
/home/kelly/work/basan-firmware/src/sample.cpp:50: undefined reference to `sf_write_double'
collect2: error: ld returned 1 exit status
Makefile:56: recipe for target 'basan.elf' failed
make: *** [basan.elf] Error 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment