Peer Dsicovery doesn't work on M1 chip

4 posts / 0 new
Last post
Offline
Last seen: 2 years 6 days ago
Joined: 03/23/2022
Posts: 1
Peer Dsicovery doesn't work on M1 chip

We have built a demo where we can spin up DDS nodes within second inside our testing environment and have gotten it to work on x86 architecture, however when we moved our demo over to the apple M1 architecture we found that the peer discovery wouldn't connect the nodes.

From our knowdlege we believe we need an arm ".run" file for our DockerFile instead of the x86 file for it to work. I have provided a screenshot of the lines of code within our DockerFile we think needs to be arm specific instead of the previously mentioned x86 architecture

 

Organization:
Howard's picture
Offline
Last seen: 1 day 14 hours ago
Joined: 11/29/2012
Posts: 565

Yes, as with all binary code, you need libraries that work with your CPU, Operating System and System libraries (e.g, compiler/glibc).  However, there is no evaluation (lm) version for the ARM cpu.  In addition, the ARM CPU is not supported as a host development platform.  It is supported as a target platform.  Not sure what you are trying to do, but you usually don't need to install the entire development SDK just to run an application that uses Connext DDS.

PK_RTI's picture
Offline
Last seen: 2 months 2 days ago
Joined: 07/01/2021
Posts: 27

According to an Apple M1 expert, this is the latest information on your query.

The tools and launcher should all run fine as the M1 uses Rosetta to emulate the Intel platform. The libraries will not work out of the box. The current libraries that RTI has are for Intel Darwin platform. So you have to tell the Mac to build the application for the Intel platform.

You can do that with the following command from the command line:
   /usr/bin/arch -x86_64 /bin/zsh --login

Once you run this command, you can then use
make -f makefile
to build the application.

Full support for the M1 will be available in the upcoming Connext 6.1.1 release.

Howard's picture
Offline
Last seen: 1 day 14 hours ago
Joined: 11/29/2012
Posts: 565

Oops, thanks PK.  Thought the M1 was an ARM-based cpu.