fprime-community / fprime-baremetal-reference

Apache License 2.0
5 stars 4 forks source link

build error encountered with `build-fprime-automatic-teensy41/Components/Sensors/IMU_MPU9250/IMU_MPU9250ComponentAc.cpp` #12

Closed capsulecorplab closed 8 months ago

capsulecorplab commented 1 year ago

Screenshot from 2023-08-18 12-32-20 Screenshot from 2023-08-18 12-41-34

ethancheez commented 1 year ago

Were there changes in fprime or fpp-tools @LeStarch? The fprime commit currently checkout out in this submodule results in a successful build.

After I bumped up the version by running git submodule update --remote --recursive and rebuilding, I got the same error above. I reverted back fprime and I could successfully build again.

ethancheez commented 1 year ago

After comparing the IMU_MPU9250ComponentAc.cpp files generated from both fprime versions, I found this discrepancy:

The new cpp file is missing this:

  // ----------------------------------------------------------------------
  // Mutex functions for guarded ports
  // ----------------------------------------------------------------------

  void IMU_MPU9250ComponentBase ::
    lock()
  {
    this->m_guardedPortMutex.lock();
  }

  void IMU_MPU9250ComponentBase ::
    unLock()
  {
    this->m_guardedPortMutex.unLock();
  }

and if you're curious about any other differences... https://www.diffchecker.com/fn5RbfHM/

LeStarch commented 1 year ago

It looks like these files changed with the change to fpp-to-cpp.

LeStarch commented 1 year ago

@bocchino do you know any reason these two functions would not have been generated?

LeStarch commented 1 year ago

@capsulecorplab @ethancheez did you purge and regenerate after bumping versions? If not, this is likely the cause.

ethancheez commented 1 year ago

@capsulecorplab @ethancheez did you purge and regenerate after bumping versions? If not, this is likely the cause.

Yes, I purged and regenerated

LeStarch commented 1 year ago

@ethancheez I confirmed it is a bug in FPP. I am filing an issue now: https://github.com/fprime-community/fpp/issues/315

capsulecorplab commented 1 year ago

@capsulecorplab @ethancheez did you purge and regenerate after bumping versions? If not, this is likely the cause.

Affirmative; Build cache was purged and regenerated

LeStarch commented 1 year ago

Note: a PR has been submitted to fix this issue: https://github.com/fprime-community/fpp/pull/316

LeStarch commented 1 year ago

The fix is merged into FPP! We'll get a new release out the door soon.

ethancheez commented 8 months ago

Closing since this issue is fixed.