Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

collect2.exe: error: ld returned 1 exit status #83

Open
kaeuferrot opened this issue Aug 15, 2018 · 0 comments
Open

collect2.exe: error: ld returned 1 exit status #83

kaeuferrot opened this issue Aug 15, 2018 · 0 comments

Comments

@kaeuferrot
Copy link

Arduino: 1.8.5 (Windows 10), TD: 1.42, Board: "Teensy 3.2 / 3.1, Serial, 72 MHz, Faster, US English"

C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\Herbert\Downloads\MavLink_FrSkySPort-master\libraries -fqbn=teensy:avr:teensy31:usb=serial,speed=72,opt=o2std,keys=en-us -vid-pid=0X16C0_0X0483 -ide-version=10805 -build-path C:\Users\Herbert\AppData\Local\Temp\arduino_build_807699 -warnings=none -build-cache C:\Users\Herbert\AppData\Local\Temp\arduino_cache_676304 -verbose C:\Users\Herbert\Downloads\MavLink_FrSkySPort-Mav_Sport2.1-2.2-master\MavLink_FrSkySPort-Mav_Sport2.1-2.2-master\Teensy\MavLink_FrSkySPort\MavLink_FrSkySPort.ino
C:\Program Files (x86)\Arduino\arduino-builder -compile -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\Herbert\Downloads\MavLink_FrSkySPort-master\libraries -fqbn=teensy:avr:teensy31:usb=serial,speed=72,opt=o2std,keys=en-us -vid-pid=0X16C0_0X0483 -ide-version=10805 -build-path C:\Users\Herbert\AppData\Local\Temp\arduino_build_807699 -warnings=none -build-cache C:\Users\Herbert\AppData\Local\Temp\arduino_cache_676304 -verbose C:\Users\Herbert\Downloads\MavLink_FrSkySPort-Mav_Sport2.1-2.2-master\MavLink_FrSkySPort-Mav_Sport2.1-2.2-master\Teensy\MavLink_FrSkySPort\MavLink_FrSkySPort.ino
Using board 'teensy31' from platform in folder: C:\Program Files (x86)\Arduino\hardware\teensy\avr
Using core 'teensy3' from platform in folder: C:\Program Files (x86)\Arduino\hardware\teensy\avr
Detecting libraries used...
"C:\Program Files (x86)\Arduino\hardware\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -fno-exceptions -felide-constructors -std=gnu++14 -Wno-error=narrowing -fno-rtti -mthumb -mcpu=cortex-m4 -fsingle-precision-constant -D__MK20DX256__ -DTEENSYDUINO=142 -DARDUINO=10805 -DF_CPU=72000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3" "C:\Users\Herbert\AppData\Local\Temp\arduino_build_807699\sketch\MavLink_FrSkySPort.ino.cpp" -o "nul"
"C:\Program Files (x86)\Arduino\hardware\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -fno-exceptions -felide-constructors -std=gnu++14 -Wno-error=narrowing -fno-rtti -mthumb -mcpu=cortex-m4 -fsingle-precision-constant -D__MK20DX256__ -DTEENSYDUINO=142 -DARDUINO=10805 -DF_CPU=72000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3" "-IC:\Users\Herbert\Downloads\MavLink_FrSkySPort-master\libraries\GCS_MAVLink" "C:\Users\Herbert\AppData\Local\Temp\arduino_build_807699\sketch\MavLink_FrSkySPort.ino.cpp" -o "nul"
"C:\Program Files (x86)\Arduino\hardware\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -fno-exceptions -felide-constructors -std=gnu++14 -Wno-error=narrowing -fno-rtti -mthumb -mcpu=cortex-m4 -fsingle-precision-constant -D__MK20DX256__ -DTEENSYDUINO=142 -DARDUINO=10805 -DF_CPU=72000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3" "-IC:\Users\Herbert\Downloads\MavLink_FrSkySPort-master\libraries\GCS_MAVLink" "-IC:\Users\Herbert\Downloads\MavLink_FrSkySPort-master\libraries\FrSkySportTelemetry" "C:\Users\Herbert\AppData\Local\Temp\arduino_build_807699\sketch\MavLink_FrSkySPort.ino.cpp" -o "nul"
Using cached library dependencies for file: C:\Users\Herbert\AppData\Local\Temp\arduino_build_807699\sketch\LSCM.cpp
Using cached library dependencies for file: C:\Users\Herbert\Downloads\MavLink_FrSkySPort-master\libraries\GCS_MAVLink\GCS_MAVLink.cpp
Using cached library dependencies for file: C:\Users\Herbert\Downloads\MavLink_FrSkySPort-master\libraries\FrSkySportTelemetry\FrSkySportDecoder.cpp
Using cached library dependencies for file: C:\Users\Herbert\Downloads\MavLink_FrSkySPort-master\libraries\FrSkySportTelemetry\FrSkySportPolling.cpp
Using cached library dependencies for file: C:\Users\Herbert\Downloads\MavLink_FrSkySPort-master\libraries\FrSkySportTelemetry\FrSkySportSensor.cpp
Using cached library dependencies for file: C:\Users\Herbert\Downloads\MavLink_FrSkySPort-master\libraries\FrSkySportTelemetry\FrSkySportSensorAcc.cpp
Using cached library dependencies for file: C:\Users\Herbert\Downloads\MavLink_FrSkySPort-master\libraries\FrSkySportTelemetry\FrSkySportSensorAss.cpp
Using cached library dependencies for file: C:\Users\Herbert\Downloads\MavLink_FrSkySPort-master\libraries\FrSkySportTelemetry\FrSkySportSensorFcs.cpp
Using cached library dependencies for file: C:\Users\Herbert\Downloads\MavLink_FrSkySPort-master\libraries\FrSkySportTelemetry\FrSkySportSensorFlvss.cpp
Using cached library dependencies for file: C:\Users\Herbert\Downloads\MavLink_FrSkySPort-master\libraries\FrSkySportTelemetry\FrSkySportSensorFuel.cpp
Using cached library dependencies for file: C:\Users\Herbert\Downloads\MavLink_FrSkySPort-master\libraries\FrSkySportTelemetry\FrSkySportSensorGps.cpp
Using cached library dependencies for file: C:\Users\Herbert\Downloads\MavLink_FrSkySPort-master\libraries\FrSkySportTelemetry\FrSkySportSensorRpm.cpp
Using cached library dependencies for file: C:\Users\Herbert\Downloads\MavLink_FrSkySPort-master\libraries\FrSkySportTelemetry\FrSkySportSensorSp2uart.cpp
Using cached library dependencies for file: C:\Users\Herbert\Downloads\MavLink_FrSkySPort-master\libraries\FrSkySportTelemetry\FrSkySportSensorStatus.cpp
Using cached library dependencies for file: C:\Users\Herbert\Downloads\MavLink_FrSkySPort-master\libraries\FrSkySportTelemetry\FrSkySportSensorVario.cpp
Using cached library dependencies for file: C:\Users\Herbert\Downloads\MavLink_FrSkySPort-master\libraries\FrSkySportTelemetry\FrSkySportSensorXjt.cpp
Using cached library dependencies for file: C:\Users\Herbert\Downloads\MavLink_FrSkySPort-master\libraries\FrSkySportTelemetry\FrSkySportSingleWireSerial.cpp
Using cached library dependencies for file: C:\Users\Herbert\Downloads\MavLink_FrSkySPort-master\libraries\FrSkySportTelemetry\FrSkySportTelemetry.cpp
Generating function prototypes...
"C:\Program Files (x86)\Arduino\hardware\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -fno-exceptions -felide-constructors -std=gnu++14 -Wno-error=narrowing -fno-rtti -mthumb -mcpu=cortex-m4 -fsingle-precision-constant -D__MK20DX256__ -DTEENSYDUINO=142 -DARDUINO=10805 -DF_CPU=72000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3" "-IC:\Users\Herbert\Downloads\MavLink_FrSkySPort-master\libraries\GCS_MAVLink" "-IC:\Users\Herbert\Downloads\MavLink_FrSkySPort-master\libraries\FrSkySportTelemetry" "C:\Users\Herbert\AppData\Local\Temp\arduino_build_807699\sketch\MavLink_FrSkySPort.ino.cpp" -o "C:\Users\Herbert\AppData\Local\Temp\arduino_build_807699\preproc\ctags_target_for_gcc_minus_e.cpp"
"C:\Program Files (x86)\Arduino\tools-builder\ctags\5.8-arduino11/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "C:\Users\Herbert\AppData\Local\Temp\arduino_build_807699\preproc\ctags_target_for_gcc_minus_e.cpp"
Sketch wird kompiliert...
"C:\Program Files (x86)\Arduino\hardware\teensy/../tools/precompile_helper" "C:\Program Files (x86)\Arduino\hardware\teensy\avr/cores/teensy3" "C:\Users\Herbert\AppData\Local\Temp\arduino_build_807699" "C:\Program Files (x86)\Arduino\hardware\teensy/../tools/arm/bin/arm-none-eabi-g++" -x c++-header -O2 -g -Wall -ffunction-sections -fdata-sections -nostdlib -MMD -fno-exceptions -felide-constructors -std=gnu++14 -Wno-error=narrowing -fno-rtti -mthumb -mcpu=cortex-m4 -fsingle-precision-constant -D__MK20DX256__ -DTEENSYDUINO=142 -DARDUINO=10805 -DF_CPU=72000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\Program Files (x86)\Arduino\hardware\teensy\avr/cores/teensy3" "C:\Users\Herbert\AppData\Local\Temp\arduino_build_807699/pch/Arduino.h" -o "C:\Users\Herbert\AppData\Local\Temp\arduino_build_807699/pch/Arduino.h.gch"
Using previously compiled file: C:\Users\Herbert\AppData\Local\Temp\arduino_build_807699\pch\Arduino.h.gch

Zuvor kompilierte Datei wird verwendet: C:\Users\Herbert\AppData\Local\Temp\arduino_build_807699\sketch\LSCM.cpp.o
"C:\Program Files (x86)\Arduino\hardware\teensy/../tools/arm/bin/arm-none-eabi-g++" -c -O2 -g -Wall -ffunction-sections -fdata-sections -nostdlib -MMD -fno-exceptions -felide-constructors -std=gnu++14 -Wno-error=narrowing -fno-rtti -mthumb -mcpu=cortex-m4 -fsingle-precision-constant -D__MK20DX256__ -DTEENSYDUINO=142 -DARDUINO=10805 -DF_CPU=72000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\Users\Herbert\AppData\Local\Temp\arduino_build_807699/pch" "-IC:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3" "-IC:\Users\Herbert\Downloads\MavLink_FrSkySPort-master\libraries\GCS_MAVLink" "-IC:\Users\Herbert\Downloads\MavLink_FrSkySPort-master\libraries\FrSkySportTelemetry" "C:\Users\Herbert\AppData\Local\Temp\arduino_build_807699\sketch\MavLink_FrSkySPort.ino.cpp" -o "C:\Users\Herbert\AppData\Local\Temp\arduino_build_807699\sketch\MavLink_FrSkySPort.ino.cpp.o"
Compiling libraries...
Compiling library "GCS_MAVLink"
Zuvor kompilierte Datei wird verwendet: C:\Users\Herbert\AppData\Local\Temp\arduino_build_807699\libraries\GCS_MAVLink\GCS_MAVLink.cpp.o
Compiling library "FrSkySportTelemetry"
Zuvor kompilierte Datei wird verwendet: C:\Users\Herbert\AppData\Local\Temp\arduino_build_807699\libraries\FrSkySportTelemetry\FrSkySportDecoder.cpp.o
Zuvor kompilierte Datei wird verwendet: C:\Users\Herbert\AppData\Local\Temp\arduino_build_807699\libraries\FrSkySportTelemetry\FrSkySportPolling.cpp.o
Zuvor kompilierte Datei wird verwendet: C:\Users\Herbert\AppData\Local\Temp\arduino_build_807699\libraries\FrSkySportTelemetry\FrSkySportSensor.cpp.o
Zuvor kompilierte Datei wird verwendet: C:\Users\Herbert\AppData\Local\Temp\arduino_build_807699\libraries\FrSkySportTelemetry\FrSkySportSensorAcc.cpp.o
Zuvor kompilierte Datei wird verwendet: C:\Users\Herbert\AppData\Local\Temp\arduino_build_807699\libraries\FrSkySportTelemetry\FrSkySportSensorAss.cpp.o
Zuvor kompilierte Datei wird verwendet: C:\Users\Herbert\AppData\Local\Temp\arduino_build_807699\libraries\FrSkySportTelemetry\FrSkySportSensorFcs.cpp.o
Zuvor kompilierte Datei wird verwendet: C:\Users\Herbert\AppData\Local\Temp\arduino_build_807699\libraries\FrSkySportTelemetry\FrSkySportSensorFlvss.cpp.o
Zuvor kompilierte Datei wird verwendet: C:\Users\Herbert\AppData\Local\Temp\arduino_build_807699\libraries\FrSkySportTelemetry\FrSkySportSensorFuel.cpp.o
Zuvor kompilierte Datei wird verwendet: C:\Users\Herbert\AppData\Local\Temp\arduino_build_807699\libraries\FrSkySportTelemetry\FrSkySportSensorGps.cpp.o
Zuvor kompilierte Datei wird verwendet: C:\Users\Herbert\AppData\Local\Temp\arduino_build_807699\libraries\FrSkySportTelemetry\FrSkySportSensorRpm.cpp.o
Zuvor kompilierte Datei wird verwendet: C:\Users\Herbert\AppData\Local\Temp\arduino_build_807699\libraries\FrSkySportTelemetry\FrSkySportSensorSp2uart.cpp.o
Zuvor kompilierte Datei wird verwendet: C:\Users\Herbert\AppData\Local\Temp\arduino_build_807699\libraries\FrSkySportTelemetry\FrSkySportSensorStatus.cpp.o
Zuvor kompilierte Datei wird verwendet: C:\Users\Herbert\AppData\Local\Temp\arduino_build_807699\libraries\FrSkySportTelemetry\FrSkySportSensorVario.cpp.o
Zuvor kompilierte Datei wird verwendet: C:\Users\Herbert\AppData\Local\Temp\arduino_build_807699\libraries\FrSkySportTelemetry\FrSkySportSensorXjt.cpp.o
Zuvor kompilierte Datei wird verwendet: C:\Users\Herbert\AppData\Local\Temp\arduino_build_807699\libraries\FrSkySportTelemetry\FrSkySportSingleWireSerial.cpp.o
Zuvor kompilierte Datei wird verwendet: C:\Users\Herbert\AppData\Local\Temp\arduino_build_807699\libraries\FrSkySportTelemetry\FrSkySportTelemetry.cpp.o
Compiling core...
Using precompiled core
Linking everything together...
"C:\Program Files (x86)\Arduino\hardware\teensy/../tools/arm/bin/arm-none-eabi-gcc" -O2 -Wl,--gc-sections,--relax,--defsym=__rtc_localtime=1534354119 "-TC:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/mk20dx256.ld" -lstdc++ -mthumb -mcpu=cortex-m4 -fsingle-precision-constant -o "C:\Users\Herbert\AppData\Local\Temp\arduino_build_807699/MavLink_FrSkySPort.ino.elf" "C:\Users\Herbert\AppData\Local\Temp\arduino_build_807699\sketch\LSCM.cpp.o" "C:\Users\Herbert\AppData\Local\Temp\arduino_build_807699\sketch\MavLink_FrSkySPort.ino.cpp.o" "C:\Users\Herbert\AppData\Local\Temp\arduino_build_807699\libraries\GCS_MAVLink\GCS_MAVLink.cpp.o" "C:\Users\Herbert\AppData\Local\Temp\arduino_build_807699\libraries\FrSkySportTelemetry\FrSkySportDecoder.cpp.o" "C:\Users\Herbert\AppData\Local\Temp\arduino_build_807699\libraries\FrSkySportTelemetry\FrSkySportPolling.cpp.o" "C:\Users\Herbert\AppData\Local\Temp\arduino_build_807699\libraries\FrSkySportTelemetry\FrSkySportSensor.cpp.o" "C:\Users\Herbert\AppData\Local\Temp\arduino_build_807699\libraries\FrSkySportTelemetry\FrSkySportSensorAcc.cpp.o" "C:\Users\Herbert\AppData\Local\Temp\arduino_build_807699\libraries\FrSkySportTelemetry\FrSkySportSensorAss.cpp.o" "C:\Users\Herbert\AppData\Local\Temp\arduino_build_807699\libraries\FrSkySportTelemetry\FrSkySportSensorFcs.cpp.o" "C:\Users\Herbert\AppData\Local\Temp\arduino_build_807699\libraries\FrSkySportTelemetry\FrSkySportSensorFlvss.cpp.o" "C:\Users\Herbert\AppData\Local\Temp\arduino_build_807699\libraries\FrSkySportTelemetry\FrSkySportSensorFuel.cpp.o" "C:\Users\Herbert\AppData\Local\Temp\arduino_build_807699\libraries\FrSkySportTelemetry\FrSkySportSensorGps.cpp.o" "C:\Users\Herbert\AppData\Local\Temp\arduino_build_807699\libraries\FrSkySportTelemetry\FrSkySportSensorRpm.cpp.o" "C:\Users\Herbert\AppData\Local\Temp\arduino_build_807699\libraries\FrSkySportTelemetry\FrSkySportSensorSp2uart.cpp.o" "C:\Users\Herbert\AppData\Local\Temp\arduino_build_807699\libraries\FrSkySportTelemetry\FrSkySportSensorStatus.cpp.o" "C:\Users\Herbert\AppData\Local\Temp\arduino_build_807699\libraries\FrSkySportTelemetry\FrSkySportSensorVario.cpp.o" "C:\Users\Herbert\AppData\Local\Temp\arduino_build_807699\libraries\FrSkySportTelemetry\FrSkySportSensorXjt.cpp.o" "C:\Users\Herbert\AppData\Local\Temp\arduino_build_807699\libraries\FrSkySportTelemetry\FrSkySportSingleWireSerial.cpp.o" "C:\Users\Herbert\AppData\Local\Temp\arduino_build_807699\libraries\FrSkySportTelemetry\FrSkySportTelemetry.cpp.o" "C:\Users\Herbert\AppData\Local\Temp\arduino_build_807699/..\arduino_cache_676304\core\core_teensy_avr_teensy31_usb_serial,speed_72,opt_o2std,keys_en-us_4939f5412a75a8560acb0f9e98268f02.a" "-LC:\Users\Herbert\AppData\Local\Temp\arduino_build_807699" -larm_cortexM4l_math -lm
C:\Users\Herbert\AppData\Local\Temp\arduino_build_807699\libraries\GCS_MAVLink\GCS_MAVLink.cpp.o:(.data.mavlink_system+0x0): multiple definition of `mavlink_system'

C:\Users\Herbert\AppData\Local\Temp\arduino_build_807699\sketch\MavLink_FrSkySPort.ino.cpp.o:(.data.mavlink_system+0x0): first defined here

c:/program files (x86)/arduino/hardware/tools/arm/bin/../lib/gcc/arm-none-eabi/5.4.1/../../../../arm-none-eabi/bin/ld.exe: Disabling relaxation: it will not work with multiple definitions

collect2.exe: error: ld returned 1 exit status

Bibliothek GCS_MAVLink im Ordner: C:\Users\Herbert\Downloads\MavLink_FrSkySPort-master\libraries\GCS_MAVLink (legacy) wird verwendet
Bibliothek FrSkySportTelemetry im Ordner: C:\Users\Herbert\Downloads\MavLink_FrSkySPort-master\libraries\FrSkySportTelemetry (legacy) wird verwendet
Fehler beim Kompilieren für das Board Teensy 3.2 / 3.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant