Error building CST 3.3.1 for Ubuntu 22.04

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Error building CST 3.3.1 for Ubuntu 22.04

1,293 Views
robert_taylor
Contributor I

Hi

I'm trying to build CST 3.3.1 in Ubuntu 22.04 and it immediately fails with

kmx-cst/code/back_end-engine/src$ make
make: *** No rule to make target '../../../linux64/lib/libfrontend.a', needed by 'cst'. Stop.

 

This lib is indeed missing and I cant locate it in your site


Thanks in advance

0 Kudos
Reply
6 Replies

1,223 Views
robert_taylor
Contributor I

How about 3.1.0 build in Ubuntu 22.04? Has that been tested?

 

0 Kudos
Reply

1,222 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

No, The CST version go with the yocto BSP and they were testing on Ubuntu 18.04, next BSP will tested on ubuntu 20 or ubuntu 22.

 

0 Kudos
Reply

1,269 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello,

You must try ubuntu 18.04 because ubuntu 22.04 was not tested with this version of CTS.

Regards

0 Kudos
Reply

1,239 Views
robert_taylor
Contributor I

Thanks for the reply. 

We build the CST and then create a debian with custom scripts calling a backend. We need the debian to run on Ubuntu 22.04 for signing purposes. 

I managed to compile this against OpenSSL 1.1.1 and then build the debian but we see some funky behaviour. Are we able to hack 3.1.0 the same way?

Jammy is now OpenSSL 3.0.0 do you plan to upgrade the CST? 

0 Kudos
Reply

1,226 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Yes, we planned to refresh the cst image but right now this just happen when you build on ubuntu 22.04. So far there is no schedule when cst will be available.

Regards

0 Kudos
Reply

1,108 Views
WalterSchweizer
Contributor II
NXP uses weaken to solve conflict in linking.
On Ubuntu 22.04(LTS) this fails to link cst with libcrypto.

The patch fixes the conflict in the code itself.
It restricts the scope of err_msg to the module.

Walter
----
diff --git a/code/cst/code/build/make/rules.mk b/code/cst/code/build/make/rules.mk
index 1c0842b..9c46cc4 100644
--- a/code/cst/code/build/make/rules.mk
+++ b/code/cst/code/build/make/rules.mk
@@ -25,11 +25,11 @@ LFLAGS := -t
%.a:
@echo "Create archive $@"
$(AR) $(ARFLAGS) $@ $^
-ifneq ($(OSTYPE),mingw32)
-ifneq ($(OSTYPE),osx)
- $(OBJCOPY) --weaken $@
-endif
-endif
+#ifneq ($(OSTYPE),mingw32)
+#ifneq ($(OSTYPE),osx)
+# $(OBJCOPY) --weaken $@
+#endif
+#endif
 
%.exe:
@echo "Link $@"
diff --git a/code/cst/code/front_end/src/acst.c b/code/cst/code/front_end/src/acst.c
index fb1e8aa..1e993ee 100644
--- a/code/cst/code/front_end/src/acst.c
+++ b/code/cst/code/front_end/src/acst.c
@@ -65,7 +65,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
/*===========================================================================
LOCAL VARIABLES
=============================================================================*/
-char err_msg[MAX_ERR_MSG_BYTES];
+static char err_msg[MAX_ERR_MSG_BYTES];
 
/*===========================================================================
LOCAL FUNCTION PROTOTYPES
diff --git a/code/cst/code/front_end/src/misc_helper.c b/code/cst/code/front_end/src/misc_helper.c
index 678dc17..9014b2a 100644
--- a/code/cst/code/front_end/src/misc_helper.c
+++ b/code/cst/code/front_end/src/misc_helper.c
@@ -60,7 +60,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
/*===========================================================================
LOCAL VARIABLES
=============================================================================*/
-char err_msg[MAX_ERR_MSG_BYTES];
+static char err_msg[MAX_ERR_MSG_BYTES];
 
/*===========================================================================
LOCAL FUNCTION PROTOTYPES
0 Kudos
Reply