-
Notifications
You must be signed in to change notification settings - Fork 238
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
open/R build fails while running build_openr.sh #38
Comments
I will appreciate a pull request if you happen to have fix. Internally we use different workflow and |
Same problem here. If you do not maintain the build script, could you explain how to extract the build artifacts from docker and install them ? |
Hello @butjar - Build openr in non-shared mode (You will have to modify openr build step in generated docker file). Copy openr binary ( |
Currently the build_script 'build_openr.sh' is broken (facebook#38). Create a debian system builder that creates a build_script from the fbcode_builder. The shell_builder does something very similar. However, the shell_builder doesn't install dependencies and programs to the system, but to a temp directory. To initialize the debian system builder, clone the shell_builder to make changes more traceable.
These two build config need adjustments for a system build: - Add sudo to 'make install' - Update ldconfig after build For better traceability start from the fbcode_builder configs.
The debian_system_builder creates a build script (like build_openr.sh) that uses the fbcode_builder logic to install OpenR and its dependencies to the system. Therefore, a build script created with the debian_system_builder uses the same dependencies as the docker build workflow that is integrated in the CI system. To create a build_script run: ``` python fbcode_builder/debian_system_builder.py > ./build_openr.sh sudo chmod +x build_openr.sh sudo ./build_openr.sh ```
Currently the build_script 'build_openr.sh' is broken (facebook#38). Create a debian system builder that creates a build_script from the fbcode_builder. The shell_builder does something very similar. However, the shell_builder doesn't install dependencies and programs to the system, but to a temp directory. To initialize the debian system builder, clone the shell_builder to make changes more traceable.
These two build config need adjustments for a system build: - Add sudo to 'make install' - Update ldconfig after build For better traceability start from the fbcode_builder configs.
The debian_system_builder creates a build script (like build_openr.sh) that uses the fbcode_builder logic to install OpenR and its dependencies to the system. Therefore, a build script created with the debian_system_builder uses the same dependencies as the docker build workflow that is integrated in the CI system. To create a build_script run: ``` python fbcode_builder/debian_system_builder.py > ./build_openr.sh sudo chmod +x build_openr.sh sudo ./build_openr.sh ```
facebook#41 (review) Move the debian system builder to subdirectory of build. The fbcode_builder is shared accross other projects and should not be modified.
Currently the build_script 'build_openr.sh' is broken (facebook#38). Create a debian system builder that creates a build_script from the fbcode_builder. The shell_builder does something very similar. However, the shell_builder doesn't install dependencies and programs to the system, but to a temp directory. To initialize the debian system builder, clone the shell_builder to make changes more traceable.
These two build config need adjustments for a system build: - Add sudo to 'make install' - Update ldconfig after build For better traceability start from the fbcode_builder configs.
The debian_system_builder creates a build script (like build_openr.sh) that uses the fbcode_builder logic to install OpenR and its dependencies to the system. Therefore, a build script created with the debian_system_builder uses the same dependencies as the docker build workflow that is integrated in the CI system. To create a build_script run: ``` python fbcode_builder/debian_system_builder.py > ./build_openr.sh sudo chmod +x build_openr.sh sudo ./build_openr.sh ```
facebook#41 (review) Move the debian system builder to subdirectory of build. The fbcode_builder is shared accross other projects and should not be modified.
Currently the build_script 'build_openr.sh' is broken (facebook#38). Create a debian system builder that creates a build_script from the fbcode_builder. The shell_builder does something very similar. However, the shell_builder doesn't install dependencies and programs to the system, but to a temp directory. The debian_system_builder creates a build script (like build_openr.sh) that uses the fbcode_builder logic to install OpenR and its dependencies to the system. Therefore, a build script created with the debian_system_builder uses the same dependencies as the docker build workflow that is integrated in the CI system. Since the fbcode_builder is shared across multiple projects the debian_system_builder lives in a separate directory. This requires some hustle to import and reuse the fbcode_builder code (appending stuff to the path). To create a build_script run: ``` python debian_system_builder/debian_system_builder.py > ./build_openr.sh sudo chmod +x build_openr.sh sudo ./build_openr.sh ```
Summary: Title: [fbcode_builder] Create system buildscript generator based on fbcode_builder logic Description: As discussed in #38 the build script `build_openr.sh` is broken, mainly due to dependency issues. I suggested in #40 to use the fbcode_builder logic to create the script with the same dependencies of the build logic used by the CI system. The debian_system_builder allows to create a build script that can be run directly on the host similar to the shell_builder. In addition, the shell_builder is adjusted for a system build/ install. Pull Request resolved: #41 Differential Revision: D14819285 Pulled By: saifhhasan fbshipit-source-id: b16114432faee46a28fadf1e0fa1e891b8748010
Please use this template for reporting suspected bugs or requests for help.
Issue Description
Open/R build fails while running build_openr.sh.
Environment
OS version: ubuntu-16.04
Minimal test code / Steps to reproduce the issue
openr-master/build$ sudo bash ./build_openr.sh
What's the actual result?
[ 85%] Linking CXX executable openr
/usr/bin/ld: /usr/local/lib/libfbzmq.a(ResourceMonitor.cpp.o): undefined reference to symbol '_ZN5boost10filesystem6detail6statusERKNS0_4pathEPNS_6system10error_codeE'
//usr/lib/x86_64-linux-gnu/libboost_filesystem.so.1.58.0: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
CMakeFiles/openr.dir/build.make:132: recipe for target 'openr' failed
make[2]: *** [openr] Error 1
CMakeFiles/Makefile2:1385: recipe for target 'CMakeFiles/openr.dir/all' failed
make[1]: *** [CMakeFiles/openr.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2
What's the expected result?
OpenR built and installed successfully
The text was updated successfully, but these errors were encountered: