View Issue Details

IDProjectCategoryView StatusLast Update
0001391OpenFOAMBugpublic2014-09-10 15:48
Reporteruser994Assigned Touser4 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionno change required 
PlatformIntel CoreOSDebian GNU/Linux Jessie (amd64)OS VersionJessie/testing
Summary0001391: WM_CC and WM_CXX ignored
DescriptionWhile compiling git snapshot (03.09.2014) with clang 3.5, I had to set explicitly clang compiler version in etc/config/settings.sh:

    Clang)
        # using clang - not gcc
        export WM_CC='clang-3.5'
        export WM_CXX='clang++-3.5'
        clang_version=llvm-3.5
        ;;

It's OK, just custom setting. But after that the compilation failed. Editing of following files helped:
wmake/rules/linux64Clang/c

cc = clang-3.5 -m64

wmake/rules/linux64Clang/c++

CC = clang++-3.5 -m64

TagsNo tags attached.

Activities

user4

2014-09-09 10:52

  ~0003229

You could add a new WM_COMPILER type. This would enforce you to create a new set of rules as well.

user994

2014-09-09 16:37

  ~0003231

Thanks for suggestion. If I understand correctly you mean it as a better solution for specifying a particular version of clang compiler (instead of using system default one), while the original issue still remains?

user4

2014-09-10 15:47

  ~0003232

The WM_CC, WM_CXX are for use in non-wmake (e.g. ThirdParty) compilations. wmake uses the WM_COMPILER to select a compiler+options.

Issue History

Date Modified Username Field Change
2014-09-07 19:20 user994 New Issue
2014-09-09 10:52 user4 Note Added: 0003229
2014-09-09 16:37 user994 Note Added: 0003231
2014-09-10 15:47 user4 Note Added: 0003232
2014-09-10 15:48 user4 Status new => resolved
2014-09-10 15:48 user4 Resolution open => no change required
2014-09-10 15:48 user4 Assigned To => user4