Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 657030 - net-nntp/nzbget-20.0_pre2176 - In file included from lib/yencode/AcleCrc.cpp:26:0: /usr/lib/gcc/armv7a-hardfloat-linux-gnueabi/7.3.0/include/arm_acle.h:48:49: error: invalid conversion from ‘const void*’ to ‘const int*’ [-fpermissive]
Summary: net-nntp/nzbget-20.0_pre2176 - In file included from lib/yencode/AcleCrc.cpp:...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: ARM Linux
: Normal normal (vote)
Assignee: Sven Wegener
URL: https://gcc.gnu.org/bugzilla/show_bug...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-06-01 07:54 UTC by Sven Müller
Modified: 2018-06-09 13:38 UTC (History)
2 users (show)

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


Attachments
build.log (build.log,80.32 KB, text/plain)
2018-06-01 07:54 UTC, Sven Müller
Details
emerge --info (emerge_info.txt,6.05 KB, text/plain)
2018-06-01 08:53 UTC, Sven Müller
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sven Müller 2018-06-01 07:54:38 UTC
Created attachment 534370 [details]
build.log

In file included from lib/yencode/AcleCrc.cpp:26:0:
/usr/lib/gcc/armv7a-hardfloat-linux-gnueabi/7.3.0/include/arm_acle.h: In function ‘void __arm_ldc(unsigned int, unsigned int, const void*)’:                                                                                
/usr/lib/gcc/armv7a-hardfloat-linux-gnueabi/7.3.0/include/arm_acle.h:48:49: error: invalid conversion from ‘const void*’ to ‘const int*’ [-fpermissive]                                                                     
   return __builtin_arm_ldc (__coproc, __CRd, __p);
                                                 ^                                                                                                                                                                          
<built-in>: note:   initializing argument 3 of ‘void __builtin_arm_ldc(unsigned int, unsigned int, const int*)’                                                                                                             
/usr/lib/gcc/armv7a-hardfloat-linux-gnueabi/7.3.0/include/arm_acle.h: In function ‘void __arm_ldcl(unsigned int, unsigned int, const void*)’:                                                                               
/usr/lib/gcc/armv7a-hardfloat-linux-gnueabi/7.3.0/include/arm_acle.h:55:50: error: invalid conversion from ‘const void*’ to ‘const int*’ [-fpermissive]                                                                     
   return __builtin_arm_ldcl (__coproc, __CRd, __p);
                                                  ^
<built-in>: note:   initializing argument 3 of ‘void __builtin_arm_ldcl(unsigned int, unsigned int, const int*)’                                                                                                            
/usr/lib/gcc/armv7a-hardfloat-linux-gnueabi/7.3.0/include/arm_acle.h: In function ‘void __arm_stc(unsigned int, unsigned int, void*)’:                                                                                      
/usr/lib/gcc/armv7a-hardfloat-linux-gnueabi/7.3.0/include/arm_acle.h:62:49: error: invalid conversion from ‘void*’ to ‘int*’ [-fpermissive]                                                                                 
   return __builtin_arm_stc (__coproc, __CRd, __p);
                                                 ^
<built-in>: note:   initializing argument 3 of ‘void __builtin_arm_stc(unsigned int, unsigned int, int*)’                                                                                                                   
/usr/lib/gcc/armv7a-hardfloat-linux-gnueabi/7.3.0/include/arm_acle.h: In function ‘void __arm_stcl(unsigned int, unsigned int, void*)’:                                                                                     
/usr/lib/gcc/armv7a-hardfloat-linux-gnueabi/7.3.0/include/arm_acle.h:69:50: error: invalid conversion from ‘void*’ to ‘int*’ [-fpermissive]                                                                                 
   return __builtin_arm_stcl (__coproc, __CRd, __p);
                                                  ^
<built-in>: note:   initializing argument 3 of ‘void __builtin_arm_stcl(unsigned int, unsigned int, int*)’                                                                                                                  
/usr/lib/gcc/armv7a-hardfloat-linux-gnueabi/7.3.0/include/arm_acle.h: In function ‘void __arm_ldc2(unsigned int, unsigned int, const void*)’:                                                                               
/usr/lib/gcc/armv7a-hardfloat-linux-gnueabi/7.3.0/include/arm_acle.h:100:50: error: invalid conversion from ‘const void*’ to ‘const int*’ [-fpermissive]                                                                    
   return __builtin_arm_ldc2 (__coproc, __CRd, __p);
                                                  ^
<built-in>: note:   initializing argument 3 of ‘void __builtin_arm_ldc2(unsigned int, unsigned int, const int*)’                                                                                                            
/usr/lib/gcc/armv7a-hardfloat-linux-gnueabi/7.3.0/include/arm_acle.h: In function ‘void __arm_ldc2l(unsigned int, unsigned int, const void*)’:                                                                              
/usr/lib/gcc/armv7a-hardfloat-linux-gnueabi/7.3.0/include/arm_acle.h:107:51: error: invalid conversion from ‘const void*’ to ‘const int*’ [-fpermissive]                                                                    
   return __builtin_arm_ldc2l (__coproc, __CRd, __p);
                                                   ^
<built-in>: note:   initializing argument 3 of ‘void __builtin_arm_ldc2l(unsigned int, unsigned int, const int*)’                                                                                                           
/usr/lib/gcc/armv7a-hardfloat-linux-gnueabi/7.3.0/include/arm_acle.h: In function ‘void __arm_stc2(unsigned int, unsigned int, void*)’:                                                                                     
/usr/lib/gcc/armv7a-hardfloat-linux-gnueabi/7.3.0/include/arm_acle.h:114:50: error: invalid conversion from ‘void*’ to ‘int*’ [-fpermissive]                                                                                
   return __builtin_arm_stc2 (__coproc, __CRd, __p);
                                                  ^
<built-in>: note:   initializing argument 3 of ‘void __builtin_arm_stc2(unsigned int, unsigned int, int*)’                                                                                                                  
/usr/lib/gcc/armv7a-hardfloat-linux-gnueabi/7.3.0/include/arm_acle.h: In function ‘void __arm_stc2l(unsigned int, unsigned int, void*)’:                                                                                    
/usr/lib/gcc/armv7a-hardfloat-linux-gnueabi/7.3.0/include/arm_acle.h:121:51: error: invalid conversion from ‘void*’ to ‘int*’ [-fpermissive]                                                                                
   return __builtin_arm_stc2l (__coproc, __CRd, __p);
                                                   ^
<built-in>: note:   initializing argument 3 of ‘void __builtin_arm_stc2l(unsigned int, unsigned int, int*)’
make[1]: *** [Makefile:1765: lib/yencode/AcleCrc.o] Error 1
make[1]: *** Waiting for unfinished jobs....
Comment 1 Sven Müller 2018-06-01 08:53:59 UTC
Created attachment 534380 [details]
emerge --info
Comment 2 Louis Sautier (sbraz) gentoo-dev 2018-06-01 13:17:17 UTC
This seems to be a gcc bug, can you try adding -fpermissive to your CXXFLAGS to see if it fixes the build? If it does, I'll probably add it to the ebuild until the gcc bug is fixed.
Comment 3 Louis Sautier (sbraz) gentoo-dev 2018-06-01 13:19:10 UTC
One-liner to make it easier:
CXXFLAGS="$(portageq envvar CXXFLAGS) -fpermissive" emerge nzbget
Comment 4 Sven Müller 2018-06-01 17:22:15 UTC
(In reply to Louis Sautier (sbraz) from comment #3)
> One-liner to make it easier:
> CXXFLAGS="$(portageq envvar CXXFLAGS) -fpermissive" emerge nzbget

works.
Comment 5 Larry the Git Cow gentoo-dev 2018-06-09 13:38:28 UTC
The bug has been closed via the following commit(s):

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

commit 97ad082d6dd4336692382f9832aa0c2112c1179b
Author:     Louis Sautier <sautier.louis@gmail.com>
AuthorDate: 2018-06-02 00:35:41 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2018-06-09 13:38:20 +0000

    net-nntp/nzbget: bump to 20.0, EAPI=7, fixes build on ARM
    
    Closes: https://bugs.gentoo.org/657030
    Package-Manager: Portage-2.3.38, Repoman-2.3.9

 net-nntp/nzbget/Manifest           |   1 +
 net-nntp/nzbget/nzbget-20.0.ebuild | 128 +++++++++++++++++++++++++++++++++++++
 2 files changed, 129 insertions(+)