L4Re compile fail for S32E

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

L4Re compile fail for S32E

Jump to solution
4,227 Views
WX_H
Contributor II

Hello, NXP Experts,

I am using Ubuntu version 20.04, and the GreenVIP version is 1.1.0. According to the description of the L4Re build environment in section ‘5.9.2.3 Build Environment‘ of the ‘UG_S32ZE_GreenVIP.pdf‘, However, When I executed the make command for the first time to compile, I received a prompt that the GCC version was too low.

WX_H_1-1748590121866.png

I ignored this error and then executed the `make` command a second time, which resulted in an error message indicating the absence of the `libc_be_minima1_14re` library.

WX_H_0-1748589963927.png

How to solve this issue?

Thanks.

0 Kudos
Reply
1 Solution
3,784 Views
Joey_z
NXP Employee
NXP Employee

hi,WX_H

Sorry for the late.

It would be suggested you to try with these commands instead, on a fresh workspace/directory:

ham init -u https://github.com/kernkonzept/manifest -f nommu.xml -b t2023-10-27-nommu

ham sync
ham info

BR

Joey

View solution in original post

0 Kudos
Reply
13 Replies
3,785 Views
Joey_z
NXP Employee
NXP Employee

hi,WX_H

Sorry for the late.

It would be suggested you to try with these commands instead, on a fresh workspace/directory:

ham init -u https://github.com/kernkonzept/manifest -f nommu.xml -b t2023-10-27-nommu

ham sync
ham info

BR

Joey

0 Kudos
Reply
3,771 Views
WX_H
Contributor II

HI, Joey_z

Thank you very much for your help. The ELF file can now be successfully compiled.

WX_H_0-1750253911195.png

After using the commands `ham init -u https://github.com/kernkonzept/manifest -f nommu.xml -b t2023-10-27-nommu` and `ham sync` to synchronize the source code, the previous errors are now resolved.

Moreover, GCC needs to use the version gcc-arm-none-eabi-9.2.0-1 as specified in the UG_S32ZE_GreenVIP.pdf document.

Thanks

Tags (2)
0 Kudos
Reply
4,151 Views
WX_H
Contributor II

Hello, NXP Experts,

Do you know how to generate the libc_be_minimal_14re library?

WX_H_0-1748928557745.png

I noticed that the libc_be_minimal_14re library is listed as a dependency in the Makefile located at:
S32ZE_GreenVIP_1.1.1/framework/s32e2/RTU_1_L4RE/L4Re/usr_pkg/tvmm-ctrl/server/src/

However, I couldn’t find how this library (libc_be_minimal_14re) is generated in the L4Re repository.

WX_H_1-1748928582081.png

Could you let me know if you have any information about this?

Thanks.

0 Kudos
Reply
3,930 Views
Joey_z
NXP Employee
NXP Employee

hi,WX_H

Sorry for the reply late.

There is should that the ham sync does not fetch all the source file correctly. Due to company policy, source files cannot be shared. Please check the ham download content.

In addition, you can try to enter ham checkout t2023-10-27-nommu after ham sync gvp_rtu_ 1. If you still can't download it completely and compile it, you can try this method.

BR

Joey

0 Kudos
Reply
3,904 Views
WX_H
Contributor II

Hi,  Joey_z

Thanks for your reply!

I've tried the method you mentioned, but I'm still getting the same error message as before.

WX_H_0-1749612347020.png

The synchronization was successful, but the libc_be_minimal_l4re library is still missing.

WX_H_1-1749612380341.png

I'm currently using an Ubuntu 20.04 environment with GCC 9.2.0, but compilation fails with versions 10.2 and 11.2 as well.

Could you share the environment where you successfully compiled it? I'd like to try compiling in the same environment. If possible, could you also provide the compilation steps?

Thanks.

0 Kudos
Reply
3,893 Views
Joey_z
NXP Employee
NXP Employee

hi,WX_H

Thank you for your reply.

Do you use the commend as shown the following picture as the ham sync?

Joey_z_0-1749623567674.png

The meaning of entering "ham checkout t2023-10-27-nommu" after "ham sync" is to switch to the tag "t2023-10-27-nommu"

BR

Joey

0 Kudos
Reply
3,889 Views
WX_H
Contributor II

Hi, Joey_z

Thank you for your reply.

Yes, after using ham checkout t2023-10-27-nommu, I still get missing library errors when running make. Additionally, I noticed that executing this command does not actually create the nommu branch.

WX_H_0-1749627741430.png

After executing the command ham checkout -m -b nommu t2023-10-27-nommu manifest, I was able to switch to the nommu branch.

WX_H_1-1749627911643.png

However, the compilation still fails.

Thanks.

0 Kudos
Reply
3,880 Views
Joey_z
NXP Employee
NXP Employee

hi,WX_H

Thank you for your reply.

This is a problem with the software package download. I have reported this issue to the software department and am seeking other ways to help you. I will reply to you as soon as there is a result.

BR

Joey

0 Kudos
Reply
4,126 Views
Joey_z
NXP Employee
NXP Employee

hi,

I downloaded version 12 of the compiler from the link below and no longer reported version errors. I will provide you with an internal consultation regarding the issue of inconsistent compiler versions mentioned in the manual and ReleaseNotes.

https://developer.arm.com/downloads/-/arm-gnu-toolchain-downloads

Also, have you set up the build environment in the following way?

Joey_z_0-1748948913832.png

BR

Joey

0 Kudos
Reply
4,111 Views
WX_H
Contributor II

Hi, Joey_z

Thank you for your reply.

Yes, I configured everything according to the documentation, but I'm still getting errors when running make.

After switching to GCC 11.2, the "GCC version too low" error no longer appears, but I encountered a new error:

WX_H_0-1749000192088.png

After commenting out the memccpy function in the file RTU_1_L4RE/L4Re/src/fiasco/src/lib/libc/include/cstring, the error is no longer reported.

WX_H_1-1749000383889.png

However, it still reports the missing libc_be_minimal_14re library error.

WX_H_2-1749000541139.png

How to solve this issue?

Thanks.

0 Kudos
Reply
4,096 Views
Joey_z
NXP Employee
NXP Employee

hi,WX_H

Thank you for reply.

I have been reproduced your problem, I will reply to you as soon as I get the result.

BR

Joey

0 Kudos
Reply
4,209 Views
Joey_z
NXP Employee
NXP Employee

hi,WX_H

Thank you for contacting us.

It is recommended to try again using the recommended version of gcc.

Joey_z_0-1748599824391.png

Hope it can help you.

BR

Joey

0 Kudos
Reply
4,164 Views
WX_H
Contributor II

Hi, Joey_z

Thank you for your reply.

I followed your suggestion and used GCC 10.2, but I'm still getting the same error.When I executed the make command for the first time to compile, I received a prompt that the GCC version was too low.

WX_H_0-1748919051506.png

I ignored this error and then executed the `make` command a second time, which resulted in an error message indicating the absence of the `libc_be_minima1_14re` library.

WX_H_1-1748919081191.png

How to solve this issue? I have another question. In section 5.9.2.3 of the UG_S32ZE_GreenVIP.pdf document, under "Software Installation / Packages Prerequisites," it mentions installing gcc-arm-none-elf-eabi-9.2.0-1.tar.xz. Does this mean that GCC 9.2 should be used to compile L4Re?

WX_H_2-1748919119663.png

Thanks.

0 Kudos
Reply