Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 Jun 2021 16:38:52 -0500
From:      Pedro Giffuni <pfg@FreeBSD.org>
To:        Ronald Klop <ronald-lists@klop.ws>
Cc:        FreeBSD Ports <freebsd-ports@FreeBSD.org>
Subject:   Re: databases/cockroach: any PPC64|arm64 tester?
Message-ID:  <15c212ff-6eb4-4464-6f06-d49971a2e0bc@FreeBSD.org>
In-Reply-To: <1364825180.3.1624436437600@localhost>
References:  <315527219.8119.1624381920546@localhost> <e682ed27-3fbd-5f91-32e7-da4f9ce34b01@FreeBSD.org> <1364825180.3.1624436437600@localhost>

next in thread | previous in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.
--------------58734226391F9B330256C6C2
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding: 8bit

On 23/06/2021 03:20, Ronald Klop wrote:
>
> *Van:* Pedro Giffuni <pfg@FreeBSD.org>
> *Datum:* dinsdag, 22 juni 2021 22:21
> *Aan:* Ronald Klop <ronald-lists@klop.ws>, FreeBSD Ports 
> <freebsd-ports@FreeBSD.org>
> *Onderwerp:* Re: databases/cockroach: any PPC64|arm64 tester?
>
>     On 22/06/2021 12:12, Ronald Klop wrote:
>
>         *Van:* Ronald Klop <ronald-lists@klop.ws>
>         *Datum:* 22 juni 2021 09:56
>         *Aan:* Pedro Giffuni <pfg@FreeBSD.org>
>         *CC:* FreeBSD Ports <freebsd-ports@FreeBSD.org>
>         *Onderwerp:* Re: databases/cockroach: any PPC64|arm64 tester?
>
>             Hi,
>
>             I started a build in poudriere on RPI4 aarch64/13-RELEASE.
>             62 pkgs to go. So we'll see where this ends and I will
>             post the result.
>
>             Regards,
>             Ronald.
>
>
>             Van: Pedro Giffuni <pfg@FreeBSD.org>
>             Datum: maandag, 21 juni 2021 21:19
>             Aan: FreeBSD Ports <freebsd-ports@FreeBSD.org>
>             Onderwerp: databases/cockroach: any PPC64|arm64 tester?
>             >
>             > Hello;
>             >
>             > The cockroach port Makefile reads:
>             >
>             > ONLY_FOR_ARCHS= amd64
>             > ONLY_FOR_ARCHS_REASON=  "A 64-bit system is strongly
>             recommended"
>             >
>             > FWIW, It is very likely the port works on other systems
>             but nobody has tried building on them.
>             >
>             > I know some people test regularly arm64 and ppc64 so it
>             would be nice to see JIC it builds and perhaps enable it
>             for 64 bit platforms.
>             >
>             > Cheers,
>             >
>             > Pedro.
>             >
>             >
>             >
>             >
>             >
>             ------------------------------------------------------------------------
>
>
>         No luck so far.
>
>         [00:01:42] Running make with -j4
>         [00:01:42] GOPATH set to /wrkdirs/usr/ports/databases/cockroach/work/cockroach-v19.1.11
>         [00:01:42] Cleaning old generated files.
>         [00:01:43] cd /wrkdirs/usr/ports/databases/cockroach/work/cockroach-v19.1.11/src/github.com/cockroachdb/cockroach/c-deps/jemalloc && autoconf
>         [00:01:43] mkdir -p bin
>         [00:01:43] go install -v ./pkg/cmd/prereqs
>         [00:01:43] touch bin/.submodules-initialized
>         [00:01:43] regenerating pkg/cli/zcgo_flags.go
>         [00:01:43] regenerating pkg/server/status/zcgo_flags.go
>         [00:01:43] regenerating pkg/storage/engine/zcgo_flags.go
>         [00:01:43] regenerating pkg/ccl/storageccl/engineccl/zcgo_flags.go
>         [00:01:43] regenerating pkg/cli/zcgo_flags_aarch64_portbld_freebsd13.0.go
>         [00:01:43] regenerating pkg/ccl/gssapiccl/zcgo_flags.go
>         [00:01:43] go tool compile: signal: illegal instruction (core dumped)
>         [00:01:43] gmake[1]: *** [Makefile:1553: bin/prereqs] Error 1
>
>           
>
>         I've seen before that go compiled on rpi4+poudriere core dumps. But the go pkg downloaded from the pkg builders works fine.
>
>         I will investigate further when time permits and nobody beats me to it.
>
>         Regards,
>
>         Ronald.
>
>     Thanks for looking!
>
>     Hmm.. so the issue seems to be go ... I guess we should update
>     ONLY_FOR_ARCHS_REASON  :(
>
>     Pedro.
>
>
>
> Hi,
>
> I build a custom go which does not error out for unknown reasons to me.
> The build does not fail on go now, but it fails here: 
> https://www.klop.ws/logs/cockroach-19.1.11.log
>
Still looks like a go issue:

...

[00:28:59] # github.com/cockroachdb/cockroach/vendor/github.com/shirou/gopsutil/disk
[00:28:59] vendor/github.com/shirou/gopsutil/disk/disk_freebsd.go:26:36: undefined: MNT_WAIT
[00:28:59] vendor/github.com/shirou/gopsutil/disk/disk_freebsd.go:31:15: undefined: Statfs
[00:28:59] vendor/github.com/shirou/gopsutil/disk/disk_freebsd.go:32:28: undefined: MNT_WAIT
[00:28:59] vendor/github.com/shirou/gopsutil/disk/disk_freebsd.go:38:17: undefined: MNT_RDONLY
[00:28:59] vendor/github.com/shirou/gopsutil/disk/disk_freebsd.go:41:17: undefined: MNT_SYNCHRONOUS
[00:28:59] vendor/github.com/shirou/gopsutil/disk/disk_freebsd.go:44:17: undefined: MNT_NOEXEC
[00:28:59] vendor/github.com/shirou/gopsutil/disk/disk_freebsd.go:154:9: undefined: Bintime
[00:28:59] vendor/github.com/shirou/gopsutil/disk/disk_freebsd.go:163:22: undefined: Statfs
[00:28:59] vendor/github.com/shirou/gopsutil/disk/disk_freebsd.go:167:54: undefined: Statfs
[00:28:59] vendor/github.com/shirou/gopsutil/disk/disk_freebsd.go:182:32: undefined: Devstat
[00:28:59] vendor/github.com/shirou/gopsutil/disk/disk_freebsd.go:44:17: too many errors
[00:28:59] github.com/cockroachdb/cockroach/vendor/github.com/shirou/gopsutil/net
[00:28:59] github.com/cockroachdb/cockroach/pkg/sql/exec/coldata

Thanks so much, for the report!

Pedro.




--------------58734226391F9B330256C6C2--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?15c212ff-6eb4-4464-6f06-d49971a2e0bc>