esptiny86/espsynth86

Compile error

Opened this issue · 71 comments

Hi, I'm getting the following compile error (trying the examples espsynth_basic_1 and espsynth_basic_2_neo). Any clue what might be wrong?

comArduino: 1.8.8 (Mac OS X), Board: "LOLIN(WEMOS) D1 R2 & mini, 80 MHz, Flash, 4M (1M SPIFFS), v2 Lower Memory, Disabled, None, Only Sketch, 921600"

WARNING: Category 'Sound' in library Espsynth86 Synthesizer Library is not valid. Setting to 'Uncategorized'
fork/exec /bin/xtensa-lx106-elf-g++: no such file or directory
Error compiling for board LOLIN(WEMOS) D1 R2 & mini.

Meanwhile the things are getting a little bit mixed up in the different repositiories.
You can try mine and see if it compiles:
https://github.com/ChrisMicro/ESPTINY86_Mixtape

Thanks ChrisMicro, I tried a few things and there is some success now:

From the examples included with the Espsynth86 package:

  • espsynth_basic_1 – compiles ok
  • espsynth_basic_2_neo – compiles ok

From your repository:

  • BeriBeriCool_noDAC-NEO_serial – compiles ok
  • 000_BBC_test_all – compilation fails
  • 001_BBC_Blink – compilation fails
  • 005_showPotisSerial – compilation fails

with error "xtensa-lx106-elf-gcc: error: {compiler.libraries.ldflags}: No such file or directory".

For troubleshooting, I also installed the esp8266 (community) package. With the same board "LOLIN(WEMOS) D1 R2 & mini" selected from that package, these sketches compile fine.

I am not sure why things are working now that didn't work yesterday... I had the ESP32 package installed in my Arduino IDE which I removed today, maybe that package caused problems. At one point I also removed both packages, the Espsynth86 and the esp8266 (including the folders in ~Library/Arduino15/packages/) and re-installed only the Espsynth86 package. (The idea came from here: https://learn.adafruit.com/adafruit-huzzah-esp8266-breakout/faq#faq-5)

By the way, regarding upload: I first had to install a driver on my Mac for the WCN CH340G USB/serial chip so that the board appears under Ports. I noticed that upload is a bit flaky at higher speeds (921600 only works occasionally, 460800 or lower is somewhat reliable). Also, upload only works when I have my headphones unplugged from the audio out jack of the ESPTINY86.

I also still need to add a DAC to my board, so that I can test properly :)

Well ... that seems to be some issue in your tool chain ....
Later on, when your tool chain is running properly you can use the ESP without DAC just connecting a RC-low pass to the I2S data pin

In this example

https://github.com/ChrisMicro/ESPTINY86_Mixtape/tree/master/code/025_BBC_MultiPatch

the I2S driver is separated from the rest of the code an you can replace the initialization of the I2S driver

I2S.begin(I2S_LEFT_JUSTIFIED_MODE, SAMPLINGFREQUENCY, 16);

with

I2S.begin(I2S_PDM_MODE, SAMPLINGFREQUENCY, 16);

The PDM mode just generates a sigma delta signal on the I2S data output which is converted with the external low pass to a analog audio signal.

Hmm, what could be wrong in my toolchain? When I switch the target board to "LOLIN(WEMOS) D1 R2 & mini" from the esp8266 (community) package then your 000_BBC_test_all compiles without problem.

So I'm thinking that the error must be related to either a path issue or to case sensitivity (I'm on macOS)?

I read something in a forum (where people were having compile issues with the xtensa gcc toolchain) about path issues in the makefile, but I don't know how to find that. https://docs.espressif.com/projects/esp-idf/en/latest/get-started-cmake/macos-setup.html

I'm attaching a screenshot of my Arduino15 folder. The items highlighted yellow were installed by the Espsynth86 package (via the Boards Manager). The files in the esp8266 hardware folder were installed by the esp8266 package. I wonder if this is the correct folder structure?

screen-shot-2019-01-08-at-10 37_h

hi all, sorry i've been silence, i have full time job now, anyway i will look into this

@owalkhoff @ChrisMicro please delete the library (not board) then download and install the latest one from here https://github.com/esptiny86/espboard8266/blob/master/library/espsynth86-1.0.4-36-g4ee7f3a.zip

@badgeek thank you very much for the update! I installed this new library version 1.0.4-36. (The library manager complained that the zip doesn't contain a valid library, so I installed it in the sketchbook/libraries folder manually.) Here are my results from the example sketches included in the library:

  • espsynth_basic_1 – compiles ok (but with WARNING: Category 'Sound' in library Espsynth86 Synthesizer Library is not valid. Setting to 'Uncategorized')
  • espsynth_basic_2_neo – compiles ok (same warning)
  • BeriBeriCool_DAC-NEO_OSC_INPUT_MANAGER – error compiling: OSCMessage.h: No such file or directory

And the examples from @ChrisMicro:

  • 000_BBC_test_all – compile fails with error: xtensa-lx106-elf-gcc: error: {compiler.libraries.ldflags}: No such file or directory

Btw: it would be very helpful for testing if the board name was something like ESPTINY86 instead of LOLIN(WEMOS) D1 R2 & mini ;)

Probably we now have a mixture of libraries and examples which do not fit together any longer.
A clean up would be necessary .....

@owalkhoff you need to install this https://github.com/stahlnow/OSCLib-for-ESP8266

i will include it in the library..

@owalkhoff osc library now included by default and install zip library from arduino should works now

https://github.com/esptiny86/espboard8266/blob/master/library/espsynth86-1.0.4-37-g6f306bf.zip

@badgeek amazing, thank you! This version works with all 3 examples from the library. Also installing the library from zip is now ok. Only thing remaining is this warning about the category: WARNING: Category 'Sound' in library Espsynth86 Synthesizer Library is not valid. Setting to 'Uncategorized'

(The example 000_BBC_test_all from @ChrisMicro still doesn't compile, probably something isn't compatible like he said yesterday.)

I think I did everything as you all mentioned above. however I cant get it uploaded nor a sound out of it.. @badgeek all the things i should install are in this file https://github.com/esptiny86/espboard8266/blob/master/library/espsynth86-1.0.4-37-g6f306bf.zip now right? I deleted all other lib. but still get this error on the basic_2_neo example included:
WARNING: Category 'Sound' in library Espsynth86 Synthesizer Library is not valid. Setting to 'Uncategorized'
WARNING: Category 'Sound' in library Espsynth86 Synthesizer Library is not valid. Setting to 'Uncategorized'
WARNING: Category 'Sound' in library Espsynth86 Synthesizer Library is not valid. Setting to 'Uncategorized'
fork/exec /bin/xtensa-lx106-elf-g++: no such file or directory
Error compiling for board LOLIN(WEMOS) D1 R2 & mini.

@synestizer what platform are you on? Which sketch are you trying to compile? Do you maybe have the ESP8266 package installed too? (Make sure you are selecting the board from the ESPTINY86 Board list. It's a trap because the boards are called the same in both packages.)
And for later, once you got it to compile, does the board show up in Tools – Port?

Thanks Owalkhoff for going deeper into it, Im using the example : espsynth_basic_1 (i tried the others too) . Mac Osx 10.12.6, arduino 1.8.8. I added 2 screenshots in the hope you can discover the issue. I also made a screenshot from my libraries. maybe there something is missing? I used the ESPTINY86 board list but I didnt discover it in the other package? which I don`t know where to find..

bildschirmfoto 2019-01-10 um 00 46 54

bildschirmfoto 2019-01-10 um 00 42 57

bildschirmfoto 2019-01-10 um 00 40 20

Now I compiled again, with another sketch: epsynth_basic_2_neo and maybe this error is more easy to decipher. Arduino: 1.8.8 (Mac OS X), Board: "LOLIN(WEMOS) D1 R2 & mini, 160 MHz, Flash, 4M (1M SPIFFS), v2 Lower Memory, Disabled, None, Only Sketch, 460800"

WARNING: Category 'Sound' in library Espsynth86 Synthesizer Library is not valid. Setting to 'Uncategorized'
fork/exec /bin/xtensa-lx106-elf-g++: no such file or directory
Error compiling for board LOLIN(WEMOS) D1 R2 & mini.
Index error: could not find referenced tool name=esptool version=0.4.13 packager=esp8266
Index error: could not find referenced tool name=xtensa-lx106-elf-gcc version=1.20.0-26-gb404fb9-2 packager=esp8266
Index error: could not find referenced tool name=mkspiffs version=0.2.0 packager=esp8266
Index error: could not find referenced tool name=esptool version=0.4.13 packager=esp8266
Index error: could not find referenced tool name=xtensa-lx106-elf-gcc version=1.20.0-26-gb404fb9-2 packager=esp8266
Index error: could not find referenced tool name=mkspiffs version=0.2.0 packager=esp8266
Index error: could not find referenced tool name=esptool version=0.4.13 packager=esp8266
Index error: could not find referenced tool name=xtensa-lx106-elf-gcc version=1.20.0-26-gb404fb9-2 packager=esp8266
Index error: could not find referenced tool name=mkspiffs version=0.2.0 packager=esp8266

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

it seems esp tool is not installed ?

@synestizer could you reinstall espsynth board then try compile again? thx @owalkhoff for helping

will do, also the port doesn`t show me any usb device..
is this an arduino issue?

I did it, but it still seems not to work, even worse.. i cant get the port setting undone. it now sticks to one of the selected items but not to any usb device
bildschirmfoto 2019-01-10 um 01 37 18

you need to install the driver too, see #9 (comment) there should be no relation between board and usb because you will need separate driver for this

@synestizer this should work: install esp8266 official board

Now i installed this https://github.com/adrianmihalko/ch340g-ch34g-ch34x-mac-os-x-driver
and I see the board in the pane

and i installed the off board aswell esp8266 it came with this:
Arduino: 1.8.8 (Mac OS X), Board: "LOLIN(WEMOS) D1 R2 & mini, 160 MHz, Flash, Enabled, 4M (no SPIFFS), v2 Lower Memory, Disabled, None, Only Sketch, 460800"

WARNING: Category 'Sound' in library Espsynth86 Synthesizer Library is not valid. Setting to 'Uncategorized'
/Users/kkoenig/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: sketch/espsynth_basic_2_neo.ino.cpp.o: in function AnalogMultiplexerPin::read(unsigned char, unsigned char)': /Users/kkoenig/Documents/Arduino/libraries/espsynth86-1.0.4-37-g6f306bf/src/AnalogMultiplexer.h:70: undefined reference to ModuleConstant::ModuleConstant()'
/Users/kkoenig/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: /Users/kkoenig/Documents/Arduino/libraries/espsynth86-1.0.4-37-g6f306bf/src/AnalogMultiplexer.h:70: undefined reference to ModuleSamplePlayer::ModuleSamplePlayer()' /Users/kkoenig/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: /Users/kkoenig/Documents/Arduino/libraries/espsynth86-1.0.4-37-g6f306bf/src/AnalogMultiplexer.h:70: undefined reference to ModuleClockDivider::ModuleClockDivider()'
/Users/kkoenig/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: /Users/kkoenig/Documents/Arduino/libraries/espsynth86-1.0.4-37-g6f306bf/src/AnalogMultiplexer.h:70: undefined reference to ModuleMixer3::ModuleMixer3()' /Users/kkoenig/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: sketch/espsynth_basic_2_neo.ino.cpp.o:(.text._ZN9SynthTestC2Ev[SynthTest::SynthTest()]+0x10): undefined reference to ModuleClock::ModuleClock(unsigned short, int)'
/Users/kkoenig/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: sketch/espsynth_basic_2_neo.ino.cpp.o:(.text._ZN9SynthTestC2Ev[SynthTest::SynthTest()]+0x14): undefined reference to ModuleBitReducer::ModuleBitReducer()' /Users/kkoenig/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: sketch/espsynth_basic_2_neo.ino.cpp.o:(.text._ZN9SynthTestC2Ev[SynthTest::SynthTest()]+0x18): undefined reference to ModuleConstant::ModuleConstant(int)'
/Users/kkoenig/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: sketch/espsynth_basic_2_neo.ino.cpp.o:(.text._ZN9SynthTestC2Ev[SynthTest::SynthTest()]+0x37): undefined reference to ModuleConstant::ModuleConstant()' /Users/kkoenig/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: sketch/espsynth_basic_2_neo.ino.cpp.o:(.text._ZN9SynthTestC2Ev[SynthTest::SynthTest()]+0x4b): undefined reference to ModuleSamplePlayer::ModuleSamplePlayer()'
/Users/kkoenig/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: sketch/espsynth_basic_2_neo.ino.cpp.o:(.text._ZN9SynthTestC2Ev[SynthTest::SynthTest()]+0x5b): undefined reference to ModuleClockDivider::ModuleClockDivider()' /Users/kkoenig/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: sketch/espsynth_basic_2_neo.ino.cpp.o:(.text._ZN9SynthTestC2Ev[SynthTest::SynthTest()]+0x6b): undefined reference to ModuleClockDivider::ModuleClockDivider()'
/Users/kkoenig/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: sketch/espsynth_basic_2_neo.ino.cpp.o: in function SynthTest::SynthTest()': sketch/synthx.h:13: undefined reference to ModuleClockDivider::ModuleClockDivider()'
/Users/kkoenig/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: sketch/synthx.h:13: undefined reference to ModuleSamplePlayer::ModuleSamplePlayer()' /Users/kkoenig/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: sketch/synthx.h:17: undefined reference to ModuleSamplePlayer::ModuleSamplePlayer()'
/Users/kkoenig/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: sketch/synthx.h:18: undefined reference to ModuleMixer3::ModuleMixer3()' /Users/kkoenig/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: sketch/synthx.h:19: undefined reference to ModuleClock::ModuleClock(unsigned short, int)'
/Users/kkoenig/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: sketch/synthx.h:20: undefined reference to ModuleBitReducer::ModuleBitReducer()' /Users/kkoenig/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: sketch/synthx.h:21: undefined reference to ModuleConstant::ModuleConstant(int)'
/Users/kkoenig/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: sketch/synthx.h:22: undefined reference to ModuleConstant::ModuleConstant(int)' /Users/kkoenig/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: sketch/synthx.h:24: undefined reference to ModuleConstant::ModuleConstant(int)'
/Users/kkoenig/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: sketch/synthx.h:29: undefined reference to ModuleConstant::ModuleConstant(int)' /Users/kkoenig/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: sketch/espsynth_basic_2_neo.ino.cpp.o:/Users/kkoenig/Documents/Arduino/libraries/espsynth86-1.0.4-37-g6f306bf/src/AnalogMultiplexer.h:27: undefined reference to ModuleConstant::setValue(unsigned int)'
/Users/kkoenig/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: sketch/espsynth_basic_2_neo.ino.cpp.o: in function slowLoop()': /Users/kkoenig/Documents/Arduino/libraries/espsynth86-1.0.4-37-g6f306bf/examples/espsynth_basic_2_neo/espsynth_basic_2_neo.ino:85: undefined reference to ModuleConstant::setValue(unsigned int)'
/Users/kkoenig/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: /Users/kkoenig/Documents/Arduino/libraries/espsynth86-1.0.4-37-g6f306bf/examples/espsynth_basic_2_neo/espsynth_basic_2_neo.ino:90: undefined reference to ModuleConstant::setValue(unsigned int)' /Users/kkoenig/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: /Users/kkoenig/Documents/Arduino/libraries/espsynth86-1.0.4-37-g6f306bf/examples/espsynth_basic_2_neo/espsynth_basic_2_neo.ino:91: undefined reference to ModuleConstant::setValue(unsigned int)'
/Users/kkoenig/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: /Users/kkoenig/Documents/Arduino/libraries/espsynth86-1.0.4-37-g6f306bf/examples/espsynth_basic_2_neo/espsynth_basic_2_neo.ino:93: undefined reference to Synth::run(unsigned char)' /Users/kkoenig/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: sketch/espsynth_basic_2_neo.ino.cpp.o: in function loop':
/Users/kkoenig/Documents/Arduino/libraries/espsynth86-1.0.4-37-g6f306bf/examples/espsynth_basic_2_neo/espsynth_basic_2_neo.ino:97: undefined reference to `Synth::run(unsigned char)'
collect2: error: ld returned 1 exit status
exit status 1
Error compiling for board LOLIN(WEMOS) D1 R2 & mini.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

what is inside /Users/kkoenig/Documents/Arduino/libraries/ ?

espsynth86-1.0.4-37-g6f306bf
OSCLib-for-ESP8266
readme.txt
both are folders

screenshot_501

its working with me:
Im on High Sierra - 10.13.6 (17G65)
Arduino IDE 1.8.8
and using latest library espsynth86-1.0.4-36-g4ee7f3a.zip

i will keep this issue open..

@synestizer i just realized that you use older version of the lib, should be espsynth86-1.0.4-36-g4ee7f3a

@badgeek – hmm, I think espsynth86-1.0.4-37-g6f306bf.zip is the latest one...

@owalkhoff ooopss my mistake, the latest one is espsynth86-1.0.4-37-g6f306bf.zip which already installed by @synestizer

Thank you. I currently have no compile issues with this library anymore, except that silly warning about the category "Sound".

Thank you guys that you are still on it. I will reinstalll 306bf.zip and try again after a complete restart.

I have the categorie sound warning, but no code going through the cable.. no upload I mean

@synestizer I recommend you only use compile (without upload) until your compiler issues are fixed.

You can troubleshoot upload separately by e.g. compiling a simple example from the ESP8266 package (no synth functionality) and make sure that your driver for the WCN CH340G USB/serial chip is installed properly. You can check in Terminal using this command ls /dev/tty.* If you see an entry like /dev/tty.wchusbserial1410 then that's your ESPTINY86 connected and ready for upload :)

I feel I^m almost there.. however the command line in the termina doesnt give the entry wcn ch340G usb.
I`m slightly unsure since it turns up in the serialports and blinkinglights of the examples of esp8266 is compiling , however with that same sound warning

WARNING: Category 'Sound' in library Espsynth86 Synthesizer Library is not valid. Setting to 'Uncategorized'
Sketch uses 284304 bytes (27%) of program storage space. Maximum is 1044464 bytes.
Global variables use 27128 bytes (33%) of dynamic memory, leaving 54792 bytes for local variables. Maximum is 81920 bytes.

Should I rerun the installation for USB - driver?

@synestizer Let's look at the two things separately: compiling and uploading.

Compiling: Does the sketch finish compiling after you push the checkmark button? The "Sound" warning isn't critical.
Uploading: Maybe your driver is faulty. I got mine from the download page of the USB/serial chip manufacturer. The file is called CH341SER_MAC.ZIP: http://wch.cn/downloads/CH341SER_MAC_ZIP.html

sigmadelta demo from examples , works in compiling and upload!!
I^ll set baudrate even lower

WARNING: Category 'Sound' in library Espsynth86 Synthesizer Library is not valid. Setting to 'Uncategorized'
Sketch uses 291112 bytes (27%) of program storage space. Maximum is 1044464 bytes.
Global variables use 27408 bytes (33%) of dynamic memory, leaving 54512 bytes for local variables. Maximum is 81920 bytes.
warning: serialport_set_baudrate: baud rate 460800 may not work
Uploading 295264 bytes from /var/folders/2w/fk4l_8rx08744ny5nlz0fg90bjt8kd/T/arduino_build_677229/SigmaDeltaDemo.ino.bin to flash at 0x00000000
................................................................................ [ 27% ]
................................................................................ [ 55% ]
................................................................................ [ 83% ]
................................................. [ 100% ]

however example espsynth_basic_1 does give a lot of messages:
Arduino: 1.8.8 (Mac OS X), Board: "LOLIN(WEMOS) D1 R2 & mini, 160 MHz, Flash, Enabled, 4M (no SPIFFS), v2 Lower Memory, Disabled, None, Only Sketch, 230400"

WARNING: Category 'Sound' in library Espsynth86 Synthesizer Library is not valid. Setting to 'Uncategorized'
Build options changed, rebuilding all
/Users/kkoenig/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: sketch/espsynth_basic_1.ino.cpp.o:(.text._ZN9SynthTestC2EP13Input_Manager[SynthTest::SynthTest(Input_Manager*)]+0x0): undefined reference to ModuleConstant::ModuleConstant()' /Users/kkoenig/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: sketch/espsynth_basic_1.ino.cpp.o:(.text._ZN9SynthTestC2EP13Input_Manager[SynthTest::SynthTest(Input_Manager*)]+0x4): undefined reference to ModuleWavetableOsc::ModuleWavetableOsc()'
/Users/kkoenig/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: sketch/espsynth_basic_1.ino.cpp.o:(.text._ZN9SynthTestC2EP13Input_Manager[SynthTest::SynthTest(Input_Manager*)]+0x8): undefined reference to ModuleMixer2::ModuleMixer2()' /Users/kkoenig/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: sketch/espsynth_basic_1.ino.cpp.o:(.text._ZN9SynthTestC2EP13Input_Manager[SynthTest::SynthTest(Input_Manager*)]+0xc): undefined reference to ModuleExternalInput::ModuleExternalInput(int, Input_Manager*)'
/Users/kkoenig/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: sketch/espsynth_basic_1.ino.cpp.o:(.text._ZN9SynthTestC2EP13Input_Manager[SynthTest::SynthTest(Input_Manager*)]+0x2f): undefined reference to ModuleConstant::ModuleConstant()' /Users/kkoenig/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: sketch/espsynth_basic_1.ino.cpp.o: in function SynthTest::SynthTest(Input_Manager*)':
sketch/SynthTest.h:13: undefined reference to ModuleWavetableOsc::ModuleWavetableOsc()' /Users/kkoenig/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: sketch/SynthTest.h:13: undefined reference to ModuleMixer2::ModuleMixer2()'
/Users/kkoenig/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: sketch/SynthTest.h:16: undefined reference to ModuleWavetableOsc::ModuleWavetableOsc()' /Users/kkoenig/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: sketch/SynthTest.h:17: undefined reference to ModuleExternalInput::ModuleExternalInput(int, Input_Manager*)'
/Users/kkoenig/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: sketch/SynthTest.h:18: undefined reference to ModuleExternalInput::ModuleExternalInput(int, Input_Manager*)' /Users/kkoenig/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: sketch/espsynth_basic_1.ino.cpp.o:/Users/kkoenig/Documents/Arduino/libraries/espsynth86-1.0.4-37-g6f306bf/src/AnalogMultiplexer.h:26: undefined reference to ModuleExternalInput::setValue(unsigned int)'
/Users/kkoenig/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: sketch/espsynth_basic_1.ino.cpp.o: in function slowLoop()': /Users/kkoenig/Documents/Arduino/libraries/espsynth86-1.0.4-37-g6f306bf/src/AnalogMultiplexer.h:64: undefined reference to ModuleExternalInput::setValue(unsigned int)'
/Users/kkoenig/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: sketch/espsynth_basic_1.ino.cpp.o: in function slowLoop()': /Users/kkoenig/Documents/Arduino/libraries/espsynth86-1.0.4-37-g6f306bf/examples/espsynth_basic_1/espsynth_basic_1.ino:92: undefined reference to Synth::run(unsigned char)'
/Users/kkoenig/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: sketch/espsynth_basic_1.ino.cpp.o: in function loop': /Users/kkoenig/Documents/Arduino/libraries/espsynth86-1.0.4-37-g6f306bf/examples/espsynth_basic_1/espsynth_basic_1.ino:103: undefined reference to Synth::run(unsigned char)'
collect2: error: ld returned 1 exit status
exit status 1
Error compiling for board LOLIN(WEMOS) D1 R2 & mini.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

and yes berbericool is not working either.

I used the same usb driver. it seems to work the compiling from all examples of the ESP8266

I installed the new Library and the sound-category-error is gone... however there is still this
Should I reinstall everything ? I have the feeling there is now a bug somewhere deep, or am i mistakin?
This came out with the ESPSYNTH basic 1 example that still does not want to compile..

Arduino: 1.8.8 (Mac OS X), Board: "LOLIN(WEMOS) D1 R2 & mini, 160 MHz, Flash, Enabled, 4M (no SPIFFS), v2 Lower Memory, Disabled, None, Only Sketch, 230400"

/Users/kkoenig/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: sketch/espsynth_basic_1.ino.cpp.o:(.text._ZN9SynthTestC2EP13Input_Manager[SynthTest::SynthTest(Input_Manager*)]+0x0): undefined reference to ModuleConstant::ModuleConstant()' /Users/kkoenig/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: sketch/espsynth_basic_1.ino.cpp.o:(.text._ZN9SynthTestC2EP13Input_Manager[SynthTest::SynthTest(Input_Manager*)]+0x4): undefined reference to ModuleWavetableOsc::ModuleWavetableOsc()'
/Users/kkoenig/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: sketch/espsynth_basic_1.ino.cpp.o:(.text._ZN9SynthTestC2EP13Input_Manager[SynthTest::SynthTest(Input_Manager*)]+0x8): undefined reference to ModuleMixer2::ModuleMixer2()' /Users/kkoenig/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: sketch/espsynth_basic_1.ino.cpp.o:(.text._ZN9SynthTestC2EP13Input_Manager[SynthTest::SynthTest(Input_Manager*)]+0xc): undefined reference to ModuleExternalInput::ModuleExternalInput(int, Input_Manager*)'
/Users/kkoenig/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: sketch/espsynth_basic_1.ino.cpp.o:(.text._ZN9SynthTestC2EP13Input_Manager[SynthTest::SynthTest(Input_Manager*)]+0x2f): undefined reference to ModuleConstant::ModuleConstant()' /Users/kkoenig/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: sketch/espsynth_basic_1.ino.cpp.o: in function SynthTest::SynthTest(Input_Manager*)':
sketch/SynthTest.h:13: undefined reference to ModuleWavetableOsc::ModuleWavetableOsc()' /Users/kkoenig/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: sketch/SynthTest.h:13: undefined reference to ModuleMixer2::ModuleMixer2()'
/Users/kkoenig/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: sketch/SynthTest.h:16: undefined reference to ModuleWavetableOsc::ModuleWavetableOsc()' /Users/kkoenig/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: sketch/SynthTest.h:17: undefined reference to ModuleExternalInput::ModuleExternalInput(int, Input_Manager*)'
/Users/kkoenig/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: sketch/SynthTest.h:18: undefined reference to ModuleExternalInput::ModuleExternalInput(int, Input_Manager*)' /Users/kkoenig/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: sketch/espsynth_basic_1.ino.cpp.o:/Users/kkoenig/Documents/Arduino/libraries/espsynth86-1.0.4-38-g47aef06/src/AnalogMultiplexer.h:26: undefined reference to ModuleExternalInput::setValue(unsigned int)'
/Users/kkoenig/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: sketch/espsynth_basic_1.ino.cpp.o: in function slowLoop()': /Users/kkoenig/Documents/Arduino/libraries/espsynth86-1.0.4-38-g47aef06/src/AnalogMultiplexer.h:64: undefined reference to ModuleExternalInput::setValue(unsigned int)'
/Users/kkoenig/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: sketch/espsynth_basic_1.ino.cpp.o: in function slowLoop()': /var/folders/2w/fk4l_8rx08744ny5nlz0fg90bjt8kd/T/arduino_modified_sketch_616307/espsynth_basic_1.ino:94: undefined reference to Synth::run(unsigned char)'
/Users/kkoenig/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: sketch/espsynth_basic_1.ino.cpp.o: in function loop': /var/folders/2w/fk4l_8rx08744ny5nlz0fg90bjt8kd/T/arduino_modified_sketch_616307/espsynth_basic_1.ino:105: undefined reference to Synth::run(unsigned char)'
collect2: error: ld returned 1 exit status
exit status 1
Error compiling for board LOLIN(WEMOS) D1 R2 & mini.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

if I include the ESP8266 library I get the least errors however it still doesnt want to compile as it did when I took the blink example:

Arduino: 1.8.8 (Mac OS X), Board: "LOLIN(WEMOS) D1 R2 & mini, 160 MHz, Flash, Enabled, 4M (no SPIFFS), v2 Lower Memory, Disabled, None, Only Sketch, 230400"

xtensa-lx106-elf-gcc: error: libraries/esp8266/esp8266.a: No such file or directory
exit status 1
Error compiling for board LOLIN(WEMOS) D1 R2 & mini.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

can you reinstall arduino ide? on mac you can use App Cleaner https://freemacsoft.net/appcleaner/ then also wipe your Documents/Arduino folder

I just did it, and on a clean install of everything it still gives with the example ESPsynth_basic_1 the following error Arduino: 1.8.8 (Mac OS X), Board: "LOLIN(WEMOS) D1 R2 & mini, 160 MHz, Flash, 4M (1M SPIFFS), v2 Lower Memory, Disabled, None, Only Sketch, 460800"

fork/exec /bin/xtensa-lx106-elf-g++: no such file or directory
Error compiling for board LOLIN(WEMOS) D1 R2 & mini.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

from esp8266/Arduino#1241

@sheep666 I solved this by updating Arduino IDE to 1.8.4, deleting 'esp8266' folder from sketchbook/hardware and then following these instructions.

@synestizer What's inside your Arduino15 folder? (It should be under ~Library/Arduino15/) Compare to the screenshot from #9 (comment). I think there should be a tools folder with xtensa stuff in it...?

Since the reinstall there is no Arduino15 folder anymore..how do I get it again?

on terminal type this open ~/Library/Arduino15/

what is inside?

bildschirmfoto 2019-01-11 um 11 14 30

found it however it does not look like the way owalkoff meant

lets delete Arduino15 folder then reinstall libraries and board

ok. I will do it in that order.. also first install board again and then lib?

it still looks the same... after installing.. I mean the arduino15 folder

yes

now i install as you said the official ESP8266 board again which is Arduino AVR boards in the boards by arduino version 1.6.23

@synestizer can you show us a tree view of your packages folder, like in my screenshot

yes it looks now like this the arduino15 folder

bildschirmfoto 2019-01-11 um 11 32 46

esp8266 folder is missing..how do I solve this?

Can I copy your arduino folder @owalkhoff ? or should I move the Esp8266 folder to the arduino15 folder? or should I just find the xtensa stuff and put that in? I have no clue anymore at the moment.

@synestizer I think basically one only needs to install the Espsynth86 package (board and library). I installed the esp8266 (community) package only to see if that makes a difference when I was having compiler issues. Maybe @badgeek can tell us if it is mandatory to also install the esp8266 package or if all the dependencies get installed with Espsynth86 package. And how the Arduino15/packages folder structure should look like.

wiped out my arduino15 and...

Index error: could not find referenced tool name=esptool version=0.4.13 packager=esp8266
Index error: could not find referenced tool name=xtensa-lx106-elf-gcc version=1.20.0-26-gb404fb9-2 packager=esp8266
Index error: could not find referenced tool name=mkspiffs version=0.2.0 packager=esp8266
Index error: could not find referenced tool name=esptool version=0.4.13 packager=esp8266
Index error: could not find referenced tool name=xtensa-lx106-elf-gcc version=1.20.0-26-gb404fb9-2 packager=esp8266
Index error: could not find referenced tool name=mkspiffs version=0.2.0 packager=esp8266
Index error: could not find referenced tool name=esptool version=0.4.13 packager=esp8266
Index error: could not find referenced tool name=xtensa-lx106-elf-gcc version=1.20.0-26-gb404fb9-2 packager=esp8266
Index error: could not find referenced tool name=mkspiffs version=0.2.0 packager=esp8266
Index error: could not find referenced tool name=esptool version=0.4.13 packager=esp8266
Index error: could not find referenced tool name=xtensa-lx106-elf-gcc version=1.20.0-26-gb404fb9-2 packager=esp8266
Index error: could not find referenced tool name=mkspiffs version=0.2.0 packager=esp8266

so this is an issue on the espboard will fix this soon,

@owalkhoff @synestizer sorry for this, quick fix: install esp8266 board version 2.4.2, and espboard, and libraries

@owalkhoff @synestizer this should be fixed in latest board json https://esptiny86.github.io/espboard8266/package_espsynth_index.json

i already tested from fresh install of arduino on osx

is it okay to close this?

Thank you @badgeek. It's working fine for me, I reinstalled the library espsynth86-1.0.4-38-g47aef06.zip, and board, the original issue is solved.

Only thing I still get this warning: Category 'Sound' in library Espsynth86 Synthesizer Library is not valid. Setting to 'Uncategorized'

hmmm i already set espsynth86-1.0.4-38-g47aef06.zip category to 'Uncategorized', so that msg should be disappear now..

I just noticed that somehow the previous version (37) of the library was still in my libraries folder. I removed it so that only the current version (38) is there, and the warning is gone :)

I was having the same / similar issue in Windows / Arduino 1.8.13, both board package 2.4.2 and 2.5.0. The platform.txt file does not include a definition for the variable compiler.libraries.ldflags. This causes the Arduino builder to attempt to execute a command with the placeholder {compiler.libraries.ldflags} in it. The compile then fails with the error:

xtensa-lx106-elf-gcc: error: {compiler.libraries.ldflags}: No such file or directory

I added "compiler.libraries.ldflags=" under "compiler.elf2hex.extra_flags=" in the existing platform.txt file and the examples will now compile.