# ❗ Build Failure: BL2\_BASE – "invalid suffix 'x' on integer constant"

**URL:** <https://community.solid-run.com/t/build-failure-bl2-base-invalid-suffix-x-on-integer-constant/1029>\
**Category:** NXP LX2160\
**Created:** [June 19, 2025, 12:04pm UTC](https://community.solid-run.com/t/build-failure-bl2-base-invalid-suffix-x-on-integer-constant/1029 "2025-06-19T12:04:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vaidic](https://avatars.discourse-cdn.com/v4/letter/v/bb73d2/32.png) [@vaidic](https://community.solid-run.com/u/vaidic)\
**Post date:** [June 19, 2025, 12:04pm UTC](https://community.solid-run.com/t/build-failure-bl2-base-invalid-suffix-x-on-integer-constant/1029/1 "2025-06-19T12:04:42Z")

</div>

I’m working on building the img for the **LX2162A Clearfog board** using the `lx2160a_build` setup.  
[https://github.com/SolidRun/lx2160a\_build/blob/develop-lsdk-21.08/README.md](https://github.com/SolidRun/lx2160a_build/blob/develop-lsdk-21.08/README.md)  
I’ve set the `TARGET` as `LX2162A_SOM_CLEARFOG_18_9_0` and am running the build with the correct environment variables.

However, the build fails with the following compiler error:

```auto
plat/nxp/common/setup/ls_bl2_el3_setup.c: In function ‘ls_bl2_el3_plat_arch_setup’:
<command-line>: error: invalid suffix "x" on integer constant
plat/nxp/common/setup/ls_bl2_el3_setup.c:189:31: note: in expansion of macro ‘BL2_BASE’
  189 | BL2_BASE,
      | ^ ~~~~~~~
<command-line>: error: invalid suffix "x" on integer constant
plat/nxp/common/setup/ls_bl2_el3_setup.c:190:63: note: in expansion of macro ‘BL2_BASE’
  190 | (unsigned long)(& __BL2_END__ ) - BL2_BASE,
      | ^ ~~~~~~~

```

I’m building natively on the board (Ubuntu 22.04) using the runme.sh script.

```auto
./runme.sh SERDES=LX2162A_CLEARFOG_18_9_0

```

Any help or insight is appreciated.  
Thanks!

---

<div class="post-metadata">

**Author:** ![Manis](https://avatars.discourse-cdn.com/v4/letter/m/aeb1de/32.png) [@Manis](https://community.solid-run.com/u/Manis)\
**Post date:** [July 26, 2025, 7:29pm UTC](https://community.solid-run.com/t/build-failure-bl2-base-invalid-suffix-x-on-integer-constant/1029/2 "2025-07-26T19:29:33Z")

</div>

Do you have the `bc` command installed on your build machine?

When it’s not installed, you get errors like the one you’re seeing above.

Alternatively, there is a pull request in the GitHub repository ([#92](https://github.com/SolidRun/lx2160a_build/pull/92)) which patches the Makefiles so that they don’t require bc anymore.
