Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build currently breaking (Ubuntu 20.04 Focal, Docker 20.10.7, docker-compose 1.25.0) #4

Open
jgvictores opened this issue Nov 28, 2022 · 4 comments

Comments

@jgvictores
Copy link
Member

Build currently breaking (Ubuntu 20.04 Focal, Docker 20.10.7, docker-compose 1.25.0)

$ tail -n 50 std.log 
 [nb-javac]                            ^
 [nb-javac]   symbol:   method PropertyObjectList_findIndex(long,PropertyObjectList,long,OpenSimObject)
 [nb-javac]   location: class opensimCommonJNI
 [nb-javac] /home/docker/opensim-workspace/opensim-gui-source/Gui/opensim/modeling/src/org/opensim/modeling/PropertyObjectList.java:433: error: cannot find symbol
 [nb-javac]     return opensimCommonJNI.PropertyObjectList_findIndexForName(swigCPtr, this, SWIGTYPE_p_SimTK__String.getCPtr(name));
 [nb-javac]                            ^
 [nb-javac]   symbol:   method PropertyObjectList_findIndexForName(long,PropertyObjectList,long)
 [nb-javac]   location: class opensimCommonJNI
 [nb-javac] /home/docker/opensim-workspace/opensim-gui-source/Gui/opensim/modeling/src/org/opensim/modeling/PropertyObjectList.java:444: error: cannot find symbol
 [nb-javac]     return opensimCommonJNI.PropertyObjectList_isA(AbstractProperty.getCPtr(prop), prop);
 [nb-javac]                            ^
 [nb-javac]   symbol:   method PropertyObjectList_isA(long,AbstractProperty)
 [nb-javac]   location: class opensimCommonJNI
 [nb-javac] /home/docker/opensim-workspace/opensim-gui-source/Gui/opensim/modeling/src/org/opensim/modeling/PropertyObjectList.java:454: error: cannot find symbol
 [nb-javac]     return new PropertyObjectList(opensimCommonJNI.PropertyObjectList_getAs(AbstractProperty.getCPtr(prop), prop), false);
 [nb-javac]                                                   ^
 [nb-javac]   symbol:   method PropertyObjectList_getAs(long,AbstractProperty)
 [nb-javac]   location: class opensimCommonJNI
 [nb-javac] /home/docker/opensim-workspace/opensim-gui-source/Gui/opensim/modeling/src/org/opensim/modeling/PropertyObjectList.java:464: error: cannot find symbol
 [nb-javac]     return new PropertyObjectList(opensimCommonJNI.PropertyObjectList_updAs(AbstractProperty.getCPtr(prop), prop), false);
 [nb-javac]                                                   ^
 [nb-javac]   symbol:   method PropertyObjectList_updAs(long,AbstractProperty)
 [nb-javac]   location: class opensimCommonJNI
 [nb-javac] /home/docker/opensim-workspace/opensim-gui-source/Gui/opensim/modeling/src/org/opensim/modeling/PropertyStringList.java:293: error: cannot find symbol
 [nb-javac]     super(opensimCommonJNI.PropertyStringList_SWIGUpcast(cPtr), cMemoryOwn);
 [nb-javac]                           ^
 [nb-javac]   symbol:   method PropertyStringList_SWIGUpcast(long)
 [nb-javac]   location: class opensimCommonJNI
 [nb-javac] /home/docker/opensim-workspace/opensim-gui-source/Gui/opensim/modeling/src/org/opensim/modeling/PropertyStringList.java:318: error: cannot find symbol
 [nb-javac]     long cPtr = opensimCommonJNI.PropertyStringList_clone(swigCPtr, this);
 [nb-javac]                                 ^
 [nb-javac]   symbol:   method PropertyStringList_clone(long,PropertyStringList)
 [nb-javac]   location: class opensimCommonJNI
 [nb-javac] 100 errors
 [nb-javac] 1 warning

BUILD FAILED
/home/docker/netbeans-12.3/netbeans/harness/suite.xml:163: The following error occurred while executing this line:
/home/docker/netbeans-12.3/netbeans/harness/common.xml:206: Compile failed; see the compiler error output for details.

Total time: 4 seconds
Gui/opensim/CMakeFiles/PrepareInstaller.dir/build.make:70: recipe for target 'Gui/opensim/CMakeFiles/PrepareInstaller' failed
make[3]: *** [Gui/opensim/CMakeFiles/PrepareInstaller] Error 1
CMakeFiles/Makefile2:209: recipe for target 'Gui/opensim/CMakeFiles/PrepareInstaller.dir/all' failed
make[2]: *** [Gui/opensim/CMakeFiles/PrepareInstaller.dir/all] Error 2
CMakeFiles/Makefile2:216: recipe for target 'Gui/opensim/CMakeFiles/PrepareInstaller.dir/rule' failed
make[1]: *** [Gui/opensim/CMakeFiles/PrepareInstaller.dir/rule] Error 2
Makefile:176: recipe for target 'PrepareInstaller' failed
make: *** [PrepareInstaller] Error 2
~/repos/roboticslab-uc3m/opensim-gui-docker (main %|u=)$ 
$ cat error.log 
Building opensim
Service 'opensim' failed to build: The command '/bin/bash -c mkdir -p ~/opensim-workspace/opensim-gui-source/build &&     cd ~/opensim-workspace/opensim-gui-source/build &&     cmake ../       -DCMAKE_PREFIX_PATH="~/opensim-core"        -DAnt_EXECUTABLE="~/netbeans-12.3/netbeans/extide/ant/bin/ant"       -DANT_ARGS="-Dnbplatform.default.netbeans.dest.dir=$HOME/netbeans-12.3/netbeans;-Dnbplatform.default.harness.dir=$HOME/netbeans-12.3/netbeans/harness" &&     make CopyOpenSimCore &&     make PrepareInstaller' returned a non-zero code: 2

std.log
error.log

@jgvictores

This comment was marked as outdated.

@jgvictores
Copy link
Member Author

Still the same, setting each of the above BUILD_CORES to 1. Maybe something to do with ${USER}/docker/etc...

@jgvictores
Copy link
Member Author

In retrospect,

RUN git clone https://github.com/opensim-org/opensim-gui.git ~/opensim-workspace/opensim-gui-source && \
cd ~/opensim-workspace/opensim-gui-source && \
git submodule update --init --recursive -- opensim-models opensim-visualizer Gui/opensim/threejs
is simply pulling the https://github.com/opensim-org/opensim-gui default branch (currently main), which means any last commit (e.g. last week at time of writing), so it is not so strange that this can eventually lead to build failure.

Not touching for now as this is not a top priority for now, but the simple fix for whoever wants to revive this would start with pointing to a https://github.com/opensim-org/opensim-gui commit which is around the time of most working commits of this Dockerfile (circa Aug 5, 2022).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant