|
[Sponsors] |
[OpenFOAM.org] ./Allwmake fatal error when installing on raspberry pi |
![]() |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
![]() |
![]() |
#1 |
New Member
Sean
Join Date: Apr 2020
Location: London
Posts: 2
Rep Power: 0 ![]() |
Hi,
I am very new to OpenFOAM and Linux and am trying to install OpenFOAM onto a raspberry pi 4 using this guide http://www.wolfdynamics.com/images/r...nFOAM-RPI3.pdf Everything seems to be working however when I reach the last step of compiling the following error is returned Allwmake /root/OpenFOAM/OpenFOAM-dev gcc -DlinuxARM7 -DWM_ARCH_OPTION=32 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -O3 -floop-optimize -falign-loops -falign-labels -falign-functions -falign-jumps -fprefetch-loop-arrays -mcpu=cortex-a9 -mfpu=vfpv3-d16 -mfloat-abi=softfp -fPIC dirToString.c -o /root/OpenFOAM/OpenFOAM-dev/wmake/platforms/linuxARM7Gcc/dirToString In file included from /usr/include/features.h:448, from /usr/include/arm-linux-gnueabihf/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from dirToString.c:43: /usr/include/arm-linux-gnueabihf/gnu/stubs.h:7:11: fatal error: gnu/stubs-soft.h: No such file or directory # include <gnu/stubs-soft.h> ^~~~~~~~~~~~~~~~~~ compilation terminated. make: *** [Makefile:68: /root/OpenFOAM/OpenFOAM-dev/wmake/platforms/linuxARM7Gcc/dirToString] Error 1 root@raspberrypi:~/OpenFOAM/OpenFOAM-dev# If anyone has any advice on this it would be greatly appreciated |
|
![]() |
![]() |
![]() |
![]() |
#2 |
New Member
|
In directory wmake/rules/linuxARM7Gcc, for two files, cOpt and c++Opt, option '-mfloat-abi=softfp', change 'softfp' to 'hard'.
ARM7 in RPI4 has a hardware floating point processor. The developers probably didn't see any need to support soft-float calling conventions. See https://gcc.gnu.org/onlinedocs/gcc/ARM-Options.html: -mfloat-abi=name Specifies which floating-point ABI to use. Permissible values are: ‘soft’, ‘softfp’ and ‘hard’. Specifying ‘soft’ causes GCC to generate output containing library calls for floating-point operations. ‘softfp’ allows the generation of code using hardware floating-point instructions, but still uses the soft-float calling conventions. ‘hard’ allows generation of floating-point instructions and uses FPU-specific calling conventions. The default depends on the specific target configuration. Note that the hard-float and soft-float ABIs are not link-compatible; you must compile your entire program with the same ABI, and link with a compatible set of libraries. |
|
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
SU2-7.0.1 on ubuntu 18.04 | hyunko | SU2 Installation | 7 | March 16, 2020 04:37 |
[OpenFOAM.com] erros in Allwmake | jiwon | OpenFOAM Installation | 7 | December 30, 2015 12:34 |
OpenFOAM15 installables are incomplete problem with paraFoam | tryingof | OpenFOAM Bugs | 17 | December 7, 2008 04:41 |
Problem of compilation OF 14Allwmake command not found | erik_d | OpenFOAM Bugs | 13 | September 13, 2008 21:45 |
error while compiling the USER Sub routine | CFD user | CFX | 3 | November 25, 2002 15:16 |