Why will there be issues while trying to build the Boot to Gecko (B2G) project on my x86-64 Ubuntu
Why will there be issues while trying to build the Boot to Gecko (B2G) project on my x86-64 Ubuntu 12.10 system. The Gecko build fails when attempting to link
librt
, even though the library is present on my system.
When running the build command for Gecko:
The error occurs during the linking step:
I expected the build process to complete successfully, as the necessary libraries, including librt
, are present on my system.
The linker (ld
) fails to find librt
despite the library being installed. The following command shows that librt.so
exists in several locations:
Despite the presence of the library in both x86_64
and i386
directories, the build fails to locate librt
.
Just worried why the linker is unable to find librt
even though it’s installed and located in the system, any help?2 Replies
@Marvee Amasi The issue you're facing is likely due to a mismatch between the 32-bit toolchain you're using and the 64-bit libraries installed on your system. The build process is trying to link against
librt
, but it requires the 32-bit version, while your system likely has only the 64-bit version available.
To fix this, you need to install the 32-bit version of librt
and its dependencies. You can do this by running:
Afterward, ensure the 32-bit libraries are in the linker’s search path and then retry the build. This should resolve the issue and allow the build to proceed successfully.It did ✅