Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 655386 - app-arch/p7zip: fails to compile using >=clang-6 (>=llvm-6)
Summary: app-arch/p7zip: fails to compile using >=clang-6 (>=llvm-6)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: Normal normal (vote)
Assignee: Matthew Thode ( prometheanfire )
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-05-10 11:28 UTC by Fabian Groffen
Modified: 2018-05-31 12:14 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Fabian Groffen gentoo-dev 2018-05-10 11:28:58 UTC
x86_64-apple-darwin16-clang++ -c -I. -I../../../../C -I../../../../CPP/myWindows -I../../../../CPP/include_windows -I../../../../CPP -march=native -O2 -pipe -DENV_MACOSX -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_REENTRANT -DENV_UNIX  -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_REENTRANT -DENV_UNIX -DBREAK_HANDLER -DUNICODE -D_UNICODE -DUNIX_USE_WIN_FILE   ../../../../CPP/Windows/FileIO.cpp
../../../../CPP/Windows/ErrorMsg.cpp:24:10: error: case value evaluates to
      -2147024809, which cannot be narrowed to type 'DWORD' (aka 'unsigned int')
      [-Wc++11-narrowing]
    case E_INVALIDARG          : txt = "E_INVALIDARG"; break ;
         ^

FreeBSD folks already made a patch for this:
https://svnweb.freebsd.org/ports/head/archivers/p7zip/files/patch-CPP_Windows_ErrorMsg.cpp?view=markup&pathrev=458172

Please add that patch to the ebuild.

Thanks!
Comment 1 Larry the Git Cow gentoo-dev 2018-05-31 12:14:06 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=caffb5623f45dfeb423db72bbdbee32b537757e2

commit caffb5623f45dfeb423db72bbdbee32b537757e2
Author:     Fabian Groffen <grobian@gentoo.org>
AuthorDate: 2018-05-31 12:13:46 +0000
Commit:     Fabian Groffen <grobian@gentoo.org>
CommitDate: 2018-05-31 12:13:46 +0000

    app-arch/p7zip: include patch for >=clang-6, bug #655386
    
    Closes: https://bugs.gentoo.org/655386
    Package-Manager: Portage-2.3.24, Repoman-2.3.6

 app-arch/p7zip/files/p7zip-16.02-darwin.patch | 35 +++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)