# Jatpack 5.0.0/5.0.1 compilation errors

**URL:** <https://forums.developer.nvidia.com/t/jatpack-5-0-0-5-0-1-compilation-errors/215327>\
**Category:** Jetson Xavier NX\
**Tags:** compile, kernel\
**Created:** [May 23, 2022, 1:37pm UTC](https://forums.developer.nvidia.com/t/jatpack-5-0-0-5-0-1-compilation-errors/215327 "2022-05-23T13:37:51Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![matanh](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@matanh](https://forums.developer.nvidia.com/u/matanh)\
**Post date:** [May 23, 2022, 1:37pm UTC](https://forums.developer.nvidia.com/t/jatpack-5-0-0-5-0-1-compilation-errors/215327/1 "2022-05-23T13:37:51Z")

</div>

Hello,

There are few simple compilation errors on the Jetpack 5.0.0/5.0.1 Developer Preview that can easily fix for next version:

1. One compilation issue, and possible solution is as described here:

on

Linux\_for\_Tegra/sources/kernel/kernel-5.10/arch/arm64/boot/dts/Makefile

change

DTC\_INCLUDE += $(tegra-dtstree)/platform/t23x/common/kernel-dts

To

DTC\_INCLUDE += $(tegra-dtstree)/platform/t23x/common

Described here too:

[https://forums.developer.nvidia.com/t/jatpack-5-0-0-5-0-1-compilation-errors/215289](https://forums.developer.nvidia.com/t/jatpack-5-0-0-5-0-1-compilation-errors/215289)

1. Simple missing of quotation mark here:

on

Linux\_for\_Tegra/sources/kernel/nvidia/drivers/misc/Kconfig

source “drivers/misc/nvscic2c-pcie/Kconfig”

1. Missing include as described here:

> [@JetPack 5.0 DP - Building Kernel fails "osi\_core.h: No such file or directory"](https://forums.developer.nvidia.com/t/jetpack-5-0-dp-building-kernel-fails-osi-core-h-no-such-file-or-directory/211207):
>
> Dear NVidia Team While trying to build the DTBS and the Kernel for JetPack 5.0 DP, we stumbled across two errors. make dtbs fails with the error below. As we are building the device-tree for AGX Xavier, we commented out the builds for the Orin as a workaround. fatal error: t234-common-cvm/tegra234-cvm-p3701.dtsi: No such file or directory We try to build the kernel with the following steps: a. export ARCH=arm64 b. export CROSS\_COMPILE=/home/netipc/nvidia/nvidia\_sdk/toolchain/l4t-gcc/bi…

In file included from /home/netipc/nvidia/nvidia\_sdk/JetPack\_5.0\_DP\_Linux\_DP\_JETSON\_AGX\_XAVIER\_TARGETS/Linux\_for\_Tegra/sources/kernel/nvidia/drivers/net/ethernet/nvidia/nvethernet/ether\_linux.c:19:  
/home/netipc/nvidia/nvidia\_sdk/JetPack\_5.0\_DP\_Linux\_DP\_JETSON\_AGX\_XAVIER\_TARGETS/Linux\_for\_Tegra/sources/kernel/nvidia/drivers/net/ethernet/nvidia/nvethernet/ether\_linux.h:62:10: fatal error: osi\_core.h: No such file or directory  
62 | [**#include**](https://forums.developer.nvidia.com/tag/include)\<osi\_core.h\>

I am not sure what is the best way to solve that. I hacked the compilation by first compile the code as is. It stopped due the missing osi\_core.h. and then recompile, with the symlink.

---

<div class="post-metadata">

**Author:** ![DaneLLL](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/danelll/32/14043_2.png) [@DaneLLL](https://forums.developer.nvidia.com/u/DaneLLL)\
**Post date:** [May 24, 2022, 1:43am UTC](https://forums.developer.nvidia.com/t/jatpack-5-0-0-5-0-1-compilation-errors/215327/3 "2022-05-24T01:43:00Z")

</div>

Hi,  
So you have download kernel code of 5.0.1 DP and try to compile it for Xavier NX, and hit the failure. Is it correct? Ideally it should work by downloading the code and compiling it directly.

---

<div class="post-metadata">

**Author:** ![matanh](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@matanh](https://forums.developer.nvidia.com/u/matanh)\
**Post date:** [May 24, 2022, 6:17am UTC](https://forums.developer.nvidia.com/t/jatpack-5-0-0-5-0-1-compilation-errors/215327/4 "2022-05-24T06:17:31Z")

</div>

I didn’t try 5.0.1 yet. but from the changelog I didn’t see any note about that failures.  
And, also didn’t see the fixes on the sources repos

---

<div class="post-metadata">

**Author:** ![matanh](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@matanh](https://forums.developer.nvidia.com/u/matanh)\
**Post date:** [May 28, 2022, 8:18am UTC](https://forums.developer.nvidia.com/t/jatpack-5-0-0-5-0-1-compilation-errors/215327/5 "2022-05-28T08:18:33Z")

</div>

I still don’t see the fix on git://nv-tegra.nvidia.com/linux-nvidia.git.  
Can that be fixed?

---

<div class="post-metadata">

**Author:** ![DaneLLL](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/danelll/32/14043_2.png) [@DaneLLL](https://forums.developer.nvidia.com/u/DaneLLL)\
**Post date:** [May 30, 2022, 3:06am UTC](https://forums.developer.nvidia.com/t/jatpack-5-0-0-5-0-1-compilation-errors/215327/6 "2022-05-30T03:06:48Z")

</div>

Hi,  
We have fixed certain issues in DP 5.0.1. Please upgrade and give it a try. The kernel shall be compiled successfully if you follow the default steps.

There is a known issue if you fetch kernel source code through _source\_sync.sh_. Please get the code from source code package.

---

<div class="post-metadata">

**Author:** ![matanh](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@matanh](https://forums.developer.nvidia.com/u/matanh)\
**Post date:** [May 30, 2022, 4:42pm UTC](https://forums.developer.nvidia.com/t/jatpack-5-0-0-5-0-1-compilation-errors/215327/7 "2022-05-30T16:42:07Z")

</div>

Hi, I have downloaded the source directly, and the changes has not done.  
How the direct downloaded files and the git files are synced?

I can’t understand how all other can compile the code? because for sure there are syntax error on the first comment, for example.

---

<div class="post-metadata">

**Author:** ![matanh](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@matanh](https://forums.developer.nvidia.com/u/matanh)\
**Post date:** [June 2, 2022, 6:05pm UTC](https://forums.developer.nvidia.com/t/jatpack-5-0-0-5-0-1-compilation-errors/215327/8 "2022-06-02T18:05:09Z")

</div>

Hi,  
It does seems that some of the errors fixed:

1. Fixed - the folders moved
2. Not Fixed - There is still missing quotation mark. but for some reason it doesn’t fail the build now
3. Fixed - not sure how, but it fixed.

But still why its not on the Git?  
we do kernel changes, and without git tracing its hard to avoid errors.  
Is it possible to ensure pushing the changes to git? how responsible for that?

---

<div class="post-metadata">

**Author:** ![DaneLLL](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/danelll/32/14043_2.png) [@DaneLLL](https://forums.developer.nvidia.com/u/DaneLLL)\
**Post date:** [August 11, 2023, 1:12am UTC](https://forums.developer.nvidia.com/t/jatpack-5-0-0-5-0-1-compilation-errors/215327/9 "2023-08-11T01:12:01Z")

</div>

Hi,  
Please upgrade to latest Jetpack 5.1.2 and try. Certain issues are fixed in later releases.

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/system/32/68080_2.png) [@system](https://forums.developer.nvidia.com/u/system)\
**Post date:** [September 12, 2023, 7:15am UTC](https://forums.developer.nvidia.com/t/jatpack-5-0-0-5-0-1-compilation-errors/215327/11 "2023-09-12T07:15:38Z")

</div>

Closed on September 12, 2023, 7:15am UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
