Code deployed but robot code not recognized- version issue?

Hello, I’m trying to migrate from Labview to C++ this year and I’m having issues with a few things when running the example projects.

I used the FRC C++ guide and had success installing the guide’s version of all the software when available. The robot code (I was trying “Getting Started” and “Arcade Drive”) successfully built and deployed. However, from the Driver Station, the robot code light stayed red. After some digging I came across and installed the Riolog for Eclipse, which was looping this error message every 2 seconds or so:

âž” Launching «’/home/lvuser/FRCUserProgram’»
/home/lvuser/FRCUserProgram: /usr/lib/libstdc++.so.6: version `CXXABI_1.3.9’ not found (required by /home/lvuser/FRCUserProgram)

I’m not sure how to fix a missing version of some file on the RoboRio, if that’s the apparent issue. It seems I was able to deploy the code, but it’s throwing an error before it starts on the robot itself.

In regards to software versions, I downloaded some version of Eclipse Neon, the latest C++ Toolchains from that FRC guide, Java 8, and, despite a “validated RoboRio image” on deploy, reimaged the RoboRio. The only available image I could use with the imaging tool was 2017, so maybe there’s a compatibility issue with 2017 and some of the less updated software (Eclipse) I’m using? When I used Eclipse Oxygen I had errors on deploying so I went strictly with the versions on the guide.

Thanks for any help.

Your code is running but crashing and getting relaunched. Try printing out some messages to see where and why it is dying. Or you can debug it.

http://1418.team/assets/resources/C++Java%20FRC%20Installation.pdf

Can you post your code?

Unless you’re a beta team, you shouldn’t be using the 2018 beta toolchain.

Hello, thanks for the help. Not a beta team, just a student tinkering with a school project last year to attempt to migrate to c++ for this coming year. I’ll post the robot.cpp file code here, but it really is just the example project. I’ll put “Arcade Drive” here:

#include <WPILib.h>

/**

  • This is a demo program showing the use of the RobotDrive class.
  • The SampleRobot class is the base of a robot application that will automatically call your
  • Autonomous and OperatorControl methods at the right time as controlled by the switches on
  • the driver station or the field controls.
  • WARNING: While it may look like a good choice to use for your code if you’re inexperienced,
  • don’t. Unless you know what you are doing, complex code will be much more difficult under
  • this system. Use IterativeRobot or Command-Based instead if you’re new.
    */
    class Robot: public frc::SampleRobot {
    frc::RobotDrive myRobot { 0, 1 }; // robot drive system
    frc::Joystick stick { 0 }; // only joystick

public:
Robot() {
myRobot.SetExpiration(0.1);
}

/**

  • Runs the motors with arcade steering.
    */
    void OperatorControl() {
    while (IsOperatorControl() && IsEnabled()) {
    myRobot.ArcadeDrive(stick); // drive with arcade style (use right stick)
    frc::Wait(0.005); // wait for a motor update time
    }
    }
    };

START_ROBOT_CLASS(Robot)

In regards to the toolchains, it does seem that I’ve been installing the 2018 beta. Silly me. I can test the robot in about an hour to see if an install of the 2017 release fixes my issue. Will update soon.

Update: Uninstalling the 2018 beta version I was using and reinstalling the 2017 toolchain fixed my issue. Thank you!