Bug 252631 - devel/arduino18: arduino-builder not recognize other hardware library
Summary: devel/arduino18: arduino-builder not recognize other hardware library
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Kyle Evans
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-01-13 05:45 UTC by Raffeale
Modified: 2021-01-13 16:15 UTC (History)
1 user (show)

See Also:
linimon: maintainer-feedback? (kevans)


Attachments
this is a patch file for freebsd arduino-builder (111 bytes, patch)
2021-01-13 15:51 UTC, Raffeale
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Raffeale 2021-01-13 05:45:45 UTC
hi , i use add esp32 board into arduino , it can compile and update very well, 
but when i include some library file , it can't compile ,it said that the xxxx.h file not found , can you update the arduion-uilder to the newest version to fix it.
it think that this is arduino-builder bug, it can't recongnize the library.

it i change the board to avr board , it can compile with a library

following message is the compile infornation

/usr/local/arduino/arduino-builder -dump-prefs -logger=machine -hardware /usr/local/arduino/hardware -tools /usr/local/arduino/tools-builder -built-in-libraries /usr/local/arduino/libraries -libraries /home/raffeale/Arduino/libraries -fqbn=esp32:1.0.4:esp32:PSRAM=disabled,PartitionScheme=default,CPUFreq=240,FlashMode=qio,FlashFreq=80,FlashSize=4M,UploadSpeed=921600,DebugLevel=none -ide-version=10805 -build-path /tmp/arduino_build_867568 -warnings=none -build-cache /tmp/arduino_cache_233404 -prefs=build.warn_data_percentage=75 -verbose /usr/local/arduino/hardware/esp32/1.0.4/libraries/ESPmDNS/examples/mDNS_Web_Server/mDNS_Web_Server.ino
/usr/local/arduino/arduino-builder -compile -logger=machine -hardware /usr/local/arduino/hardware -tools /usr/local/arduino/tools-builder -built-in-libraries /usr/local/arduino/libraries -libraries /home/raffeale/Arduino/libraries -fqbn=esp32:1.0.4:esp32:PSRAM=disabled,PartitionScheme=default,CPUFreq=240,FlashMode=qio,FlashFreq=80,FlashSize=4M,UploadSpeed=921600,DebugLevel=none -ide-version=10805 -build-path /tmp/arduino_build_867568 -warnings=none -build-cache /tmp/arduino_cache_233404 -prefs=build.warn_data_percentage=75 -verbose /usr/local/arduino/hardware/esp32/1.0.4/libraries/ESPmDNS/examples/mDNS_Web_Server/mDNS_Web_Server.ino
Using board 'esp32' from platform in folder: /usr/local/arduino/hardware/esp32/1.0.4
Using core 'esp32' from platform in folder: /usr/local/arduino/hardware/esp32/1.0.4
Build options changed, rebuilding all
bash -c "[ ! -f /usr/local/arduino/hardware/esp32/1.0.4/libraries/ESPmDNS/examples/mDNS_Web_Server/partitions.csv ] || cp -f /usr/local/arduino/hardware/esp32/1.0.4/libraries/ESPmDNS/examples/mDNS_Web_Server/partitions.csv /tmp/arduino_build_867568/partitions.csv"
bash -c "[ -f /tmp/arduino_build_867568/partitions.csv ] || cp /usr/local/arduino/hardware/esp32/1.0.4/tools/partitions/default.csv /tmp/arduino_build_867568/partitions.csv"
Detecting libraries used...
"/usr/local/arduino/hardware/esp32/1.0.4/tools/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++" -DESP_PLATFORM -DMBEDTLS_CONFIG_FILE="mbedtls/esp_config.h" -DHAVE_CONFIG_H -DGCC_NOT_5_2_0=0 -DWITH_POSIX "-I/usr/local/arduino/hardware/esp32/1.0.4/tools/sdk/include/config" "-I/usr/local/arduino/hardware/esp32/1.0.4/tools/sdk/include/app_trace" "-I/usr/local/arduino/hardware/esp32/1.0.4/tools/sdk/include/app_update" "-I/usr/local/arduino/hardware/esp32/1.0.4/tools/sdk/include/asio" "-I/usr/local/arduino/hardware/esp32/1.0.4/tools/sdk/include/bootloader_support" "-I/usr/local/arduino/hardware/esp32/1.0.4/tools/sdk/include/bt" "-I/usr/local/arduino/hardware/esp32/1.0.4/tools/sdk/include/coap" "-I/usr/local/arduino/hardware/esp32/1.0.4/tools/sdk/include/console" "-I/usr/local/arduino/hardware/esp32/1.0.4/tools/sdk/include/driver" "-I/usr/local/arduino/hardware/esp32/1.0.4/tools/sdk/include/efuse" "-I/usr/local/arduino/hardware/esp32/1.0.4/tools/sdk/include/esp-tls" "-I/usr/local/arduino/hardware/esp32/1.0.4/tools/sdk/include/esp32" "-I/usr/local/arduino/hardware/esp32/1.0.4/tools/sdk/include/esp_adc_cal" "-I/usr/local/arduino/hardware/esp32/1.0.4/tools/sdk/include/esp_event" "-I/usr/local/arduino/hardware/esp32/1.0.4/tools/sdk/include/esp_http_client" "-I/usr/local/arduino/hardware/esp32/1.0.4/tools/sdk/include/esp_http_server" "-I/usr/local/arduino/hardware/esp32/1.0.4/tools/sdk/include/esp_https_ota" "-I/usr/local/arduino/hardware/esp32/1.0.4/tools/sdk/include/esp_https_server" "-I/usr/local/arduino/hardware/esp32/1.0.4/tools/sdk/include/esp_ringbuf" "-I/usr/local/arduino/hardware/esp32/1.0.4/tools/sdk/include/esp_websocket_client" "-I/usr/local/arduino/hardware/esp32/1.0.4/tools/sdk/include/espcoredump" "-I/usr/local/arduino/hardware/esp32/1.0.4/tools/sdk/include/ethernet" "-I/usr/local/arduino/hardware/esp32/1.0.4/tools/sdk/include/expat" "-I/usr/local/arduino/hardware/esp32/1.0.4/tools/sdk/include/fatfs" "-I/usr/local/arduino/hardware/esp32/1.0.4/tools/sdk/include/freemodbus" "-I/usr/local/arduino/hardware/esp32/1.0.4/tools/sdk/include/freertos" "-I/usr/local/arduino/hardware/esp32/1.0.4/tools/sdk/include/heap" "-I/usr/local/arduino/hardware/esp32/1.0.4/tools/sdk/include/idf_test" "-I/usr/local/arduino/hardware/esp32/1.0.4/tools/sdk/include/jsmn" "-I/usr/local/arduino/hardware/esp32/1.0.4/tools/sdk/include/json" "-I/usr/local/arduino/hardware/esp32/1.0.4/tools/sdk/include/libsodium" "-I/usr/local/arduino/hardware/esp32/1.0.4/tools/sdk/include/log" "-I/usr/local/arduino/hardware/esp32/1.0.4/tools/sdk/include/lwip" "-I/usr/local/arduino/hardware/esp32/1.0.4/tools/sdk/include/mbedtls" "-I/usr/local/arduino/hardware/esp32/1.0.4/tools/sdk/include/mdns" "-I/usr/local/arduino/hardware/esp32/1.0.4/tools/sdk/include/micro-ecc" "-I/usr/local/arduino/hardware/esp32/1.0.4/tools/sdk/include/mqtt" "-I/usr/local/arduino/hardware/esp32/1.0.4/tools/sdk/include/newlib" "-I/usr/local/arduino/hardware/esp32/1.0.4/tools/sdk/include/nghttp" "-I/usr/local/arduino/hardware/esp32/1.0.4/tools/sdk/include/nimble" "-I/usr/local/arduino/hardware/esp32/1.0.4/tools/sdk/include/nvs_flash" "-I/usr/local/arduino/hardware/esp32/1.0.4/tools/sdk/include/openssl" "-I/usr/local/arduino/hardware/esp32/1.0.4/tools/sdk/include/protobuf-c" "-I/usr/local/arduino/hardware/esp32/1.0.4/tools/sdk/include/protocomm" "-I/usr/local/arduino/hardware/esp32/1.0.4/tools/sdk/include/pthread" "-I/usr/local/arduino/hardware/esp32/1.0.4/tools/sdk/include/sdmmc" "-I/usr/local/arduino/hardware/esp32/1.0.4/tools/sdk/include/smartconfig_ack" "-I/usr/local/arduino/hardware/esp32/1.0.4/tools/sdk/include/soc" "-I/usr/local/arduino/hardware/esp32/1.0.4/tools/sdk/include/spi_flash" "-I/usr/local/arduino/hardware/esp32/1.0.4/tools/sdk/include/spiffs" "-I/usr/local/arduino/hardware/esp32/1.0.4/tools/sdk/include/tcp_transport" "-I/usr/local/arduino/hardware/esp32/1.0.4/tools/sdk/include/tcpip_adapter" "-I/usr/local/arduino/hardware/esp32/1.0.4/tools/sdk/include/ulp" "-I/usr/local/arduino/hardware/esp32/1.0.4/tools/sdk/include/unity" "-I/usr/local/arduino/hardware/esp32/1.0.4/tools/sdk/include/vfs" "-I/usr/local/arduino/hardware/esp32/1.0.4/tools/sdk/include/wear_levelling" "-I/usr/local/arduino/hardware/esp32/1.0.4/tools/sdk/include/wifi_provisioning" "-I/usr/local/arduino/hardware/esp32/1.0.4/tools/sdk/include/wpa_supplicant" "-I/usr/local/arduino/hardware/esp32/1.0.4/tools/sdk/include/xtensa-debug-module" "-I/usr/local/arduino/hardware/esp32/1.0.4/tools/sdk/include/esp-face" "-I/usr/local/arduino/hardware/esp32/1.0.4/tools/sdk/include/esp32-camera" "-I/usr/local/arduino/hardware/esp32/1.0.4/tools/sdk/include/esp-face" "-I/usr/local/arduino/hardware/esp32/1.0.4/tools/sdk/include/fb_gfx" -std=gnu++11 -Os -g3 -Wpointer-arith -fexceptions -fstack-protector -ffunction-sections -fdata-sections -fstrict-volatile-bitfields -mlongcalls -nostdlib -w -Wno-error=maybe-uninitialized -Wno-error=unused-function -Wno-error=unused-but-set-variable -Wno-error=unused-variable -Wno-error=deprecated-declarations -Wno-unused-parameter -Wno-unused-but-set-parameter -Wno-missing-field-initializers -Wno-sign-compare -fno-rtti  -c -w -x c++ -E -CC -DF_CPU=240000000L -DARDUINO=10805 -DARDUINO_ESP32_DEV -DARDUINO_ARCH_1.0.4 -DARDUINO_BOARD="ESP32_DEV" -DARDUINO_VARIANT="esp32"  -DESP32 -DCORE_DEBUG_LEVEL=0  "-I/usr/local/arduino/hardware/esp32/1.0.4/cores/esp32" "-I/usr/local/arduino/hardware/esp32/1.0.4/variants/esp32" "/tmp/arduino_build_867568/sketch/mDNS_Web_Server.ino.cpp" -o "/dev/null"
"/usr/local/arduino/hardware/esp32/1.0.4/tools/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++" -DESP_PLATFORM -DMBEDTLS_CONFIG_FILE="mbedtls/esp_config.h" -DHAVE_CONFIG_H -DGCC_NOT_5_2_0=0 -DWITH_POSIX "-I/usr/local/arduino/hardware/esp32/1.0.4/tools/sdk/include/config" "-I/usr/local/arduino/hardware/esp32/1.0.4/tools/sdk/include/app_trace" "-I/usr/local/arduino/hardware/esp32/1.0.4/tools/sdk/include/app_update" "-I/usr/local/arduino/hardware/esp32/1.0.4/tools/sdk/include/asio" "-I/usr/local/arduino/hardware/esp32/1.0.4/tools/sdk/include/bootloader_support" "-I/usr/local/arduino/hardware/esp32/1.0.4/tools/sdk/include/bt" "-I/usr/local/arduino/hardware/esp32/1.0.4/tools/sdk/include/coap" "-I/usr/local/arduino/hardware/esp32/1.0.4/tools/sdk/include/console" "-I/usr/local/arduino/hardware/esp32/1.0.4/tools/sdk/include/driver" "-I/usr/local/arduino/hardware/esp32/1.0.4/tools/sdk/include/efuse" "-I/usr/local/arduino/hardware/esp32/1.0.4/tools/sdk/include/esp-tls" "-I/usr/local/arduino/hardware/esp32/1.0.4/tools/sdk/include/esp32" "-I/usr/local/arduino/hardware/esp32/1.0.4/tools/sdk/include/esp_adc_cal" "-I/usr/local/arduino/hardware/esp32/1.0.4/tools/sdk/include/esp_event" "-I/usr/local/arduino/hardware/esp32/1.0.4/tools/sdk/include/esp_http_client" "-I/usr/local/arduino/hardware/esp32/1.0.4/tools/sdk/include/esp_http_server" "-I/usr/local/arduino/hardware/esp32/1.0.4/tools/sdk/include/esp_https_ota" "-I/usr/local/arduino/hardware/esp32/1.0.4/tools/sdk/include/esp_https_server" "-I/usr/local/arduino/hardware/esp32/1.0.4/tools/sdk/include/esp_ringbuf" "-I/usr/local/arduino/hardware/esp32/1.0.4/tools/sdk/include/esp_websocket_client" "-I/usr/local/arduino/hardware/esp32/1.0.4/tools/sdk/include/espcoredump" "-I/usr/local/arduino/hardware/esp32/1.0.4/tools/sdk/include/ethernet" "-I/usr/local/arduino/hardware/esp32/1.0.4/tools/sdk/include/expat" "-I/usr/local/arduino/hardware/esp32/1.0.4/tools/sdk/include/fatfs" "-I/usr/local/arduino/hardware/esp32/1.0.4/tools/sdk/include/freemodbus" "-I/usr/local/arduino/hardware/esp32/1.0.4/tools/sdk/include/freertos" "-I/usr/local/arduino/hardware/esp32/1.0.4/tools/sdk/include/heap" "-I/usr/local/arduino/hardware/esp32/1.0.4/tools/sdk/include/idf_test" "-I/usr/local/arduino/hardware/esp32/1.0.4/tools/sdk/include/jsmn" "-I/usr/local/arduino/hardware/esp32/1.0.4/tools/sdk/include/json" "-I/usr/local/arduino/hardware/esp32/1.0.4/tools/sdk/include/libsodium" "-I/usr/local/arduino/hardware/esp32/1.0.4/tools/sdk/include/log" "-I/usr/local/arduino/hardware/esp32/1.0.4/tools/sdk/include/lwip" "-I/usr/local/arduino/hardware/esp32/1.0.4/tools/sdk/include/mbedtls" "-I/usr/local/arduino/hardware/esp32/1.0.4/tools/sdk/include/mdns" "-I/usr/local/arduino/hardware/esp32/1.0.4/tools/sdk/include/micro-ecc" "-I/usr/local/arduino/hardware/esp32/1.0.4/tools/sdk/include/mqtt" "-I/usr/local/arduino/hardware/esp32/1.0.4/tools/sdk/include/newlib" "-I/usr/local/arduino/hardware/esp32/1.0.4/tools/sdk/include/nghttp" "-I/usr/local/arduino/hardware/esp32/1.0.4/tools/sdk/include/nimble" "-I/usr/local/arduino/hardware/esp32/1.0.4/tools/sdk/include/nvs_flash" "-I/usr/local/arduino/hardware/esp32/1.0.4/tools/sdk/include/openssl" "-I/usr/local/arduino/hardware/esp32/1.0.4/tools/sdk/include/protobuf-c" "-I/usr/local/arduino/hardware/esp32/1.0.4/tools/sdk/include/protocomm" "-I/usr/local/arduino/hardware/esp32/1.0.4/tools/sdk/include/pthread" "-I/usr/local/arduino/hardware/esp32/1.0.4/tools/sdk/include/sdmmc" "-I/usr/local/arduino/hardware/esp32/1.0.4/tools/sdk/include/smartconfig_ack" "-I/usr/local/arduino/hardware/esp32/1.0.4/tools/sdk/include/soc" "-I/usr/local/arduino/hardware/esp32/1.0.4/tools/sdk/include/spi_flash" "-I/usr/local/arduino/hardware/esp32/1.0.4/tools/sdk/include/spiffs" "-I/usr/local/arduino/hardware/esp32/1.0.4/tools/sdk/include/tcp_transport" "-I/usr/local/arduino/hardware/esp32/1.0.4/tools/sdk/include/tcpip_adapter" "-I/usr/local/arduino/hardware/esp32/1.0.4/tools/sdk/include/ulp" "-I/usr/local/arduino/hardware/esp32/1.0.4/tools/sdk/include/unity" "-I/usr/local/arduino/hardware/esp32/1.0.4/tools/sdk/include/vfs" "-I/usr/local/arduino/hardware/esp32/1.0.4/tools/sdk/include/wear_levelling" "-I/usr/local/arduino/hardware/esp32/1.0.4/tools/sdk/include/wifi_provisioning" "-I/usr/local/arduino/hardware/esp32/1.0.4/tools/sdk/include/wpa_supplicant" "-I/usr/local/arduino/hardware/esp32/1.0.4/tools/sdk/include/xtensa-debug-module" "-I/usr/local/arduino/hardware/esp32/1.0.4/tools/sdk/include/esp-face" "-I/usr/local/arduino/hardware/esp32/1.0.4/tools/sdk/include/esp32-camera" "-I/usr/local/arduino/hardware/esp32/1.0.4/tools/sdk/include/esp-face" "-I/usr/local/arduino/hardware/esp32/1.0.4/tools/sdk/include/fb_gfx" -std=gnu++11 -Os -g3 -Wpointer-arith -fexceptions -fstack-protector -ffunction-sections -fdata-sections -fstrict-volatile-bitfields -mlongcalls -nostdlib -w -Wno-error=maybe-uninitialized -Wno-error=unused-function -Wno-error=unused-but-set-variable -Wno-error=unused-variable -Wno-error=deprecated-declarations -Wno-unused-parameter -Wno-unused-but-set-parameter -Wno-missing-field-initializers -Wno-sign-compare -fno-rtti  -c -w -x c++ -E -CC -DF_CPU=240000000L -DARDUINO=10805 -DARDUINO_ESP32_DEV -DARDUINO_ARCH_1.0.4 -DARDUINO_BOARD="ESP32_DEV" -DARDUINO_VARIANT="esp32"  -DESP32 -DCORE_DEBUG_LEVEL=0  "-I/usr/local/arduino/hardware/esp32/1.0.4/cores/esp32" "-I/usr/local/arduino/hardware/esp32/1.0.4/variants/esp32" "/tmp/arduino_build_867568/sketch/mDNS_Web_Server.ino.cpp" -o "/tmp/arduino_build_867568/preproc/ctags_target_for_gcc_minus_e.cpp"
/usr/local/arduino/hardware/esp32/1.0.4/libraries/ESPmDNS/examples/mDNS_Web_Server/mDNS_Web_Server.ino:19:24: fatal error: WiFi/WiFi.h": No such file or directory
compilation terminated.
exit status 1
Error compiling for board ESP32 Dev Module.
Comment 1 Kyle Evans freebsd_committer 2021-01-13 06:13:28 UTC
Hi,

Where is WiFi.h located?
Comment 2 Raffeale 2021-01-13 15:51:08 UTC
Created attachment 221532 [details]
this is a patch file for freebsd arduino-builder
Comment 3 Raffeale 2021-01-13 15:53:23 UTC
i have resolved it ,the problem is the arduino-builder create file in /dev/null and failed , i have made a patch ,just put patch file into /usr/ports/devel/arduino-builder/files  and recompile arduino-builder from port.
Comment 4 Kyle Evans freebsd_committer 2021-01-13 15:54:42 UTC
(In reply to Raffeale from comment #3)

Hi,

I'm afraid it looks like the file you've attached is just an instruction that you have a patch. Can you upload the patch in question as well, please? :-)
Comment 5 Raffeale 2021-01-13 15:59:07 UTC
(In reply to Kyle Evans from comment #4)

what's kind of file you need?
Comment 6 Raffeale 2021-01-13 15:59:58 UTC
(In reply to Kyle Evans from comment #1)
 WiFi.h is a library in esp32
Comment 7 Kyle Evans freebsd_committer 2021-01-13 16:00:10 UTC
(In reply to Raffeale from comment #5)

Preferably a patch, since this is what the file you've uploaded contains: https://bz-attachments.freebsd.org/attachment.cgi?id=221532
Comment 8 Raffeale 2021-01-13 16:05:42 UTC
--- src/arduino.cc/builder/utils/utils.go.orig  2021-01-13 22:48:24.097459000 +0800
+++ src/arduino.cc/builder/utils/utils.go       2021-01-13 22:49:18.264758000 +0800
@@ -404,7 +404,7 @@ func NULLFile() string {
        if runtime.GOOS == "windows" {
                return "nul"
        }
-       return "/dev/null"
+       return "/tmp/null"
 }
 
 func MD5Sum(data []byte) string {


patch code is above
Comment 9 Raffeale 2021-01-13 16:10:59 UTC
(In reply to Kyle Evans from comment #7)
im sorry , maybe my network is not good! so i put the patch code in a comment!
Comment 10 Kyle Evans freebsd_committer 2021-01-13 16:15:17 UTC
Yup, received, thanks! I'll need to look into this a little bit more -- that patch helping implies that something else has gone terribly wrong here.