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

#1786: condition link flag on library's presence #1787

Merged
merged 2 commits into from
May 10, 2022

Conversation

stmcgovern
Copy link
Contributor

Fixes #1786. Follow-up to issue #1691.

@stmcgovern stmcgovern linked an issue May 9, 2022 that may be closed by this pull request
@github-actions
Copy link

github-actions bot commented May 9, 2022

PR tests (gcc-5, ubuntu, mpich)

Build for 49aace0

Compilation - successful

Testing - passed

Build log

@github-actions
Copy link

github-actions bot commented May 9, 2022

PR tests (clang-3.9, ubuntu, mpich)

Build for 49aace0

Compilation - successful

Testing - passed

Build log

@github-actions
Copy link

github-actions bot commented May 9, 2022

PR tests (gcc-6, ubuntu, mpich)

Build for 49aace0

Compilation - successful

Testing - passed

Build log

@github-actions
Copy link

github-actions bot commented May 9, 2022

PR tests (gcc-9, ubuntu, mpich, zoltan)

Build for 49aace0

Compilation - successful

Testing - passed

Build log

@github-actions
Copy link

github-actions bot commented May 9, 2022

PR tests (gcc-8, ubuntu, mpich, address sanitizer)

Build for 49aace0

Compilation - successful

Testing - passed

Build log

@github-actions
Copy link

github-actions bot commented May 9, 2022

PR tests (clang-5.0, ubuntu, mpich)

Build for 49aace0

Compilation - successful

Testing - passed

Build log

@github-actions
Copy link

github-actions bot commented May 9, 2022

PR tests (nvidia cuda 10.1, ubuntu, mpich)

Build for 49aace0

Compilation - successful

Testing - passed

Build log

@github-actions
Copy link

github-actions bot commented May 9, 2022

PR tests (gcc-10, ubuntu, openmpi, no LB)

Build for 49aace0

Compilation - successful

Testing - passed

Build log

@github-actions
Copy link

github-actions bot commented May 9, 2022

PR tests (gcc-7, ubuntu, mpich, trace runtime, LB)

Build for 49aace0

Compilation - successful

Testing - passed

Build log

@github-actions
Copy link

github-actions bot commented May 9, 2022

PR tests (clang-11, ubuntu, mpich)

Build for 49aace0

In file included from src/CMakeFiles/vt.dir/Unity/unity_14_cxx.cxx:7:
/vt/src/vt/utils/memory/memory_usage.cc:149:26: warning: 'mallinfo' is deprecated [-Wdeprecated-declarations]
    struct mallinfo mi = mallinfo();
                         ^
/usr/include/malloc.h:114:48: note: 'mallinfo' has been explicitly marked deprecated here
extern struct mallinfo mallinfo (void) __THROW __MALLOC_DEPRECATED;
                                               ^
/usr/include/malloc.h:32:30: note: expanded from macro '__MALLOC_DEPRECATED'
# define __MALLOC_DEPRECATED __attribute_deprecated__
                             ^
/usr/include/x86_64-linux-gnu/sys/cdefs.h:339:51: note: expanded from macro '__attribute_deprecated__'
# define __attribute_deprecated__ __attribute__ ((__deprecated__))
                                                  ^
1 warning generated.

Testing - passed

Build log

@github-actions
Copy link

github-actions bot commented May 9, 2022

PR tests (clang-12, ubuntu, mpich)

Build for 49aace0

In file included from src/CMakeFiles/vt.dir/Unity/unity_14_cxx.cxx:7:
/vt/src/vt/utils/memory/memory_usage.cc:149:26: warning: 'mallinfo' is deprecated [-Wdeprecated-declarations]
    struct mallinfo mi = mallinfo();
                         ^
/usr/include/malloc.h:114:48: note: 'mallinfo' has been explicitly marked deprecated here
extern struct mallinfo mallinfo (void) __THROW __MALLOC_DEPRECATED;
                                               ^
/usr/include/malloc.h:32:30: note: expanded from macro '__MALLOC_DEPRECATED'
# define __MALLOC_DEPRECATED __attribute_deprecated__
                             ^
/usr/include/x86_64-linux-gnu/sys/cdefs.h:339:51: note: expanded from macro '__attribute_deprecated__'
# define __attribute_deprecated__ __attribute__ ((__deprecated__))
                                                  ^
1 warning generated.

Testing - passed

Build log

@stmcgovern stmcgovern force-pushed the 1786-linking-against-libunwind-when-not-present branch from 0456635 to 7842ba2 Compare May 9, 2022 15:14
@github-actions
Copy link

github-actions bot commented May 9, 2022

PR tests (clang-10, alpine, mpich)

Build for 49aace0

Compilation - successful

Testing - passed

Build log

@stmcgovern stmcgovern marked this pull request as ready for review May 9, 2022 15:18
@codecov
Copy link

codecov bot commented May 9, 2022

Codecov Report

Merging #1787 (49aace0) into develop (892388b) will decrease coverage by 0.00%.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #1787      +/-   ##
===========================================
- Coverage    84.15%   84.14%   -0.01%     
===========================================
  Files          753      753              
  Lines        26127    26127              
===========================================
- Hits         21987    21985       -2     
- Misses        4140     4142       +2     
Impacted Files Coverage Δ
src/vt/messaging/request_holder.h 69.23% <0.00%> (-7.70%) ⬇️

@github-actions
Copy link

github-actions bot commented May 9, 2022

PR tests (clang-9, ubuntu, mpich)

Build for 49aace0

Compilation - successful

Testing - passed

Build log

@github-actions
Copy link

github-actions bot commented May 9, 2022

PR tests (intel icpx, ubuntu, mpich)

Build for 49aace0

/vt/lib/EngFormat-Cpp/src/eng_format.cpp:144:15: warning: comparison with NaN always evaluates to false in fast floating point modes [-Wtautological-constant-compare]
    if      ( std::isnan( value ) ) return "NaN";
              ^~~~~~~~~~~~~~~~~~~
/vt/lib/EngFormat-Cpp/src/eng_format.cpp:145:15: warning: comparison with infinity always evaluates to false in fast floating point modes [-Wtautological-constant-compare]
    else if ( std::isinf( value ) ) return "INFINITE";
              ^~~~~~~~~~~~~~~~~~~
2 warnings generated.

Testing - passed

Build log

@github-actions
Copy link

github-actions bot commented May 9, 2022

PR tests (nvidia cuda 11.0, ubuntu, mpich)

Build for 49aace0

Compilation - successful

Testing - passed

Build log

@github-actions
Copy link

github-actions bot commented May 9, 2022

PR tests (clang-13, ubuntu, mpich)

Build for 49aace0

In file included from src/CMakeFiles/vt.dir/Unity/unity_14_cxx.cxx:7:
/vt/src/vt/utils/memory/memory_usage.cc:149:26: warning: 'mallinfo' is deprecated [-Wdeprecated-declarations]
    struct mallinfo mi = mallinfo();
                         ^
/usr/include/malloc.h:114:48: note: 'mallinfo' has been explicitly marked deprecated here
extern struct mallinfo mallinfo (void) __THROW __MALLOC_DEPRECATED;
                                               ^
/usr/include/malloc.h:32:30: note: expanded from macro '__MALLOC_DEPRECATED'
# define __MALLOC_DEPRECATED __attribute_deprecated__
                             ^
/usr/include/x86_64-linux-gnu/sys/cdefs.h:339:51: note: expanded from macro '__attribute_deprecated__'
# define __attribute_deprecated__ __attribute__ ((__deprecated__))
                                                  ^
1 warning generated.

Testing - passed

Build log

@github-actions
Copy link

github-actions bot commented May 9, 2022

PR tests (clang-14, ubuntu, mpich)

Build for 49aace0

In file included from src/CMakeFiles/vt.dir/Unity/unity_14_cxx.cxx:7:
/vt/src/vt/utils/memory/memory_usage.cc:149:26: warning: 'mallinfo' is deprecated [-Wdeprecated-declarations]
    struct mallinfo mi = mallinfo();
                         ^
/usr/include/malloc.h:114:48: note: 'mallinfo' has been explicitly marked deprecated here
extern struct mallinfo mallinfo (void) __THROW __MALLOC_DEPRECATED;
                                               ^
/usr/include/malloc.h:32:30: note: expanded from macro '__MALLOC_DEPRECATED'
# define __MALLOC_DEPRECATED __attribute_deprecated__
                             ^
/usr/include/x86_64-linux-gnu/sys/cdefs.h:339:51: note: expanded from macro '__attribute_deprecated__'
# define __attribute_deprecated__ __attribute__ ((__deprecated__))
                                                  ^
1 warning generated.

Testing - passed

Build log

@github-actions
Copy link

github-actions bot commented May 9, 2022

PR tests (gcc-11, ubuntu, mpich)

Build for 49aace0

In file included from src/CMakeFiles/vt.dir/Unity/unity_14_cxx.cxx:7:
/vt/src/vt/utils/memory/memory_usage.cc: In member function 'virtual std::size_t vt::util::memory::Mallinfo::getUsage()':
/vt/src/vt/utils/memory/memory_usage.cc:149:34: warning: 'mallinfo mallinfo()' is deprecated [-Wdeprecated-declarations]
  149 |     struct mallinfo mi = mallinfo();
      |                          ~~~~~~~~^~
In file included from /vt/src/vt/utils/memory/memory_usage.cc:59,
                 from src/CMakeFiles/vt.dir/Unity/unity_14_cxx.cxx:7:
/usr/include/malloc.h:114:24: note: declared here
  114 | extern struct mallinfo mallinfo (void) __THROW __MALLOC_DEPRECATED;
      |                        ^~~~~~~~

Testing - passed

Build log

@github-actions
Copy link

github-actions bot commented May 9, 2022

PR tests (gcc-12, ubuntu, mpich)

Build for 49aace0

In file included from src/CMakeFiles/vt.dir/Unity/unity_14_cxx.cxx:7:
/vt/src/vt/utils/memory/memory_usage.cc: In member function 'virtual std::size_t vt::util::memory::Mallinfo::getUsage()':
/vt/src/vt/utils/memory/memory_usage.cc:149:34: warning: 'mallinfo mallinfo()' is deprecated [-Wdeprecated-declarations]
  149 |     struct mallinfo mi = mallinfo();
      |                          ~~~~~~~~^~
In file included from /vt/src/vt/utils/memory/memory_usage.cc:59:
/usr/include/malloc.h:114:24: note: declared here
  114 | extern struct mallinfo mallinfo (void) __THROW __MALLOC_DEPRECATED;
      |                        ^~~~~~~~
In file included from src/CMakeFiles/vt.dir/Unity/unity_2_cxx.cxx:10:
/vt/src/vt/group/region/group_list.cc: In member function 'virtual void vt::group::region::List::splitN(int, vt::group::region::Region::ApplyFnType) const':
/vt/src/vt/group/region/group_list.cc:164:31: warning: dangling pointer to an unnamed temporary may be used [-Wdangling-pointer=]
  164 |     for (int i = cur_idx; i < cur_max; i++) {
      |                               ^~~~~~~
/vt/src/vt/group/region/group_list.cc:162:22: note: unnamed temporary defined here
  162 |       size : std::min(size, cur_idx + child_size);
      |              ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~

Testing - passed

Build log

@github-actions
Copy link

github-actions bot commented May 9, 2022

PR tests (clang-10, ubuntu, mpich)

Build for 49aace0

Compilation - successful

Testing - passed

Build log

Copy link
Contributor

@cz4rs cz4rs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To make sure that this is working as intended, we could have one of the builds running without libunwind.
Maybe Alpine? (edit: Alpine has to stick with libunwind)
Maybe Ubuntu/OpenMPI? Removing this line should be enough:

Looks good otherwise 👍

@stmcgovern stmcgovern force-pushed the 1786-linking-against-libunwind-when-not-present branch from 7842ba2 to b662350 Compare May 9, 2022 21:51
@stmcgovern
Copy link
Contributor Author

Thanks @cz4rs. Done.

@stmcgovern stmcgovern requested a review from cz4rs May 9, 2022 22:27
@lifflander lifflander self-requested a review May 9, 2022 22:48
Copy link
Collaborator

@lifflander lifflander left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

@lifflander lifflander force-pushed the 1786-linking-against-libunwind-when-not-present branch from b662350 to 49aace0 Compare May 10, 2022 00:09
@lifflander lifflander merged commit 79eba5e into develop May 10, 2022
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

Successfully merging this pull request may close these issues.

linking against libunwind when not present
3 participants