Your message dated Thu, 18 Oct 2018 19:24:33 +0000 with message-id <[email protected]> and subject line Bug#908847: fixed in llvm-toolchain-6.0 1:6.0.1-9.1 has caused the Debian Bug report #908847, regarding llvm-toolchain-6.0: FTBFS on hurd-i386 to be marked as done.
This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact [email protected] immediately.) -- 908847: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=908847 Debian Bug Tracking System Contact [email protected] with problems
--- Begin Message ---Source: llvm-toolchain-6.0 Version: 6.0.1-9 Severity: important Tags: ftbfs, patch User: [email protected] Usertags: hurd-i386 Hello, Currently llvm-toolchain-6.0 FTBFS on GNU/Hurd due to missing porting issues. Attached are three patches to fix this: lib_Support_Unix_Path.inc.diff tools_llvm-shlib_CMakeLists.txt.diff clang_lib_Frontend_ModuleDependencyCollector.cpp.dif The last patch is a PATH_MAX issue. Maybe it could be integrated with the already present hurd-pathmax.diff patch. Additionally the patch debian_rules.diff adds GNU/Hurd to the architectures capable of using the gold linker. Thanks!Index: llvm-toolchain-6.0-6.0.1/clang/lib/Frontend/ModuleDependencyCollector.cpp =================================================================== --- llvm-toolchain-6.0-6.0.1.orig/clang/lib/Frontend/ModuleDependencyCollector.cpp +++ llvm-toolchain-6.0-6.0.1/clang/lib/Frontend/ModuleDependencyCollector.cpp @@ -97,6 +97,11 @@ struct ModuleDependencyMMCallbacks : pub } +// For GNU Hurd +#if defined(__GNU__) && !defined(PATH_MAX) +# define PATH_MAX 4096 +#endif + // TODO: move this to Support/Path.h and check for HAVE_REALPATH? static bool real_path(StringRef SrcPath, SmallVectorImpl<char> &RealPath) { #ifdef LLVM_ON_UNIX--- a/debian/rules 2018-09-12 10:48:35.000000000 +0200 +++ b/debian/rules 2018-09-14 13:35:50.000000000 +0200 @@ -84,7 +84,7 @@ control_vars = '-Vdep:devlibs=libstdc++6-$(GCC_VERSION)-dev' endif -BINUTILS_GOLD_ARCHS := amd64 arm64 armhf i386 ppc64 ppc64el sparc sparc64 x32 s390x +BINUTILS_GOLD_ARCHS := amd64 arm64 armhf i386 ppc64 ppc64el sparc sparc64 x32 s390x hurd-i386 ifeq ($(shell dpkg --compare-versions $(shell dpkg-query -W -f '$${Version}' binutils) ge 2.23.1-1~exp3 ; echo $$?),0) ifneq (,$(filter $(DEB_HOST_ARCH),$(BINUTILS_GOLD_ARCHS))) # -fused-ld=gold enables the gold linker (but is not supported by all archs / distro)Index: llvm-toolchain-6.0-6.0.1/lib/Support/Unix/Path.inc =================================================================== --- llvm-toolchain-6.0-6.0.1.orig/lib/Support/Unix/Path.inc +++ llvm-toolchain-6.0-6.0.1/lib/Support/Unix/Path.inc @@ -98,7 +98,7 @@ #define STATVFS_F_FRSIZE(vfs) static_cast<uint64_t>(vfs.f_bsize) #endif -#if defined(__NetBSD__) +#if defined(__NetBSD__) || defined(__GNU__) #define STATVFS_F_FLAG(vfs) (vfs).f_flag #else #define STATVFS_F_FLAG(vfs) (vfs).f_flags @@ -111,7 +111,7 @@ namespace sys { namespace fs { #if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || \ defined(__minix) || defined(__FreeBSD_kernel__) || defined(__linux__) || \ - defined(__CYGWIN__) || defined(__DragonFly__) || defined(_AIX) + defined(__CYGWIN__) || defined(__DragonFly__) || defined(_AIX) || defined(__GNU__) static int test_dir(char ret[PATH_MAX], const char *dir, const char *bin) { @@ -187,7 +187,7 @@ std::string getMainExecutable(const char if (getprogpath(exe_path, argv0) != NULL) return exe_path; -#elif defined(__linux__) || defined(__CYGWIN__) +#elif defined(__linux__) || defined(__CYGWIN__) || defined(__GNU__) char exe_path[MAXPATHLEN]; StringRef aPath("/proc/self/exe"); if (sys::fs::exists(aPath)) { @@ -360,7 +360,7 @@ std::error_code remove(const Twine &path } static bool is_local_impl(struct STATVFS &Vfs) { -#if defined(__linux__) +#if defined(__linux__) || defined(__GNU__) #ifndef NFS_SUPER_MAGIC #define NFS_SUPER_MAGIC 0x6969 #endif @@ -370,7 +370,11 @@ static bool is_local_impl(struct STATVFS #ifndef CIFS_MAGIC_NUMBER #define CIFS_MAGIC_NUMBER 0xFF534D42 #endif +#ifdef __GNU__ + switch ((uint32_t)Vfs.__f_type) { +#else switch ((uint32_t)Vfs.f_type) { +#endif case NFS_SUPER_MAGIC: case SMB_SUPER_MAGIC: case CIFS_MAGIC_NUMBER:Index: llvm-toolchain-6.0-6.0.1/tools/llvm-shlib/CMakeLists.txt =================================================================== --- llvm-toolchain-6.0-6.0.1.orig/tools/llvm-shlib/CMakeLists.txt +++ llvm-toolchain-6.0-6.0.1/tools/llvm-shlib/CMakeLists.txt @@ -40,6 +40,7 @@ set_property(TARGET LLVM PROPERTY VERSIO list(REMOVE_DUPLICATES LIB_NAMES) if(("${CMAKE_SYSTEM_NAME}" STREQUAL "Linux") OR (MINGW) OR (HAIKU) OR ("${CMAKE_SYSTEM_NAME}" STREQUAL "FreeBSD") + OR ("${CMAKE_SYSTEM_NAME}" STREQUAL "GNU") OR ("${CMAKE_SYSTEM_NAME}" STREQUAL "DragonFly") OR ("${CMAKE_SYSTEM_NAME}" STREQUAL "SunOS")) # FIXME: It should be "GNU ld for elf" configure_file(
--- End Message ---
--- Begin Message ---Source: llvm-toolchain-6.0 Source-Version: 1:6.0.1-9.1 We believe that the bug you reported is fixed in the latest version of llvm-toolchain-6.0, which is due to be installed in the Debian FTP archive. A summary of the changes between this version and the previous one is attached. Thank you for reporting the bug, which will now be closed. If you have further comments please address them to [email protected], and the maintainer will reopen the bug report if appropriate. Debian distribution maintenance software pp. Samuel Thibault <[email protected]> (supplier of updated llvm-toolchain-6.0 package) (This message was generated automatically at their request; if you believe that there is a problem with it please contact the archive administrators by mailing [email protected]) -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 Format: 1.8 Date: Tue, 16 Oct 2018 20:18:39 +0000 Source: llvm-toolchain-6.0 Binary: clang-6.0 clang-tools-6.0 clang-format-6.0 clang-tidy-6.0 clang-6.0-doc libclang1-6.0 libclang-6.0-dev libclang-common-6.0-dev libfuzzer-6.0-dev python-clang-6.0 clang-6.0-examples libllvm6.0 llvm-6.0 llvm-6.0-runtime llvm-6.0-dev llvm-6.0-tools llvm-6.0-doc llvm-6.0-examples lld-6.0 liblld-6.0 liblld-6.0-dev lldb-6.0 liblldb-6.0 python-lldb-6.0 liblldb-6.0-dev Architecture: source Version: 1:6.0.1-9.1 Distribution: unstable Urgency: medium Maintainer: LLVM Packaging Team <[email protected]> Changed-By: Samuel Thibault <[email protected]> Description: clang-6.0 - C, C++ and Objective-C compiler clang-6.0-doc - C, C++ and Objective-C compiler - Documentation clang-6.0-examples - Clang examples clang-format-6.0 - Tool to format C/C++/Obj-C code clang-tidy-6.0 - clang-based C++ linter tool clang-tools-6.0 - clang-based tools for C/C++ developments libclang-6.0-dev - clang library - Development package libclang-common-6.0-dev - clang library - Common development package libclang1-6.0 - C interface to the clang library libfuzzer-6.0-dev - Library for coverage-guided fuzz testing liblld-6.0 - LLVM-based linker, library liblld-6.0-dev - LLVM-based linker, header files liblldb-6.0 - Next generation, high-performance debugger, library liblldb-6.0-dev - Next generation, high-performance debugger, header files libllvm6.0 - Modular compiler and toolchain technologies, runtime library lld-6.0 - LLVM-based linker lldb-6.0 - Next generation, high-performance debugger llvm-6.0 - Modular compiler and toolchain technologies llvm-6.0-dev - Modular compiler and toolchain technologies, libraries and header llvm-6.0-doc - Modular compiler and toolchain technologies, documentation llvm-6.0-examples - Modular compiler and toolchain technologies, examples llvm-6.0-runtime - Modular compiler and toolchain technologies, IR interpreter llvm-6.0-tools - Modular compiler and toolchain technologies, tools python-clang-6.0 - Clang Python Bindings python-lldb-6.0 - Next generation, high-performance debugger, python lib Closes: 908847 Changes: llvm-toolchain-6.0 (1:6.0.1-9.1) unstable; urgency=medium . * Non-maintainer upload. * Apply hurd fixes (Closes: #908847). - hurd-lib_Support_Unix_Path.inc.diff - hurd-pathmax.diff - hurd-tools_llvm-shlib_CMakeLists.txt.diff Checksums-Sha1: 384175ff3ea949d9c90ce0c7a016d6938844662d 6636 llvm-toolchain-6.0_6.0.1-9.1.dsc 1e0a39899a219403d68add9d4239841541154017 102980 llvm-toolchain-6.0_6.0.1-9.1.debian.tar.xz Checksums-Sha256: e9f364e809971057cf5e217ba771cb6df10ff80af7f70fb91d25962f9392ef86 6636 llvm-toolchain-6.0_6.0.1-9.1.dsc d06e9030cd63e2742301f00801b918fa44cde91392dee2778336f9f621a9fcc6 102980 llvm-toolchain-6.0_6.0.1-9.1.debian.tar.xz Files: eb3a3b40dd816f1304cf10001a4cf64a 6636 devel optional llvm-toolchain-6.0_6.0.1-9.1.dsc d44cb32a202a6d776945e805b8d64a8f 102980 devel optional llvm-toolchain-6.0_6.0.1-9.1.debian.tar.xz -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEOjpdRkZg6GdhDKQnmWhJwc9WBHgFAlvI1FMACgkQmWhJwc9W BHjccA/7BaRJJnHEyl06LGZCETijCDUq8XftG9tukFPuUWkQDgSlq8YJ+29bMHYx AckmExCA/nrXyJq7yZ71hU/1YxlZj+AJbKjjV9mKXNNKNPbySpDyJtmXuEuS4uDL M1stfqlzS4qfe9utXQrNvrQ45B0vxefal3w/mYQ+FJEq0VYppwy4GtiIS6OXTlr/ cU5pl80jV0VSZUUyX14G5YyFl696K1cqLSySa9qmwEdkId7OCrFnw9Uml0sT4Iqb svYHiJJVFco6MTyJ33Vio8HBGuH2nJjBIgQHkz29c1/BRcdxmDXs0xw9Ty9+YPVI PwWl4JSLnm597nKFBipX3/57fl/LKPVPqgPygRcq/LeflT50gOkInQUlLwdhh79J rJOYx7QTg42k4pFgb4jUJsMfNhqbVlUrRPjtvTggXvxUycNOsr5+Z3q7GfucOi+E Aj29/6nGTXAISZCWhmR0Vr+Y4iklVgyr5DAtphlRvRrAr4JTyu9J1q0seUVnqNDM CZQGV+hfZmLxqsfqjM8yTtcFE2q6c33W9PBw7ppAjEQ1yuIuB6VIRcuq7ycG3bl2 DnTQi2yd8wXjVQg7BJIDQn0LFRjqB/Zn9+eJfNdFi5FWDI4f+U+1VGVuHHhBaxX5 h447E3pI4Hl5jIXFj0Htr9ZpAvGUkFynN7u41Oj8DCxCznjQ2I4= =xtqy -----END PGP SIGNATURE-----
--- End Message ---

