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 warnings for newer boost! #6

Closed
vsoch opened this issue Nov 29, 2022 · 6 comments
Closed

Build warnings for newer boost! #6

vsoch opened this issue Nov 29, 2022 · 6 comments

Comments

@vsoch
Copy link
Collaborator

vsoch commented Nov 29, 2022

No need to act on these, but since I'm building I thought I'd log them somewhere for future use:

In file included from include/boost/config/header_deprecated.hpp:18,
                 from include/boost/progress.hpp:22,
                 from /tmp/nix-build-conveyorlc-1.1.0.drv-0/source/src/VinaLC/parallel_progress.h:26,
                 from /tmp/nix-build-conveyorlc-1.1.0.drv-0/source/src/VinaLC/parallel_mc.cpp:26:
include/boost/progress.hpp:23:1: note: '#pragma message: This header is deprecated. Use the facilities in <boost/timer/timer.hpp> or <boost/timer/progress_display.hpp> instead.'
include/boost/timer.hpp:21:1: note: '#pragma message: This header is deprecated. Use the facilities in <boost/timer/timer.hpp> instead.'

I ran into some issues with building - will see if I can add you to the channel where discussion is on slack.

@XiaohuaZhangLLNL
Copy link
Owner

Which version of boost are you using? Boost timer used in the docking code is out of date if you use new version.

@vsoch
Copy link
Collaborator Author

vsoch commented Nov 29, 2022

Boost172 I believe!

https://search.nixos.org/packages?channel=22.05&show=boost172&from=0&size=50&sort=relevance&type=packages&query=boost

But no need to act on anything - I'm experimenting with nix building which may (or may not) work out. We have a larger bug that I need to look into that (I think?) boost isn't built with MPI, e.g., I get:

image

and here is the content of that file:

# cat build.make 
# CMAKE generated file: DO NOT EDIT!
# Generated by "Unix Makefiles" Generator, CMake Version 3.24

# Delete rule output on recipe failure.
.DELETE_ON_ERROR:

#=============================================================================
# Special targets provided by cmake.

# Disable implicit rules so canonical targets will work.
.SUFFIXES:

# Disable VCS-based implicit rules.
% : %,v

# Disable VCS-based implicit rules.
% : RCS/%

# Disable VCS-based implicit rules.
% : RCS/%,v

# Disable VCS-based implicit rules.
% : SCCS/s.%

# Disable VCS-based implicit rules.
% : s.%

.SUFFIXES: .hpux_make_needs_suffix_list

# Command-line flag to silence nested $(MAKE).
$(VERBOSE)MAKESILENT = -s

#Suppress display of executed commands.
$(VERBOSE).SILENT:

# A target that is always out of date.
cmake_force:
.PHONY : cmake_force

#=============================================================================
# Set environment variables for the build.

# The shell in which to execute make rules.
SHELL = /bin/sh

# The CMake executable.
CMAKE_COMMAND = /nix/store/rxb9zl1mdx9f2n3z0nyv9zhngj3f2pw0-cmake-3.24.3/bin/cmake

# The command to remove a file.
RM = /nix/store/rxb9zl1mdx9f2n3z0nyv9zhngj3f2pw0-cmake-3.24.3/bin/cmake -E rm -f

# Escaping for special characters.
EQUALS = =

# The top-level source directory on which CMake was run.
CMAKE_SOURCE_DIR = /tmp/nix-build-conveyorlc-1.1.0.drv-0/source

# The top-level build directory on which CMake was run.
CMAKE_BINARY_DIR = /tmp/nix-build-conveyorlc-1.1.0.drv-0/source/build

# Include any dependencies generated for this target.
include apps/pipeline/CMakeFiles/PPL1Receptor.dir/depend.make
# Include any dependencies generated by the compiler for this target.
include apps/pipeline/CMakeFiles/PPL1Receptor.dir/compiler_depend.make

# Include the progress variables for this target.
include apps/pipeline/CMakeFiles/PPL1Receptor.dir/progress.make

# Include the compile flags for this target's objects.
include apps/pipeline/CMakeFiles/PPL1Receptor.dir/flags.make

apps/pipeline/CMakeFiles/PPL1Receptor.dir/PPL1Receptor.cpp.o: apps/pipeline/CMakeFiles/PPL1Receptor.dir/flags.make
apps/pipeline/CMakeFiles/PPL1Receptor.dir/PPL1Receptor.cpp.o: /tmp/nix-build-conveyorlc-1.1.0.drv-0/source/apps/pipeline/PPL1Receptor.cpp
apps/pipeline/CMakeFiles/PPL1Receptor.dir/PPL1Receptor.cpp.o: apps/pipeline/CMakeFiles/PPL1Receptor.dir/compiler_depend.ts
        @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --progress-dir=/tmp/nix-build-conveyorlc-1.1.0.drv-0/source/build/CMakeFiles --progress-num=$(CMAKE_PROGRESS_1) "Building CXX object apps/pipeline/CMakeFiles/PPL1Receptor.dir/PPL1Receptor.cpp.o"
        cd /tmp/nix-build-conveyorlc-1.1.0.drv-0/source/build/apps/pipeline && /nix/store/dq0xwmsk1g0i2ayg6pb7y87na2knzylh-gcc-wrapper-11.3.0/bin/g++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -MD -MT apps/pipeline/CMakeFiles/PPL1Receptor.dir/PPL1Receptor.cpp.o -MF CMakeFiles/PPL1Receptor.dir/PPL1Receptor.cpp.o.d -o CMakeFiles/PPL1Receptor.dir/PPL1Receptor.cpp.o -c /tmp/nix-build-conveyorlc-1.1.0.drv-0/source/apps/pipeline/PPL1Receptor.cpp

apps/pipeline/CMakeFiles/PPL1Receptor.dir/PPL1Receptor.cpp.i: cmake_force
        @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Preprocessing CXX source to CMakeFiles/PPL1Receptor.dir/PPL1Receptor.cpp.i"
        cd /tmp/nix-build-conveyorlc-1.1.0.drv-0/source/build/apps/pipeline && /nix/store/dq0xwmsk1g0i2ayg6pb7y87na2knzylh-gcc-wrapper-11.3.0/bin/g++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -E /tmp/nix-build-conveyorlc-1.1.0.drv-0/source/apps/pipeline/PPL1Receptor.cpp > CMakeFiles/PPL1Receptor.dir/PPL1Receptor.cpp.i

apps/pipeline/CMakeFiles/PPL1Receptor.dir/PPL1Receptor.cpp.s: cmake_force
        @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Compiling CXX source to assembly CMakeFiles/PPL1Receptor.dir/PPL1Receptor.cpp.s"
        cd /tmp/nix-build-conveyorlc-1.1.0.drv-0/source/build/apps/pipeline && /nix/store/dq0xwmsk1g0i2ayg6pb7y87na2knzylh-gcc-wrapper-11.3.0/bin/g++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -S /tmp/nix-build-conveyorlc-1.1.0.drv-0/source/apps/pipeline/PPL1Receptor.cpp -o CMakeFiles/PPL1Receptor.dir/PPL1Receptor.cpp.s

apps/pipeline/CMakeFiles/PPL1Receptor.dir/PPL1ReceptorPO.cpp.o: apps/pipeline/CMakeFiles/PPL1Receptor.dir/flags.make
apps/pipeline/CMakeFiles/PPL1Receptor.dir/PPL1ReceptorPO.cpp.o: /tmp/nix-build-conveyorlc-1.1.0.drv-0/source/apps/pipeline/PPL1ReceptorPO.cpp
apps/pipeline/CMakeFiles/PPL1Receptor.dir/PPL1ReceptorPO.cpp.o: apps/pipeline/CMakeFiles/PPL1Receptor.dir/compiler_depend.ts
        @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --progress-dir=/tmp/nix-build-conveyorlc-1.1.0.drv-0/source/build/CMakeFiles --progress-num=$(CMAKE_PROGRESS_2) "Building CXX object apps/pipeline/CMakeFiles/PPL1Receptor.dir/PPL1ReceptorPO.cpp.o"
        cd /tmp/nix-build-conveyorlc-1.1.0.drv-0/source/build/apps/pipeline && /nix/store/dq0xwmsk1g0i2ayg6pb7y87na2knzylh-gcc-wrapper-11.3.0/bin/g++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -MD -MT apps/pipeline/CMakeFiles/PPL1Receptor.dir/PPL1ReceptorPO.cpp.o -MF CMakeFiles/PPL1Receptor.dir/PPL1ReceptorPO.cpp.o.d -o CMakeFiles/PPL1Receptor.dir/PPL1ReceptorPO.cpp.o -c /tmp/nix-build-conveyorlc-1.1.0.drv-0/source/apps/pipeline/PPL1ReceptorPO.cpp

apps/pipeline/CMakeFiles/PPL1Receptor.dir/PPL1ReceptorPO.cpp.i: cmake_force
        @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Preprocessing CXX source to CMakeFiles/PPL1Receptor.dir/PPL1ReceptorPO.cpp.i"
        cd /tmp/nix-build-conveyorlc-1.1.0.drv-0/source/build/apps/pipeline && /nix/store/dq0xwmsk1g0i2ayg6pb7y87na2knzylh-gcc-wrapper-11.3.0/bin/g++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -E /tmp/nix-build-conveyorlc-1.1.0.drv-0/source/apps/pipeline/PPL1ReceptorPO.cpp > CMakeFiles/PPL1Receptor.dir/PPL1ReceptorPO.cpp.i

apps/pipeline/CMakeFiles/PPL1Receptor.dir/PPL1ReceptorPO.cpp.s: cmake_force
        @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Compiling CXX source to assembly CMakeFiles/PPL1Receptor.dir/PPL1ReceptorPO.cpp.s"
        cd /tmp/nix-build-conveyorlc-1.1.0.drv-0/source/build/apps/pipeline && /nix/store/dq0xwmsk1g0i2ayg6pb7y87na2knzylh-gcc-wrapper-11.3.0/bin/g++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -S /tmp/nix-build-conveyorlc-1.1.0.drv-0/source/apps/pipeline/PPL1ReceptorPO.cpp -o CMakeFiles/PPL1Receptor.dir/PPL1ReceptorPO.cpp.s

# Object files for target PPL1Receptor
PPL1Receptor_OBJECTS = \
"CMakeFiles/PPL1Receptor.dir/PPL1Receptor.cpp.o" \
"CMakeFiles/PPL1Receptor.dir/PPL1ReceptorPO.cpp.o"

# External object files for target PPL1Receptor
PPL1Receptor_EXTERNAL_OBJECTS =

apps/pipeline/PPL1Receptor: apps/pipeline/CMakeFiles/PPL1Receptor.dir/PPL1Receptor.cpp.o
apps/pipeline/PPL1Receptor: apps/pipeline/CMakeFiles/PPL1Receptor.dir/PPL1ReceptorPO.cpp.o
apps/pipeline/PPL1Receptor: apps/pipeline/CMakeFiles/PPL1Receptor.dir/build.make
apps/pipeline/PPL1Receptor: src/libLBind.a
apps/pipeline/PPL1Receptor: /nix/store/bmpy8q7p0wimmzhmlqrvdiaq1lwgd1jb-boost-1.72.0/lib/libboost_program_options.so.1.72.0
apps/pipeline/PPL1Receptor: /nix/store/bmpy8q7p0wimmzhmlqrvdiaq1lwgd1jb-boost-1.72.0/lib/libboost_system.so.1.72.0
apps/pipeline/PPL1Receptor: /nix/store/bmpy8q7p0wimmzhmlqrvdiaq1lwgd1jb-boost-1.72.0/lib/libboost_filesystem.so.1.72.0
apps/pipeline/PPL1Receptor: /nix/store/bmpy8q7p0wimmzhmlqrvdiaq1lwgd1jb-boost-1.72.0/lib/libboost_regex.so.1.72.0
apps/pipeline/PPL1Receptor: /nix/store/bmpy8q7p0wimmzhmlqrvdiaq1lwgd1jb-boost-1.72.0/lib/libboost_serialization.so.1.72.0
apps/pipeline/PPL1Receptor: Boost::mpi-NOTFOUND
apps/pipeline/PPL1Receptor: /nix/store/bmpy8q7p0wimmzhmlqrvdiaq1lwgd1jb-boost-1.72.0/lib/libboost_thread.so.1.72.0
apps/pipeline/PPL1Receptor: /nix/store/6qkc7i237zhnni7l0rrscv205zx8h2mc-openmpi-4.1.4/lib/libmpi_cxx.so
apps/pipeline/PPL1Receptor: /nix/store/6qkc7i237zhnni7l0rrscv205zx8h2mc-openmpi-4.1.4/lib/libmpi.so
apps/pipeline/PPL1Receptor: /nix/store/026hln0aq1hyshaxsdvhg0kmcm6yf45r-zlib-1.2.13/lib/libz.so
apps/pipeline/PPL1Receptor: apps/pipeline/CMakeFiles/PPL1Receptor.dir/link.txt
        @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --bold --progress-dir=/tmp/nix-build-conveyorlc-1.1.0.drv-0/source/build/CMakeFiles --progress-num=$(CMAKE_PROGRESS_3) "Linking CXX executable PPL1Receptor"
        cd /tmp/nix-build-conveyorlc-1.1.0.drv-0/source/build/apps/pipeline && $(CMAKE_COMMAND) -E cmake_link_script CMakeFiles/PPL1Receptor.dir/link.txt --verbose=$(VERBOSE)

# Rule to build all files generated by this target.
apps/pipeline/CMakeFiles/PPL1Receptor.dir/build: apps/pipeline/PPL1Receptor
.PHONY : apps/pipeline/CMakeFiles/PPL1Receptor.dir/build

apps/pipeline/CMakeFiles/PPL1Receptor.dir/clean:
        cd /tmp/nix-build-conveyorlc-1.1.0.drv-0/source/build/apps/pipeline && $(CMAKE_COMMAND) -P CMakeFiles/PPL1Receptor.dir/cmake_clean.cmake
.PHONY : apps/pipeline/CMakeFiles/PPL1Receptor.dir/clean

apps/pipeline/CMakeFiles/PPL1Receptor.dir/depend:
        cd /tmp/nix-build-conveyorlc-1.1.0.drv-0/source/build && $(CMAKE_COMMAND) -E cmake_depends "Unix Makefiles" /tmp/nix-build-conveyorlc-1.1.0.drv-0/source /tmp/nix-build-conveyorlc-1.1.0.drv-0/source/apps/pipeline /tmp/nix-build-conveyorlc-1.1.0.drv-0/source/build /tmp/nix-build-conveyorlc-1.1.0.drv-0/source/build/apps/pipeline /tmp/nix-build-conveyorlc-1.1.0.drv-0/source/build/apps/pipeline/CMakeFiles/PPL1Receptor.dir/DependInfo.cmake --color=$(COLOR)
.PHONY : apps/pipeline/CMakeFiles/PPL1Receptor.dir/depend 

I'm wondering if this is the issue?

apps/pipeline/PPL1Receptor: Boost::mpi-NOTFOUND

Thanks for the help! I'm fairly terrible with cmake.

@XiaohuaZhangLLNL
Copy link
Owner

Boost::mpi is not built by default. Here is how I enable the the mpi binding build.

cd boost_1_72_0/tools/build/example/
echo "using mpi : /usr/tce/packages/mvapich2-tce/mvapich2-2.3.6-gcc-10.3.1/bin/mpicc ;" >> user-config.jam
cp user-config.jam ~/

@vsoch
Copy link
Collaborator Author

vsoch commented Nov 29, 2022

@XiaohuaZhangLLNL I got everything working! woo!!! https://github.com/rse-ops/nix/pull/5/files#diff-8336dc860ae586f91fdb92c3e5a2cdd1b7f5bf05f8a2e78e357a11a0ecf30b68

@XiaohuaZhangLLNL
Copy link
Owner

XiaohuaZhangLLNL commented Nov 29, 2022 via email

@vsoch
Copy link
Collaborator Author

vsoch commented Nov 30, 2022

Thank you! When I update the nix package I'll switch to use this.

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

No branches or pull requests

2 participants