Package Details: openmodelica 1.24.0-4

Git Clone URL: https://aur.archlinux.org/openmodelica.git (read-only, click to copy)
Package Base: openmodelica
Description: Open-source Modelica-based modeling and simulation environment
Upstream URL: https://www.openmodelica.org
Licenses: OSMC-PL
Submitter: hobbypunk
Maintainer: kyak (xantares)
Last Packager: xantares
Votes: 9
Popularity: 0.67
First Submitted: 2017-10-02 19:23 (UTC)
Last Updated: 2024-11-09 15:34 (UTC)

Dependencies (12)

Required by (0)

Sources (1)

Latest Comments

« First ‹ Previous 1 2 3 4

jhq commented on 2021-07-15 13:13 (UTC)

I was able to compile it (in a clean container) with the following changes:

  • Add the -n flag to cherry pick command
  • Add antlr4-runtime as dependency
  • Export CXXFLAGS=-std=c++14 for netstream (thanks for reporting this upstream!)

Thanks for your effort!

Diff of my changes:

diff --git a/PKGBUILD b/PKGBUILD
index e0ef6c7..8624d27 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -8,7 +8,7 @@ license=('OSMC-PL')
 arch=('x86_64')
 depends=('java-environment' 'lapack' 'openscenegraph' 'omniorb' 'libcurl-gnutls'
          'lpsolve' 'boost-libs' 'qt5-webkit' 'qt5-xmlpatterns' 'qt5-svg' 'qt5-tools'
-         'expat')
+         'expat' 'antlr4-runtime')
 makedepends=('gcc-fortran' 'cmake' 'git')
 source=("${pkgname}::git+${_giturl}#tag=v${pkgver}")
 sha256sums=('SKIP')
@@ -18,13 +18,14 @@ prepare() {
         git remote set-url origin ${_giturl}
         git submodule update --force --init --recursive
         # OMCompiler: Dont try to install translations
-        git cherry-pick 2a39a402d9604a1ce353b0a12574fed5d320be0e
+        git cherry-pick -n 2a39a402d9604a1ce353b0a12574fed5d320be0e
         # Fix build with cmake >= 3.20
-        git cherry-pick 4f3a50974f0f916efd716809699f18d47f1dbe34
+        git cherry-pick -n 4f3a50974f0f916efd716809699f18d47f1dbe34
 }

 build() {
         cd "${pkgname}"
+        export CXXFLAGS=-std=c++14
         autoreconf -fi
         ./configure --prefix=/usr
         make

kyak commented on 2021-06-27 08:34 (UTC)

I've reported upstream here: https://github.com/OpenModelica/OpenModelica/issues/7619

cxashundo commented on 2021-06-22 18:50 (UTC)

@jhq I managed to fix the issue by calling ./configure with CC = clang and CXX = clang++. You might try that.

kyak commented on 2021-06-21 18:10 (UTC) (edited on 2021-06-21 18:11 (UTC) by kyak)

@jhq,

I've changed git cherry pick to git cherry-pick -n so it doesn't try to commit. I assume this should not require git configuration now. I didn't bump the package version because it doesn't change anything in the package and would only cause lengthy rebuilds for existing users.

As for your error, I can confirm that I see the same error. This is probably due to newer gcc version. You should report upstream, since this is not a package issue.

jhq commented on 2021-06-20 16:26 (UTC)

Thanks for maintaining this package!

I have some problems when building this. I use aur sync -c openmodelica which builds in a clean clontainer:

First, I need to configure git user and email for the cherry-pick to work (otherwise I get "git error: please tell me who you are")

Second, (if I fix the above), I get many errors like this one:

src/netstream-storage.cpp:371:71: error: ISO C++17 does not allow dynamic exception specifications
  371 |         void NetStreamStorage::checkReadSafe(unsigned int num) const  throw(std::invalid_argument)
      |                                                                       ^~~~~
make[4]: *** [Makefile:53: obj/netstream-storage.o] Error 1

Any idea in how to fix this?

kyak commented on 2021-05-09 14:01 (UTC)

Hi everyone,

I took over this package ownership and intend to improve it over the time. Suggestions are welcome!