Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 737254 - net-misc/ncp-1.2.4-r1 : /.../ld: /.../libowfat.a(dns_ipq6.o):(.note+<snip>): undefined reference to _you_tried_to_link_a_dietlibc_
Summary: net-misc/ncp-1.2.4-r1 : /.../ld: /.../libowfat.a(dns_ipq6.o):(.note+<snip>): ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Michael Mair-Keimberger (mm1ke)
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2020-08-15 16:15 UTC by Toralf Förster
Modified: 2020-09-17 20:35 UTC (History)
2 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,15.54 KB, text/plain)
2020-08-15 16:15 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,79.32 KB, text/plain)
2020-08-15 16:15 UTC, Toralf Förster
Details
environment (environment,51.23 KB, text/plain)
2020-08-15 16:15 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,25.82 KB, application/x-bzip)
2020-08-15 16:15 UTC, Toralf Förster
Details
net-misc:ncp-1.2.4-r1:20200815-153911.log (net-misc:ncp-1.2.4-r1:20200815-153911.log,4.47 KB, text/plain)
2020-08-15 16:15 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,13.87 KB, application/x-bzip)
2020-08-15 16:15 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2020-08-15 16:15:08 UTC
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../lib64/libowfat.a(dns_ipq6.o):(.note+0x10): undefined reference to `__you_tried_to_link_a_dietlibc_object_against_glibc'
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../lib64/libowfat.a(dns_random.o):(.note+0x10): undefined reference to `__you_tried_to_link_a_dietlibc_object_against_glibc'
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../lib64/libowfat.a(dns_rcrw.o):(.note+0x10): undefined reference to `__you_tried_to_link_a_dietlibc_object_against_glibc'
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../lib64/libowfat.a(byte_chr.o):(.note+0x10): undefined reference to `__you_tried_to_link_a_dietlibc_object_against_glibc'

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1-20200814-071838

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-10.2.0 *
Available Python interpreters, in order of preference:
  [1]   python3.7
  [2]   python3.9 (fallback)
  [3]   python3.8 (fallback)
  [4]   python3.6 (fallback)
  [5]   python2.7 (fallback)
Available Ruby profiles:
  [1]   ruby25 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.45.2 *
The Glorious Glasgow Haskell Compilation System, version 8.8.4

  timestamp(s) of HEAD at this tinderbox image:
/var/db/repos/gentoo	Sat Aug 15 03:05:52 PM UTC 2020

emerge -qpvO net-misc/ncp
[ebuild  N    ] net-misc/ncp-1.2.4-r1  USE="-diet"
Comment 1 Toralf Förster gentoo-dev 2020-08-15 16:15:09 UTC
Created attachment 654804 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-08-15 16:15:11 UTC
Created attachment 654806 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2020-08-15 16:15:13 UTC
Created attachment 654808 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2020-08-15 16:15:14 UTC
Created attachment 654810 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2020-08-15 16:15:15 UTC
Created attachment 654812 [details]
net-misc:ncp-1.2.4-r1:20200815-153911.log
Comment 6 Toralf Förster gentoo-dev 2020-08-15 16:15:17 UTC
Created attachment 654814 [details]
temp.tbz2
Comment 7 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2020-08-16 05:23:37 UTC
[m.mairkeimberger@gmail.com has no BZ account.]
Comment 8 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2020-08-16 05:25:05 UTC
Michael, the email listed in metadata.xml doesn't exist on Bugzilla. Could you change your BZ email (or tree email) to be consistent? Thanks!
Comment 9 Michael Mair-Keimberger (mm1ke) 2020-08-16 14:46:58 UTC
Hi,

I've tried to reproduce the problem but couldn't. 
I have the same gcc,binutils and glibc as well as using the same CFLAGS and LDFLAGS as in the report. I even tried with and without the diet USEFLAG but everything built fine.

The only suspect i found is that the ebuild uses colon in the sed statement in the ebuild:
        sed -e '/^ncp:/,+5s:strip:#strip:' \
                -i GNUmakefile || die

Since you using -falign-functions=32:25:16 in CFLAGS i though you catched a bug like in https://bugs.gentoo.org/685160, however as i did use the same CFLAGS/LDFLAGS and couldn't reproduce the problem i'm not sure about that.

Is it possible to run the build without -falign-functions=32:25:16? Fixing the sed wouldn't be a problem but it would be great if it would fix this bug too..
Comment 10 Toralf Förster gentoo-dev 2020-08-16 15:24:00 UTC
(In reply to Michael Mair-Keimberger (iamnr3) from comment #9)

> Is it possible to run the build without -falign-functions=32:25:16? Fixing
> the sed wouldn't be a problem but it would be great if it would fix this bug
> too..
Sure,
In fact: my tinderbox automatically retries to build the package w/o that CFLAGS -iff- the error message indicates an issue with that.

This was not the case. But I re-triggered the package manually for you w/o those CFLAGS - and the issue still happened.

So the issue here is not related to those flags IMO.

Nevertheless you might fix anything along the line if you're already here :)
Comment 11 Larry the Git Cow gentoo-dev 2020-08-16 18:55:27 UTC
The bug has been referenced in the following commit(s):

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

commit 12551f08288d65fb274ac424e907b571c3161f44
Author:     Michael Mair-Keimberger <m.mairkeimberger@gmail.com>
AuthorDate: 2020-08-16 13:52:55 +0000
Commit:     Jonas Stein <jstein@gentoo.org>
CommitDate: 2020-08-16 18:50:38 +0000

    net-misc/ubridge: update maintainer email
    
    Package-Manager: Portage-3.0.2, Repoman-2.3.23
    Signed-off-by: Michael Mair-Keimberger <m.mairkeimberger@gmail.com>
    Bug: https://bugs.gentoo.org/737254
    Closes: https://github.com/gentoo/gentoo/pull/17136
    Signed-off-by: Jonas Stein <jstein@gentoo.org>

 net-misc/ubridge/metadata.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Comment 12 Jonas Stein gentoo-dev 2020-08-16 19:01:01 UTC
Never mind. Seems there was a wrong bug ID in the PR "Bug: https://bugs.gentoo.org/737254"
Comment 13 Michael Mair-Keimberger (mm1ke) 2020-08-18 16:29:17 UTC
@ Toralf
Thx for testing. I've made a PR [1] in order to fix the sed statement, however i haven't found any other reason yet why this happens.. still investigating..

@ Jonas
Sorry about that, i guess mixed up the bug numbers somewhere, actually wanted to link my proxy maintainer bug :)

[1] https://github.com/gentoo/gentoo/pull/17162
Comment 14 Michael Mair-Keimberger (mm1ke) 2020-08-18 17:07:32 UTC
@Toralf
I finally could reproduce the build failure. The problem seems to happen when you try to build ncp without USE="-diet" while dev-libs/libowfat is build with USE="diet"

Can you please verify if your dev-libs/libowfat is built with USE="diet"?

I will update my PR to USE depend on dev-libs/libowfat[diet=] so that such combinations won't happen again.
Comment 15 Toralf Förster gentoo-dev 2020-08-18 18:07:01 UTC
(In reply to Michael Mair-Keimberger (iamnr3) from comment #14)
> @Toralf
> Can you please verify if your dev-libs/libowfat is built with USE="diet"?

yes:

17_1-20200814-071838 /var/tmp/tb # emerge -qpvO dev-libs/libowfat
[ebuild   R   ] dev-libs/libowfat-0.32-r1  USE="diet"
Comment 16 Larry the Git Cow gentoo-dev 2020-09-17 20:35:14 UTC
The bug has been closed via the following commit(s):

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

commit ae7177032a6ae2e40d4d70d6d74beac411165732
Author:     Michael Mair-Keimberger <m.mairkeimberger@gmail.com>
AuthorDate: 2020-08-18 16:17:36 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2020-09-17 20:35:08 +0000

    net-misc/ncp: remove diet use flag, fix bug #737254
    
    Package-Manager: Portage-3.0.2, Repoman-2.3.23
    Signed-off-by: Michael Mair-Keimberger <m.mairkeimberger@gmail.com>
    Closes: https://bugs.gentoo.org/737254
    Signed-off-by: Sam James <sam@gentoo.org>

 net-misc/ncp/files/ncp-1.2.4-fix-makefile.patch | 16 ++++++++++
 net-misc/ncp/metadata.xml                       |  1 -
 net-misc/ncp/ncp-1.2.4-r2.ebuild                | 40 +++++++++++++++++++++++++
 3 files changed, 56 insertions(+), 1 deletion(-)