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

ByteStreamDriverModel Undefined Build Error With Latest Tutorial #2297

Closed
thvarkey opened this issue Oct 5, 2023 Discussed in #2290 · 9 comments
Closed

ByteStreamDriverModel Undefined Build Error With Latest Tutorial #2297

thvarkey opened this issue Oct 5, 2023 Discussed in #2290 · 9 comments

Comments

@thvarkey
Copy link

thvarkey commented Oct 5, 2023

Discussed in #2290

Originally posted by astroesteban October 2, 2023
Hi y'all,

I was going through the Hello World: Integration and Testing With F´ Deployments page just to get acquainted with the latest F Prime updates (the updates to prime-util are phenomenal by the way) and I keep getting this issue when trying to build the HelloWorldDeployment:

[ 97%] Generating HelloWorldDeploymentTopologyAppAi.xml, Ports_RateGroupsEnumAi.xml
fpp-to-xml
/workspace/MyProject/HelloWorldDeployment/Top/instances.fpp:108.27
  instance comDriver: Drv.ByteStreamDriverModel base id 0x4000 \
                          ^
error: undefined symbol ByteStreamDriverModel
gmake[3]: *** [HelloWorldDeployment/Top/CMakeFiles/HelloWorldDeployment_Top.dir/build.make:113: HelloWorldDeployment/Top/HelloWorldDeploymentTopologyAppAi.xml] Error 1
gmake[2]: *** [CMakeFiles/Makefile2:8300: HelloWorldDeployment/Top/CMakeFiles/HelloWorldDeployment_Top.dir/all] Error 2
gmake[1]: *** [CMakeFiles/Makefile2:8224: HelloWorldDeployment/CMakeFiles/HelloWorldDeployment.dir/rule] Error 2
gmake: *** [Makefile:2418: HelloWorldDeployment] Error 2
[ERROR] CMake erred with return code 2

I'm using the latest F Prime version on devel (commit f34d596) and running the following commands:

cd MyProject/HelloWorldDeployment
fprime-util build -j $(nproc)

I also opted for the default responses when creating the component and deployment unless otherwise instructed by the tutorial.

Any thoughts as to what could be going wrong?

@LeStarch
Copy link
Collaborator

LeStarch commented Oct 5, 2023

Note: fprime-util new is intended to be used with the latest tag of F´. That is why this issue occurred (as devel was updated).

We fixed this issue here: nasa/fprime-tools#167 and that fix will be consistent with F´ at the next release!

@LeStarch LeStarch closed this as completed Oct 5, 2023
@thvarkey
Copy link
Author

thvarkey commented Oct 5, 2023

Packet XML parsing error: Channel helloWorld.GreetingCount does not exist

I am following the same tutorial and encountered the same issue regarding ByteStreamDriveModel. The update mentioned above fixed that issue however, now I am seeing the XML error stated above.

The tutorial mentions to move helloWorld.GreetingCount to the ignore section in the HelloWorldDeployment/Top/HelloWorldDeploymentPackets.xml. Do I need to make any changes there?

Thanks in advance.

@thomas-bc
Copy link
Collaborator

@thvarkey did you make sure to update the HelloWorldDeploymentPackets.xml, as shown here ?

@thvarkey
Copy link
Author

thvarkey commented Oct 5, 2023

@thomas-bc Correct, I updated the ignore section as you mentioned in the link. Question: Do I need to go back to previous section of the tutorial to regenerate any of the files?

@thvarkey
Copy link
Author

thvarkey commented Oct 5, 2023

@thomas-bc Please find some of the details:

Packet SystemRes2 size 101/111
Packetizing SystemRes3 (7)
Packet SystemRes3 size 85/111
Packet XML parsing error: Channel helloWorld.GreetingCount does not exist
make[3]: *** [HelloWorldDeployment/Top/CMakeFiles/HelloWorldDeployment_Top.dir/build.make:177: HelloWorldDeployment/Top/HelloWorldDeploymentPacketsAc.cpp] Error 255
make[2]: *** [CMakeFiles/Makefile2:8841: HelloWorldDeployment/Top/CMakeFiles/HelloWorldDeployment_Top.dir/all] Error 2
make[1]: *** [CMakeFiles/Makefile2:8705: HelloWorldDeployment/CMakeFiles/HelloWorldDeployment.dir/rule] Error 2
make: *** [Makefile:2413: HelloWorldDeployment] Error 2

@thomas-bc
Copy link
Collaborator

Hmm no you shouldn't need to... but maybe just for the sake of being sure, try

fprime-util purge -f

Then re-generate and build:

fprime-util generate
fprime-util buid

@thvarkey
Copy link
Author

thvarkey commented Oct 5, 2023

@thomas-bc Unfortunately, I am still getting the same error. Please see below the ignored packets section from my HelloWorldDeploymentPackets.xml

<!-- Ignored packets -->

<ignore>
    <channel name="cmdDisp.CommandErrors"/>

    <channel name="helloWorld.GreetingCount"/>
</ignore>

@LeStarch
Copy link
Collaborator

LeStarch commented Oct 5, 2023

Packet XML parsing error: Channel helloWorld.GreetingCount does not exist means the HelloWorld component does not yet define the telemetry channel GreetingCount.

Make sure that step was followed.

@thvarkey
Copy link
Author

thvarkey commented Oct 5, 2023

@LeStarch @thomas-bc That was the error. Thank you so much

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

3 participants