Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build fails for ./build.sh -npu -opt on Ubuntu 24.10 #8790

Open
jgmelber opened this issue Feb 25, 2025 · 1 comment
Open

Build fails for ./build.sh -npu -opt on Ubuntu 24.10 #8790

jgmelber opened this issue Feb 25, 2025 · 1 comment

Comments

@jgmelber
Copy link

jgmelber commented Feb 25, 2025

This is building for use with the xdna-driver @ 8b4eefc and XRT @f02de26

-- Decoding ascii file /home/jmelber/xdna-driver/xrt/src/runtime_src/core/common/aiebu/test/aie2-ctrlcode/basic/ml_txn.b64 to binary file ml_txn.bin
-- Decoding ascii file /home/jmelber/xdna-driver/xrt/src/runtime_src/core/common/aiebu/test/aie2-ctrlcode/basic/ctrl_pkt0.b64 to binary file ctrl_pkt0.bin
/home/jmelber/xdna-driver/xrt/src/runtime_src/core/common/aiebu/lib/aie-rt/driver/src/common/xaie_helper.c: In function ‘XAie_Txn_MergeSync’:
/home/jmelber/xdna-driver/xrt/src/runtime_src/core/common/aiebu/lib/aie-rt/driver/src/common/xaie_helper.c:2861:57: error: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument [-Werror=calloc-transposed-args]
 2861 |                 u32* tctDataBuff = (u32 *)calloc(sizeof(tct_op_t), 1);
      |                                                         ^~~~~~~~
/home/jmelber/xdna-driver/xrt/src/runtime_src/core/common/aiebu/lib/aie-rt/driver/src/common/xaie_helper.c:2861:57: note: earlier argument should specify number of elements, later size of each element
/home/jmelber/xdna-driver/xrt/src/runtime_src/core/common/aiebu/lib/aie-rt/driver/src/common/xaie_helper.c: In function ‘XAie_Txn_DdrAddressPatch’:
/home/jmelber/xdna-driver/xrt/src/runtime_src/core/common/aiebu/lib/aie-rt/driver/src/common/xaie_helper.c:2917:73: error: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument [-Werror=calloc-transposed-args]
 2917 |                 patch_op_t* patchDataBuff = (patch_op_t *)calloc(sizeof(patch_op_t), 1);
      |                                                                         ^~~~~~~~~~
/home/jmelber/xdna-driver/xrt/src/runtime_src/core/common/aiebu/lib/aie-rt/driver/src/common/xaie_helper.c:2917:73: note: earlier argument should specify number of elements, later size of each element
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant