Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 654716 - dev-lang/nasm-2.13.01 with GCC 8.1 - In file included from stdlib/vsnprintf.c:15: ./include/nasmlib.h:194:1: error: ‘pure’ attribute on function returning ‘void’ [-Werror=attributes]
Summary: dev-lang/nasm-2.13.01 with GCC 8.1 - In file included from stdlib/vsnprintf.c...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Sergei Trofimovich (RETIRED)
URL:
Whiteboard:
Keywords:
: 654778 (view as bug list)
Depends on:
Blocks:
 
Reported: 2018-05-03 11:28 UTC by Mike Lothian
Modified: 2019-02-23 13:13 UTC (History)
2 users (show)

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


Attachments
build.log (build.log,15.56 KB, text/plain)
2018-05-03 11:28 UTC, Mike Lothian
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Lothian 2018-05-03 11:28:27 UTC
Created attachment 529558 [details]
build.log

I've not seen a blocker bug for GCC 8.1 yet but I'll add this once I see one

In file included from stdlib/vsnprintf.c:15:
./include/nasmlib.h:194:1: error: ‘pure’ attribute on function returning ‘void’ [-Werror=attributes]
 void pure_func seg_init(void);
 ^~~~
In file included from ./include/nasm.h:44,
                 from asm/nasm.c:48:
./include/nasmlib.h:194:1: error: ‘pure’ attribute on function returning ‘void’ [-Werror=attributes]
 void pure_func seg_init(void);
 ^~~~
cc1: some warnings being treated as errors
In file included from stdlib/snprintf.c:13:
./include/nasmlib.h:194:1: error: ‘pure’ attribute on function returning ‘void’ [-Werror=attributes]
 void pure_func seg_init(void);
 ^~~~
make: *** [Makefile:76: stdlib/vsnprintf.o] Error 1
make: *** Waiting for unfinished jobs....
cc1: some warnings being treated as errors
make: *** [Makefile:76: stdlib/snprintf.o] Error 1
In file included from nasmlib/malloc.c:42:
./include/nasmlib.h:194:1: error: ‘pure’ attribute on function returning ‘void’ [-Werror=attributes]
 void pure_func seg_init(void);
 ^~~~
In file included from nasmlib/crc64.c:35:
./include/nasmlib.h:194:1: error: ‘pure’ attribute on function returning ‘void’ [-Werror=attributes]
 void pure_func seg_init(void);
 ^~~~
Comment 1 Mike Lothian 2018-05-03 11:29:12 UTC
Adding upstream bug number:

https://bugzilla.nasm.us/show_bug.cgi?id=3392479
Comment 2 Larry the Git Cow gentoo-dev 2018-05-03 21:15:45 UTC
The bug has been closed via the following commit(s):

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

commit 5b594e538e38230b85a5f0164d1d8b90d137f81b
Author:     Sergei Trofimovich <slyfox@gentoo.org>
AuthorDate: 2018-05-03 21:15:30 +0000
Commit:     Sergei Trofimovich <slyfox@gentoo.org>
CommitDate: 2018-05-03 21:15:39 +0000

    dev-lang/nasm: fix against gcc-8, bug #654716
    
    While at it bump up to 2.13.03.
    
    Reported-by: Mike Lothian
    Closes: https://bugs.gentoo.org/654716
    Package-Manager: Portage-2.3.33, Repoman-2.3.9

 dev-lang/nasm/Manifest                       |  1 +
 dev-lang/nasm/files/nasm-2.13.01-gcc-8.patch | 25 +++++++++++++++
 dev-lang/nasm/nasm-2.13.01.ebuild            |  5 ++-
 dev-lang/nasm/nasm-2.13.03.ebuild            | 47 ++++++++++++++++++++++++++++
 4 files changed, 77 insertions(+), 1 deletion(-)
Comment 3 Sergei Trofimovich (RETIRED) gentoo-dev 2018-05-03 22:04:56 UTC
*** Bug 654778 has been marked as a duplicate of this bug. ***