Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • T Trilinos
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 936
    • Issues 936
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 22
    • Merge requests 22
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • James Willenbring
  • Trilinos
  • Issues
  • #882

Closed
Open
Created Nov 25, 2016 by James Willenbring@jmwilleOwner

Problem with clang-700.1.81 Trilinos develop config step

Created by: spdomin

I am firing up my Clang (Mac) application builds after about three weeks of down time and now have a host of issues with the config step of Trilinos. Below are some snippets from my failed config which look suspicious, however, I am not really sure if these are the major problem or not:

/Users/naluIt/gitHubWork/nightlyBuildAndTest/Trilinos/build_nightly_release/CMakeFiles/CMakeTmp/src.cxx:12:34: note: insert an explicit cast to silence this issue
  int seed[4] = { 0.0, 0.0, 0.0, 1.0 };
                                 ^~~
                                 static_cast<int>( )
4 errors generated.
make[1]: *** [CMakeFiles/cmTryCompileExec2817964852.dir/src.cxx.o] Error 1
make: *** [cmTryCompileExec2817964852/fast] Error 2
/Users/naluIt/gitHubWork/nightlyBuildAndTest/Trilinos/build_nightly_release/CMakeFiles/CMakeTmp/src.cxx:14:7: warning: comparison of function 'A::theFunction' not equal to a null pointer is always true [-Wtautological-pointer-compare]
  if (A::theFunction != NULL) {
Linking CXX executable cmTryCompileExec2441979721
/usr/local/Cellar/cmake/3.1.0/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec2441979721.dir/link.txt --verbose=1
/usr/local/Cellar/open-mpi/1.8.4/bin/mpicxx     -std=c++11 -DHAVE_CXX_PRAGMA_WEAK -Wl,-search_paths_first -Wl,-headerpad_max_install_names  CMakeFiles/cmTryCompileExec2441979721.dir/src.cxx.o  -o cmTryCompileExec2441979721  
Undefined symbols for architecture x86_64:
  "A::theFunction()", referenced from:
      _main in src.cxx.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [cmTryCompileExec2441979721] Error 1
make: *** [cmTryCompileExec2441979721/fast] Error 2

Source file was:

#include <iostream>

namespace A {
// theFunction never gets defined, because we
// don't link with a library that defines it.
// That's OK, because it's weak linkage.
#pragma weak theFunction
extern void theFunction ();
}
Assignee
Assign to
Time tracking