Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 711940 - dev-db/mysql-connector-c++: fails to compile without byte-swap function (bswap32, "#error No byte-swap function available on big-endian platform.")
Summary: dev-db/mysql-connector-c++: fails to compile without byte-swap function (bswa...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux MySQL bugs team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 709622 756661 789252
  Show dependency tree
 
Reported: 2020-03-09 10:33 UTC by Agostino Sarubbo
Modified: 2021-10-16 03:42 UTC (History)
1 user (show)

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


Attachments
mysql-connector-c++-8.0.19:20200309-103030.log (mysql-connector-c++-8.0.19:20200309-103030.log,109.46 KB, text/plain)
2020-03-09 10:33 UTC, Agostino Sarubbo
Details
emerge --info (.emergeinfo,4.97 KB, text/plain)
2020-03-09 10:33 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
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 (RETIRED) gentoo-dev 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++
Comment 5 Larry the Git Cow gentoo-dev 2021-10-16 03:42:48 UTC
The bug has been closed via the following commit(s):

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

commit d1e2c0bf09c7285c7969fab56240d165f17c8b96
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-10-16 03:25:21 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-10-16 03:42:35 +0000

    dev-db/mysql-connector-c++: mark -ppc -sparc b/c broken assert
    
    Closes: https://bugs.gentoo.org/711940
    Signed-off-by: Sam James <sam@gentoo.org>
    Closes: https://github.com/gentoo/gentoo/pull/22596

 dev-db/mysql-connector-c++/mysql-connector-c++-8.0.24.ebuild | 3 ++-
 dev-db/mysql-connector-c++/mysql-connector-c++-8.0.25.ebuild | 3 ++-
 dev-db/mysql-connector-c++/mysql-connector-c++-8.0.26.ebuild | 3 ++-
 3 files changed, 6 insertions(+), 3 deletions(-)

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

commit 10363f43c2e14a19f0264d93c72f30660945bb8d
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-10-16 02:54:58 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-10-16 03:42:34 +0000

    profiles/arch/powerpc/ppc64: mask dev-db/mysql-connector-c++ on BE
    
    Closes: https://bugs.gentoo.org/711940
    Signed-off-by: Sam James <sam@gentoo.org>

 profiles/arch/powerpc/ppc64/64le/package.mask | 6 ++++++
 profiles/arch/powerpc/ppc64/package.mask      | 7 ++++++-
 2 files changed, 12 insertions(+), 1 deletion(-)