h2m's People
h2m's Issues
Fails to compile (macOS w/ LLVM installed via Homebrew)
Steps to reproduce:
$ brew install llvm
$ cd h2m
$ ./h2mbuild.sh -CLANG_DIR /usr/local/Cellar/llvm/5.0.1/lib/cmake/clang -LLVM_DIR /usr/local/Cellar/llvm/5.0.1/lib/cmake/llvm
Configuring cmake LLVM information:
LLVM_DIR=/usr/local/Cellar/llvm/5.0.1/lib/cmake/llvm
Configuring cmake Clang information:
CLANG_DIR=/usr/local/Cellar/llvm/5.0.1/lib/cmake/clang
DEBUG: -DLLVM_DIR=/usr/local/Cellar/llvm/5.0.1/lib/cmake/llvm -DClang_DIR=/usr/local/Cellar/llvm/5.0.1/lib/cmake/clang
-- Compiling for: Darwin, 17.4.0, x86_64
-- Found LLVM as 5.0.1
-- Using LLVMConfig.cmake in: /usr/local/Cellar/llvm/5.0.1/lib/cmake/llvm
-- Found Clang
-- Proceeding from ClangConfig.cmake
-- Valid installation path not found.
-- No installation target will be created.
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/ibeekman/Sandbox/h2m
Scanning dependencies of target h2m
[ 14%] Building CXX object CMakeFiles/h2m.dir/src/h2m.cpp.o
In file included from /Users/ibeekman/Sandbox/h2m/src/h2m.cpp:12:
/Users/ibeekman/Sandbox/h2m/./include/h2m.h:104:72: error: non-virtual member function marked 'override' hides virtual member function
bool BeginSourceFileAction(CompilerInstance &ci, StringRef Filename) override {
^
/usr/local/Cellar/llvm/5.0.1/include/clang/Frontend/FrontendAction.h:79:16: note: hidden overloaded virtual function
'clang::FrontendAction::BeginSourceFileAction' declared here: different number of parameters (1 vs 2)
virtual bool BeginSourceFileAction(CompilerInstance &CI) {
^
In file included from /Users/ibeekman/Sandbox/h2m/src/h2m.cpp:12:
/Users/ibeekman/Sandbox/h2m/./include/h2m.h:204:72: error: non-virtual member function marked 'override' hides virtual member function
bool BeginSourceFileAction(CompilerInstance &ci, StringRef Filename) override;
^
/usr/local/Cellar/llvm/5.0.1/include/clang/Frontend/FrontendAction.h:79:16: note: hidden overloaded virtual function
'clang::FrontendAction::BeginSourceFileAction' declared here: different number of parameters (1 vs 2)
virtual bool BeginSourceFileAction(CompilerInstance &CI) {
^
2 errors generated.
make[2]: *** [CMakeFiles/h2m.dir/src/h2m.cpp.o] Error 1
make[1]: *** [CMakeFiles/h2m.dir/all] Error 2
make: *** [all] Error 2
This is using the master branch cloned at commit 9b31d9e as well as v1
What is the license of this project?
Error with h2m built on Ubuntu 18.04 with llvm-4
After building successfully the h2m program with llvm-4( clang-4.0, libclang-4.0-dev, llvm-4.0-dev, clang-format-4.0, clang-tools-4.0 ) on ubuntu 18.04. I got this error:
/h2m -out=header.f90 ../../Example/Example_2/example_2.h
: CommandLine Error: Option 'help-list' registered more than once!
LLVM ERROR: inconsistency in registered CommandLine options
Translation of numerical constants is incorrect
h2m does not correct convert numerical literal constant in a C header file.
Consider the translation of /usr/include/float.h
REAL(C_FLOAT), parameter, public :: FLT_EPSILON = 1.19209290E-07
Here we accidentally get a single precision Fortran literal constant, although
the C literal constant is double precision.
REAL(C_DOUBLE), parameter, public :: DBL_EPSILON = 2.2204460492503131E-16
Here we get a single precision Fortran literal constant, but the above is a
double precision C literal constant.
REAL(C_LONG_DOUBLE), parameter, public :: LDBL_MIN = 3.3621031431120935063E-4932
Here one gets a double precisision literal constant (that is actually out-of-range).
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.