[LLVMbugs] [Bug 6540] New: make check fails as ENABLE_SHARED is not set at all.

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Mar 8 01:37:11 PST 2010


http://llvm.org/bugs/show_bug.cgi?id=6540

           Summary: make check fails as ENABLE_SHARED is not set at all.
           Product: Build scripts
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: cmake
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: grosser at fim.uni-passau.de
                CC: llvmbugs at cs.uiuc.edu


Executing "make check" in my build directory fails with this:

-------------------------------------------------------------------------------
Running LLVM regression tests
Traceback (most recent call last):
  File "/home/grosser/Projekte/llvm/git/utils/lit/lit.py", line 5, in <module>
    lit.main()
  File "/home/grosser/Projekte/llvm/git/utils/lit/lit/lit.py", line 446, in
main
    testSuiteCache, localConfigCache)[1])
  File "/home/grosser/Projekte/llvm/git/utils/lit/lit/lit.py", line 281, in
getTestsInSuite
    testSuiteCache, localConfigCache)
  File "/home/grosser/Projekte/llvm/git/utils/lit/lit/lit.py", line 230, in
getTests
    ts,path_in_suite = getTestSuite(path, litConfig, testSuiteCache)
  File "/home/grosser/Projekte/llvm/git/utils/lit/lit/lit.py", line 199, in
getTestSuite
    ts, relative = search(item)
  File "/home/grosser/Projekte/llvm/git/utils/lit/lit/lit.py", line 183, in
search
    cache[path] = res = search1(path)
  File "/home/grosser/Projekte/llvm/git/utils/lit/lit/lit.py", line 174, in
search1
    cfg = TestingConfig.frompath(cfgpath, None, litConfig, mustExist = True)
  File "/home/grosser/Projekte/llvm/git/utils/lit/lit/TestingConfig.py", line
43, in frompath
    exec f in cfg_globals
  File "/home/grosser/Projekte/llvm/build/test/Unit/lit.site.cfg", line 8
    config.enable_shared = @ENABLE_SHARED@
                           ^
SyntaxError: invalid syntax
gmake[3]: *** [test/CMakeFiles/check] Error 1
gmake[2]: *** [test/CMakeFiles/check.dir/all] Error 2
gmake[1]: *** [test/CMakeFiles/check.dir/rule] Error 2
gmake: *** [check] Error 2
-------------------------------------------------------------------------------

When config.enable_shared was introduced CMAKE was probably forgotten.

Here the interesting change:

--------------------
https://llvm.org/svn/llvm-project/llvm/trunk@97119

Author: Jeffrey Yasskin <jyasskin at google.com>
Date:   Thu Feb 25 06:34:33 2010 +0000

 Try r96559 for the third time.  This time the shared library is only built if
 --enable-shared is passed to configure.
--------------------

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list