Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#3609 closed defect (fixed)

make omc; cd OMCompiler; make install fails because omedit is not present.

Reported by: cxh@… Owned by: Martin Sjölund
Priority: low Milestone: 1.9.4
Component: Build Environment Version:
Keywords: omc, make, install Cc:

Description

Under RHEL 6.7, when building just omc from GitHub with:

unset LD_LIBRARY_PATH
MY_FORK=MyGitHubUserName ; git clone https://openmodelica.org/git-readonly/OpenModelica.git --recursive && (cd OpenModelica && git remote set-url --push origin git@github.com:$MY_FORK/OpenModelica.git && git submodule foreach --recursive 'git remote set-url --push origin `git config --get remote.origin.url | sed s,^.*/,git@github.com:'$MY_FORK'/,`')
export LD_LIBRARY_PATH=/usr/local/gcc-4.9.2/lib64:/usr/local/omniORB-4.2.0/lib:${LD_LIBRARY_PATH}
export LDFLAGS=-L/usr/local/omniORB-4.2.0/lib
export PATH=/usr/lib64/qt4/bin:${PATH}
autoconf
./configure --disable-modelica3d --without-omc --prefix=/usr/local/openmodelica --with-lapack="-L/usr/lib64 -llapack -lblas" --with-omniORB=/usr/local/omniORB-4.2.0
make clean
make omc

cd OMCompiler; make install

fails with:

# cp -p /home/jenkins/src/OpenModelica/build/share/man//man1/*.gz /usr/local/openmodelica/share/man//man1/
# Shared data
cp -p /home/jenkins/src/OpenModelica/build/share//omc/*.* /usr/local/openmodelica/share//omc/
test ! -d /home/jenkins/src/OpenModelica/build/share//omnotebook/ || cp -rp /home/jenkins/src/OpenModelica/build/share//omnotebook/* /usr/local/openmodelica/share//omnotebook/
test ! -d /home/jenkins/src/OpenModelica/build/share//omshell/ || cp -p /home/jenkins/src/OpenModelica/build/share//omshell/*.xml /usr/local/openmodelica/share//omshell/
test ! -d /home/jenkins/src/OpenModelica/build/share//omshell/nls/ || cp -p /home/jenkins/src/OpenModelica/build/share//omshell/nls/*.qm /usr/local/openmodelica/share//omshell/nls/
test ! -d /home/jenkins/src/OpenModelica/build/share//omedit/nls/ || cp -p /home/jenkins/src/OpenModelica/build/share//omedit/nls/*.qm /usr/local/openmodelica/share//omedit/nls/
cp: cannot stat `/home/jenkins/src/OpenModelica/build/share//omedit/nls/*.qm': No such file or directory
make: *** [install] Error 1

My workaround was to run make -n install and then run the remaining commands by hand:

bash-4.1$ make -n install
...
# cp -p /home/jenkins/src/OpenModelica/build/share/man//man1/*.gz /usr/local/openmodelica/share/man//man1/
# Shared data
cp -p /home/jenkins/src/OpenModelica/build/share//omc/*.* /usr/local/openmodelica/share//omc/
test ! -d /home/jenkins/src/OpenModelica/build/share//omnotebook/ || cp -rp /home/jenkins/src/OpenModelica/build/share//omnotebook/* /usr/local/openmodelica/share//omnotebook/
test ! -d /home/jenkins/src/OpenModelica/build/share//omshell/ || cp -p /home/jenkins/src/OpenModelica/build/share//omshell/*.xml /usr/local/openmodelica/share//omshell/
test ! -d /home/jenkins/src/OpenModelica/build/share//omshell/nls/ || cp -p /home/jenkins/src/OpenModelica/build/share//omshell/nls/*.qm /usr/local/openmodelica/share//omshell/nls/
test ! -d /home/jenkins/src/OpenModelica/build/share//omedit/nls/ || cp -p /home/jenkins/src/OpenModelica/build/share//omedit/nls/*.qm /usr/local/openmodelica/share//omedit/nls/
# Scripts
cp -rp /home/jenkins/src/OpenModelica/build/share//omc/scripts/*.* /home/jenkins/src/OpenModelica/build/share
//omc/scripts/OpenTurns /usr/local/openmodelica/share//omc/scripts
# Java
cp -p //home/jenkins/src/OpenModelica/build/share/omc/java//* /usr/local/openmodelica/share/omc/java
# Translations
cp -rp //home/jenkins/src/OpenModelica/build/share/locale//* /usr/local/openmodelica/share/locale/
bash-4.1$ cp -rp /home/jenkins/src/OpenModelica/build/share//omc/scripts/*.* /home/jenkins/src/OpenModelica/build/share//omc/scripts/OpenTurns /usr/local/openmodelica/share//omc/scripts
bash-4.1$ cp -p //home/jenkins/src/OpenModelica/build/share/omc/java//* /usr/local/openmodelica/share/omc/java
bash-4.1$ cp -rp //home/jenkins/src/OpenModelica/build/share/locale//* /usr/local/openmodelica/share/locale/
bash-4.1$ 

Change History (4)

comment:1 by Martin Sjölund, 9 years ago

Owner: changed from somebody to Martin Sjölund
Status: newaccepted

comment:2 by Martin Sjölund, 9 years ago

Component: Command Prompt EnvironmentBuild Environment
Milestone: Future1.9.4
Resolution: fixed
Status: acceptedclosed

comment:3 by Martin Sjölund, 9 years ago

Milestone: 1.9.41.9.4-1.9.x

Milestone renamed

comment:4 by Martin Sjölund, 9 years ago

Milestone: 1.9.4-1.9.x1.9.4

Milestone renamed

Note: See TracTickets for help on using tickets.