You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] IMX: Topology build fails after recent change #9997
@lgirdwood can you add the alsatplg in the PATH variable? Is it OK to revert this change?
@dbaluta do you mean adding the local ALSA binaries to the users $PATH ? This could conflict with system ALSA/audio. Can you share the error you are seeing. Running the script should build all topologies.
/home/bamboo/sof_dir/sof/tools/../../tools/bin/alsatplg --version returned
status: No such file or directory,
Call Stack (most recent call first):
topology/CMakeLists.txt:34 (alsatplg_version)
CMake Warning at topology/CMakeLists.txt:36 (message):
/home/bamboo/sof_dir/sof/tools/../../tools/bin/alsatplg failed: No such file or directory; all topologies skipped
And it expected because SOF scripts expect the alsatplg to be installed in a custom directory /home/bamboo/sof_dir/sof/tools/../../tools/bin/alsatplg but on our machine the alsatplg local compiled version is installed in a different directory.
My concern here is that we force the users to install the ALSA tool in a hardcoded location instead of a flexible location.
We quickly fixed this by creating a link from /home/bamboo/sof_dir/sof/tools/../../tools/bin/alsatplg to where our alsatplg is installed.
I don't have a strong opinion on this, but I would like to have an option to use a different location OR at least use the system alsatplg. We the current implementation is no longer possible, user is forced to install the alsa tools in a exact location, otherwise the build will fail.
@dbaluta We discussed these concerns in #9870 review and e.g. about the location in #9870 (comment) . SOF_WORKSPACE (I admit, I didn't realize we had this in our original public docs) can be used to change adjust the install location, but there's no option to use system tplg.
@dbaluta Any takes how we want to proceed? I'd need to backport Liam's PR to stable-v2.2 to unblock the CI, but yeah, do we stick this approach on main.
Mandating local ALSA installs does have the nice property that we can introduce topology features changes in SOF pull-requests, adding the alsa-lib/utils changes at the same time as the changes to topologies, and have them tested at same time. Now we frequently have issues with people using old alsa-lib/utils (either omission or mistake in tool install), resulting in buggy topologies binaries.
I don't have a strong opinion on this, but I would like to have an option to use a different location OR at least use the system alsatplg. We the current implementation is no longer possible, user is forced to install the alsa tools in a exact location, otherwise the build will fail.
@dbaluta So I guess this also is needed by Yocto? as it 's ALSA recipe is probably very much more bleeding edge than say Fedora or Ubuntu (which is why building with system ALSA does not work). No objections though if a command line arg is needed to override ALSA $PATH
Activity
dbaluta commentedon May 9, 2025
@lgirdwood can you add the alsatplg in the PATH variable? Is it OK to revert this change?
lgirdwood commentedon May 9, 2025
@dbaluta do you mean adding the local ALSA binaries to the users $PATH ? This could conflict with system ALSA/audio. Can you share the error you are seeing. Running the script should build all topologies.
dbaluta commentedon May 13, 2025
And it expected because SOF scripts expect the alsatplg to be installed in a custom directory
/home/bamboo/sof_dir/sof/tools/../../tools/bin/alsatplgbut on our machine the alsatplg local compiled version is installed in a different directory.My concern here is that we force the users to install the ALSA tool in a hardcoded location instead of a flexible location.
We quickly fixed this by creating a link from /home/bamboo/sof_dir/sof/tools/../../tools/bin/alsatplg to where our
alsatplgis installed.I don't have a strong opinion on this, but I would like to have an option to use a different location OR at least use the system alsatplg. We the current implementation is no longer possible, user is forced to install the alsa tools in a exact location, otherwise the build will fail.
kv2019i commentedon May 13, 2025
@dbaluta We discussed these concerns in #9870 review and e.g. about the location in #9870 (comment) . SOF_WORKSPACE (I admit, I didn't realize we had this in our original public docs) can be used to change adjust the install location, but there's no option to use system tplg.
kv2019i commentedon May 16, 2025
@dbaluta Any takes how we want to proceed? I'd need to backport Liam's PR to stable-v2.2 to unblock the CI, but yeah, do we stick this approach on main.
Mandating local ALSA installs does have the nice property that we can introduce topology features changes in SOF pull-requests, adding the alsa-lib/utils changes at the same time as the changes to topologies, and have them tested at same time. Now we frequently have issues with people using old alsa-lib/utils (either omission or mistake in tool install), resulting in buggy topologies binaries.
lgirdwood commentedon May 16, 2025
@dbaluta So I guess this also is needed by Yocto? as it 's ALSA recipe is probably very much more bleeding edge than say Fedora or Ubuntu (which is why building with system ALSA does not work). No objections though if a command line arg is needed to override ALSA $PATH
dbaluta commentedon May 16, 2025
@kv2019i @lgirdwood we fixed this internally in Yocto for now, we can close this and will come back maybe with an improvement if necessary later.