pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: remove coyim?
On Wed, 7 Aug 2024 at 05:40, Santhosh Raju <fox%netbsd.org@localhost> wrote:
>
> On Tue, Aug 6, 2024 at 8:08 PM nia <nia%netbsd.org@localhost> wrote:
> >
> > It's been broken for ages now. It's not clear to me if people
> > trying to fix it months ago were doing so because they use it
> > or for other reasons.
> >
>
> I could not make coyim to link successfully for versions beyond 0.3.11
> in NetBSD,
>
> I always got the following error during link
>
> github.com/coyim/coyim
> # github.com/coyim/coyim
> /usr/pkg/go120/pkg/tool/netbsd_amd64/link: running gcc failed: exit status 1
> /tmp/go-link-3181332492/000000.o: file not recognized: file format not
> recognized
FWIW on -current amd64, go121, I get:
....
# github.com/coyim/coyim
/usr/pkg/go122/pkg/tool/netbsd_amd64/link: running gcc failed: exit status 1
ld: /usr/lib/libm.so.0: warning: warning: reference to compatibility cabs()
ld: /usr/lib/libm.so.0: warning: warning: reference to compatibility cabsf()
ld: /tmp/go-link-3649917547/go.o: warning: relocation in read-only
section `.gopclntab'
/tmp/go-link-3649917547/000000.o:(.rsrc+0x100): dangerous relocation:
R_AMD64_IMAGEBASE with __ImageBase undefined
/tmp/go-link-3649917547/000000.o:(.rsrc+0x110): dangerous relocation:
R_AMD64_IMAGEBASE with __ImageBase undefined
/tmp/go-link-3649917547/000000.o:(.rsrc+0x120): dangerous relocation:
R_AMD64_IMAGEBASE with __ImageBase undefined
/tmp/go-link-3649917547/000000.o:(.rsrc+0x130): dangerous relocation:
R_AMD64_IMAGEBASE with __ImageBase undefined
/tmp/go-link-3649917547/000000.o:(.rsrc+0x140): dangerous relocation:
R_AMD64_IMAGEBASE with __ImageBase undefined
/tmp/go-link-3649917547/000000.o:(.rsrc+0x150): dangerous relocation:
R_AMD64_IMAGEBASE with __ImageBase undefined
ld: warning: creating DT_TEXTREL in a PIE
*** Error code 1
.....
which seems a bit more informative to me. I am building it at the
moment with pkgsrc under aarch64 ubuntu 24.04LTS, just for the sake of
the test.
>
> Since I do not have much experience with linkers, I could not get much
> further with the debugging. This was also reproducible in the FreeBSD
> package I maintain, and hence I never bumped the version in the
> FreeBSD package too.
>
> I know bsiegert@ helped update the package to 0.4.1 and he said it was
> building correctly in MacOS in pkgsrc, but could not verify if it
> works.
>
> I could verify that coyim (independent of pkgsrc) builds correctly in
> MacOS, I saw a very similar message but it did not error out.
>
> ld: warning: ignoring file
> /var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/go-link-846869687/000000.o,
> building for macOS-x86_64 but attempting to link with file built for
> unknown-unsupported file format ( 0x64 0x86 0x01 0x00 0x00 0x00 0x00
> 0x00 0x63 0xC9 0x00 0x00 0x01 0x00 0x00 0x00 )
>
> Any help regarding the above linker messages and how to handle it is
> much appreciated, as it will help me bump and maintain the package
> also in FreeBSD.
>
> > AFAIK this package was once maintained by someone close to
> > upstream who is no longer working on it.
>
> It is still maintained by that person, which would be me.
>
> --
> Santhosh
--
----
Home |
Main Index |
Thread Index |
Old Index