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
  • Index
  • » Users
  • » ghorwin
  • » Profile

Posts

Posts

Mar-19-18 18:54:16
Building on Ubuntu 17.10 (git nightly) fails (Mumps autoconf error?)
Category: Developer

Solved!

Building works when using plain gcc instead of clang. So use:

> ./configure

Mind to install package gfortran also (needed for Mumps).

Maybe we should update the build-info wiki page for developers on Ubuntu...

Mar-19-18 18:18:57
Building on Ubuntu 17.10 (git nightly) fails (Mumps autoconf error?)
Category: Developer

Just tried on a different machine, vanilla Ubuntu 17.10 install. Here's a list of packages I had to install to get autoconf/configure run through:

Code:

> sudo apt install build-essential qt5-default libqt5xmlpatterns5 libqt5webkit5 libtool autoconf libreadline-dev liblpsolve55-dev flex pkg-config cmake libqt5widgets5 qttools5-dev libexpat1-dev default-jre clang 

Same error message as before.

Mar-16-18 16:58:31
Building on Ubuntu 17.10 (git nightly) fails (Mumps autoconf error?)
Category: Developer

As a side note, the procedure listed above works flawlessly on Ubuntu 16.04 (out of the box, no tweaking required). So I guess this must be an Ubuntu 17.10 issue.

Mar-16-18 09:42:24
Building on Ubuntu 17.10 (git nightly) fails (Mumps autoconf error?)
Category: Developer

Just cloned the complete OpenModelica repo with

> git clone --recurse-submodules https://github.com/OpenModelica/OpenModelica.git

and tried to build on Ubuntu 17.10.

In addtion to build-essential, qt5, and several qt dev libraries I had to install the following packages:

pkg-config, autoconf, libtool, libreadline-dev, liblpsolve55-dev, flex

I ran within OpenModelica directory:

> autoconf
> ./configure CC=clang CXX=clang++ | grep failed

and got:

Code:


ln: failed to create symbolic link '.git/hooks/pre-commit': File exists
ln: failed to create symbolic link '/home/ghorwin/git/OpenModelica/.git/modules/OMC/hooks/pre-commit': File exists
ANTLR Parser Generator   Version 2.7.7 (20060906)   1989-2005
ln: failed to create symbolic link '/home/ghorwin/git/OpenModelica/.git/modules/OMPlot/hooks/pre-commit': File exists
ln: failed to create symbolic link '/home/ghorwin/git/OpenModelica/.git/modules/OMEdit/hooks/pre-commit': File exists
ln: failed to create symbolic link '/home/ghorwin/git/OpenModelica/.git/modules/OMNotebook/hooks/pre-commit': File exists
ln: failed to create symbolic link '/home/ghorwin/git/OpenModelica/.git/modules/OMShell/hooks/pre-commit': File exists

Seems all ok.

Building with

> make

gives the following error:


...
make[3]: Verzeichnis „/home/ghorwin/git/OpenModelica/OMCompiler/3rdParty/Ipopt“ wird betreten
Making all in ThirdParty/Mumps
make[4]: Verzeichnis „/home/ghorwin/git/OpenModelica/OMCompiler/3rdParty/Ipopt/ThirdParty/Mumps“ wird betreten
make[4]: *** Keine Regel, um „all“ zu erstellen.  Schluss.
make[4]: Verzeichnis „/home/ghorwin/git/OpenModelica/OMCompiler/3rdParty/Ipopt/ThirdParty/Mumps“ wird verlassen
Makefile:323: die Regel für Ziel „all-recursive“ scheiterte
make[3]: *** [all-recursive] Fehler 1
make[3]: Verzeichnis „/home/ghorwin/git/OpenModelica/OMCompiler/3rdParty/Ipopt“ wird verlassen
Makefile.common:140: die Regel für Ziel „/home/ghorwin/git/OpenModelica/build/lib/x86_64-linux-gnu/omc/libipopt.la“ scheiterte
make[2]: *** [/home/ghorwin/git/OpenModelica/build/lib/x86_64-linux-gnu/omc/libipopt.la] Fehler 2
make[2]: Verzeichnis „/home/ghorwin/git/OpenModelica/OMCompiler“ wird verlassen
Makefile:94: die Regel für Ziel „omc-bootstrapped“ scheiterte
make[1]: *** [omc-bootstrapped] Fehler 2
make[1]: Verzeichnis „/home/ghorwin/git/OpenModelica/OMCompiler“ wird verlassen
Makefile:6: die Regel für Ziel „omc“ scheiterte
make: *** [omc] Fehler 2

The following files are in the directory Mumps:


drwxr-xr-x  3 ghorwin ghorwin   4096 Mär 16 10:36 ./
drwxr-xr-x  3 ghorwin ghorwin   4096 Mär 16 10:29 ../
-rw-r--r--  1 ghorwin ghorwin    347 Mär 16 10:29 coinmumps.pc.in
-rw-r--r--  1 ghorwin ghorwin    337 Mär 16 10:29 coinmumps-uninstalled.pc.in
-rwxr-xr-x  1 ghorwin ghorwin  44595 Mär 16 10:29 config.guess*
-rw-r--r--  1 ghorwin ghorwin  15397 Mär 16 10:36 config.log
-rwxr-xr-x  1 ghorwin ghorwin  32726 Mär 16 10:29 config.sub*
-rwxr-xr-x  1 ghorwin ghorwin 887624 Mär 16 10:29 configure*
-rw-r--r--  1 ghorwin ghorwin   4794 Mär 16 10:29 configure.ac
-rwxr-xr-x  1 ghorwin ghorwin  15936 Mär 16 10:29 depcomp*
-rwxr-xr-x  1 ghorwin ghorwin   1174 Mär 16 10:29 get.Mumps*
-rw-r--r--  1 ghorwin ghorwin   1605 Mär 16 10:29 INSTALL.MUMPS
-rwxr-xr-x  1 ghorwin ghorwin   9233 Mär 16 10:29 install-sh*
-rwxr-xr-x  1 ghorwin ghorwin 196440 Mär 16 10:29 ltmain.sh*
-rw-r--r--  1 ghorwin ghorwin   3710 Mär 16 10:29 Makefile.am
-rw-r--r--  1 ghorwin ghorwin  48102 Mär 16 10:29 Makefile.in
-rwxr-xr-x  1 ghorwin ghorwin  11014 Mär 16 10:29 missing*
drwxr-xr-x 11 ghorwin ghorwin   4096 Mär 16 10:29 MUMPS/
-rw-r--r--  1 ghorwin ghorwin   1455 Mär 16 10:29 mumps.patch

So apparenty autoconf/configure didn't process this subdirectory and generate a Makefile.

Any idea how to fix that?

Thanks,
Andreas

  • Index
  • » Users
  • » ghorwin
  • » Profile
You are here: