Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 711940

Summary: dev-db/mysql-connector-c++: fails to compile without byte-swap function (bswap32, "#error No byte-swap function available on big-endian platform.")
Product: Gentoo Linux Reporter: Agostino Sarubbo <ago>
Component: Current packagesAssignee: Gentoo Linux MySQL bugs team <mysql-bugs>
Status: CONFIRMED ---    
Severity: normal CC: sam
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=736064
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 709622    
Attachments: mysql-connector-c++-8.0.19:20200309-103030.log
emerge --info

Description Agostino Sarubbo gentoo-dev 2020-03-09 10:33:11 UTC
This is an auto-filled bug because dev-db/mysql-connector-c++ fails to compile on sparc. Feel free to adjust the summary to clarify the exact issue. Attached build log and emerge --info
Comment 1 Agostino Sarubbo gentoo-dev 2020-03-09 10:33:16 UTC
Created attachment 617590 [details]
mysql-connector-c++-8.0.19:20200309-103030.log

build log
Comment 2 Agostino Sarubbo gentoo-dev 2020-03-09 10:33:22 UTC
Created attachment 617592 [details]
emerge --info

emerge --info
Comment 3 Thomas Deutschmann gentoo-dev Security 2020-03-09 12:12:40 UTC
Error is

> No byte-swap function available on big-endian platform.

Like indicated in bug 709622 comment #2 we probably need to drop keywords for sparc, ppc and ppc64.
Comment 4 Arfrever Frehtes Taifersar Arahesis 2020-03-09 20:26:19 UTC
(In reply to Thomas Deutschmann from comment #3)
> Error is
> 
> > No byte-swap function available on big-endian platform.
> 
> Like indicated in bug 709622 comment #2 we probably need to drop keywords
> for sparc, ppc and ppc64.

PPC64 has little-endian variant. (Presumably PPC32 also has such variant, but no profile exists.)

So you can keep ppc64 keyword and mask dev-db/mysql-connector-c++ for big-endian PPC64:

profiles/arch/powerpc/ppc64/package.mask:dev-db/mysql-connector-c++
profiles/arch/powerpc/ppc64/64le/package.mask:-dev-db/mysql-connector-c++