bootlin / toolchains-builder

http://toolchains.free-electrons.com
89 stars 27 forks source link

The aarch64 toolchain (gcc 10.2) isn't working #48

Closed sergey-suloev closed 2 years ago

sergey-suloev commented 2 years ago

The aarch64 toolchain (gcc 10.2) isn't working

Running configuration tests ... Checking for machine tuple...

sergey-suloev commented 2 years ago

The libraries that it couldn't find were located in /home/sergey/Projects/orpaltech/boards/nanopi-a64/sysroot/usr/lib/aarch64-linux-gnu folder.

tpetazzoni commented 2 years ago

This doesn't seem to be related to the toolchain, but to how you are using it. You're using a custom sysroot, and not the original toolchain sysroot, so all sort of things can go wrong if your sysroot is incorrect. I'm afraid your bug report isn't a bug about the toochain being wrong, but your use of the toolchain being wrong. You would have the same problem with other toolchains.

sergey-suloev commented 2 years ago

@tpetazzoni linaro 7.5 works fine. I just wanted to move to a newer gcc. I am using bullseye with glibc 2.31 and I selected the corresponding toolchain from your list which is for aarch64, gcc 10, and glibc 2.31. I am not sure what should be wrong with my sysroot. The libraries that were "not found" were located in /usr/lib/aarch64-linux-gnu within sysroot.

sergey-suloev commented 2 years ago

@tpetazzoni could you provide some documentation about using your toolchains ? they don't seem to be typical. For example, linaro toolchains always work with no issues.

sergey-suloev commented 2 years ago

I think I see where the issue is. it is looking into /home/sergey/Projects/orpaltech/boards/nanopi-a64/sysroot/lib/aarch64-buildroot-linux-gnu for the libraries, but the default debian sysroot has /lib/aarch64-linux-gnu directory. There should be a way to setup the toolchain for the correct folder name.

tpetazzoni commented 2 years ago

They should work mostly like Linaro toolchains. If they don't, could you please provide step by step reproduction details, in a procedure that works with Linaro toolchains, but not Bootlin toolchains ? Thanks!