CalculiX installation error etime (In function `second_':) - makefile

I have been following the instructions to install CalculiX and its dependencies as best as I could from the wiki page https://github.com/precice/calculix-adapter/wiki/Installation-instructions-for-CalculiX
I have already installed all the dependencies.
In the installation when I say make I get the following error:
gfortran -fopenmp -Wall -O3 -o bin/ccx_preCICE bin/ccx_2.15.o bin/ccx_2.15.a /home/prasad/SPOOLES.2.2//spooles.a -L/usr/local/lib -lprecice -lstdc++ -L/home/prasad/yaml-cpp-yaml-cpp-0.6.2//build -lyaml-cpp /home/prasad/ARPACK//libarpack_INTEL.a -lpthread -lm -lc
/home/prasad/ARPACK//libarpack_INTEL.a(second.o): In function `second_':
second.f:(.text+0x14): undefined reference to `etime_'
collect2: error: ld returned 1 exit status
Makefile:101: recipe for target 'bin/ccx_preCICE' failed
make: *** [bin/ccx_preCICE] Error 1
I tried changing the line 24 in ARPACK/UTIL/second.f to * EXTERNAL ETIME, but I am still getting the same error.
Can anyone tell me how to fix it?
Thank you in advance for the help.

Edit line 24 in ARPACK/UTIL/second.f
Append * to get
* EXTERNAL ETIME
If you get this error when you are building the adapter for CalculiX, go to ARPACK
make lib
Go back to the calculiX-adapter-master directory or the directory from where you were building CalculiX and its adapter
make clean
make
For detailed guide please check preCICE wiki for CalculiX adapter

Related

What does "ld: mach-o string pool extends beyond end of file" mean?

I am currently trying to make and install a specialist suite of software (https://github.com/scottransom/presto), and am encountering this error:
gfortran -g -fPIC -o /path-to/presto/bin/psrorbit powerplot.o xyline.o psrorbit.o -L/usr/local/Cellar/cfitsio/3.450/lib -lcfitsio -lcurl -L/path-to/presto/lib -lpresto -L/usr/local/lib -lfftw3f -L/usr/local/lib/pgplot -lcpgplot -lpgplot -L/opt/X11/lib -lX11 -L/opt/X11/lib -lpng16 -lm
ld: mach-o string pool extends beyond end of file in /usr/local/lib/libcpgplot.dylib file '/usr/local/lib/libcpgplot.dylib' for architecture x86_64
collect2: error: ld returned 1 exit status
make: *** [psrorbit] Error 1
I don't think it's a problem related to PRESTO per se, as several searches (see this, this, and this) point to something fundamental, perhaps with Xcode. I currently have version 11.3, and I also installed the command line tools. So again, what does the error itself mean? Any help would be useful!
According to my reading of the source code for Apple's version of ld, this error means that the symbol table in an object prematurely ends when the file does.
There appear to be quite a few sanity checks performed on object files when linking. Likely, your copy of /usr/local/lib/libcpgplot.dylib is corrupt.

Error while building sodor emulators, riscv-sodor

I installed riscv,riscv-gnu-toolchain and riscv-tools and want to get riscv-sodor. To do that i followed the steps from https://github.com/librecores/riscv-sodor , succesfully installed verilator and front-end server but after that i have to build sodor emulators and on first step by doing make command i got this error
make -C emulator/rv32_1stage/
make[1]: Entering directory '/home/nemanja/riscv-sodor/emulator/rv32_1stage'
verilator --cc --exe --top-module Top +define+PRINTF_COND=\$c\(\"verbose\"\) --assert --output-split 20000 --x-assign unique -I/home/nemanja/riscv-sodor/vsrc -O3 -CFLAGS " -O1 -std=c++11 -g -I/home/nemanja/riscv-sodor/emulator/common -I/home/nemanja/riscv-sodor/riscv-fesvr -L/opt/riscv/lib -Wl,-rpath,/opt/riscv/lib -L. -lpthread -DVERILATOR -include /home/nemanja/riscv-sodor/emulator/common/verilator.h" \
-o /home/nemanja/riscv-sodor/emulator/rv32_1stage/emulator generated-src/Top.v /home/nemanja/riscv-sodor/vsrc/SimDTM.v -LDFLAGS " -L/opt/riscv/lib -Wl,-rpath,/opt/riscv/lib -L. -lpthread" /home/nemanja/riscv-sodor/emulator/common/emulator.cpp /home/nemanja/riscv-sodor/riscv-fesvr/build/libfesvr.so /home/nemanja/riscv-sodor/emulator/rv32_1stage/SimDTM.o
/bin/sh: 1: verilator: not found
/home/nemanja/riscv-sodor/emulator/common/Makefile.include:83: recipe for target 'emulator' failed
make[1]: *** [emulator] Error 127
make[1]: Leaving directory '/home/nemanja/riscv-sodor/emulator/rv32_1stage'
Makefile:104: recipe for target 'emulator/rv32_1stage/emulator' failed
make: *** [emulator/rv32_1stage/emulator] Error 2
Because i am really new to this all, i don't have any idea what could be problem.
I would appreciate any possible help in troubleshooting...
Thank you.
That specific error is due to verilator not being installed and on your $PATH.
/bin/sh: 1: verilator: not found
Once you get that installed for your operating system, you should get past this specific issue.

OpenTracker compilation error

I want to compile opentracker(https://erdgeist.org/arts/software/opentracker) on my machine osx 10.9. when run "make" command I get this error:
cc -c -o opentracker.o -I../libowfat -Wall -pipe -Wextra -O3 -DWANT_FULLSCRAPE
opentracker.c
opentracker.c:25:10: fatal error: 'io.h' file not found
#include "io.h"
^
1 error generated.
make: *** [opentracker.o] Error 1
what is the problem? Is there any way to install io.h through homebrew?
You may have sorted this out already but i'll put this here for anyone else who has the same problem.
The "-I../libowfat" tells the compiler to include that path in the search path for header files. io.h is part of libowfat which you need to compile opentracker.
You can get libowfat here http://www.fefe.de/libowfat/
Unpack it and place it one directory up from where you are compiling opentracker. Alternatively you can change the -I to point to where you have libowfat unpacked.

Issue with DMD on OSX

I was trying to install DMD so precisely followed the advices available on this page: http://dlang.org/dmd-osx.html. However, when I have an error when I try to build a .d file:
Here is my hello.d
import std.stdio;
void main() {
writeln("hello world!");
}
and then:
gcc hello.o -o hello -m64 -lphobos2 -lpthread -lm
ld: library not found for -lphobos2
clang: error: linker command failed with exit code 1 (use -v to see invocation)
--- errorlevel 1
Does anyone encountered the same issue?
Thanks,
Cédric
It seems that I did not precisely followed the advices on the dlang website. After some debugging time, I've found out the solution:
The dmd.conf file was incorrect, thus the libphobos2.a was not found. Now my dmd.conf file is looking like:
[Environment]
DFLAGS=-I%#P%/../src/phobos -I%#P%/../src/druntime/import -L-L%#P%/../osx/lib

undefined reference to wl_dispatch_display_que_pending

I am new to gtk+ and I'm trying to put a window on the screen using gtk3. My source file is win.c and I have tried to compile it using
$ gcc win.c $(pkg-config --cflags --libs gtk+-3.0) -o win.o
but what I get is:
/lib64/libEGL.so.1: undefined reference to `wl_display_dispatch_queue_pending'
collect2: error: ld returned 1 exit status
what should I do?
You can do the following command :
yum update libwayland*
wl_display_dispatch_queue_pending seems related to Wayland, the protocol implemented by successors of the Xorg server. The question is: why are you building for Wayland ?

Resources