Compiling KratosMultiphysics with All Applications get errors - cmake

I am compiling Kratos with this standard-configure.sh that I modify:
standard-configure.sh
But I get error and I can't compile Trilinos maybe I wrongly put the TRILINOS_ROOT.
If anyone can point me which place should I place TRILINOS_ROOT and METIS_INCLUDE_DIR as well.
Not only that, there are other errors when compiling (see attachment below), how to get pass this?

Related

Suppress Valgrind when Memory Location is Unknown

I am trying to add code in a Valgrind suppression file that removes errors and warnings that do not list the actual function calls or files causing the errors and warnings.
For instance:
<b>IPW</b> ==55555== Invalid write of size X
==55556== at 0xFFFFFFFF: ???
==55557== by 0xFFFFEEEE: ???
Therefore I am trying to create a few lines of code in a Valgrind suppression file that will suppress all of these instances where the function call or file causing the error/warning is unknown. Unfortunately I cannot find anything in the Valgrind docs that explain how to do this. Does anyone know how to suppress errors or warnings coming from unknown function calls or file?
First, verify that your changes aren't causing the issue and it's really an issue/false-positive within outside code.
If so, you can add the following line into your Valgrind suppression to get what you need:
obj:???

Check all compile errors

I have inherited a fairly large vba program that was built without Option Explicit turned on.
I've added this to the code and am working through the compile errors (Debug > Compile ...)
All issues I've come across so far are variables that are not declared
Compile error:
Variable not defined
My issue is that the compiler only displays one error at at time.
Is there a way to display all compile errors in a single view?

VBA Access Error displayed but nothing in the code

It's my first time using VBA and Access even if I'm coming from Angular and Swift, I'm completely lost.
I'm modifying an existing project and I have created a text label and used the expression generator, then the application crashed. I obviously think that there is a problem in the "expression" that I generated.
The problem is now that I cannot access to the Form where I was working and I get this message :
I have tried to go to the code but I haven't found my problematic expression. Do access store somewhere else the code generated, especially for the expressions generated? How can I find again my problematic expression?
In the code I found, I didn't find any object declaration, for example, as a TextBox...I tried to compile all code, since this is a syntax error, it should be easier to find and solve but it didn't work at all, the compile and run didn't show me any syntax error, I tried to change some settings to handling error but no success...
So if someone could tell me how to solve this problem. Thanks in advance.

Unknown type name 'intmax_t'

I'm having some serious problems compiling. I'm on Xcode 5. Everything was working, now it's not.
It won't compile my .pch file. I've tried a new .pch file to no avail.
I get hundreds of errors, starting with: Unknown type name 'intmax_t'
Has anyone experienced this and got any pointers to where I might start figuring out why it's doing this? It's got to be a setting in my project file somewhere
that error comes from "stdint.h" not being in your project. (that's where it's defined). Since that's a core library, it must be that a path has changed some how. This could happen if you moved your project, renamed the folder, or installed a new version of Xcode and the path is not updated. It could also happen if the compiler settings were changed. for example, see this question
Xcode 4: "error: unknown type name 'BOOL'; did you mean 'BOOL'?"
as you can see, his compiler was switched on him and he had to change it back. So you might be using a different compiler without realizing it, so it's looking for the libraries somewhere else. That you give you some clues. Let me know what you find
I found the issue to be:
Always Search User Paths: This was set to Yes.
User Header Search Paths: "$(SRCROOT)/" (recursive)
I removed these and all is well again.

Getting: "Compilation exited with code 134" when attempting to use "LLVM Optimizing Compiler" switch

I'm getting a "Compilation exited with code 134" when attempting to use the "LLVM Optimizing Compiler" switch for release iPhone builds, using MonoTouch 4.0.1.
I don't get much information from build output window at all - just:
"Compilation exited with code 134, command:"
MONO_PATH=(snip)/bin/iPhone/Release/LSiOS.app /Developer/MonoTouch/usr/bin/arm-darwin-mono --llvm --aot=mtriple=armv7-darwin,nimt-trampolines=2048,full,static,asmonly,nodebug,llvm-path=/Developer/MonoTouch/LLVM/bin/,outfile=/var/folders/03/033pAAGuHgGkIy4CorbVV++++TI/-Tmp-/tmp38107451.tmp/Newtonsoft.Json.MonoTouch.dll.7.s "(snip)/bin/iPhone/Release/LSiOS.app/Newtonsoft.Json.MonoTouch.dll"
Mono Ahead of Time compiler - compiling assembly (snip)/mscorlib.dll
What is odd is that in earlier command lines, there is a correlation between the DLL mentioned in the arm-darwin-mono command line and what is the compiling, but in this case it says "mscorlib.dll".
Any thoughts?
I have found a few cases (googling and from bugzilla.xamarin.com) where the error code 134 is related to Mono.Linker being too aggressive (removing something that's needed).
This is easy to confirm by turning off the linker, i.e. "Don't link" in Linker Options. If the build works then you can try isolating the assembly where the linker makes a mistake.
E.g. add a "--linkskip=mscorlib" to the mtouch extra parameters and re-enable linking. This will link everything (Link All) or all SDK (Link SDK assemblies) except the assembly you selected (mscorlib in the example). That's only a workaround and a bug report should be filled so the issue can be fixed properly (and get you all the linker advantages).
However be warned that there are other issues sharing the same error code, like:
http://ios.xamarin.com/Documentation/Troubleshoot#Error_134.3a_mtouch_failed_with_the_following_message.3a
YMMV
mtouch does its native builds in parallel so the logs can be confusing, e.g. you can see a bit of assembly X output followed by some assembly Y output.
Reading the full log might help you (or us) to pinpoint the issue.
I was having the exact same problem Scolestock. My app would build fine until I enabled llvm, then it was "Compilation exited with code 134, command" when trying to build the 7s for the app itself.
I'm elated to say that after 2 days of painstakingly whittling my app down to the core problem, I was able to isolate the issue to the usage of embedded dictionaries such as:
Dictionary<enum, Dictionary<enum, value>>
I was able to fix this by defining a class for the embedded dictionary and using that instead:
public class MyDefinition : Dictionary<enum, value>
{
}
...
public Dictionary<enum, MyDefinition>
Not sure if this will help you, but hopefully it'll help some poor soul who decides to use embedded dictionaries and runs into my same problem.