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

missing DEPLIBS for stk #451

Closed
wants to merge 1 commit into from
Closed

missing DEPLIBS for stk #451

wants to merge 1 commit into from

Conversation

nschloe
Copy link
Member

@nschloe nschloe commented Jun 16, 2016

This commit fixes missing symbols errors revealed by linking with -Wl,--no-undefined. Evolved from https://software.sandia.gov/bugzilla/show_bug.cgi?id=5929.

@bmpersc @gsjaardema Probably for you to review/merge.

@nschloe
Copy link
Member Author

nschloe commented Sep 12, 2016

Without this, I'm also getting build errors like

[ 76%] Linking CXX executable STK_stk_io_doc_tests.exe
../../stk_util/stk_util/environment/libstk_util_env.so.12.9: undefined reference to `boost::program_options::detail::cmdline::cmdline(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&)'
../../stk_util/stk_util/environment/libstk_util_env.so.12.9: undefined reference to `boost::program_options::detail::cmdline::set_additional_parser(boost::function1<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&>)'
../../stk_util/stk_util/environment/libstk_util_env.so.12.9: undefined reference to `boost::program_options::to_internal(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
../../stk_util/stk_util/environment/libstk_util_env.so.12.9: undefined reference to `boost::program_options::abstract_variables_map::operator[](std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const'
collect2: error: ld returned 1 exit status
packages/stk/stk_doc_tests/stk_io/CMakeFiles/STK_stk_io_doc_tests.dir/build.make:1197: recipe for target 'packages/stk/stk_doc_tests/stk_io/STK_stk_io_doc_tests.exe' failed
make[2]: *** [packages/stk/stk_doc_tests/stk_io/STK_stk_io_doc_tests.exe] Error 1
CMakeFiles/Makefile2:116565: recipe for target 'packages/stk/stk_doc_tests/stk_io/CMakeFiles/STK_stk_io_doc_tests.dir/all' failed
make[1]: *** [packages/stk/stk_doc_tests/stk_io/CMakeFiles/STK_stk_io_doc_tests.dir/all] Error 2
Makefile:160: recipe for target 'all' failed

when building tests. @bmpersc, could you take a look?

@bartlettroscoe
Copy link
Member

I think we are still not allowed to push changes to STK. And it looks like there is little hope that will ever change. Someone on the Sierra side would have to do it.

@trilinos/stk, can one of the STK developers please apply this patch to the native STK repo? I think I have access to the native STK repo so I could push these changes if there are no objections? Since these only impact CMakeLists.txt files, this will not affect that native BJAM build of STK in its host application.

@nschloe
Copy link
Member Author

nschloe commented Oct 7, 2016

Ah, I had been under the impression that the CMake part of STK is handled on the Trilinos side.

In any case, thanks Ross for the reply!

@bartlettroscoe
Copy link
Member

Ah, I had been under the impression that the CMake part of STK is handled on the Trilinos side.

We are not allowed to make any changes to STK at all on the Trilinos side, even to just the CMakeLists.txt files. Unfortunately, this is unlikely to ever change judging how things are going with a new integration effort with STK.

@nschloe
Copy link
Member Author

nschloe commented Oct 7, 2016

Unfortunately, this is unlikely to ever change judging how things are going with a new integration effort with STK.

That's perfectly fine if there is a way to submit issues/PRs to STK directly.

@bartlettroscoe
Copy link
Member

That's perfectly fine if there is a way to submit issues/PRs to STK directly.

I don't think there can be given the way things are going. I think you would need to be an application developer in the Sandia code base where the STK code is embedded in order to do that. You can only do that if your are a Sandian and pay thousands of $$ a year to get access to that code base.

@nschloe
Copy link
Member Author

nschloe commented Dec 18, 2016

@trilinos/stk Ping.

@maherou
Copy link
Member

maherou commented Dec 18, 2016

It is not clear to me that any one on the @trilinos/stk team is both paying attention and able to do something about this issue. @trilinos/framework: What can be done to resolve this issue?

@jwillenbring
Copy link
Member

@bmpersc Is there some way to push this through since it only affects CMakelists files, or should we try to file a STK ticket? This is a poster child for why the integration has to be redone in the right way.

@nschloe
Copy link
Member Author

nschloe commented Jan 19, 2017

Unfortunately, this hasn't been resolved yet. Is there anything I can do to help?

@bartlettroscoe
Copy link
Member

Realistically, I think @bmpersc is the only person who can really make this happen.

@bmpersc
Copy link
Contributor

bmpersc commented Jan 19, 2017

@nschloe I am in the middle of fixing other build errors that have cropped up with an updated STK, once I have addressed those I will look into applying your suggested changes as well.

@bmpersc
Copy link
Contributor

bmpersc commented Jan 20, 2017

I have applied this to STK with some minor changes to address warnings in the build. The only substantive change was to remove stating the boost_program_options dependency. That was causing a warning in the build and it should be redundant since the subpackage was correctly optionally depending on the BoostLib TPL.

I will be working to get this back into Trilinos next week.

@nschloe
Copy link
Member Author

nschloe commented Feb 8, 2017

@bmpersc Have you had the chance to look into this yet?

@bmpersc
Copy link
Contributor

bmpersc commented Feb 8, 2017

@nschloe yes and no. Yes I was working on getting these back into Trilinos when we discovered something in the integration that was completely unacceptable. That forced our hand to instead make the planned move to a new integration system earlier than we'd planned. I'm currently working on that revamp now.

@nschloe
Copy link
Member Author

nschloe commented Apr 10, 2017

@bmpersc How is the revamp going?

@nschloe
Copy link
Member Author

nschloe commented Jun 26, 2017

@jwillenbring I still see the error. Anything I can do to help getting this merged?

@mhoemmen
Copy link
Contributor

@nschloe It's been a while since STK got merged into Trilinos. Not sure of the schedule for the next merge.

@khpierson may want to know about this.

@jwillenbring
Copy link
Member

@bmpersc Has this been essentially applied at this point through the integration process? Can we close this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
AT: WIP Causes the PR autotester to not test the PR. (Remove to allow testing to occur.)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants