Bug 260434 - lang/go 1.17.5 /gcc-386-freebsd-exec - required shared library libc.so.6 not found
Summary: lang/go 1.17.5 /gcc-386-freebsd-exec - required shared library libc.so.6 not ...
Status: Closed Works As Intended
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: Guangyuan Yang
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-12-15 11:00 UTC by Ulas SAYGIN
Modified: 2022-06-04 13:28 UTC (History)
2 users (show)

See Also:
ygy: maintainer-feedback+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ulas SAYGIN 2021-12-15 11:00:04 UTC
hi

after update from old version 1.17.3 to latest 1.17.5,
at the end of installation it gives error message below.

why i am getting this? is port not installing another dependency? or something is wrong?

at the end , go lang seems instlaled without problem.

Installed Go for freebsd/amd64 in /usr/ports/lang/go/work/go
Installed commands in /usr/ports/lang/go/work/go/bin

The binaries expect /usr/ports/lang/go/work/go to be copied or moved to /usr/loc                                                                                                                                                             al/go
===>  Staging for go-1.17.5,1
===>   Generating temporary packing list
====> Compressing man pages (compress-man)
===>  Installing for go-1.17.5,1
===>  Checking if go is already installed
===>   Registering installation for go-1.17.5,1
(go-1.17.5,1) /usr/ports/lang/go/work/stage//usr/local/go/src/debug/elf/testdata                                                                                                                                                             /gcc-386-freebsd-exec - required shared library libc.so.6 not found
Installing go-1.17.5,1...
Comment 1 Guangyuan Yang freebsd_committer freebsd_triage 2021-12-17 08:21:40 UTC
+cc'ed dmgk@ (previous maintainer)

Thanks for reporting this. It appears that go is installed and working properly despite the message. I can confirm that this message appears in the current version, as well as (at least) a couple of older versions of the port that I have tested. In fact, a quick search yields https://forums.freebsd.org/threads/lang-go-and-libc-so-6.43766/ which suggests that it has been happening since 2013.

I currently don't have a clue since libc.so.6 should be long gone, and I haven't had the time to look into it. Will probably dig into it further when I got the time.
Comment 2 Ulas SAYGIN 2022-02-22 17:49:20 UTC
Thank you for response. i will be happy if you have time to look and find any problem exist if it is not installed with this library it says.

thank you.
Comment 3 Tatsuki Makino 2022-02-26 06:43:45 UTC
The following files are linked to libc.so.6.

${WRKSRC}/go/src/debug/dwarf/testdata/line-clang-dwarf5.elf
${WRKSRC}/go/src/debug/dwarf/testdata/line-clang.elf
${WRKSRC}/go/src/debug/dwarf/testdata/line-gcc-dwarf5.elf
${WRKSRC}/go/src/debug/dwarf/testdata/line-gcc.elf
${WRKSRC}/go/src/debug/dwarf/testdata/ranges.elf
${WRKSRC}/go/src/debug/dwarf/testdata/split.elf
${WRKSRC}/go/src/debug/dwarf/testdata/typedef.elf
${WRKSRC}/go/src/debug/elf/testdata/gcc-386-freebsd-exec
${WRKSRC}/go/src/debug/elf/testdata/gcc-amd64-linux-exec

In particular, gcc-386-freebsd-exec is a FreeBSD-branded ELF binary.

During the installation operation, pkg scans all the files and lists the linked shared libraries when it finds the ELF files.
The list can be viewed at pkg info -B.

However, when it scans, it can't find libc.so.6, so we get that message.
gcc-386-freebsd-exec seems to be a sample for comparison, as far as I can tell from looking through the surrounding files.
(${WRKSRC}/go/src/debug/elf/file_test.go)
This message seems to be one that can be ignored without any problem.


...I think that's what it is :)
Comment 4 Ulas SAYGIN 2022-04-16 10:18:06 UTC
(In reply to Tatsuki Makino from comment #3)
i hope you are right about it:)
but why nobody is sure about the message is important or not?
if there is no need to check that library which seems no use anymore.

are you %100 sure about the message  can be ignored? 
and are there any tests we can be sure by using tests that port is working without problem.
Comment 5 Dmitri Goutnik freebsd_committer freebsd_triage 2022-06-04 13:28:57 UTC
(In reply to Tatsuki Makino from comment #3)
This is correct, all these warnings can be safely ignored. These *.elf, *.so and other binaries are test data which we keep to maintain Go installation intact (e.g. you can cd to /usr/local/go/src and run the test suite there with ./run.bash).