{"action":"created","issue":{"url":"https://api.github.com/repos/LLNL/spack/issues/3570","repository_url":"https://api.github.com/repos/LLNL/spack","labels_url":"https://api.github.com/repos/LLNL/spack/issues/3570/labels{/name}","comments_url":"https://api.github.com/repos/LLNL/spack/issues/3570/comments","events_url":"https://api.github.com/repos/LLNL/spack/issues/3570/events","html_url":"https://github.com/LLNL/spack/pull/3570","id":217316299,"number":3570,"title":"Make 0.163 the preferred version of elfutils.","user":{"login":"tgamblin","id":299842,"avatar_url":"https://avatars0.githubusercontent.com/u/299842?v=3","gravatar_id":"","url":"https://api.github.com/users/tgamblin","html_url":"https://github.com/tgamblin","followers_url":"https://api.github.com/users/tgamblin/followers","following_url":"https://api.github.com/users/tgamblin/following{/other_user}","gists_url":"https://api.github.com/users/tgamblin/gists{/gist_id}","starred_url":"https://api.github.com/users/tgamblin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tgamblin/subscriptions","organizations_url":"https://api.github.com/users/tgamblin/orgs","repos_url":"https://api.github.com/users/tgamblin/repos","events_url":"https://api.github.com/users/tgamblin/events{/privacy}","received_events_url":"https://api.github.com/users/tgamblin/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-03-27T17:21:46Z","updated_at":"2017-03-27T19:45:07Z","closed_at":"2017-03-27T18:15:47Z","pull_request":{"url":"https://api.github.com/repos/LLNL/spack/pulls/3570","html_url":"https://github.com/LLNL/spack/pull/3570","diff_url":"https://github.com/LLNL/spack/pull/3570.diff","patch_url":"https://github.com/LLNL/spack/pull/3570.patch"},"body":"- later versions do not seem to work properly with `libdwarf`.\r\n\r\n@lee218llnl: is this the right resolution?  I think we should keep the preferred version at one that works well with `libdwarf` until there is a fix for the issue described in your email:\r\n\r\n> Elfutils 0.168 was added in [3923bdc](https://github.com/LLNL/spack/commit/3923bdca90bd60678f041d7ad6235c406dc05459#diff-432b6709875797fbdc23169be936fefe) by @kserradell (fixing #3443 by @nicksan2c). The problem appears to be due to the fact that `libdwarf` has a `libdwarfdefs.h` header that does this:\r\n>  \r\n> ```\r\n> #ifndef SHF_COMPRESSED\r\n> /*  This from ubuntu xenial. Is in top of trunk binutils\r\n>     as of February 2016. Elf Section Flag */\r\n> #define SHF_COMPRESSED (1 << 11)\r\n> #endif\r\n>  ```\r\n>  \r\n>  \r\n> While elfutils does this:\r\n>  \r\n> ```\r\n> #ifndef SHF_COMPRESSED\r\n> /* Older glibc elf.h might not yet define the ELF compression types.  */\r\n> #define SHF_COMPRESSED      (1 << 11)  /* Section with compressed data. */\r\n>  \r\n> /* Section compression header.  Used when SHF_COMPRESSED is set.  */\r\n>  \r\n> typedef struct\r\n> {\r\n>    Elf32_Word   ch_type;        /* Compression format.  */\r\n>    Elf32_Word   ch_size;        /* Uncompressed data size.  */\r\n>    Elf32_Word   ch_addralign;   /* Uncompressed data alignment.  */\r\n> } Elf32_Chdr;\r\n>  \r\n> typedef struct\r\n> {\r\n>    Elf64_Word   ch_type;        /* Compression format.  */\r\n>    Elf64_Word   ch_reserved;\r\n>    Elf64_Xword  ch_size;        /* Uncompressed data size.  */\r\n>    Elf64_Xword  ch_addralign;   /* Uncompressed data alignment.  */\r\n> } Elf64_Chdr;\r\n>  \r\n> /* Legal values for ch_type (compression algorithm).  */\r\n> #define ELFCOMPRESS_ZLIB       1          /* ZLIB/DEFLATE algorithm.  */\r\n> #define ELFCOMPRESS_LOOS       0x60000000 /* Start of OS-specific.  */\r\n> #define ELFCOMPRESS_HIOS       0x6fffffff /* End of OS-specific.  */\r\n> #define ELFCOMPRESS_LOPROC     0x70000000 /* Start of processor-specific.  */\r\n> #define ELFCOMPRESS_HIPROC     0x7fffffff /* End of processor-specific.  */\r\n> #endif\r\n>  ```\r\n>  \r\n> Thus the types do not get defined. From https://www.prevanders.net/dwarf.html I found this blurb:\r\n>  \r\n> “Sture Carlson reports a new problem compiling libdwarf/dwarf_elf_access.c in CentOS. CentOS-7.3 libelf.h makes an assumption of the connection between SHF_COMPRESSED and Elf32(64)_Chdr that conflicts with libdwarf coding. Moving the SHF_COMPRESSED from a libdwarf header to a C file in libdwarf source fixes the problem very simply. The libdwarf fix is now on sourceforge. (December 20, 2016)”\r\n>  \r\n> It doesn’t look like there is a release yet with this fix in place.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/LLNL/spack/issues/comments/289563765","html_url":"https://github.com/LLNL/spack/pull/3570#issuecomment-289563765","issue_url":"https://api.github.com/repos/LLNL/spack/issues/3570","id":289563765,"user":{"login":"kserradell","id":512913,"avatar_url":"https://avatars0.githubusercontent.com/u/512913?v=3","gravatar_id":"","url":"https://api.github.com/users/kserradell","html_url":"https://github.com/kserradell","followers_url":"https://api.github.com/users/kserradell/followers","following_url":"https://api.github.com/users/kserradell/following{/other_user}","gists_url":"https://api.github.com/users/kserradell/gists{/gist_id}","starred_url":"https://api.github.com/users/kserradell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kserradell/subscriptions","organizations_url":"https://api.github.com/users/kserradell/orgs","repos_url":"https://api.github.com/users/kserradell/repos","events_url":"https://api.github.com/users/kserradell/events{/privacy}","received_events_url":"https://api.github.com/users/kserradell/received_events","type":"User","site_admin":false},"created_at":"2017-03-27T19:45:07Z","updated_at":"2017-03-27T19:45:07Z","body":"Thanks. With Adam, we did the upgrade, without really checking if something was changing. "}}
{"actor":{"display_login":"kserradell"}}