Error building CST 3.3.1 for Ubuntu 22.04

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Error building CST 3.3.1 for Ubuntu 22.04

2,184件の閲覧回数
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 件の賞賛
返信
6 返答(返信)

2,114件の閲覧回数
robert_taylor
Contributor I

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

 

0 件の賞賛
返信

2,113件の閲覧回数
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 件の賞賛
返信

2,160件の閲覧回数
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 件の賞賛
返信

2,130件の閲覧回数
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 件の賞賛
返信

2,117件の閲覧回数
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 件の賞賛
返信

1,999件の閲覧回数
WalterSchweizer
Contributor III
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 件の賞賛
返信