Archived OpenModelica forums. Posting is disabled.

Alternative forums include GitHub discussions or StackOverflow (make sure to read the Stack Overflow rules; you need to have well-formed questions)


Forgot password? | Forgot username? | Register

error while compiling openmodelica on archlinux x86_64

error while compiling openmodelica on archlinux x86_64

Hey! I have some trouble compiling OpenModelica on my machine.
I hope somebody can help me to solve this issue. I have no clue
why there is an error before compiling...

 Spoiler Show Spoiler Hide Spoiler
 
[mathias@laptop openmodelica]$ ./configure-post.sh --with-omniORB
[mathias@laptop openmodelica]$ ./configure --prefix=/usr/local
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking how to run the C preprocessor... gcc -E
checking whether make sets $(MAKE)... yes
checking for flex... flex
checking lex output file root... lex.yy
checking lex library... -lfl
checking whether yytext is a pointer... yes
checking x86_64 CFLAGS... adding -fPIC
checking for $RMLHOME... no
checking for rmlc... /usr/local/bin/rmlc
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking sqlite3.h usability... yes
checking sqlite3.h presence... yes
checking for sqlite3.h... yes
checking f2c.h usability... no
checking f2c.h presence... no
checking for f2c.h... no
checking for rml includefiles in /usr/local... yes
checking if the user wants RML -trace support... yes
checking for antlr.Tool support... ANTLR Parser Generator   Version 2.7.7 (20060906)   1989-2005
yes
checking if the user wants to compile OMShell-terminal... yes
checking readline/readline.h usability... yes
checking readline/readline.h presence... yes
checking for readline/readline.h... yes
checking readline/history.h usability... yes
checking readline/history.h presence... yes
checking for readline/history.h... yes
checking for library containing readline... -lreadline
checking expat.h usability... yes
checking expat.h presence... yes
checking for expat.h... yes
checking for an ANSI C-conforming const... yes
checking for size_t... yes
checking for vprintf... yes
checking for _doprnt... no
checking for getcwd... yes
checking for select... yes
checking for strdup... yes
checking for strerror... yes
checking for scandir... yes
checking for OpenMP... yes
checking for library containing dlopen... -ldl
checking for library containing sqrt... -lm
checking for library containing colamd... no
checking for library containing make_lp... -llpsolve55
checking lp_lib.h usability... no
checking lp_lib.h presence... no
checking for lp_lib.h... no
checking lpsolve/lp_lib.h usability... yes
checking lpsolve/lp_lib.h presence... yes
checking for lpsolve/lp_lib.h... yes
checking for socket... yes
checking for gethostbyname... yes
checking for sqlite3_libversion in -lsqlite3... yes
checking LAPACK flags... ok
checking kinsol/kinsol.h usability... no
checking kinsol/kinsol.h presence... no
checking for kinsol/kinsol.h... no
checking kinsol/kinsol_dense.h usability... no
checking kinsol/kinsol_dense.h presence... no
checking for kinsol/kinsol_dense.h... no
checking nvector/nvector_serial.h usability... no
checking nvector/nvector_serial.h presence... no
checking for nvector/nvector_serial.h... no
checking sundials/sundials_types.h usability... no
checking sundials/sundials_types.h presence... no
checking for sundials/sundials_types.h... no
checking sundials/sundials_math.h usability... no
checking sundials/sundials_math.h presence... no
checking for sundials/sundials_math.h... no
checking Sundials linking... failed to link KINInit
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking libintl.h usability... yes
checking libintl.h presence... yes
checking for libintl.h... yes
checking gettext linking... in C-library
checking for CORBA... none
checking if the user wants to use the Python interface... no
checking if the user wants Modelica3D... yes
checking for OpenCL... checking CL/cl.h usability... no
checking CL/cl.h presence... no
checking for CL/cl.h... no
checking OpenCL/cl.h usability... no
checking OpenCL/cl.h presence... no
checking for OpenCL/cl.h... no
checking for qmake-qt4... no
checking for qmake-mac... no
checking for qmake... qmake
checking for qmake arguments... qmake
checking for qwt... with_qwt_suffix=
/usr/include/qwt/
checking if the user wants OMNotebook... yes
checking for paradisEO... //usr/local
Not compiling ModPar
Not compiling with BOOST
checking for revision... 14837
checking for OpenModelica platform name... linux-x86_64
checking for Modelica platform name... linux64
configure: creating ./config.status
config.status: creating Makefile
config.status: WARNING:  'Makefile.in' seems to ignore the --datarootdir setting
config.status: creating Compiler/Makefile
config.status: creating Compiler/omc_release/Makefile
config.status: creating Compiler/runtime/Makefile
config.status: creating Compiler/modpar/Makefile
config.status: creating Compiler/runtime/config.unix.h
config.status: creating PythonInterface/Makefile
config.status: creating PythonInterface/OMPython/OMConfig.py
config.status: creating Parser/Makefile
config.status: creating OMNotebook/OMNotebookGUI/OMNotebook.config
config.status: creating OMNotebook/OMNotebookGUI/Makefile.unix
config.status: creating OMShell/OMShellGUI/OMShell.config
config.status: creating OMShell/OMShellGUI/Makefile.unix
config.status: creating OMEdit/OMEditGUI/Makefile.unix
config.status: creating OMEdit/OMEditGUI/OMEdit.config
config.status: creating OMPlot/OMPlotGUI/Makefile.unix
config.status: creating OMPlot/OMPlotGUI/OMPlotGUI.config
config.status: creating OMOptim/build/Makefile.unix
config.status: creating OMOptim/build/OMOptim.config
config.status: creating OMOptimBasis/build/Makefile.unix
config.status: creating OMOptimBasis/build/OMOptimBasis.config
config.status: creating OMVisualize/OMVisualizeGUI/OMVisualizeGUI.config
config.status: creating testsuite/openmodelica/bootstrapping/LinkMain.makefile
config.status: creating SimulationRuntime/fmi/import/Makefile
config.status: creating SimulationRuntime/c/Makefile
config.status: creating SimulationRuntime/c/ModelicaExternalC/Makefile
config.status: creating SimulationRuntime/c/simulation/libf2c/makefile.u
config.status: creating SimulationRuntime/ParModelica/OpenCLRuntime/Makefile
config.status: creating SimulationRuntime/interactive/Makefile
config.status: creating mosh/src/Makefile
config.status: executing config.unix.h.fix commands

Configured OpenModelica successfully using the following options:
Simulations may use sundials suite: No
Simulations may use IPOPT: No
ParModelica: No
Build OMNotebook: Yes

[mathias@laptop openmodelica]$ make
make -C testsuite/ -f Makefile omc-diff
make[1]: Entering directory `/home/mathias/software/openmodelica/testsuite'
make -C difftool
make[2]: Entering directory `/home/mathias/software/openmodelica/testsuite/difftool'
flex omc-diff.l
gcc -o ../../build/bin/omc-diff lex.yy.c
/usr/bin/ld: cannot open output file ../../build/bin/omc-diff: Datei oder Verzeichnis nicht gefunden
collect2: Fehler: ld gab 1 als Ende-Status zurück
make[2]: *** [../../build/bin/omc-diff] Fehler 1
make[2]: Leaving directory `/home/mathias/software/openmodelica/testsuite/difftool'
make[1]: *** [omc-diff] Fehler 2
make[1]: Leaving directory `/home/mathias/software/openmodelica/testsuite'
make: *** [omc-diff] Fehler 2
[mathias@laptop openmodelica]$

Edited by: mabu - Jan-23-13 02:31:54

Re: error while compiling openmodelica on archlinux x86_64

Could you confirm if the directory build/bin/ exists? It should have been created by the mkbuilddirs target that omc-diff depends on. ls testsuite/difftool could also be useful

Re: error while compiling openmodelica on archlinux x86_64

build/bin did not exist. After creating it by myself the makefile runs just fine!
Still there were some error about the boost lib, openscenegraph, gtkgl ...
But in the end I think it will all went through. It compiles for ages and is still
busy...
Thanks sjoelund.se for the reply!

There are 0 guests and 0 other users also viewing this topic
You are here: