Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 701300 - dev-db/mongodb: arm64 keyword request
Summary: dev-db/mongodb: arm64 keyword request
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Keywording (show other bugs)
Hardware: ARM64 Linux
: Normal normal (vote)
Assignee: Ultrabug
URL:
Whiteboard:
Keywords: KEYWORDREQ
: 701434 (view as bug list)
Depends on: 720982
Blocks:
  Show dependency tree
 
Reported: 2019-11-27 08:08 UTC by Julian Weinert
Modified: 2020-05-11 15:37 UTC (History)
2 users (show)

See Also:
Package list:
app-admin/mongo-tools-4.2.3 ~arm64 dev-python/cheetah3-3.2.4 ~arm64 dev-db/mongodb-4.2.3-r1 ~arm64
Runtime testing required: ---
nattka: sanity-check+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Julian Weinert 2019-11-27 08:08:28 UTC
I have tried to compile dev-db/mongodb on raspberry pi 4 (aarch64),
it fails because of the following errors:

{standard input}:20: Error: selected processor does not support `crc32cb w2,w2,w3'
{standard input}:36: Error: selected processor does not support `crc32cx w2,w2,x4'
{standard input}:49: Error: selected processor does not support `crc32cb w2,w2,w0'
scons: *** [build/opt/third_party/wiredtiger/src/checksum/arm64/crc32-arm64.o] Error 1
build/opt/third_party/wiredtiger/src/checksum/arm64/crc32-arm64.o failed: Error 1


The solution is probably the following:
add the flag
--use-hardware-crc32=off
as stated here: 
https://github.com/mongodb/mongo/wiki/Build-Mongodb-From-Source

i didn't tested yet whether it fixes this problem but i'am compiling it at Moment.

Should i attach the full build log?
Comment 1 Tomáš Mózes 2019-11-27 09:10:42 UTC
MongoDB is not keyworded on arm64 yet. If you'd like to add the keywords, please try building it and report back if it works. Thanks
Comment 2 Julian Weinert 2019-11-27 09:50:49 UTC
yes sure, i'll do it, but it can only be keyworded if the build is fixed by the maintainer
Comment 3 Julian Weinert 2019-11-27 15:03:15 UTC
Ok 8 Hours compile time, but it was successfull.
As i said i had to add the
--use-hardware-crc32=off
flag to make it compile.
Comment 4 Tomáš Mózes 2019-11-27 15:13:03 UTC
Are you going to use mongodb on that device or just being curious?
Comment 5 Tomáš Mózes 2019-11-27 15:14:15 UTC
(In reply to Julian Weinert from comment #2)
> yes sure, i'll do it, but it can only be keyworded if the build is fixed by
> the maintainer

Strictly speaking, it's not broken as it doesn't have any arm64 keywords :)
Comment 6 Julian Weinert 2019-11-27 15:15:36 UTC
i'am going to use mongodb, and if it doesn't make problems the next days, i'll make an keyword request
Comment 7 Tomáš Mózes 2019-11-27 17:57:46 UTC
I think it won't be a problem. Does mongo-tools build fine?
Comment 8 Julian Weinert 2019-11-27 19:43:43 UTC
Yes mongo-tools did build without any changes. 
for me its somewhat normal to add ~* to package.keywords at arm. Maybe i should 
write a few more keyword requests.

Mongodb seems to work as expected, i use in an webapp as backend.
Should i write a keyword request then?
Comment 9 Roy Bamford gentoo-dev 2019-11-27 20:20:39 UTC
Confirmed on the packet box.
... /var/tmp/portage/dev-db/mongodb-4.2.1/temp/cc2EpEfu.s: Assembler messages:
/var/tmp/portage/dev-db/mongodb-4.2.1/temp/cc2EpEfu.s:347: Error: selected processor does not support `crc32cb w2,w2,w3'
/var/tmp/portage/dev-db/mongodb-4.2.1/temp/cc2EpEfu.s:363: Error: selected processor does not support `crc32cx w2,w2,x4'
/var/tmp/portage/dev-db/mongodb-4.2.1/temp/cc2EpEfu.s:376: Error: selected processor does not support `crc32cb w2,w2,w0'
...
Comment 10 Tomáš Mózes 2019-11-28 04:10:20 UTC
(In reply to Julian Weinert from comment #8)
> Yes mongo-tools did build without any changes. 
> for me its somewhat normal to add ~* to package.keywords at arm. Maybe i
> should 
> write a few more keyword requests.
> 
> Mongodb seems to work as expected, i use in an webapp as backend.
> Should i write a keyword request then?

Do you want arm64 only or arm too?
Comment 11 Tomáš Mózes 2019-11-29 04:50:02 UTC
*** Bug 701434 has been marked as a duplicate of this bug. ***
Comment 12 Tomáš Mózes 2019-11-29 04:53:20 UTC
1) we'll patch mongodb to work with arm64

2)  add ~arm64 keywords to
dev-db/mongodb
app-admin/mongo-tools
dev-python/cheetah3

No need to open new bugs, we'll handle it from here. I was waiting for your reply regarding the arch, but we'll go for arm64 only then.
Comment 13 Julian Weinert 2019-11-29 06:45:59 UTC
i don't know whether arm works too, i would say yes but i didn't test it.
Comment 14 Larry the Git Cow gentoo-dev 2019-11-30 01:19:00 UTC
The bug has been referenced in the following commit(s):

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

commit 7fadffa91df4e2c62bdb72815f839668ec856aa0
Author:     Tomas Mozes <hydrapolic@gmail.com>
AuthorDate: 2019-11-29 23:26:20 +0000
Commit:     Aaron Bauman <bman@gentoo.org>
CommitDate: 2019-11-30 01:18:53 +0000

    dev-db/mongodb: prepare for arm64 keywording
    
    Bug: https://bugs.gentoo.org/701300
    Tested-by: Julian Weinert <julian@jweinert.de>
    Signed-off-by: Tomáš Mózes <hydrapolic@gmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/13803
    Signed-off-by: Aaron Bauman <bman@gentoo.org>

 dev-db/mongodb/mongodb-4.2.1.ebuild | 1 +
 1 file changed, 1 insertion(+)
Comment 15 Tomáš Mózes 2019-11-30 06:31:56 UTC
Please add ~arm64 keywords to:

app-admin/mongo-tools-4.2.1
dev-python/cheetah3-3.2.3
dev-db/mongodb-4.2.1

Thank you
Comment 16 NATTkA bot gentoo-dev 2020-05-04 10:32:38 UTC
Unable to check for sanity:

> no match for package: dev-python/cheetah3-3.2.3
Comment 17 NATTkA bot gentoo-dev 2020-05-05 04:57:41 UTC
All sanity-check issues have been resolved
Comment 18 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2020-05-11 15:37:32 UTC
~arm64 added