Error while detecting libraries fnet_serial.c

I get an error when compiling a sketch. The error is:
Error while detecting libraries included by /Applications/Teensyduino.app/Contents/Java/hardware/teensy/avr/libraries/FNET/src/service/serial/fnet_serial.c

The files in the directory are:
fnet_serial_config.h
fnet_serial.c
feet_serial.h

The include files in fnet_serial.c are:
#include "fnet.h"
#include "fnet_serial.h"

Should the #include be changed from "fnet_serial.h" to "fnet_serial_config.h"?




I use a Mac with MacOS BigSur 11.2.2.
I am running Teensyduino 1.5.3 and the Teensy Loader 1.5.3.
I am using Teensy 4.1.
 
I get an error when compiling a sketch. The error is:
Error while detecting libraries included by /Applications/Teensyduino.app/Contents/Java/hardware/teensy/avr/libraries/FNET/src/service/serial/fnet_serial.c

The files in the directory are:
fnet_serial_config.h
fnet_serial.c
feet_serial.h

The include files in fnet_serial.c are:
#include "fnet.h"
#include "fnet_serial.h"

Should the #include be changed from "fnet_serial.h" to "fnet_serial_config.h"?




I use a Mac with MacOS BigSur 11.2.2.
I am running Teensyduino 1.5.3 and the Teensy Loader 1.5.3.
I am using Teensy 4.1.

Sorry I don't have my MAC running right now. Also would help to know what sketch you are trying to build to see if it can be duplicated...

But in your above:
The files in the directory are:
fnet_serial_config.h
fnet_serial.c
feet_serial.h
Is this a typo or is that the actual name of he file on your machine?
My PC has: fnet_serial.h
 
Hi

Sorry I don't have my MAC running right now. Also would help to know what sketch you are trying to build to see if it can be duplicated...

Code:
#include <SPI.h>
#include <NativeEthernet.h>

void setup() {
  // put your setup code here, to run once:

}

void loop() {
  // put your main code here, to run repeatedly:

}

The files are in the app package. I also downloaded a new version of TeensyDuino from PJRC, the "Macintosh OS Software(10.10-10.15)", to check that nothing have been corrupted.

But in your above:
Is this a typo or is that the actual name of he file on your machine?
My PC has: fnet_serial.h

A typo, I blame the spellchecker :)
 
No difference unfortunately.

I pulled out my MAC which I have that beta on and it built for me...
Code:
/Applications/Teensyduino.app/Contents/Java/arduino-builder -dump-prefs -logger=machine -hardware /Applications/Teensyduino.app/Contents/Java/hardware -hardware /Users/kurt/Library/Arduino15/packages -hardware /Users/kurt/Documents/Arduino/hardware -tools /Applications/Teensyduino.app/Contents/Java/tools-builder -tools /Applications/Teensyduino.app/Contents/Java/hardware/tools/avr -tools /Users/kurt/Library/Arduino15/packages -built-in-libraries /Applications/Teensyduino.app/Contents/Java/libraries -libraries /Users/kurt/Documents/Arduino/libraries -fqbn=teensy:avr:teensy41:usb=mtp,speed=600,opt=o2std,keys=en-us -ide-version=10813 -build-path /var/folders/c8/jzlb4l7j6lb513z19lj2rclr0000gp/T/arduino_build_210408 -warnings=all -build-cache /var/folders/c8/jzlb4l7j6lb513z19lj2rclr0000gp/T/arduino_cache_31163 -verbose /Users/kurt/Documents/Arduino/foo/foo.ino
/Applications/Teensyduino.app/Contents/Java/arduino-builder -compile -logger=machine -hardware /Applications/Teensyduino.app/Contents/Java/hardware -hardware /Users/kurt/Library/Arduino15/packages -hardware /Users/kurt/Documents/Arduino/hardware -tools /Applications/Teensyduino.app/Contents/Java/tools-builder -tools /Applications/Teensyduino.app/Contents/Java/hardware/tools/avr -tools /Users/kurt/Library/Arduino15/packages -built-in-libraries /Applications/Teensyduino.app/Contents/Java/libraries -libraries /Users/kurt/Documents/Arduino/libraries -fqbn=teensy:avr:teensy41:usb=mtp,speed=600,opt=o2std,keys=en-us -ide-version=10813 -build-path /var/folders/c8/jzlb4l7j6lb513z19lj2rclr0000gp/T/arduino_build_210408 -warnings=all -build-cache /var/folders/c8/jzlb4l7j6lb513z19lj2rclr0000gp/T/arduino_cache_31163 -verbose /Users/kurt/Documents/Arduino/foo/foo.ino
Using board 'teensy41' from platform in folder: /Applications/Teensyduino.app/Contents/Java/hardware/teensy/avr
Using core 'teensy4' from platform in folder: /Applications/Teensyduino.app/Contents/Java/hardware/teensy/avr
Detecting libraries used...
/Applications/Teensyduino.app/Contents/Java/hardware/teensy/../tools/arm/bin/arm-none-eabi-g++ -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=154 -DARDUINO=10813 -DARDUINO_TEENSY41 -DF_CPU=600000000 -DUSB_MTPDISK -DLAYOUT_US_ENGLISH -I/Applications/Teensyduino.app/Contents/Java/hardware/teensy/avr/cores/teensy4 /var/folders/c8/jzlb4l7j6lb513z19lj2rclr0000gp/T/arduino_build_210408/sketch/foo.ino.cpp -o /dev/null -DARDUINO_LIB_DISCOVERY_PHASE
Alternatives for SPI.h: [SPI@1.0]
ResolveLibrary(SPI.h)
  -> candidates: [SPI@1.0]
/Applications/Teensyduino.app/Contents/Java/hardware/teensy/../tools/arm/bin/arm-none-eabi-g++ -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=154 -DARDUINO=10813 -DARDUINO_TEENSY41 -DF_CPU=600000000 -DUSB_MTPDISK -DLAYOUT_US_ENGLISH -I/Applications/Teensyduino.app/Contents/Java/hardware/teensy/avr/cores/teensy4 -I/Applications/Teensyduino.app/Contents/Java/hardware/teensy/avr/libraries/SPI /var/folders/c8/jzlb4l7j6lb513z19lj2rclr0000gp/T/arduino_build_210408/sketch/foo.ino.cpp -o /dev/null -DARDUINO_LIB_DISCOVERY_PHASE
Alternatives for NativeEthernet.h: [NativeEthernet@1.0.5]
ResolveLibrary(NativeEthernet.h)
  -> candidates: [NativeEthernet@1.0.5]
/Applications/Teensyduino.app/Contents/Java/hardware/teensy/../tools/arm/bin/arm-none-eabi-g++ -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=154 -DARDUINO=10813 -DARDUINO_TEENSY41 -DF_CPU=600000000 -DUSB_MTPDISK -DLAYOUT_US_ENGLISH -I/Applications/Teensyduino.app/Contents/Java/hardware/teensy/avr/cores/teensy4 -I/Applications/Teensyduino.app/Contents/Java/hardware/teensy/avr/libraries/SPI -I/Applications/Teensyduino.app/Contents/Java/hardware/teensy/avr/libraries/NativeEthernet/src /var/folders/c8/jzlb4l7j6lb513z19lj2rclr0000gp/T/arduino_build_210408/sketch/foo.ino.cpp -o /dev/null -DARDUINO_LIB_DISCOVERY_PHASE
Alternatives for fnet.h: [FNET@0.1.3]
ResolveLibrary(fnet.h)
  -> candidates: [FNET@0.1.3]
/Applications/Teensyduino.app/Contents/Java/hardware/teensy/../tools/arm/bin/arm-none-eabi-g++ -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=154 -DARDUINO=10813 -DARDUINO_TEENSY41 -DF_CPU=600000000 -DUSB_MTPDISK -DLAYOUT_US_ENGLISH -I/Applications/Teensyduino.app/Contents/Java/hardware/teensy/avr/cores/teensy4 -I/Applications/Teensyduino.app/Contents/Java/hardware/teensy/avr/libraries/SPI -I/Applications/Teensyduino.app/Contents/Java/hardware/teensy/avr/libraries/NativeEthernet/src -I/Applications/Teensyduino.app/Contents/Java/hardware/teensy/avr/libraries/FNET/src /var/folders/c8/jzlb4l7j6lb513z19lj2rclr0000gp/T/arduino_build_210408/sketch/foo.ino.cpp -o /dev/null -DARDUINO_LIB_DISCOVERY_PHASE
/Applications/Teensyduino.app/Contents/Java/hardware/teensy/../tools/arm/bin/arm-none-eabi-g++ -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=154 -DARDUINO=10813 -DARDUINO_TEENSY41 -DF_CPU=600000000 -DUSB_MTPDISK -DLAYOUT_US_ENGLISH -I/Applications/Teensyduino.app/Contents/Java/hardware/teensy/avr/cores/teensy4 -I/Applications/Teensyduino.app/Contents/Java/hardware/teensy/avr/libraries/SPI -I/Applications/Teensyduino.app/Contents/Java/hardware/teensy/avr/libraries/NativeEthernet/src -I/Applications/Teensyduino.app/Contents/Java/hardware/teensy/avr/libraries/FNET/src /Applications/Teensyduino.app/Contents/Java/hardware/teensy/avr/libraries/SPI/SPI.cpp -o /dev/null -DARDUINO_LIB_DISCOVERY_PHASE
/Applications/Teensyduino.app/Contents/Java/hardware/teensy/../tools/arm/bin/arm-none-eabi-g++ -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=154 -DARDUINO=10813 -DARDUINO_TEENSY41 -DF_CPU=600000000 -DUSB_MTPDISK -DLAYOUT_US_ENGLISH -I/Applications/Teensyduino.app/Contents/Java/hardware/teensy/avr/cores/teensy4 -I/Applications/Teensyduino.app/Contents/Java/hardware/teensy/avr/libraries/SPI -I/Applications/Teensyduino.app/Contents/Java/hardware/teensy/avr/libraries/NativeEthernet/src -I/Applications/Teensyduino.app/Contents/Java/hardware/teensy/avr/libraries/FNET/src /Applications/Teensyduino.app/Contents/Java/hardware/teensy/avr/libraries/NativeEthernet/src/NativeDns.cpp -o /dev/null -DARDUINO_LIB_DISCOVERY_PHASE
/Applications/Teensyduino.app/Contents/Java/hardware/teensy/../tools/arm/bin/arm-none-eabi-g++ -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=154 -DARDUINO=10813 -DARDUINO_TEENSY41 -DF_CPU=600000000 -DUSB_MTPDISK -DLAYOUT_US_ENGLISH -I/Applications/Teensyduino.app/Contents/Java/hardware/teensy/avr/cores/teensy4 -I/Applications/Teensyduino.app/Contents/Java/hardware/teensy/avr/libraries/SPI -I/Applications/Teensyduino.app/Contents/Java/hardware/teensy/avr/libraries/NativeEthernet/src -I/Applications/Teensyduino.app/Contents/Java/hardware/teensy/avr/libraries/FNET/src /Applications/Teensyduino.app/Contents/Java/hardware/teensy/avr/libraries/NativeEthernet/src/NativeEthernet.cpp -o /dev/null -

....
/var/folders/c8/jzlb4l7j6lb513z19lj2rclr0000gp/T/arduino_build_210408/libraries/FNET/third_party/mbedtls-2.12.0/src/x509write_csr.c.o /var/folders/c8/jzlb4l7j6lb513z19lj2rclr0000gp/T/arduino_build_210408/libraries/FNET/third_party/mbedtls-2.12.0/src/xtea.c.o /var/folders/c8/jzlb4l7j6lb513z19lj2rclr0000gp/T/arduino_build_210408/../arduino_cache_31163/core/core_teensy_avr_teensy41_usb_mtp,speed_600,opt_o2std,keys_en-us_f6c71ab135b5ea482d3800864e505553.a -L/var/folders/c8/jzlb4l7j6lb513z19lj2rclr0000gp/T/arduino_build_210408 -larm_cortexM7lfsp_math -lm -lstdc++
/Applications/Teensyduino.app/Contents/Java/hardware/teensy/../tools/arm/bin/arm-none-eabi-objcopy -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0 /var/folders/c8/jzlb4l7j6lb513z19lj2rclr0000gp/T/arduino_build_210408/foo.ino.elf /var/folders/c8/jzlb4l7j6lb513z19lj2rclr0000gp/T/arduino_build_210408/foo.ino.eep
/Applications/Teensyduino.app/Contents/Java/hardware/teensy/../tools/arm/bin/arm-none-eabi-objcopy -O ihex -R .eeprom /var/folders/c8/jzlb4l7j6lb513z19lj2rclr0000gp/T/arduino_build_210408/foo.ino.elf /var/folders/c8/jzlb4l7j6lb513z19lj2rclr0000gp/T/arduino_build_210408/foo.ino.hex
/Applications/Teensyduino.app/Contents/Java/hardware/teensy/../tools/stdout_redirect /var/folders/c8/jzlb4l7j6lb513z19lj2rclr0000gp/T/arduino_build_210408/foo.ino.lst /Applications/Teensyduino.app/Contents/Java/hardware/teensy/../tools/arm/bin/arm-none-eabi-objdump -d -S -C /var/folders/c8/jzlb4l7j6lb513z19lj2rclr0000gp/T/arduino_build_210408/foo.ino.elf
/Applications/Teensyduino.app/Contents/Java/hardware/teensy/../tools/stdout_redirect /var/folders/c8/jzlb4l7j6lb513z19lj2rclr0000gp/T/arduino_build_210408/foo.ino.sym /Applications/Teensyduino.app/Contents/Java/hardware/teensy/../tools/arm/bin/arm-none-eabi-objdump -t -C /var/folders/c8/jzlb4l7j6lb513z19lj2rclr0000gp/T/arduino_build_210408/foo.ino.elf
/Applications/Teensyduino.app/Contents/Java/hardware/teensy/../tools/teensy_post_compile -file=foo.ino -path=/var/folders/c8/jzlb4l7j6lb513z19lj2rclr0000gp/T/arduino_build_210408 -tools=/Applications/Teensyduino.app/Contents/Java/hardware/teensy/../tools/ -board=TEENSY41
Opening Teensy Loader...
/Applications/Teensyduino.app/Contents/Java/hardware/teensy/../tools/teensy_size /var/folders/c8/jzlb4l7j6lb513z19lj2rclr0000gp/T/arduino_build_210408/foo.ino.elf
Memory Usage on Teensy 4.1:
  FLASH: code:11688, data:2604, headers:7212   free for files:8104960
   RAM1: code:32768, variables:12992   free for local variables:478528
   RAM2: variables:5216  free for malloc/new:519072
Using library SPI at version 1.0 in folder: /Applications/Teensyduino.app/Contents/Java/hardware/teensy/avr/libraries/SPI 
Using library NativeEthernet at version 1.0.5 in folder: /Applications/Teensyduino.app/Contents/Java/hardware/teensy/avr/libraries/NativeEthernet 
Using library FNET at version 0.1.3 in folder: /Applications/Teensyduino.app/Contents/Java/hardware/teensy/avr/libraries/FNET
This is any early 2013 MacBook Pro running 10.15.7

Next thing if I were you would check your <>/libraries/ folder to make sure that you don't have any conflicting libraries like FNET or NativeEthernet.

You can see where mine were found at the end of the build listing
 
No luck, I am afraid.
I deleted and erased the previous version of TeensyDuino. I searched the whole disk for FNET or NativeEthernet. Since I have a new Mac, maybe I used an other version of the TennsyDuino? I also compared your output with my output using the program Kaleidoscope. Specificaly this section is identical.
To be clear, my program runs, but it is strange that you get this red text line when you compile.


Code:
/Applications/Teensyduino.app/Contents/Java/hardware/teensy/../tools/arm/bin/arm-none-eabi-g++ -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=154 -DARDUINO=10813 -DARDUINO_TEENSY41 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -I/Applications/Teensyduino.app/Contents/Java/hardware/teensy/avr/cores/teensy4 -I/Applications/Teensyduino.app/Contents/Java/hardware/teensy/avr/libraries/SPI /var/folders/71/8wsjfv913tbcfkmsddz9zfvh0000gn/T/arduino_build_243157/sketch/sketch_may12a.ino.cpp -o /dev/null -DARDUINO_LIB_DISCOVERY_PHASE
Alternatives for NativeEthernet.h: [NativeEthernet@1.0.5]
ResolveLibrary(NativeEthernet.h)
  -> candidates: [NativeEthernet@1.0.5]
/Applications/Teensyduino.app/Contents/Java/hardware/teensy/../tools/arm/bin/arm-none-eabi-g++ -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=154 -DARDUINO=10813 -DARDUINO_TEENSY41 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -I/Applications/Teensyduino.app/Contents/Java/hardware/teensy/avr/cores/teensy4 -I/Applications/Teensyduino.app/Contents/Java/hardware/teensy/avr/libraries/SPI -I/Applications/Teensyduino.app/Contents/Java/hardware/teensy/avr/libraries/NativeEthernet/src /var/folders/71/8wsjfv913tbcfkmsddz9zfvh0000gn/T/arduino_build_243157/sketch/sketch_may12a.ino.cpp -o /dev/null -DARDUINO_LIB_DISCOVERY_PHASE
Alternatives for fnet.h: [FNET@0.1.3]
ResolveLibrary(fnet.h)
  -> candidates: [FNET@0.1.3]

The word "error" occurs 186 times in my output from the compiler (and 7 in the part you sent me).
 
Back
Top