Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 450436 - app-arch/xz-utils-5.0.4-r1: Abort when shared libraries cannot be build
Summary: app-arch/xz-utils-5.0.4-r1: Abort when shared libraries cannot be build
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-05 18:12 UTC by Dennis Schridde
Modified: 2013-01-07 00:25 UTC (History)
0 users

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


Attachments
build.log (build.log,174.51 KB, text/plain)
2013-01-05 18:13 UTC, Dennis Schridde
Details
emerge.info (emerge.info,4.57 KB, text/plain)
2013-01-05 18:13 UTC, Dennis Schridde
Details
ppc64-emerge.info (ppc64-emerge.info,4.57 KB, text/plain)
2013-01-05 18:14 UTC, Dennis Schridde
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dennis Schridde 2013-01-05 18:12:35 UTC
It appears app-arch/xz-utils-5.0.4-r1 builds only a static liblzma.a here.

Reproducible: Always
Comment 1 Dennis Schridde 2013-01-05 18:13:05 UTC
Created attachment 334556 [details]
build.log
Comment 2 Dennis Schridde 2013-01-05 18:13:24 UTC
Created attachment 334558 [details]
emerge.info
Comment 3 Dennis Schridde 2013-01-05 18:14:32 UTC
Created attachment 334560 [details]
ppc64-emerge.info

NOTE: This is in a cross-compilation environment with CBUILD=x86_64 and CHOST=powerpc64.
Comment 4 Dennis Schridde 2013-01-05 18:22:30 UTC
Found the issue:
checking whether the /mnt/ppc64/etc/crossdev/gcc -std=gnu99 linker (/mnt/ppc64/etc/crossdev/ld -m elf64ppc) supports shared libraries... no

Is there a way for portage to force configure to abort in this case?
Comment 5 Dennis Schridde 2013-01-05 18:36:57 UTC
The bad linker (wrong value for LD) was my fault. Would be nice of portage could somehow make econf/autoconf/configure bail out early in this case, i.e. force shared or static linking.
Comment 6 SpanKY gentoo-dev 2013-01-06 01:42:50 UTC
that makes no sense.  there are targets which don't support dynamic linking.
Comment 7 Dennis Schridde 2013-01-06 11:49:42 UTC
(In reply to comment #6)
> that makes no sense.  there are targets which don't support dynamic linking.
But in the case of xz-utils, it obviously requires shared-object support. So IMO it would make sense...
Comment 8 SpanKY gentoo-dev 2013-01-06 17:51:51 UTC
(In reply to comment #7)

no, it doesn't.  it depends entirely on the target whether a shared lib is used.
Comment 9 Dennis Schridde 2013-01-06 20:03:07 UTC
(In reply to comment #8)
> no, it doesn't.  it depends entirely on the target whether a shared lib is
> used.
Apparently the app-arch/xz-utils-5.0.4-r1 ebuild calls gen_usr_ldscript, which needs a shared library?
Comment 10 SpanKY gentoo-dev 2013-01-07 00:25:51 UTC
(In reply to comment #9)

for some targets, yes.  but not all.