Merge raspbian llvm-toolchain-7 changes into llvm-toolchain-8 packaging.
authorPeter Michael Green <plugwash@raspbian.org>
Thu, 18 Apr 2019 12:39:52 +0000 (12:39 +0000)
committerPeter Michael Green <plugwash@raspbian.org>
Thu, 18 Apr 2019 12:39:52 +0000 (12:39 +0000)
1  2 
cmake/modules/GetHostTriple.cmake
compiler-rt/cmake/base-config-ix.cmake
debian/changelog
debian/patches/series
debian/rules

index 7b842450b726aefaa44377cb5e8212a66ec42668,d893071b08e411f5187a99029e6855018794713a..21eaf8f9155fac1a86e78076f1f910ee9acf2f19
@@@ -10,12 -10,12 +10,12 @@@ function( get_host_triple var 
      endif()
    elseif( MINGW AND NOT MSYS )
      if( CMAKE_SIZEOF_VOID_P EQUAL 8 )
 -      set( value "x86_64-w64-mingw32" )
 +      set( value "x86_64-w64-windows-gnu" )
      else()
 -      set( value "i686-pc-mingw32" )
 +      set( value "i686-pc-windows-gnu" )
      endif()
    else( MSVC )
-     set(config_guess ${LLVM_MAIN_SRC_DIR}/cmake/config.guess)
+     set(config_guess ${LLVM_MAIN_SRC_DIR}/cmake/config.guess.hack)
      execute_process(COMMAND sh ${config_guess}
        RESULT_VARIABLE TT_RV
        OUTPUT_VARIABLE TT_OUT
index f5af3508cab70ddc3287b191b3b55b817026ebe0,e679f8444039775c563bbbfca26c9cb838934e7e..4d0ab4e96a5d3ba31e18e42484a5c56943c4451c
 -llvm-toolchain-7 (1:7.0.1-8+rpi1) buster-staging; urgency=medium
++llvm-toolchain-8 (1:8-3+rpi1) buster-staging; urgency=medium
+   [changes brought forward from llvm-toolchain-3.8 1:3.8-2+rpi1 by Peter Michael Green <plugwash@raspbian.org> at Sat, 14 May 2016 21:43:35 +0000]
+   * Cleanup .pyc files in clean target.
+   * Add a hack to the cmake based build to force armv6 (unfortunately the cmake
+     based build relies on config.guess which assumes you want to build for the
+     hardware you are running on).
+   * Add -DCOMPILER_RT_BUILD_BUILTINS=OFF to disable parts of compiler-rt that
+     are broken on lower arm architectures.
+   [changes introduced in llvm-toolchain-3.9 1:3.9.1-1 by Peter Michael Green]
+   * disable testsuite (using a method that is hopefully less likely to cause diff conflicts than previously).
+   * Remove -march=armv7-a in compiler-rt/cmake/config-ix-base.cmake
+   * Clean up debian/usr in clean target.
+   * Clean up clang/tools/*-3.9 in clean target.
+   * Clean up stray *3.9.vim files
+   * Clean up clang/tools/scan-build/man/scan-build-3.9.1 and utils/vim/llvm-3.9-vimrc
+   * Clean up debian/*.install
+   [changes introduced in llvm-toolchain-6.0 1:6.0-1+rpi1 by Peter michael green]
+   * create build-llvm/docs/ocamldoc/html/ so the install target doesn't complain
+     about it not existing.
+   * clean up more crap left behind by build process.
+   [changes introduced in llvm-toolchain-6.0 1:6.0-3+rpi1 by Peter Michael Green]
+   * Remove debian/man in clean target.
+   [changes introduced in llvm-toolchain-7 1:7-6+rpi1 by Peter Michael Green]
+   * Use libatomic on armhf
+   * Set cmake/config.guess.hack back to mode 644 in clean target to keep
+     git/dgit happy.
+   * Yet more clean target fixes.
+   [changes introduced in llvm-toolchain-7 1:7.0.1-1+rpi2 by Peter Michael Green]
+   * Change triplet in debian/rules to use armv6k rather than armv7l
 - -- Raspbian forward porter <root@raspbian.org>  Mon, 11 Mar 2019 22:51:24 +0000
++ -- Peter Michael Green <plugwash@raspbian.org>  Thu, 18 Apr 2019 12:39:00 +0000
 -llvm-toolchain-7 (1:7.0.1-8) unstable; urgency=medium
 +llvm-toolchain-8 (1:8-3) unstable; urgency=medium
  
 -  * Fix a segfault in autopkgtest by brining
 -    pr39427-misscompile.diff back
 -    (Closes: #923456)
 +  * Fix the FTBFS on mips (introduced by my previous change)
  
 - -- Sylvestre Ledru <sylvestre@debian.org>  Thu, 28 Feb 2019 13:50:21 +0100
 + -- Sylvestre Ledru <sylvestre@debian.org>  Tue, 02 Apr 2019 11:57:08 +0200
  
 -llvm-toolchain-7 (1:7.0.1-7) unstable; urgency=medium
 +llvm-toolchain-8 (1:8-2) unstable; urgency=medium
  
 -  * Fix an ABI issue introduced with the kfreebsd support
 -    (Closes: #922731)
 -  * kfreebsd/kfreebsd-triple-clang.diff: update of the patch to fix
 -    the kfreebsd FTBFS  (Closes: #921246)
 -  * Enable ld gold for kfreebsd-amd64 and kfreebsd-i386
 -    Many thanks to Svante Signell for the three updates
 +  * Fix the search path on mips64el (which is causing the stage2
 +    build of mips64el to fail
 +    See https://bugs.llvm.org/show_bug.cgi?id=41204
 +
 +  [ Timo Aaltonen ]
 +  * import patches for intel-opencl-clang: they fix various issues
 +    with opengl and clang-8, and are taken from llvm master branch.
 +    - Fix pointer blocks on OpenCL functions, that never pointed to real
 +      functions
 +    - Fix assertion errors on some OpenCL functions
 +    - Refactor a little bit OpenCL calls, by emitting direct block calls.
 +
 + -- Gianfranco Costamagna <locutusofborg@debian.org>  Wed, 20 Mar 2019 14:36:40 +0100
 +
 +llvm-toolchain-8 (1:8-1) unstable; urgency=medium
 +
 +  * New upstream release
 +
 + -- Sylvestre Ledru <sylvestre@debian.org>  Tue, 19 Mar 2019 21:57:02 +0100
 +
 +llvm-toolchain-8 (1:8~+rc5-2) unstable; urgency=medium
 +
 +  * Try to fix a mips64el FTBFS
 +    Cherry-pick of https://patches-gcc.linaro.org/patch/3032/
 +
 + -- Sylvestre Ledru <sylvestre@debian.org>  Sun, 17 Mar 2019 20:18:19 +0100
 +
 +llvm-toolchain-8 (1:8~+rc5-1) unstable; urgency=medium
 +
 +  * New snapshot release
 +
 + -- Sylvestre Ledru <sylvestre@debian.org>  Tue, 12 Mar 2019 12:27:41 +0100
 +
 +llvm-toolchain-8 (1:8~+rc4-1) unstable; urgency=medium
 +
 +  * New snapshot release
 +
 + -- Sylvestre Ledru <sylvestre@debian.org>  Sun, 10 Mar 2019 11:06:14 +0100
 +
 +llvm-toolchain-8 (1:8~+rc3-1~exp1) unstable; urgency=medium
 +
 +  * New snapshot release
 +  * Activate -DLLVM_TEMPORARILY_ALLOW_OLD_TOOLCHAIN for all
 +    gcc
 +
 + -- Sylvestre Ledru <sylvestre@debian.org>  Thu, 28 Feb 2019 12:33:57 +0100
 +
 +llvm-toolchain-8 (1:8~+rc2-1~exp3) UNRELEASED; urgency=medium
 +
 +  [ Gianfranco Costamagna ]
 +  * Commit Ubuntu delta to 8 and snapshot branches
  
    [ Matthias Klose ]
    * Remove the autopkg test for a genuine LLVM bug.
index cbf0c7aba5b7e6396f060dcb68958d3e67dcf2b4,5d9a7997c1115742604721663259948056b3d917..93cc4e8363db5ee436d2be153e81c6d8d33a6ebb
@@@ -20,17 -19,14 +18,13 @@@ symbolizer-path.dif
  clang-tidy-run-bin.diff
  0001-tools-clang-cmake-resolve-symlinks-in-ClangConfig.cmake.patch
  debug-jit-path.diff
  # commented because of bug 903709
  #force-gcc-header-obj.diff
  do-not-fail-on-unexpected-pass.diff
  disable-display-PASS-UNSUPPORTED-XFAIL.diff
  # llvm-config
  fix-llvm-config-obj-src-root.patch
 -fix-llvm-config.diff
  0001-llvm-cmake-resolve-symlinks-in-LLVMConfig.cmake.patch
  # Lib names
  0044-soname.diff
  lldb-soname.diff
@@@ -127,9 -133,5 +112,11 @@@ kfreebsd/lib_Target_X86.dif
  kfreebsd/lldb_source_Host_freebsd_Host.cpp.diff
  kfreebsd/lldb_source_Plugins_Process_FreeBSD.diff
  kfreebsd/tools_llvm-shlib_CMakeLists.txt.diff
 -kfreebsd/include_llvm_MC_MCELFObjectWriter.h.diff
 +mips64el-fix.diff
 +
 +# patches for intel-opencl-clang
 +OpenCL-Change-type-of-block-pointer-for-OpenCL.patch
 +OpenCL-Simplify-LLVM-IR-generated-for-OpenCL-blocks.patch
 +OpenCL-Fix-assertion-due-to-blocks.patch
++
+ auto-1:5.0~+rc2-1+rpi1-d8bb5e17a1c124bfc65bd4da3d5bad2318b86155-1504768094
diff --cc debian/rules
index 909eb431d25791192ae1b47de77e127be477915c,789eb9ccd2e3483eb921af4b4e298831f478e4b3..694d674a832420c1dc8c6fb4a33830565b67e192
@@@ -93,16 -93,9 +93,16 @@@ endi
  
  ifneq (,$(findstring $(DEB_HOST_ARCH),armhf))
  # avoid an issue with openmp on armhf
-   CMAKE_EXTRA += -DLLVM_HOST_TRIPLE=armv7l-unknown-linux-gnueabihf
+   CMAKE_EXTRA += -DLLVM_HOST_TRIPLE=armv6k-unknown-linux-gnueabihf
  endif
  
 +ifneq (,$(filter $(DEB_HOST_ARCH),mips64el))
 +# avoid an issue with search path on mips64el
 +# https://bugs.llvm.org/show_bug.cgi?id=41204
 +  CMAKE_EXTRA += -DLLVM_HOST_TRIPLE=mips64el-linux-gnuabi64
 +endif
 +
 +
  ifeq ($(shell dpkg --compare-versions $(shell dpkg-query -W -f '$${Version}' g++-$(GCC_VERSION)) ge 4.8-20121128-1~ ; echo $$?),0)
        control_vars = '-Vdep:devlibs=libstdc++-$(GCC_VERSION)-dev, libgcc-$(GCC_VERSION)-dev' \
                '-Vdep:devlibs-objc=libobjc-$(GCC_VERSION)-dev'
@@@ -250,12 -241,12 +250,18 @@@ endi
  
  
  preconfigure:
 +      @echo "DEB_HOST_MULTIARCH=$(DEB_HOST_MULTIARCH)"
 +      @echo "DEB_HOST_GNU_TYPE=$(DEB_HOST_GNU_TYPE)"
 +      @echo "DEB_HOST_ARCH_BITS=$(DEB_HOST_ARCH_BITS)"
 +      @echo "DEB_HOST_ARCH=$(DEB_HOST_ARCH)"
 +      @echo "DEB_HOST_ARCH_OS=$(DEB_HOST_ARCH_OS)"
 +
+       # add executable flag to script we added as part of triplet hack
+       # --plugwash
+       chmod 755 cmake/config.guess.hack
+       # also make sure config.guess is executable
+       chmod 755 cmake/config.guess
+       
        for f in debian/*.in; do \
                f2=$$(echo $$f | sed 's/\.in$$//;s/X\.Y/$(LLVM_VERSION)/'); \
                echo "$$f => $$f2"; \
@@@ -830,10 -818,11 +837,13 @@@ endi
                lcov --directory $(TARGET_BUILD)/ --capture --ignore-errors source --output-file $$REPORT; \
                lcov --remove $$REPORT "/usr*" -o $$REPORT; \
                genhtml -o reports/coverage --show-details --highlight --legend $$REPORT; \
 +              chmod 0755 `find reports/coverage -type d`; \
 +              chmod 0644 `find reports/coverage -type f`; \
        fi
  override_dh_auto_test:
+ else
+ override_dh_auto_test:
+       echo testsuite disabled
  endif