Collect2.exe: error: ld returned 1 exit status exit status 1 Error compiling for board Arduino Mega or Mega 2560

Help
trying to compile repetier.ino file in arduino from this https://github.com/seemecnc/Firmware/tree/droplit
but I'm getting this error......

Arduino: 1.8.16 (Windows 10), Board: "Arduino Mega or Mega 2560, ATmega2560 (Mega 2560)"

C:\Users\brono\AppData\Local\Temp\cc4KqqkZ.ltrans0.ltrans.o: In function `__vector_17':

C:\Repetier-091-ROSTOCKMAX-master\Repetier-091-ROSTOCKMAX\Repetier/HAL.cpp:678: undefined reference to `stepperWait'

C:\Repetier-091-ROSTOCKMAX-master\Repetier-091-ROSTOCKMAX\Repetier/HAL.cpp:678: undefined reference to `stepperWait'

C:\Repetier-091-ROSTOCKMAX-master\Repetier-091-ROSTOCKMAX\Repetier/HAL.cpp:678: undefined reference to `stepperWait'

C:\Repetier-091-ROSTOCKMAX-master\Repetier-091-ROSTOCKMAX\Repetier/HAL.cpp:678: undefined reference to `stepperWait'

C:\Repetier-091-ROSTOCKMAX-master\Repetier-091-ROSTOCKMAX\Repetier/HAL.cpp:678: undefined reference to `stepperWait'

C:\Users\brono\AppData\Local\Temp\cc4KqqkZ.ltrans0.ltrans.o:C:\Repetier-091-ROSTOCKMAX-master\Repetier-091-ROSTOCKMAX\Repetier/HAL.cpp:678: more undefined references to `stepperWait' follow

collect2.exe: error: ld returned 1 exit status

exit status 1

Error compiling for board Arduino Mega or Mega 2560.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

if any one have any idea about this please help, or please share this error with someone you know can help me with.

now i get this error

Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException

at cc.arduino.contributions.libraries.ui.ContributedLibraryReleasesComparator.compare(ContributedLibraryReleasesComparator.java:50)

at cc.arduino.contributions.libraries.ui.ContributedLibraryReleasesComparator.compare(ContributedLibraryReleasesComparator.java:39)

at java.util.TimSort.binarySort(TimSort.java:296)

at java.util.TimSort.sort(TimSort.java:239)

at java.util.Arrays.sort(Arrays.java:1512)

at java.util.ArrayList.sort(ArrayList.java:1462)

at java.util.Collections.sort(Collections.java:175)

at cc.arduino.contributions.libraries.ui.LibrariesIndexTableModel.updateContributions(LibrariesIndexTableModel.java:208)

at cc.arduino.contributions.libraries.ui.LibrariesIndexTableModel.update(LibrariesIndexTableModel.java:138)

at cc.arduino.contributions.libraries.ui.LibrariesIndexTableModel.updateIndexFilter(LibrariesIndexTableModel.java:60)

at cc.arduino.contributions.ui.InstallerJDialog.updateIndexFilter(InstallerJDialog.java:293)

at cc.arduino.contributions.ui.InstallerJDialog$1.onFilter(InstallerJDialog.java:133)

at cc.arduino.contributions.ui.FilterJTextField.applyFilter(FilterJTextField.java:113)

at cc.arduino.contributions.ui.FilterJTextField.lambda$new$0(FilterJTextField.java:53)

at javax.swing.Timer.fireActionPerformed(Timer.java:313)

at javax.swing.Timer$DoPostEvent.run(Timer.java:245)

at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)

at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)

at java.awt.EventQueue.access$500(EventQueue.java:97)

at java.awt.EventQueue$3.run(EventQueue.java:709)

at java.awt.EventQueue$3.run(EventQueue.java:703)

at java.security.AccessController.doPrivileged(Native Method)

at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)

at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)

at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205)

at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)

at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:109)

at java.awt.WaitDispatchSupport$2.run(WaitDispatchSupport.java:190)

at java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:235)

at java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:233)

at java.security.AccessController.doPrivileged(Native Method)

at java.awt.WaitDispatchSupport.enter(WaitDispatchSupport.java:233)

at java.awt.Dialog.show(Dialog.java:1084)

at java.awt.Component.show(Component.java:1671)

at java.awt.Component.setVisible(Component.java:1623)

at java.awt.Window.setVisible(Window.java:1014)

at java.awt.Dialog.setVisible(Dialog.java:1005)

at processing.app.Base.openLibraryManager(Base.java:1391)

at processing.app.Base.lambda$rebuildImportMenu$2(Base.java:1116)

at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022)

at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2348)

at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)

at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)

at javax.swing.AbstractButton.doClick(AbstractButton.java:376)

at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:842)

at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:886)

at java.awt.Component.processMouseEvent(Component.java:6539)

at javax.swing.JComponent.processMouseEvent(JComponent.java:3324)

at java.awt.Component.processEvent(Component.java:6304)

at java.awt.Container.processEvent(Container.java:2239)

at java.awt.Component.dispatchEventImpl(Component.java:4889)

at java.awt.Container.dispatchEventImpl(Container.java:2297)

at java.awt.Component.dispatchEvent(Component.java:4711)

at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4904)

at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4535)

at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4476)

at java.awt.Container.dispatchEventImpl(Container.java:2283)

at java.awt.Window.dispatchEventImpl(Window.java:2746)

at java.awt.Component.dispatchEvent(Component.java:4711)

at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:760)

at java.awt.EventQueue.access$500(EventQueue.java:97)

at java.awt.EventQueue$3.run(EventQueue.java:709)

at java.awt.EventQueue$3.run(EventQueue.java:703)

at java.security.AccessController.doPrivileged(Native Method)

at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)

at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:84)

at java.awt.EventQueue$4.run(EventQueue.java:733)

at java.awt.EventQueue$4.run(EventQueue.java:731)

at java.security.AccessController.doPrivileged(Native Method)

at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)

at java.awt.EventQueue.dispatchEvent(EventQueue.java:730)

at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205)

at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)

at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)

at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)

at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)

at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

anyone?

That's the reason for the "undefined reference" errors. Because many sketches only consist of a single .ino file, it's easy to assume that the .ino file is the sketch. But the sketch is actually the folder and that folder can contain several source code files that make up the complete sketch program. This is the case with the Repetier firmware. The code in those other files is essential. You can't just grab the single .ino file and expect it to work.

Please do this:

  1. Download the entire Repetier project by clicking this link: https://github.com/seemecnc/Firmware/archive/refs/heads/droplit.zip
  2. Wait for the download to finish
  3. Unzip the downloaded Firmware-droplit.zip file.
  4. Start the Arduino IDE.
  5. Select File > Open from the Arduino IDE menus.
  6. Select the file Firmware-droplit\Repetier Firmware\Repetier\Repetier.ino from the unzipped folder
  7. Click the "Open" button.

Now you should be able to compile the sketch.

Not sure what is going on there. Try restarting the Arduino IDE and before you follow my instructions above and hopefully it will go away.

Thank you... ill try it
but when i used Arduino version 1.6.9 it got complied.
as i was going through some post many were replying it with some bug in Arduino version above 1.6.9.

1.6.9 was years ago. Most likely that unspecified bug has already been fixed since then.

oh..yea
the error is fixed ..thank you.