Uploaded image for project: 'WiredTiger'
  1. WiredTiger
  2. WT-6091

make distclean should remove SWIG generated wrapper files

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Duplicate
    • None
    • None
    • None
    • None

    Description

      This was seen when rebuilding after changing python versions.  Start with the python in your path as python2, and configure/make.  Then change (via virtualenv) so the python in your path is python3.  We should be able to make distclean and configure/build again.  If we do that, when running we get this weird error.

      Traceback (most recent call last):
        File "/mnt/data0/smithk/work/wiredtiger/test/suite/test_checkpoint01.py", line 225, in test_checkpoint_target
          ds1.populate()
        File "/mnt/data0/smithk/work/wiredtiger/test/suite/wtdataset.py", line 72, in populate
          self.fill()
        File "/mnt/data0/smithk/work/wiredtiger/test/suite/wtdataset.py", line 58, in fill
          c[self.key(i)] = self.value(i)
        File "/mnt/data0/smithk/work/wiredtiger/build_posix/lang/python/wiredtiger/swig_wiredtiger.py", line 449, in __setitem__
          self.set_key(key)
        File "/mnt/data0/smithk/work/wiredtiger/build_posix/lang/python/wiredtiger/swig_wiredtiger.py", line 412, in set_key
          self._set_key(self._key)
      TypeError: in method 'Cursor__set_key', argument 2 of type 'void *'

      The problem goes away if we remove lang/python/wiredtiger_wrap.c .  We should also have distclean remove wrapper files for Java and workgen.  Not sure if we need to remove other files generated by SWIG.

      Attachments

        Issue Links

          Activity

            People

              backlog-server-storage-engines Backlog - Storage Engines Team
              donald.anderson@mongodb.com Donald Anderson
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: