1. 17 Nov, 2019 1 commit
  2. 15 Nov, 2019 2 commits
  3. 26 Sep, 2019 1 commit
  4. 21 Aug, 2019 2 commits
  5. 15 Aug, 2019 5 commits
    • Michael Davidsaver's avatar
      1.1 · 99ab78cd
      Michael Davidsaver authored
      99ab78cd
    • Kirill Smelkov's avatar
      build_dso: Fix incremental rebuild · 024cc109
      Kirill Smelkov authored
      The code was trying to create solibbase symlink pointing to -> outbaselib, e.g.
      
          libdemo.so.1.0 -> build/lib.linux-x86_64-2.7/dsodemo/lib/libdemo.so.1.0
      
      However if the source file in worktree already exists, symlinking was
      failing with an error. Fix it by making sure that source file does not
      exist before calling os.symlink.
      
      Also there was related thinko in log.ingf describing who points to
      who/where, which is corrected along the way.
      
      Without the fix newly added test fails as
      
          ...
          running build_dso
          Building DSOs
          building 'dsodemo.lib.demo' DSO as build/lib.linux-x86_64-2.7/dsodemo/lib/libdemo.so.1.0
          creating build
          creating build/temp.linux-x86_64-2.7
          x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-IbFBHb/python2.7-2.7.16=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DBUILD_FOO -c foo.c -o build/temp.linux-x86_64-2.7/foo.o -DALL -DISC
          x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-IbFBHb/python2.7-2.7.16=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DBUILD_FOO -c bar.cpp -o build/temp.linux-x86_64-2.7/bar.o -DALL -DISCXX
          cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
          creating build/lib.linux-x86_64-2.7
          creating build/lib.linux-x86_64-2.7/dsodemo
          creating build/lib.linux-x86_64-2.7/dsodemo/lib
          x86_64-linux-gnu-g++ -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-IbFBHb/python2.7-2.7.16=. -fstack-protector-strong -Wformat -Werror=format-security -Wl,-z,relro -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-IbFBHb/python2.7-2.7.16=. -fstack-protector-strong -Wformat -Werror=format-security build/temp.linux-x86_64-2.7/foo.o build/temp.linux-x86_64-2.7/bar.o -o build/lib.linux-x86_64-2.7/dsodemo/lib/libdemo.so.1.0 -Wl,-h,libdemo.so.1.0
          symlink libdemo.so.1.0 -> build/lib.linux-x86_64-2.7/dsodemo/lib/libdemo.so.1.0
          creating dsodemo/lib
          copying build/lib.linux-x86_64-2.7/dsodemo/lib/libdemo.so.1.0 -> dsodemo/lib
          copying build/lib.linux-x86_64-2.7/dsodemo/lib/libdemo.so -> dsodemo/lib
          running build_dso
          Building DSOs
          building 'dsodemo.lib.demo' DSO as build/lib.linux-x86_64-2.7/dsodemo/lib/libdemo.so.1.0
          x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-IbFBHb/python2.7-2.7.16=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DBUILD_FOO -c foo.c -o build/temp.linux-x86_64-2.7/foo.o -DALL -DISC
          x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-IbFBHb/python2.7-2.7.16=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DBUILD_FOO -c bar.cpp -o build/temp.linux-x86_64-2.7/bar.o -DALL -DISCXX
          cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
          x86_64-linux-gnu-g++ -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-IbFBHb/python2.7-2.7.16=. -fstack-protector-strong -Wformat -Werror=format-security -Wl,-z,relro -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-IbFBHb/python2.7-2.7.16=. -fstack-protector-strong -Wformat -Werror=format-security build/temp.linux-x86_64-2.7/foo.o build/temp.linux-x86_64-2.7/bar.o -o build/lib.linux-x86_64-2.7/dsodemo/lib/libdemo.so.1.0 -Wl,-h,libdemo.so.1.0
          symlink libdemo.so.1.0 -> build/lib.linux-x86_64-2.7/dsodemo/lib/libdemo.so.1.0
          error: [Errno 17] File exists
      024cc109
    • Kirill Smelkov's avatar
      build_dso: Factor out basename(solib) computation · a3c37836
      Kirill Smelkov authored
      It is used in several places and will be used more in the next patch.
      a3c37836
    • Kirill Smelkov's avatar
      Fix inplace build · e249f9de
      Kirill Smelkov authored
      build_dso for inplace mode copies DSO built in build/ into worktree.
      However if the destination directory does not exist yet, copy_file
      fails. Fix it by making sure before copying that destination directory
      exits.
      
      Without the fix added test fails as follows:
      
          ...
          creating build/lib.linux-x86_64-2.7
          creating build/lib.linux-x86_64-2.7/dsodemo
          creating build/lib.linux-x86_64-2.7/dsodemo/lib
          x86_64-linux-gnu-g++ -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-IbFBHb/python2.7-2.7.16=. -fstack-protector-strong -Wformat -Werror=format-security -Wl,-z,relro -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-IbFBHb/python2.7-2.7.16=. -fstack-protector-strong -Wformat -Werror=format-security build/temp.linux-x86_64-2.7/foo.o build/temp.linux-x86_64-2.7/bar.o -o build/lib.linux-x86_64-2.7/dsodemo/lib/libdemo.so.1.0 -Wl,-h,libdemo.so.1.0
          symlink libdemo.so.1.0 -> build/lib.linux-x86_64-2.7/dsodemo/lib/libdemo.so.1.0
          copying build/lib.linux-x86_64-2.7/dsodemo/lib/libdemo.so.1.0 -> dsodemo/lib
          error: [Errno 2] No such file or directory: 'dsodemo/lib/libdemo.so.1.0'
      e249f9de
    • Kirill Smelkov's avatar
      .gitignore += *.so.* · d9a47177
      Kirill Smelkov authored
      This covers .so files created with soversion, e.g. there can be
      libdemo.so and libdemo.so.1.0 . The latter is covered by added patern.
      
      No need to change dylib and dll patterns - according to current
      setuptools_dso code, the soversion is either used before '.dylib'
      suffix, or, for '.dll' case is not present in file name at all.
      d9a47177
  6. 13 Oct, 2018 1 commit
  7. 18 Jul, 2018 1 commit
  8. 17 Jul, 2018 1 commit
  9. 15 Jul, 2018 1 commit
  10. 09 Jul, 2018 4 commits
  11. 08 Jul, 2018 14 commits
  12. 07 Jul, 2018 1 commit