-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
0.3.7 fails to compile on arm32, while 0.3.6 compiles just fine #2231
Comments
Yes, it is the same:
I'm doing just this:
However, I can see the automatically used compiler flags are different in both cases. 0.3.6:
0.3.7:
|
Are these from the 32bit builds? The 0.3.7 one seems to miss a -march hint for the compiler, so it could be that my #1987 was incomplete |
Yes, these are both arm32 builds. The 0.3.7 is also missing -marm. Should it be auto-detected? |
It should be, but it looks as if the auto-detection still sees it as an aarch64 system when it is running a 32bit os. (Not sure why this is, as that informations is derived from either |
Now I see what is happening. I'm using aarch64 kernel and both arm32 and aarch64 userland. Then even in arm32 userland the
Strange that 0.3.6 gets it right. So using arm32 kernel: 0.3.7 compiles just fine with simple However using aarch64 kernel: 0.3.7 fails the same way as in my initial post even when I specify |
So I got myself a Pi4B to debug this - cpuinfo in raspbian appears to be a complete mess (raspberrypi/linux#3022), and the default raspbian install appears to be a purely 32bit armeabihf environment despite the ARMV8 cpu. How does one get an aarch64 kernel on this thing, and optionally the aarch64 userland to match ? (Though for now I am primarily interested in reproducing your mixed arm32/arm64 setup) |
Great :) First you need Sakaki's pre-compiled aarch64 kernel. Better wait a bit, she promised to fix problem with WiFi later today. Untar it to But before you also need to run Then for aarch64 userland the easiest is schroot with vanilla Debian Buster aarch64.
Then you fill this into the file /etc/schroot/chroot.d/pi64:
you may need to install e.g. sudo as well, otherwise you'd not be able to install anything once inside of the chroot:
and you can chroot yourself into aarch64 userland: |
The new Sakaki's kernel 4.19.67.20190827 is out. |
Bisected to #2110 (and we even had misgivings about using |
Oh, that was fast :) Could you, please, look into #2230, once you already have RPi4? You would need a small heatsink and a small fan though, to avoid thermal throttling. Or alternatively you can test small problem sizes. |
No promises as I still have to try and schroot myself in the foot... also my Pi4 came with a whole collection of tiny heatsinks but no fan. |
Hello,
I was compiling OpenBlas-0.3.7 on a Raspberry Pi4 using recent arm32 Raspbian. I did just
make -j4
and got en error:On the other hand, the version 0.3.6 compiles just fine and both versions compile fine on aarch64.
The text was updated successfully, but these errors were encountered: