Error compilling for board TTGO t beam

Hello guys,
I recently bought a ttgo t beam, basically a esp32 board with a neo6m chip. But if I try to upload a code to test the gps, I get an "Error compiling for board T-beam". I used the example code in the Tinygps library (GitHub - mikalhart/TinyGPS: A compact Arduino NMEA (GPS) parsing library), Tinygps++(GitHub - mikalhart/TinyGPSPlus: A new, customizable Arduino NMEA parsing library) and an example code for the board itself (TTGO-T-Beam/GPS.ino at master · LilyGO/TTGO-T-Beam · GitHub).
But I always get the same error. Then I tried to upload a blink sketch and a Lora test sketch and both worked.
I am not sure where I make a mistake.

I am not sure where I make a mistake.

You looked ONLY at the last line of the compiler/linker output. I am 100% certain that there are more messages before that one that will tell you exactly what is wrong.

Yes there is something, but I am not sure why there is a file missing in the software serial library and how I can fix it.

Arduino: 1.8.9 (Windows Store 1.8.21.0) (Windows 10), Board: "T-Beam, Disabled, 80MHz, 921600, None"

C:\Users\xxx\Documents\Arduino\libraries\SoftwareSerial-master\SoftwareSerial.cpp:41:27: fatal error: avr/interrupt.h: No such file or directory

compilation terminated.

exit status 1
Error compiling for board T-Beam.

I am not sure why there is a file missing in the software serial library

There isn't, IF your mysterious board is based on an AVR chip. If it is based on another kind of chip, then there is a problem with the package for your mysterious board that makes the software serial library think it is based on a AVR chip, when it isn't.

So what does this mean for me? How can I get the gps to work?

Where did you get the plugin for the Arduino IDE that provides the support for the ESP32 based TTGO ?

Arduino do not produce the ESP32 support, that is provided by some third party.

this is the link to add the esp32 boards in the ide

https://dl.espressif.com/dl/package_esp32_index.json

in there there is ttgo tbeam available.

Is there maybe an other way to get the gps working without software serial?

xmp:
this is the link to add the esp32 boards in the ide

https://dl.espressif.com/dl/package_esp32_index.json

So it looks like Espressif, who are not connected with Arduino, have not provided software serial support for the ESP32. You could ask on the Espressif support forums if they intend to, but I would be surprised if they would.

The ESP32 does have adequate hardware serial ports and these are a better option than software serial in any case.

xmp:
I used the example code in the Tinygps library (GitHub - mikalhart/TinyGPS: A compact Arduino NMEA (GPS) parsing library), Tinygps++(GitHub - mikalhart/TinyGPSPlus: A new, customizable Arduino NMEA parsing library)

Those examples will indeed give you the error you posted. The reason is that the ESP32 hardware core does not come with a SoftwareSerial library. You apparently dug up some copy of the SoftwareSerial library for AVR from who knows where and tried installing it. That didn't work because the SoftwareSerial library is very architecture-specific. This is why the AVR-specific version of the library is bundled with the AVR hardware core, and so on. For this reason, and also because likely it's some outdated version of the library, I recommend that you delete C:\Users\xxx\Documents\Arduino\libraries\SoftwareSerial-master.

There are some 3rd party libraries that provide software serial for ESP32 you could use, but likely the reason the ESP32 developers didn't bundle one with the core is because the ESP32 has 3 hardware serial ports. One of these is used to connect to your computer, but this leaves you with one or two extra hardware serial ports, which is all most people need. It's always preferable to use hardware serial ports instead of software serial when possible. It's quite simple to adapt the example sketches of the TinyGPS libraries to use the Serial1 port of your ESP32 board.

xmp:
and an example code for the board itself (TTGO-T-Beam/GPS/GPS.ino at master · LilyGO/TTGO-T-Beam · GitHub).

Compilation of this sketch failed for a reason that has absolutely nothing to do with the SoftwareSerial library, but you are lumping it together with the other errors simply because you didn't bother to scroll the console window up to read the specific error message:

C:\Users\per\AppData\Local\Temp\arduino_cache_396995\core\core_7ea5e78bcae8290c6b68966baff35d5e.a(HardwareSerial.cpp.o):(.bss.Serial1+0x0): multiple definition of `Serial1'

C:\Users\per\AppData\Local\Temp\arduino_build_436597\sketch\sketch_jul30a.ino.cpp.o:(.bss.Serial1+0x0): first defined here

collect2.exe: error: ld returned 1 exit status

This sketch is already using Serial1, but appears to be doing so in an incorrect manner. Maybe the code worked with an older version of the ESP32 core. I'm not an ESP32 expert, but I was able to get the sketch to compile by commenting out this line:

HardwareSerial Serial1(1);

I guess that was instantiating a HardwareSerial object named Serial1 on the hardware serial port 1, but now the ESP32 core does that for you, as is done for the official Arduino boards.