Comments (23)
Sorry, about this Kevin. Just to confirm you get this error when using the makefile in the release1.1 folder after checking out the master branch?
Have you run "make clean" before attempting to make?
from crhmcode.
Yep.I am on the master branch, in the release1.1 folder
~/data/projects/crhmcode/release1.1 $ git show-branch [master] Alteration to ClassWQ_Netrout.cpp based on version of water modules recived from Diogo.
I ran make clean first, before running make.
I've attached a complete listing of the make output.
crhmcodemake.txt
from crhmcode.
I was previously using gcc 7.5 but I just checked with version 9.3.0 on Ubuntu and it compiled for me.
Based on the error message you receive it looks like one of your c++ std lib files was possibly compiled with a older version of gcc. Can you recompile your std lib c++ files and try to make again?
from crhmcode.
I do have the version 9 c++ std lib files installed:
However, version 6 is also installed. Is make not finding the correct version?
K
from crhmcode.
I doubt that is the case but if you add these two lines into the makefile for the crhm target then we can verify it for sure.
gcc --version g++ --version
crhm: $(OBJ)
gcc --version
g++ --version
from crhmcode.
Actually this seems to be an instance of this known error. https://gcc.gnu.org/onlinedocs/libstdc++/manual/using_dual_abi.html
It is leading me to believe that it is your version of the boost library that was compiled with and older version of gcc.
if you recompile boost with a newer gcc or download a new version it should hopefully fix this issue.
from crhmcode.
Ah, that makes sense.
Thanks, I'll try a newer version.
BTW, I but the commands in the makefile but got the error message
Makefile:96: *** missing separator. Stop.
Where line 96 is
gcc --version
I'll update my version of boost and will try again.
K
from crhmcode.
Those lines will need to be indented to be part of the crhm target sorry my formatting here was ambiguous.
from crhmcode.
Sorry - responded to the wrong message
I re-downloaded boost 1.73 and get the same error.
/usr/include/c++/9/ext/string_conversions.h:105: undefined reference to `___chkstk_ms'
collect2: error: ld returned 1 exit status
Did make clean first
I tabbed in the two lines
crhm: $(OBJ)
$(CC) -o $@ $^ $(CFLAGS) $(DFLAGS) $(LIBS)
gcc --version
g++ --version
and get the same error:
$ make clean
Makefile:96: *** missing separator. Stop.
I also upgraded to boost 1.75 and still get the same error
from crhmcode.
Interesting I thought for sure that was it. Where did you get your boost library from?
from crhmcode.
Downloaded it directly from https://www.boost.org/
from crhmcode.
I will try with boost 1.75 and see if I can recreate your error.
from crhmcode.
I am able to compile with gcc 9.3.0 and boost 1.75.0.
The missing separator error that make is producing is most likely caused by using 4 spaces as a tab instead of a tab character. Unfortunately make requires actual tab chars not just spaces.
from crhmcode.
You were right. I forgot that my editor was set up to convert tabs to spaces.
Thanks.
I still get the same error message.
I've attached the output.
crhmcodemake.txt
I was wondering since it says the problem is:
/usr/include/c++/9/ext/string_conversions.h:105: undefined reference to
___chkstk_ms'`
if we should check to see if we have the same version of string_conversions.h?
from crhmcode.
I tried googling the error, and most of the results indicate that chkstk_ms is for Windows - is that right?
from crhmcode.
check to see if we have the same version of string_conversions.h
Sure can you locate the file on your system and upload it here.
However since it is a library file they may differ due to system architecture ect...
I tried googling the error, and most of the results indicate that chkstk_ms is for Windows - is that right?
It seems to be related to the MinGW compiler which neither of us are using so I do find that confusing.
from crhmcode.
Here's my string_conversions.h
string_conversions.h.zip
The error refers to line 105
/usr/include/c++/9/ext/string_conversions.h:105: undefined reference to
___chkstk_ms'`
In my file, line 105 is
_CharT* __s = static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT) * __n));
from crhmcode.
Are we sure that we are both using the same version of Makefile?
Here's mine
Makefile.zip
from crhmcode.
Our string_conversions.h and makefile are identical.
I have compiled with boost 1.73.0, 1.74.0, and 1.75.0 and gcc 9.3.0 without error.
from crhmcode.
Peter had an issue with the -mstack-arg-probe flag earlier.
We actually shouldn't need any of the flags in the DFLAGS statement I just haven't gotten around to updating the makefile. Can you try leaving the DFLAGS statement empty?
from crhmcode.
I'll give it a try
from crhmcode.
I commented out the DFLAGS and it now compiles without any errors.]
I will now test the program with one of our newer models.
Thanks for the help.
from crhmcode.
Awesome I will commit a new version of the makefile without so many DFLAGS that can cause issues.
from crhmcode.
Related Issues (20)
- CRHM GUI will not launch on windows HOT 24
- GUI error while running Costa et tal., 2021 prj file HOT 4
- ClassGlacier_melt_debris_cover_estimate_Mod, ClassGlacier_debris_cover, Classglacier_debris HOT 2
- Problem with installing the CLI crhm on Windows HOT 10
- segfault running CRHM with some data sets HOT 3
- glacier#5 crashes in Construct GUI
- Macro handling the parameter with Int type
- CRHMcode GUI crashes when running model with ClassWQ_pbsmSnobal module HOT 7
- Heap Corruption Detected While Running In Debug Mode in Visual Studio HOT 1
- glacier module debris-cover melt issue HOT 30
- Module hierarchy for glacier and Ayers HOT 13
- Infiltration when ZDF == 0. HOT 4
- "Manage Parameter Localy" button for module with variation HOT 1
- Variable declared as BASIN dimension not being selected correctly in CRHM_GUI Selected variable panel
- CRHM output file time stamp HOT 7
- CRHM GroupEnding name in AZ, BZ, CZ, DZ etc HOT 18
- Macro Dialog window problem for Srlab CRHM version 1.3.4 and tested version for Issue#442 HOT 2
- CRHMcode GUI - Simulation not run correctly when start date and date of first observation don't match.
- CRHM_GUI fix version for Issue_432: running crash and bug HOT 7
- Unable to compile on windows 11 in msys2 HOT 1
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.
from crhmcode.