Win 10 make error liblto_plugin-0.dll

ThomasB
Posts: 38
Joined: Sun Dec 25, 2016 12:11 am

Win 10 make error liblto_plugin-0.dll

Postby ThomasB » Fri Jul 21, 2017 10:33 am

Hi,

I tried to install the toolchain and IDF on a Win10 machine.

esp32_win32_msys2_environment_and_toolchain-20170330
ESP-IDF fresh download (21.07.2017)
set ESP-IDF path in msys
(Works fine on my Win 7 machine)
downloaded the hello world example
changed serial port in menuconfig
make from msys
AR libbootloader_support.a
C:\msys32\opt\xtensa-esp32-elf\bin\xtensa-esp32-elf-gcc-ar.exe: Cannot find plugin 'liblto_plugin-0.dll'
make[2]: *** [/a/10_ESP32/00_ESP_IDF/esp-idf/make/component_wrapper.mk:169: libbootloader_support.a] Fehler 1
make[1]: *** [/a/10_ESP32/00_ESP_IDF/esp-idf/make/project.mk:391: component-bootloader_support-build] Fehler 2
make: *** [/a/10_ESP32/00_ESP_IDF/esp-idf/components/bootloader/Makefile.projbuild:39: /a/10_ESP32/test/hello_world/build/bootloader/bootloader.bin] Fehler 2
I tried
*clean build
*build from eclipse (with my win7 settings) and with msys2
*Replace native PATH in eclipse with msys paths
*run msys as admin
*add msys to PATH
*remove all conflicting mingw installations from PATH
*reinstall toolchain and esp-idf
*try different projects
*restart the machine
*get coffee and think about the meaning of life

System PATH
C:\HighTec/licensemanager;
C:\ProgramData\Oracle\Java\javapath;
%SystemRoot%\system32;
%SystemRoot%;
%SystemRoot%\System32\Wbem;
%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;
C:\Program Files\TortoiseSVN\bin;
A:\00_App\Git\cmd;
C:\Program Files (x86)\IVI Foundation\VISA\WinNT\Bin\;
C:\Program Files\IVI Foundation\VISA\Win64\Bin\;
C:\Program Files (x86)\IVI Foundation\VISA\WinNT\Bin;
C:\msys32\usr\bin;
C:\msys32\mingw32\bin;
C:\msys32\opt\xtensa-esp32-elf\bin;
user PATH
%USERPROFILE%\AppData\Local\Microsoft\WindowsApps;
C:\Users\Thomas\AppData\Roaming\npm;

clean build log
$ make
make[1]: Verzeichnis „/a/10_ESP32/00_ESP_IDF/esp-idf/tools/kconfig“ wird betrete n
cc -I/usr/include/ncursesw -DCURSES_LOC="<curses.h>" -DNCURSES_WIDECHAR=1 -DLO CALE -c -o mconf.o mconf.c
flex -L -P zconf -o zconf.lex.c zconf.l
zconf.l:256: warning, „-s“-Option gegeben, aber Vorgabe-Regel kann nicht passen
bison -t -l -p zconf -o zconf.tab.c zconf.y
sed -E "s/\\x0D$//" zconf.gperf | gperf -t --output-file zconf.hash.c -a -C -E - g -k '1,3,$' -p -t
cc -I/usr/include/ncursesw -DCURSES_LOC="<curses.h>" -DNCURSES_WIDECHAR=1 -DLO CALE -c -o zconf.tab.o zconf.tab.c
lxdialog/check-lxdialog.sh -check cc -I/usr/include/ncursesw -DCURSES_LOC="<cur ses.h>" -DNCURSES_WIDECHAR=1 -DLOCALE -lncursesw -lintl
cc -I/usr/include/ncursesw -DCURSES_LOC="<curses.h>" -DNCURSES_WIDECHAR=1 -DLO CALE -c -o lxdialog/checklist.o lxdialog/checklist.c
cc -I/usr/include/ncursesw -DCURSES_LOC="<curses.h>" -DNCURSES_WIDECHAR=1 -DLO CALE -c -o lxdialog/util.o lxdialog/util.c
cc -I/usr/include/ncursesw -DCURSES_LOC="<curses.h>" -DNCURSES_WIDECHAR=1 -DLO CALE -c -o lxdialog/inputbox.o lxdialog/inputbox.c
cc -I/usr/include/ncursesw -DCURSES_LOC="<curses.h>" -DNCURSES_WIDECHAR=1 -DLO CALE -c -o lxdialog/textbox.o lxdialog/textbox.c
cc -I/usr/include/ncursesw -DCURSES_LOC="<curses.h>" -DNCURSES_WIDECHAR=1 -DLO CALE -c -o lxdialog/yesno.o lxdialog/yesno.c
cc -I/usr/include/ncursesw -DCURSES_LOC="<curses.h>" -DNCURSES_WIDECHAR=1 -DLO CALE -c -o lxdialog/menubox.o lxdialog/menubox.c
cc -o mconf mconf.o zconf.tab.o lxdialog/checklist.o lxdialog/util.o lxdialog/in putbox.o lxdialog/textbox.o lxdialog/yesno.o lxdialog/menubox.o -lncursesw -lint l
cc -I/usr/include/ncursesw -DCURSES_LOC="<curses.h>" -DNCURSES_WIDECHAR=1 -DLO CALE -c -o conf.o conf.c
cc -o conf conf.o zconf.tab.o -lncursesw -lintl
make[1]: Verzeichnis „/a/10_ESP32/00_ESP_IDF/esp-idf/tools/kconfig“ wird verlass en
GENCONFIG
CC src/bootloader_random.o
CC src/flash_encrypt.o
CC src/bootloader_sha.o
CC src/esp_image_format.o
CC src/flash_partitions.o
CC src/secure_boot_signatures.o
CC src/secure_boot.o
CC src/efuse.o
CC src/bootloader_flash.o
AR libbootloader_support.a
C:\msys32\opt\xtensa-esp32-elf\bin\xtensa-esp32-elf-gcc-ar.exe: Cannot find plugin 'liblto_plugin-0.dll'
make[2]: *** [/a/10_ESP32/00_ESP_IDF/esp-idf/make/component_wrapper.mk:169: libbootloader_support.a] Fehler 1
make[1]: *** [/a/10_ESP32/00_ESP_IDF/esp-idf/make/project.mk:391: component-bootloader_support-build] Fehler 2
make: *** [/a/10_ESP32/00_ESP_IDF/esp-idf/components/bootloader/Makefile.projbuild:39: /a/10_ESP32/test/hello_world/build/bootloader/bootloader.bin] Fehler 2

perryc
Posts: 25
Joined: Fri Feb 17, 2017 1:29 am

Re: Win 10 make error liblto_plugin-0.dll

Postby perryc » Fri Jul 21, 2017 9:22 pm

pulling latest esp-idf broke our win10 boxes too :(

in $IDF_PATH/make/project.mk around line 293 change "gcc-ar" to be "ar" seems to work.

looks like xtensa-esp32-elf-gcc-ar.exe in the build system is missing some dependencies.

User avatar
rudi ;-)
Posts: 1729
Joined: Fri Nov 13, 2015 3:25 pm

Re: Win 10 make error liblto_plugin-0.dll

Postby rudi ;-) » Fri Jul 21, 2017 11:12 pm

one of the latest updates in ESP-IDF got a change
confirm: win7
Cannot find plugin 'liblto_plugin-0.dll'
best wishes
rudi ;-)


edit: problem and solution in the meantime is on github
-------------------------------------
love it, change it or leave it.
-------------------------------------
問候飛出去的朋友遍全球魯迪

Who is online

Users browsing this forum: No registered users and 14 guests