Hi,
I'm trying to compile OpenFOAM-6 on an ARMv7 Chromebook running Parabola GNU/Linux. After I start compiling, I very quickly run into the following error: Code:
$ ./Allwmake -j Perhaps something to do with the -mfloat-abi=softfp compiler option? |
Quick answer: Very likely, yes, it's related to using softfp by default...
A quick review online for this topic on what I saw in the past and with ARM, there are a ton of FPUs out there... I'm not sure how we can figure out which ones are better or should be used... for example, in post #2 here: https://www.cfd-online.com/Forums/op...tml#post534662 - each ARM uses or can use its own FPU type... A bit more researching online and it's not entirely clear to me if the problem you're having is due to an incomplete GCC installation or if the ARMv7 model you have does not support softfp... Running: Code:
cat /proc/cpuinfo edit: Another example of compile flags customization needed for ARM: https://openfoamwiki.net/index.php/I...rchitecture.29 |
@wyldckat:
Thanks for the info. I actually managed to figure it out (I think): The info pages for gcc indicate that -mfloat-abi seems to be an ARM-specific compiler flag that has something to do with floating point operations. My /usr/include/gnu folder has a stubs-hard.h, but not a stubs-soft.h. So, I changed the flag to -mfloat-abi=hard (in the settings in $WM_DIR/rules) and that seemed to resolve it. It compiled fine and, as far as I can tell, OF seems to be working. I have no idea what stubs-soft vs stubs-hard means, or what (if any) effect it would have on OF ... |
Quick answer: "soft" and "hard" refer to which FPU to use:
|
Ok, that makes sense. Thanks again for your help.
|
Installing OpenFOAM to raspberry pi
Hi,
I am aware this is an old thread however am having a similar issue. I am very new to Linux and OpenFOAM and am trying to install it to a raspberry pi 4 using the following instructions. http://www.wolfdynamics.com/images/r...nFOAM-RPI3.pdf When I reach the last step and try to compile I am getting the same error as the person above. If anyone has any advice on how to solve it would be greatly appreciated. |
All times are GMT -4. The time now is 03:32. |