SOLVED-Error: Request compile failed with message: 2 UNKNOWN: exit status 1

This is incorrect. The library you get from Boards Manager is this one:
https://github.com/ivanseidel/LinkedList
and I could see from the output you shared from before the edit that it is that library you have installed.

The PaulMurrayCbr library (GitHub - PaulMurrayCbr/LinkedList: A fully implemented LinkedList made to work with Arduino projects) is an outdated fork which was created solely for the purposes of submitting a PR to the upstream library:
Added a sort() and an example. by PaulMurrayCbr · Pull Request #17 · ivanseidel/LinkedList · GitHub

Thank you for the quick help.
When I Just comment out the two lines, the serial monitor is broken. When I deleted the test.cpp file, then everything works.

Yeah. The problem is that test.cpp is a standalone program that actually overrides your sketch program. Really not a great experience for the library users.

It seems like maybe nobody every bothered to test how the library worked on an Arduino board after that file was added? Or maybe there are certain boards that end up with a different outcome. Unfortunately, it seems that the library is not very actively maintained, so I don't know that my fix will be accepted any time soon, but I'm patient.

Best regard.
I have problem error too while verify or compiling skecth :

Using board 'pro' from platform in folder: C:\Users\Neotech SnS\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.3
Using core 'arduino' from platform in folder: C:\Users\Neotech SnS\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.3
Detecting libraries used...
"C:\Users\Neotech SnS\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR "-IC:\Users\Neotech SnS\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.3\cores\arduino" "-IC:\Users\Neotech SnS\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.3\variants\eightanaloginputs" "C:\Users\NEOTEC~1\AppData\Local\Temp\arduino-sketch-2C8811E44E94815C0FB1A60CF7BB93C7\sketch\VoltAmp3x3.ino.cpp" -o nul
Alternatives for L6Dig3x3.h: []
ResolveLibrary(L6Dig3x3.h)
-> candidates: []
Compilation error: Error: 2 UNKNOWN: exit status 1

Please, help.

This type of error almost always means you need to install the library that contains the missing file.

Often the code you're compiling will come with documentation (either a comment or separate document) that tells you where to get the library dependencies.

Note that libraries may have dependencies on other libraries.

In other cases the author of the code will not have been so kind and you'll need to go on a hunt for the missing library.

A good place to start is the Arduino IDE's Library Manager:

  1. Select Sketch > Include Library > Manage Libraries... from the Arduino IDE's menus.
  2. In the "Filter your search..." box, type some keywords you have gleaned from the missing file name.
  3. Scroll through the results for the right library. Click on it.
  4. Click the Install button.
  5. Wait for the installation to finish.
  6. Click the Close button.
  7. Try compiling your code again.

If you have no luck in Library Manager then load up your favorite search engine and do a search for the missing filename. You will often get multiple results. If you have a lot of results you might add "arduino" as an additional search keyword. I will usually prefer results from github.com since that is where most Arduino libraries are hosted and downloading from there is fast and easy. In some cases there will be multiple libraries that contain the given filename and you'll need to do some evaluation to determine which seems the most appropriate, then try it out.

After downloading the library you found, you'll need to install it. This requires a different process than the Library Manager installation. You will find instructions here:

Thanks for your attention. I have tried your suggestion but I can't find the library. If the L6dig3x3.h file is in my folder, so what to do to input it ???
Last update problem is : C:/Users/Neotech SnS/Documents/Arduino/libraries/MsTimer2/MsTimer2.h:9:2: error: #error MsTimer2 library only works on AVR architecture

C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\Neotech SnS\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\Neotech SnS\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\Neotech SnS\Documents\Arduino\libraries -fqbn=sduino:stm8:stm8sblue -ide-version=10815 -build-path C:\Users\NEOTEC~1\AppData\Local\Temp\arduino_build_237078 -warnings=none -build-cache C:\Users\NEOTEC~1\AppData\Local\Temp\arduino_cache_904390 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.sdcc.path=C:\Users\Neotech SnS\AppData\Local\Arduino15\packages\sduino\tools\sdcc\build.11242 -prefs=runtime.tools.sdcc-build.11242.path=C:\Users\Neotech SnS\AppData\Local\Arduino15\packages\sduino\tools\sdcc\build.11242 -prefs=runtime.tools.STM8Tools.path=C:\Users\Neotech SnS\AppData\Local\Arduino15\packages\sduino\tools\STM8Tools\2019.02.05 -prefs=runtime.tools.STM8Tools-2019.02.05.path=C:\Users\Neotech SnS\AppData\Local\Arduino15\packages\sduino\tools\STM8Tools\2019.02.05 -verbose E:\Undhn Skema Volt, Am Multi meter\DSN-VC288-master\VoltAmp3x3\VoltAmp3x3.ino
C:\Program Files (x86)\Arduino\arduino-builder -compile -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\Neotech SnS\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\Neotech SnS\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\Neotech SnS\Documents\Arduino\libraries -fqbn=sduino:stm8:stm8sblue -ide-version=10815 -build-path C:\Users\NEOTEC~1\AppData\Local\Temp\arduino_build_237078 -warnings=none -build-cache C:\Users\NEOTEC~1\AppData\Local\Temp\arduino_cache_904390 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.sdcc.path=C:\Users\Neotech SnS\AppData\Local\Arduino15\packages\sduino\tools\sdcc\build.11242 -prefs=runtime.tools.sdcc-build.11242.path=C:\Users\Neotech SnS\AppData\Local\Arduino15\packages\sduino\tools\sdcc\build.11242 -prefs=runtime.tools.STM8Tools.path=C:\Users\Neotech SnS\AppData\Local\Arduino15\packages\sduino\tools\STM8Tools\2019.02.05 -prefs=runtime.tools.STM8Tools-2019.02.05.path=C:\Users\Neotech SnS\AppData\Local\Arduino15\packages\sduino\tools\STM8Tools\2019.02.05 -verbose E:\Undhn Skema Volt, Am Multi meter\DSN-VC288-master\VoltAmp3x3\VoltAmp3x3.ino
Using board 'stm8sblue' from platform in folder: C:\Users\Neotech SnS\AppData\Local\Arduino15\packages\sduino\hardware\stm8\0.5.0
Using core 'sduino' from platform in folder: C:\Users\Neotech SnS\AppData\Local\Arduino15\packages\sduino\hardware\stm8\0.5.0
Detecting libraries used...
"C:\Users\Neotech SnS\AppData\Local\Arduino15\packages\sduino\tools\STM8Tools\2019.02.05/win/busybox" ash "C:\Users\Neotech SnS\AppData\Local\Arduino15\packages\sduino\tools\STM8Tools\2019.02.05/wrapper/sdcc.sh" "C:\Users\Neotech SnS\AppData\Local\Arduino15\packages\sduino\tools\sdcc\build.11242/bin/sdcc" "C:\Users\NEOTEC~1\AppData\Local\Temp\arduino_build_237078\sketch\VoltAmp3x3.ino.cpp" nul re12 -c -Ddouble=float -DUSE_STDINT -D__PROG_TYPES_COMPAT__ -E -MC -mstm8 -DSTM8S103 -DF_CPU=16000000L -DARDUINO=10815 -DARDUINO_STM8S_BLUE -DARDUINO_ARCH_STM8 "-IC:\Users\Neotech SnS\AppData\Local\Arduino15\packages\sduino\hardware\stm8\0.5.0\cores\sduino" "-IC:\Users\Neotech SnS\AppData\Local\Arduino15\packages\sduino\hardware\stm8\0.5.0\variants\standard" "-IC:\Users\Neotech SnS\AppData\Local\Arduino15\packages\sduino\hardware\stm8\0.5.0/STM8S_StdPeriph_Driver/inc" "-IC:\Users\Neotech SnS\AppData\Local\Arduino15\packages\sduino\tools\sdcc\build.11242/include"
Alternatives for L6Dig3x3.h: [L6Dig3x3]
ResolveLibrary(L6Dig3x3.h)
-> candidates: [L6Dig3x3]
"C:\Users\Neotech SnS\AppData\Local\Arduino15\packages\sduino\tools\STM8Tools\2019.02.05/win/busybox" ash "C:\Users\Neotech SnS\AppData\Local\Arduino15\packages\sduino\tools\STM8Tools\2019.02.05/wrapper/sdcc.sh" "C:\Users\Neotech SnS\AppData\Local\Arduino15\packages\sduino\tools\sdcc\build.11242/bin/sdcc" "C:\Users\NEOTEC~1\AppData\Local\Temp\arduino_build_237078\sketch\VoltAmp3x3.ino.cpp" nul re12 -c -Ddouble=float -DUSE_STDINT -D__PROG_TYPES_COMPAT__ -E -MC -mstm8 -DSTM8S103 -DF_CPU=16000000L -DARDUINO=10815 -DARDUINO_STM8S_BLUE -DARDUINO_ARCH_STM8 "-IC:\Users\Neotech SnS\AppData\Local\Arduino15\packages\sduino\hardware\stm8\0.5.0\cores\sduino" "-IC:\Users\Neotech SnS\AppData\Local\Arduino15\packages\sduino\hardware\stm8\0.5.0\variants\standard" "-IC:\Users\Neotech SnS\Documents\Arduino\libraries\L6Dig3x3" "-IC:\Users\Neotech SnS\AppData\Local\Arduino15\packages\sduino\hardware\stm8\0.5.0/STM8S_StdPeriph_Driver/inc" "-IC:\Users\Neotech SnS\AppData\Local\Arduino15\packages\sduino\tools\sdcc\build.11242/include"
Alternatives for MsTimer2.h: []
ResolveLibrary(MsTimer2.h)
-> candidates: []
C:\Users\Neotech SnS\AppData\Local\Arduino15\packages\sduino\tools\sdcc\build.11242/bin/sdcc C:\Users\NEOTEC~1\AppData\Local\Temp\arduino_build_237078\sketch\VoltAmp3x3.ino.cpp nul re12 -c -Ddouble=float -DUSE_STDINT -D__PROG_TYPES_COMPAT__ -E -MC -mstm8 -DSTM8S103 -DF_CPU=16000000L -DARDUINO=10815 -DARDUINO_STM8S_BLUE -DARDUINO_ARCH_STM8 -IC:\Users\Neotech SnS\AppData\Local\Arduino15\packages\sduino\hardware\stm8\0.5.0\cores\sduino -IC:\Users\Neotech SnS\AppData\Local\Arduino15\packages\sduino\hardware\stm8\0.5.0\variants\standard -IC:\Users\Neotech SnS\Documents\Arduino\libraries\L6Dig3x3 -IC:\Users\Neotech SnS\AppData\Local\Arduino15\packages\sduino\hardware\stm8\0.5.0/STM8S_StdPeriph_Driver/inc -IC:\Users\Neotech SnS\AppData\Local\Arduino15\packages\sduino\tools\sdcc\build.11242/include
Mark re12:C:\Users\Neotech SnS\AppData\Local\Arduino15\packages\sduino\tools\sdcc\build.11242/bin/sdcc -c -Ddouble=float -DUSE_STDINT -D__PROG_TYPES_COMPAT__ -E -MC -mstm8 -DSTM8S103 -DF_CPU=16000000L -DARDUINO=10815 -DARDUINO_STM8S_BLUE -DARDUINO_ARCH_STM8 -IC:\Users\Neotech SnS\AppData\Local\Arduino15\packages\sduino\hardware\stm8\0.5.0\cores\sduino -IC:\Users\Neotech SnS\AppData\Local\Arduino15\packages\sduino\hardware\stm8\0.5.0\variants\standard -IC:\Users\Neotech SnS\Documents\Arduino\libraries\L6Dig3x3 -IC:\Users\Neotech SnS\AppData\Local\Arduino15\packages\sduino\hardware\stm8\0.5.0/STM8S_StdPeriph_Driver/inc -IC:\Users\Neotech SnS\AppData\Local\Arduino15\packages\sduino\tools\sdcc\build.11242/include C:\Users\NEOTEC~1\AppData\Local\Temp\arduino_build_237078\sketch\VoltAmp3x3.ino.cpp -o nul
cpp gefunden
VoltAmp3x3:5:22: fatal error: MsTimer2.h: No such file or directory
compilation terminated.
Gunakan pustaka L6Dig3x3 dalam folder: C:\Users\Neotech SnS\Documents\Arduino\libraries\L6Dig3x3 (legacy)
exit status 1
MsTimer2.h: No such file or directory
Skipping contributed index file C:\Users\Neotech SnS\AppData\Local\Arduino15\redirect, parsing error occured:
com.fasterxml.jackson.core.JsonParseException: Unexpected character ('<' (code 60)): expected a valid value (number, String, array, object, 'true', 'false' or 'null')
at [Source: (FileInputStream); line: 1, column: 2]
Skipping contributed index file C:\Users\Neotech SnS\AppData\Local\Arduino15\master, parsing error occured:
com.fasterxml.jackson.core.JsonParseException: Unexpected character ('<' (code 60)): expected a valid value (number, String, array, object, 'true', 'false' or 'null')
at [Source: (FileInputStream); line: 7, column: 2]
Skipping contributed index file C:\Users\Neotech SnS\AppData\Local\Arduino15\ArduinoJson, parsing error occured:
com.fasterxml.jackson.core.JsonParseException: Unexpected character ('<' (code 60)): expected a valid value (number, String, array, object, 'true', 'false' or 'null')
at [Source: (FileInputStream); line: 7, column: 2]
Skipping contributed index file C:\Users\Neotech SnS\AppData\Local\Arduino15\STM8AmpMeter.git, parsing error occured:
com.fasterxml.jackson.core.JsonParseException: Unexpected character ('<' (code 60)): expected a valid value (number, String, array, object, 'true', 'false' or 'null')
at [Source: (FileInputStream); line: 7, column: 2]
Skipping contributed index file C:\Users\Neotech SnS\AppData\Local\Arduino15\redirect, parsing error occured:
com.fasterxml.jackson.core.JsonParseException: Unexpected character ('<' (code 60)): expected a valid value (number, String, array, object, 'true', 'false' or 'null')
at [Source: (FileInputStream); line: 1, column: 2]
Skipping contributed index file C:\Users\Neotech SnS\AppData\Local\Arduino15\master, parsing error occured:
com.fasterxml.jackson.core.JsonParseException: Unexpected character ('<' (code 60)): expected a valid value (number, String, array, object, 'true', 'false' or 'null')
at [Source: (FileInputStream); line: 7, column: 2]
Skipping contributed index file C:\Users\Neotech SnS\AppData\Local\Arduino15\ArduinoJson, parsing error occured:
com.fasterxml.jackson.core.JsonParseException: Unexpected character ('<' (code 60)): expected a valid value (number, String, array, object, 'true', 'false' or 'null')
at [Source: (FileInputStream); line: 7, column: 2]
Skipping contributed index file C:\Users\Neotech SnS\AppData\Local\Arduino15\STM8AmpMeter.git, parsing error occured:
com.fasterxml.jackson.core.JsonParseException: Unexpected character ('<' (code 60)): expected a valid value (number, String, array, object, 'true', 'false' or 'null')
at [Source: (FileInputStream); line: 7, column: 2]

I don't see that in the output you posted, so I'm not sure what is going on.

Same problem as before. You need to install the library that provides MsTimer2.h

Is that mean this program sketch for AVR not for STM8S ???

This error message:

was added by the library author to clearly communicate that the library will only work on boards of the AVR architecture (e.g., Uno, Leonardo, Nano, Mega). The library uses low level architecture specific code that only works on certain microcontrollers.

Thanks for the respons. I have used STM8s103 and ST-Link as programmer. While upload using buildin Arduino IDE basic skecth like blink, etc, the STM8s breakout board have working good but error if using extend sketch like adafruit etc.

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.