CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Installation

[OpenFOAM.org] ./Allwmake fatal error when installing on raspberry pi

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 22, 2020, 07:22
Default ./Allwmake fatal error when installing on raspberry pi
  #1
New Member
 
Sean
Join Date: Apr 2020
Location: London
Posts: 2
Rep Power: 0
sew234 is on a distinguished road
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
sew234 is offline   Reply With Quote

Old   May 28, 2020, 05:00
Default
  #2
New Member
 
Join Date: May 2020
Posts: 29
Blog Entries: 1
Rep Power: 5
Mars409 is on a distinguished road
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.
Mars409 is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
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


All times are GMT -4. The time now is 15:15.