Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 537864 Details for
Bug 659682
sci-libs/openfoam can't be build for arm64 (+ patch)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
fix arm64 build
2.4.0-r1_aarch64.patch (text/plain), 9.59 KB, created by
Paul Osmialowski
on 2018-06-30 14:11:16 UTC
(
hide
)
Description:
fix arm64 build
Filename:
MIME Type:
Creator:
Paul Osmialowski
Created:
2018-06-30 14:11:16 UTC
Size:
9.59 KB
patch
obsolete
>diff -ruN OpenFOAM-2.4.0.old/etc/config/settings.csh OpenFOAM-2.4.0/etc/config/settings.csh >--- OpenFOAM-2.4.0.old/etc/config/settings.csh 2015-05-22 10:50:30.000000000 +0100 >+++ OpenFOAM-2.4.0/etc/config/settings.csh 2018-06-30 05:48:49.222800000 +0100 >@@ -49,6 +49,16 @@ > setenv WM_ARCH linux > > switch (`uname -m`) >+ case aarch64: >+ setenv WM_ARCH linux64 >+ setenv WM_COMPILER_LIB_ARCH 64 >+ setenv WM_CC 'gcc' >+ setenv WM_CXX 'g++' >+ setenv WM_CFLAGS '-fPIC -DPIC' >+ setenv WM_CXXFLAGS '-fPIC -DPIC' >+ setenv WM_LDFLAGS '' >+ breaksw >+ > case i686: > breaksw > >diff -ruN OpenFOAM-2.4.0.old/etc/config/settings.sh OpenFOAM-2.4.0/etc/config/settings.sh >--- OpenFOAM-2.4.0.old/etc/config/settings.sh 2015-05-22 10:50:30.000000000 +0100 >+++ OpenFOAM-2.4.0/etc/config/settings.sh 2018-06-30 05:47:35.642800000 +0100 >@@ -70,6 +70,16 @@ > > # compiler specifics > case `uname -m` in >+ aarch64) >+ WM_ARCH=linux64 >+ export WM_COMPILER_LIB_ARCH=64 >+ export WM_CC='gcc' >+ export WM_CXX='g++' >+ export WM_CFLAGS='-fPIC -DPIC' >+ export WM_CXXFLAGS='-fPIC -DPIC' >+ export WM_LDFLAGS= >+ ;; >+ > i686) > ;; > >diff -ruN OpenFOAM-2.4.0.old/wmake/rules/linux64Clang/c OpenFOAM-2.4.0/wmake/rules/linux64Clang/c >--- OpenFOAM-2.4.0.old/wmake/rules/linux64Clang/c 2015-05-22 10:50:30.000000000 +0100 >+++ OpenFOAM-2.4.0/wmake/rules/linux64Clang/c 2018-06-30 05:50:24.022800000 +0100 >@@ -2,7 +2,7 @@ > > cWARN = -Wall > >-cc = clang -m64 >+cc = clang > > include $(RULES)/c$(WM_COMPILE_OPTION) > >diff -ruN OpenFOAM-2.4.0.old/wmake/rules/linux64Clang/c++ OpenFOAM-2.4.0/wmake/rules/linux64Clang/c++ >--- OpenFOAM-2.4.0.old/wmake/rules/linux64Clang/c++ 2015-05-22 10:50:30.000000000 +0100 >+++ OpenFOAM-2.4.0/wmake/rules/linux64Clang/c++ 2018-06-30 05:50:20.494800000 +0100 >@@ -7,7 +7,7 @@ > # Suppress CGAL warnings > c++CGALWARN = -Wno-c++11-extensions -Wno-sometimes-uninitialized -Wno-mismatched-tags > >-CC = clang++ -m64 >+CC = clang++ > > include $(RULES)/c++$(WM_COMPILE_OPTION) > >diff -ruN OpenFOAM-2.4.0.old/wmake/rules/linux64Gcc/c OpenFOAM-2.4.0/wmake/rules/linux64Gcc/c >--- OpenFOAM-2.4.0.old/wmake/rules/linux64Gcc/c 2015-05-22 10:50:30.000000000 +0100 >+++ OpenFOAM-2.4.0/wmake/rules/linux64Gcc/c 2018-06-30 05:50:15.566800000 +0100 >@@ -2,7 +2,7 @@ > > cWARN = -Wall > >-cc = gcc -m64 >+cc = gcc > > include $(RULES)/c$(WM_COMPILE_OPTION) > >diff -ruN OpenFOAM-2.4.0.old/wmake/rules/linux64Gcc/c++ OpenFOAM-2.4.0/wmake/rules/linux64Gcc/c++ >--- OpenFOAM-2.4.0.old/wmake/rules/linux64Gcc/c++ 2015-05-22 10:50:30.000000000 +0100 >+++ OpenFOAM-2.4.0/wmake/rules/linux64Gcc/c++ 2018-06-30 05:50:11.966800000 +0100 >@@ -2,7 +2,7 @@ > > c++WARN = -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor > >-CC = g++ -m64 >+CC = g++ > > include $(RULES)/c++$(WM_COMPILE_OPTION) > >diff -ruN OpenFOAM-2.4.0.old/wmake/rules/linux64Gcc++0x/c OpenFOAM-2.4.0/wmake/rules/linux64Gcc++0x/c >--- OpenFOAM-2.4.0.old/wmake/rules/linux64Gcc++0x/c 2015-05-22 10:50:30.000000000 +0100 >+++ OpenFOAM-2.4.0/wmake/rules/linux64Gcc++0x/c 2018-06-30 05:51:07.978800000 +0100 >@@ -2,7 +2,7 @@ > > cWARN = -Wall > >-cc = gcc -m64 >+cc = gcc > > include $(RULES)/c$(WM_COMPILE_OPTION) > >diff -ruN OpenFOAM-2.4.0.old/wmake/rules/linux64Gcc++0x/c++ OpenFOAM-2.4.0/wmake/rules/linux64Gcc++0x/c++ >--- OpenFOAM-2.4.0.old/wmake/rules/linux64Gcc++0x/c++ 2015-05-22 10:50:30.000000000 +0100 >+++ OpenFOAM-2.4.0/wmake/rules/linux64Gcc++0x/c++ 2018-06-30 05:51:03.574800000 +0100 >@@ -2,7 +2,7 @@ > > c++WARN = -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor > >-CC = g++ -m64 -std=c++0x >+CC = g++ -std=c++0x > > include $(RULES)/c++$(WM_COMPILE_OPTION) > >diff -ruN OpenFOAM-2.4.0.old/wmake/rules/linux64Gcc43/c OpenFOAM-2.4.0/wmake/rules/linux64Gcc43/c >--- OpenFOAM-2.4.0.old/wmake/rules/linux64Gcc43/c 2015-05-22 10:50:30.000000000 +0100 >+++ OpenFOAM-2.4.0/wmake/rules/linux64Gcc43/c 2018-06-30 05:49:49.342800000 +0100 >@@ -2,7 +2,7 @@ > > cWARN = -Wall > >-cc = gcc -m64 >+cc = gcc > > include $(RULES)/c$(WM_COMPILE_OPTION) > >diff -ruN OpenFOAM-2.4.0.old/wmake/rules/linux64Gcc43/c++ OpenFOAM-2.4.0/wmake/rules/linux64Gcc43/c++ >--- OpenFOAM-2.4.0.old/wmake/rules/linux64Gcc43/c++ 2015-05-22 10:50:30.000000000 +0100 >+++ OpenFOAM-2.4.0/wmake/rules/linux64Gcc43/c++ 2018-06-30 05:49:45.918800000 +0100 >@@ -2,7 +2,7 @@ > > c++WARN = -Wall -Wextra -Wno-unused-parameter -Wold-style-cast > >-CC = g++ -m64 >+CC = g++ > > include $(RULES)/c++$(WM_COMPILE_OPTION) > >diff -ruN OpenFOAM-2.4.0.old/wmake/rules/linux64Gcc44/c OpenFOAM-2.4.0/wmake/rules/linux64Gcc44/c >--- OpenFOAM-2.4.0.old/wmake/rules/linux64Gcc44/c 2015-05-22 10:50:30.000000000 +0100 >+++ OpenFOAM-2.4.0/wmake/rules/linux64Gcc44/c 2018-06-30 05:50:07.358800000 +0100 >@@ -2,7 +2,7 @@ > > cWARN = -Wall > >-cc = gcc -m64 >+cc = gcc > > include $(RULES)/c$(WM_COMPILE_OPTION) > >diff -ruN OpenFOAM-2.4.0.old/wmake/rules/linux64Gcc44/c++ OpenFOAM-2.4.0/wmake/rules/linux64Gcc44/c++ >--- OpenFOAM-2.4.0.old/wmake/rules/linux64Gcc44/c++ 2015-05-22 10:50:30.000000000 +0100 >+++ OpenFOAM-2.4.0/wmake/rules/linux64Gcc44/c++ 2018-06-30 05:50:03.222800000 +0100 >@@ -2,7 +2,7 @@ > > c++WARN = -Wall -Wextra -Wno-unused-parameter -Wold-style-cast > >-CC = g++ -m64 >+CC = g++ > > include $(RULES)/c++$(WM_COMPILE_OPTION) > >diff -ruN OpenFOAM-2.4.0.old/wmake/rules/linux64Gcc45/c OpenFOAM-2.4.0/wmake/rules/linux64Gcc45/c >--- OpenFOAM-2.4.0.old/wmake/rules/linux64Gcc45/c 2015-05-22 10:50:30.000000000 +0100 >+++ OpenFOAM-2.4.0/wmake/rules/linux64Gcc45/c 2018-06-30 05:51:17.022800000 +0100 >@@ -2,7 +2,7 @@ > > cWARN = -Wall > >-cc = gcc -m64 >+cc = gcc > > include $(RULES)/c$(WM_COMPILE_OPTION) > >diff -ruN OpenFOAM-2.4.0.old/wmake/rules/linux64Gcc45/c++ OpenFOAM-2.4.0/wmake/rules/linux64Gcc45/c++ >--- OpenFOAM-2.4.0.old/wmake/rules/linux64Gcc45/c++ 2015-05-22 10:50:30.000000000 +0100 >+++ OpenFOAM-2.4.0/wmake/rules/linux64Gcc45/c++ 2018-06-30 05:51:13.678800000 +0100 >@@ -2,7 +2,7 @@ > > c++WARN = -Wall -Wextra -Wno-unused-parameter -Wold-style-cast > >-CC = g++ -m64 >+CC = g++ > > include $(RULES)/c++$(WM_COMPILE_OPTION) > >diff -ruN OpenFOAM-2.4.0.old/wmake/rules/linux64Gcc46/c OpenFOAM-2.4.0/wmake/rules/linux64Gcc46/c >--- OpenFOAM-2.4.0.old/wmake/rules/linux64Gcc46/c 2015-05-22 10:50:30.000000000 +0100 >+++ OpenFOAM-2.4.0/wmake/rules/linux64Gcc46/c 2018-06-30 05:49:40.270800000 +0100 >@@ -2,7 +2,7 @@ > > cWARN = -Wall > >-cc = gcc -m64 >+cc = gcc > > include $(RULES)/c$(WM_COMPILE_OPTION) > >diff -ruN OpenFOAM-2.4.0.old/wmake/rules/linux64Gcc46/c++ OpenFOAM-2.4.0/wmake/rules/linux64Gcc46/c++ >--- OpenFOAM-2.4.0.old/wmake/rules/linux64Gcc46/c++ 2015-05-22 10:50:30.000000000 +0100 >+++ OpenFOAM-2.4.0/wmake/rules/linux64Gcc46/c++ 2018-06-30 05:49:36.882800000 +0100 >@@ -2,7 +2,7 @@ > > c++WARN = -Wall -Wextra -Wno-unused-parameter -Wold-style-cast > >-CC = g++ -m64 >+CC = g++ > > include $(RULES)/c++$(WM_COMPILE_OPTION) > >diff -ruN OpenFOAM-2.4.0.old/wmake/rules/linux64Gcc47/c OpenFOAM-2.4.0/wmake/rules/linux64Gcc47/c >--- OpenFOAM-2.4.0.old/wmake/rules/linux64Gcc47/c 2015-05-22 10:50:30.000000000 +0100 >+++ OpenFOAM-2.4.0/wmake/rules/linux64Gcc47/c 2018-06-30 05:50:47.802800000 +0100 >@@ -2,7 +2,7 @@ > > cWARN = -Wall > >-cc = gcc -m64 >+cc = gcc > > include $(RULES)/c$(WM_COMPILE_OPTION) > >diff -ruN OpenFOAM-2.4.0.old/wmake/rules/linux64Gcc47/c++ OpenFOAM-2.4.0/wmake/rules/linux64Gcc47/c++ >--- OpenFOAM-2.4.0.old/wmake/rules/linux64Gcc47/c++ 2015-05-22 10:50:30.000000000 +0100 >+++ OpenFOAM-2.4.0/wmake/rules/linux64Gcc47/c++ 2018-06-30 05:50:44.326800000 +0100 >@@ -2,7 +2,7 @@ > > c++WARN = -Wall -Wextra -Wno-unused-parameter -Wold-style-cast > >-CC = g++ -m64 >+CC = g++ > > include $(RULES)/c++$(WM_COMPILE_OPTION) > >diff -ruN OpenFOAM-2.4.0.old/wmake/rules/linux64Gcc48/c OpenFOAM-2.4.0/wmake/rules/linux64Gcc48/c >--- OpenFOAM-2.4.0.old/wmake/rules/linux64Gcc48/c 2015-05-22 10:50:30.000000000 +0100 >+++ OpenFOAM-2.4.0/wmake/rules/linux64Gcc48/c 2018-06-30 05:50:39.846800000 +0100 >@@ -2,7 +2,7 @@ > > cWARN = -Wall > >-cc = gcc -m64 >+cc = gcc > > include $(RULES)/c$(WM_COMPILE_OPTION) > >diff -ruN OpenFOAM-2.4.0.old/wmake/rules/linux64Gcc48/c++ OpenFOAM-2.4.0/wmake/rules/linux64Gcc48/c++ >--- OpenFOAM-2.4.0.old/wmake/rules/linux64Gcc48/c++ 2015-05-22 10:50:30.000000000 +0100 >+++ OpenFOAM-2.4.0/wmake/rules/linux64Gcc48/c++ 2018-06-30 05:50:36.214800000 +0100 >@@ -2,7 +2,7 @@ > > c++WARN = -Wall -Wextra -Wno-unused-parameter -Wold-style-cast > >-CC = g++ -m64 >+CC = g++ > > include $(RULES)/c++$(WM_COMPILE_OPTION) > >diff -ruN OpenFOAM-2.4.0.old/wmake/rules/linux64Gcc49/c OpenFOAM-2.4.0/wmake/rules/linux64Gcc49/c >--- OpenFOAM-2.4.0.old/wmake/rules/linux64Gcc49/c 2015-05-22 10:50:30.000000000 +0100 >+++ OpenFOAM-2.4.0/wmake/rules/linux64Gcc49/c 2018-06-30 05:50:32.390800000 +0100 >@@ -2,7 +2,7 @@ > > cWARN = -Wall > >-cc = gcc -m64 >+cc = gcc > > include $(RULES)/c$(WM_COMPILE_OPTION) > >diff -ruN OpenFOAM-2.4.0.old/wmake/rules/linux64Gcc49/c++ OpenFOAM-2.4.0/wmake/rules/linux64Gcc49/c++ >--- OpenFOAM-2.4.0.old/wmake/rules/linux64Gcc49/c++ 2015-05-22 10:50:30.000000000 +0100 >+++ OpenFOAM-2.4.0/wmake/rules/linux64Gcc49/c++ 2018-06-30 05:50:29.006800000 +0100 >@@ -2,7 +2,7 @@ > > c++WARN = -Wall -Wextra -Wno-unused-parameter -Wold-style-cast > >-CC = g++ -m64 >+CC = g++ > > include $(RULES)/c++$(WM_COMPILE_OPTION) >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 659682
: 537864