Coder Social home page Coder Social logo

Comments (8)

LightningStalker avatar LightningStalker commented on July 25, 2024

OS is Zorin OS (Ubuntu based)
This is way above my head. I have no idea how to debug something this complex.
Web searches aren't helpful.

from lufa.

LightningStalker avatar LightningStalker commented on July 25, 2024

Also happening on Linux Mint 18.2
It doesn't matter weather it's the latest commit or 170418

from lufa.

LightningStalker avatar LightningStalker commented on July 25, 2024

Here is more of the error as it appears on Mint:

[LNK] : Linking object files into "XPLAINBridge.elf"
avr-gcc obj/XPLAINBridge.o obj/SoftUART.o obj/USARTDescriptors.o ../AVRISP-MKII/obj/AVRISPDescriptors.o ../AVRISP-MKII/obj/V2Protocol.o ../AVRISP-MKII/obj/V2ProtocolParams.o ../AVRISP-MKII/obj/ISPProtocol.o ../AVRISP-MKII/obj/ISPTarget.o ../AVRISP-MKII/obj/XPROGProtocol.o ../AVRISP-MKII/obj/XPROGTarget.o ../AVRISP-MKII/obj/XMEGANVM.o ../AVRISP-MKII/obj/TINYNVM.o ../AVRISP-MKII/obj/HIDParser.o ../AVRISP-MKII/obj/Device_AVR8.o ../AVRISP-MKII/obj/EndpointStream_AVR8.o ../AVRISP-MKII/obj/Endpoint_AVR8.o ../AVRISP-MKII/obj/Host_AVR8.o ../AVRISP-MKII/obj/PipeStream_AVR8.o ../AVRISP-MKII/obj/Pipe_AVR8.o ../AVRISP-MKII/obj/USBController_AVR8.o ../AVRISP-MKII/obj/USBInterrupt_AVR8.o ../AVRISP-MKII/obj/ConfigDescriptors.o ../AVRISP-MKII/obj/DeviceStandardReq.o ../AVRISP-MKII/obj/Events.o ../AVRISP-MKII/obj/HostStandardReq.o ../AVRISP-MKII/obj/USBTask.o obj/AudioClassDevice.o obj/CDCClassDevice.o obj/HIDClassDevice.o obj/MassStorageClassDevice.o obj/MIDIClassDevice.o obj/PrinterClassDevice.o obj/RNDISClassDevice.o obj/AndroidAccessoryClassHost.o obj/AudioClassHost.o obj/CDCClassHost.o obj/HIDClassHost.o obj/MassStorageClassHost.o obj/MIDIClassHost.o obj/PrinterClassHost.o obj/RNDISClassHost.o obj/StillImageClassHost.o -o XPLAINBridge.elf -lm -Wl,-Map=XPLAINBridge.map,--cref -Wl,--gc-sections -Wl,--relax -mmcu=at90usb1287
../AVRISP-MKII/obj/ISPTarget.o: In function __vector_17': /home/robert/src/lufa-LUFA-170418/Projects/AVRISP-MKII/Lib/ISP/ISPTarget.c:119: multiple definition of __vector_17'
obj/SoftUART.o:/home/robert/src/lufa-LUFA-170418/Projects/XPLAINBridge/Lib/SoftUART.c:102: first defined here
/usr/lib/gcc/avr/4.9.2/../../../avr/bin/ld: Disabling relaxation: it will not work with multiple definitions
collect2: error: ld returned 1 exit status
../../LUFA/Build/DMBS/DMBS/gcc.mk:238: recipe for target 'XPLAINBridge.elf' failed
make[2]: *** [XPLAINBridge.elf] Error 1
make[2]: Leaving directory '/home/robert/src/lufa-LUFA-170418/Projects/XPLAINBridge'
makefile:44: recipe for target 'XPLAINBridge/' failed
make[1]: *** [XPLAINBridge/] Error 2
make[1]: Leaving directory '/home/robert/src/lufa-LUFA-170418/Projects'
makefile:19: recipe for target 'all' failed
make: *** [all] Error 2

from lufa.

abcminiuser avatar abcminiuser commented on July 25, 2024

Whoops, all fixed in 01e7529. The XPLAINBridge project uses some sources from the AVRISP project, but I was compiling in the ISP programming protocol code which isn't needed, and which uses an interrupt vector internally that the XPLAINBridge project uses for other purposes.

Since the XPLAINBridge project doesn't use the ISP protocol compiling in the module isn't needed, and only results in the linker conflicts you're seeing there from the duplicate interrupt handler definition.

from lufa.

LightningStalker avatar LightningStalker commented on July 25, 2024

Thanks will checkout

from lufa.

LightningStalker avatar LightningStalker commented on July 25, 2024

Ok, finally got around to doing a test compile, and apparently XPLAINBridge is still referencing the ISP protocol for some reason. Here's what happens:

[LNK] : Linking object files into "XPLAINBridge.elf"
avr-gcc obj/XPLAINBridge.o obj/SoftUART.o obj/USARTDescriptors.o ../AVRISP-MKII/obj/AVRISPDescriptors.o ../AVRISP-MKII/obj/V2Protocol.o ../AVRISP-MKII/obj/V2ProtocolParams.o ../AVRISP-MKII/obj/XPROGProtocol.o ../AVRISP-MKII/obj/XPROGTarget.o ../AVRISP-MKII/obj/XMEGANVM.o ../AVRISP-MKII/obj/TINYNVM.o ../AVRISP-MKII/obj/HIDParser.o ../AVRISP-MKII/obj/Device_AVR8.o ../AVRISP-MKII/obj/EndpointStream_AVR8.o ../AVRISP-MKII/obj/Endpoint_AVR8.o ../AVRISP-MKII/obj/Host_AVR8.o ../AVRISP-MKII/obj/PipeStream_AVR8.o ../AVRISP-MKII/obj/Pipe_AVR8.o ../AVRISP-MKII/obj/USBController_AVR8.o ../AVRISP-MKII/obj/USBInterrupt_AVR8.o ../AVRISP-MKII/obj/ConfigDescriptors.o ../AVRISP-MKII/obj/DeviceStandardReq.o ../AVRISP-MKII/obj/Events.o ../AVRISP-MKII/obj/HostStandardReq.o ../AVRISP-MKII/obj/USBTask.o obj/AudioClassDevice.o obj/CDCClassDevice.o obj/HIDClassDevice.o obj/MassStorageClassDevice.o obj/MIDIClassDevice.o obj/PrinterClassDevice.o obj/RNDISClassDevice.o obj/AndroidAccessoryClassHost.o obj/AudioClassHost.o obj/CDCClassHost.o obj/HIDClassHost.o obj/MassStorageClassHost.o obj/MIDIClassHost.o obj/PrinterClassHost.o obj/RNDISClassHost.o obj/StillImageClassHost.o -o XPLAINBridge.elf -lm -Wl,-Map=XPLAINBridge.map,--cref -Wl,--gc-sections -Wl,--relax -mmcu=at90usb1287
../AVRISP-MKII/obj/V2Protocol.o: In function V2Protocol_Init': V2Protocol.c:(.text.V2Protocol_Init+0xe): undefined reference to ISPTarget_ConfigureRescueClock'
../AVRISP-MKII/obj/V2Protocol.o: In function V2Protocol_ProcessCommand': V2Protocol.c:(.text.V2Protocol_ProcessCommand+0x8a): undefined reference to ISPProtocol_EnterISPMode'
V2Protocol.c:(.text.V2Protocol_ProcessCommand+0x19e): undefined reference to ISPProtocol_LeaveISPMode' V2Protocol.c:(.text.V2Protocol_ProcessCommand+0x1a6): undefined reference to ISPProtocol_ProgramMemory'
V2Protocol.c:(.text.V2Protocol_ProcessCommand+0x1ae): undefined reference to ISPProtocol_ReadMemory' V2Protocol.c:(.text.V2Protocol_ProcessCommand+0x1b4): undefined reference to ISPProtocol_ChipErase'
V2Protocol.c:(.text.V2Protocol_ProcessCommand+0x1bc): undefined reference to ISPProtocol_ReadFuseLockSigOSCCAL' V2Protocol.c:(.text.V2Protocol_ProcessCommand+0x1c4): undefined reference to ISPProtocol_WriteFuseLock'
V2Protocol.c:(.text.V2Protocol_ProcessCommand+0x1ca): undefined reference to `ISPProtocol_SPIMulti'
collect2: error: ld returned 1 exit status
../../LUFA/Build/DMBS/DMBS/gcc.mk:241: recipe for target 'XPLAINBridge.elf' failed
make[2]: *** [XPLAINBridge.elf] Error 1
make[2]: Leaving directory '/home/robert/src/lufa/Projects/XPLAINBridge'
makefile:44: recipe for target 'XPLAINBridge/' failed
make[1]: *** [XPLAINBridge/] Error 2
make[1]: Leaving directory '/home/robert/src/lufa/Projects'
makefile:19: recipe for target 'all' failed
make: *** [all] Error 2

from lufa.

abcminiuser avatar abcminiuser commented on July 25, 2024

Did you perform a make clean beforehand, and pull the latest code? Your link step still refers to ISPProtocol.o which should no longer be a prerequisite of the ELF build target.

from lufa.

 avatar commented on July 25, 2024

Bug confirmed. Same problem here.

from lufa.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.