Package Details: openmodelica-git 1.20.0.dev.r320.g9cbaf6232e-1

Git Clone URL: https://aur.archlinux.org/openmodelica-git.git (read-only, click to copy)
Package Base: openmodelica-git
Description: The Open Source Modelica Suite
Upstream URL: https://openmodelica.org
Licenses: OSMC-PL
Conflicts: openmodelica, openmodelica-dev, openmodelica-svn
Provides: openmodelica
Submitter: Xwang
Maintainer: ElMastro
Last Packager: ElMastro
Votes: 11
Popularity: 0.000000
First Submitted: 2015-06-20 11:21 (UTC)
Last Updated: 2022-10-02 22:56 (UTC)

Dependencies (19)

Required by (0)

Sources (10)

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 .. 16 Next › Last »

uomorosso commented on 2021-06-03 07:40 (UTC) (edited on 2021-06-03 07:40 (UTC) by uomorosso)

Hi! I've a little suggestion about the dependencies inside the pkgbuild: instead of requiring gcc9-fortran, which makes pacman complain about not finding that package, I would suggest to put a more generic "gcc-fortran" or something like that. I compiled OpenModelica with gcc10-fortran and it works fine.

ElMastro commented on 2021-02-13 23:25 (UTC)

@Vial: Thank you, I introduced it in the optdepends, so it should be ok now

Vial commented on 2021-02-09 22:48 (UTC)

No problem for installation, however 'zip' should be added to the dependancies since the "Export to FMU" function fails with the following error: Error building simulator. Build log: rm -f "Test.fmu" && cd "Test.fmutmp" && zip -r "../Test.fmu" * /bin/sh: line 1: zip: command not found.

  • /usr/share/omc/runtime/c/fmi/buildproject/config.sub and /usr/share/omc/runtime/c/fmi/buildproject/config.guess should have read rights. "Export to FMU" fail otherwise.

ElMastro commented on 2021-01-29 22:34 (UTC)

@krafczyk.n: It's my job (you're welcome);

If no one has anythig to complain and it works for everybody I'l update the PKGBUILD to fix the problem

krafczyk.n commented on 2021-01-29 10:37 (UTC)

That works perfectly for me, thank you very much!

ElMastro commented on 2021-01-28 22:58 (UTC)

@krafczyk.n: I noticed that. A solution should be to add [code]autoreconf -fi[\code] before autoconf, which solves your problem.

Unfortunately, the final result is something like [code][/tmp/openmodelica-git/src/openmodelica-git/OMCompiler/Compiler/NFFrontEnd/NFArrayConnections.mo:623:33-623:33:writable] Error: Missing token: SEMICOLON [/tmp/openmodelica-git/src/openmodelica-git/OMCompiler/Compiler/NFFrontEnd/NFFlatten.mo:1490:36-1490:36:writable] Error: Missing token: SEMICOLON [/tmp/openmodelica-git/src/openmodelica-git/OMCompiler/Compiler/NFFrontEnd/NFInst.mo:246:62-246:62:writable] Error: Missing token: ')' [/tmp/openmodelica-git/src/openmodelica-git/OMCompiler/Compiler/Util/AdjacencyList.mo:68:44-68:44:writable] Error: Missing token: ')' [/tmp/openmodelica-git/src/openmodelica-git/OMCompiler/Compiler/Util/SBPWLinearMap.mo:221:29-221:29:writable] Error: Missing token: SEMICOLON [/tmp/openmodelica-git/src/openmodelica-git/OMCompiler/Compiler/Util/UnorderedMap.mo:79:19-79:19:writable] Error: Missing token: ')' [/tmp/openmodelica-git/src/openmodelica-git/OMCompiler/Compiler/Util/UnorderedSet.mo:89:17-89:17:writable] Error: Missing token: SEMICOLON [\code]

Please try the first option to confirm if it works for you.

krafczyk.n commented on 2021-01-28 11:14 (UTC) (edited on 2021-01-28 11:39 (UTC) by krafczyk.n)

I'm having problems building this.

==> Starting build()...
configure.ac:95: warning: AC_OUTPUT should be used without arguments.
configure.ac:95: You should run autoupdate.
configure: error: cannot find required auxiliary files: config.guess config.sub
==> ERROR: A failure occurred in build().
    Aborting...

Actually running autoupdate removes the first two configure.ac lines but the error remains. Any help would be appreciated.

uomorosso commented on 2020-12-17 11:03 (UTC)

No problem, don't worry. Basically it's due to an oddity in the OpenModelica sources: I came up with that workaround after I tried to compile OpenModelica straight from the official github repository and getting the same error. Then, I played around a little more and I saw that it was due to the build system using the already installed omc to speed up the compilation process which, however, made the compilation to fail.

ElMastro commented on 2020-12-16 17:58 (UTC)

This is interesting. I will try it as soon as possible, and if it so, I will update the PKGBUILD. I am sorry you have experienced these problems

uomorosso commented on 2020-12-16 16:26 (UTC) (edited on 2020-12-16 16:26 (UTC) by uomorosso)

@ElMastro: I finally managed to successfully compile again OpenModelica using the pkgbuild provided by this repository. The workaround is really simple and it just consists in adding --with-omc= to the command ./configure in the build() hook, which now becomes: ./configure --prefix=/usr/ CC=clang CXX=clang++ --with-UMFPACK --with-omc=

With this workaround the omc buildsystem does not try to detect if there is an omc already installed in the systems and starts building it from scratch. Since the errors arose from an incompatibility between the old installed omc version and some mos scripts in the repository, starting from scratch bypasses this problem.

I know that is not a very clean solution, but I'm not really expert of the field.