Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 411181 - sys-kernel/hardened-sources-2.6.32-r98 fails to compile on ia64: undefined reference to `__ashlti3' (In function `alloc_large_system_hash', In function `unlzma')
Summary: sys-kernel/hardened-sources-2.6.32-r98 fails to compile on ia64: undefined re...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Anthony Basile
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-04-07 18:22 UTC by Dennis Schridde
Modified: 2012-05-07 15:04 UTC (History)
4 users (show)

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


Attachments
hardened-sources-2.6.32-r98.config (hardened-sources-2.6.32-r98.config,45.72 KB, text/plain)
2012-04-07 18:23 UTC, Dennis Schridde
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dennis Schridde 2012-04-07 18:22:27 UTC
LD      .tmp_vmlinux1
mm/built-in.o: In function `alloc_large_system_hash':
(.init.text+0x4b42): undefined reference to `__ashlti3'
lib/lib.a(decompress_unlzma.o): In function `unlzma':
decompress_unlzma.c:(.init.text+0x9c2): undefined reference to `__ashlti3'
make: *** [.tmp_vmlinux1] Error 1

.config attached.

Reproducible: Always




Portage 2.2.0_alpha100 (hardened/linux/ia64/server, gcc-4.5.3, glibc-2.13-r4, 2.6.32-hardened-r92 ia64)
=================================================================
System uname: Linux-2.6.32-hardened-r92-ia64-31-with-gentoo-2.0.3
Timestamp of tree: Sat, 07 Apr 2012 13:15:01 +0000
app-shells/bash:          4.2_p20
dev-lang/python:          2.7.2-r3, 3.2.2-r1
dev-util/cmake:           2.8.6-r4
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.9.8.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.68
sys-devel/automake:       1.11.1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.5.3-r1
sys-devel/gcc-config:     1.5-r2
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 2.6.39 (virtual/os-headers)
sys-libs/glibc:           2.13-r4
Repositories: gentoo local sunrise
Installed sets: 
ACCEPT_KEYWORDS="ia64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="ia64-unknown-linux-gnu"
CFLAGS="-pipe -mtune=mckinley -O2"
CHOST="ia64-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-pipe -mtune=mckinley -O2"
DISTDIR="/var/cache/portage/distfiles"
EMERGE_DEFAULT_OPTS="--usepkg --buildpkg --binpkg-respect-use --with-bdeps y --keep-going"
FEATURES="assume-digests binpkg-logs buildpkg distlocks ebuild-locks fixlafiles news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS=""
GENTOO_MIRRORS="http://ftp.spline.inf.fu-berlin.de/mirrors/gentoo/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://ftp.spline.inf.fu-berlin.de/mirrors/gentoo/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://distfiles.gentoo.org"
LANG="en_GB.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -Wl,--hash-style=gnu"
MAKEOPTS="-j3"
PKGDIR="/var/cache/portage/packages"
PORTAGE_COMPRESS="xz"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="      --delete-excluded       --include='/sci-libs/'          --include='/sci-libs/gsl/'              --exclude='/sci-libs/*/'        --include='/x11-libs/'  --include='/x11-misc/'  --include='/x11-proto/'       --exclude='/games*/' --exclude='/gnome*/' --exclude='/gnustep*/' --exclude='/gpe*/' --exclude='/kde*/' --exclude='/lxde*/' --exclude='/rox*/' --exclude='/sci*/' --exclude='/x11*/' --exclude='/xfce*/'"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/var/cache/portage/gentoo"
PORTDIR_OVERLAY="/var/cache/portage/local /var/cache/portage/overlays/sunrise"
[...]
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS_FLAGS, USE_PYTHON
Comment 1 Dennis Schridde 2012-04-07 18:23:49 UTC
Created attachment 308147 [details]
hardened-sources-2.6.32-r98.config
Comment 2 Agostino Sarubbo gentoo-dev 2012-04-07 18:54:40 UTC
@blueness, feel free to add ia64@ by yourself if is needed
Comment 3 Emese Revfy 2012-04-07 20:45:53 UTC
You should unset the SIZE_OVERFLOW config option. It is not yet supported on ia64.
Comment 4 Anthony Basile gentoo-dev 2012-04-07 20:50:37 UTC
(In reply to comment #3)
> You should unset the SIZE_OVERFLOW config option. It is not yet supported on
> ia64.

If that's the case then we sould patch the Kconfig to reflect that.  BTW, is this a known vanilla kernel issue?  If you get me references I'll push a patch upstream.
Comment 5 Emese Revfy 2012-04-07 22:24:12 UTC
> If that's the case then we sould patch the Kconfig to reflect that.  BTW, is
> this a known vanilla kernel issue?  If you get me references I'll push a
> patch upstream.

This is the size_overflow_plugin's config option from PaX and the arch dependency will be fixed in the next version.
Comment 6 Anthony Basile gentoo-dev 2012-04-07 22:29:58 UTC
(In reply to comment #5)
> > If that's the case then we sould patch the Kconfig to reflect that.  BTW, is
> > this a known vanilla kernel issue?  If you get me references I'll push a
> > patch upstream.
> 
> This is the size_overflow_plugin's config option from PaX and the arch
> dependency will be fixed in the next version.

Ah thanks.
Comment 7 Dennis Schridde 2012-04-26 17:54:02 UTC
(In reply to comment #5)
> > If that's the case then we sould patch the Kconfig to reflect that.  BTW, is
> > this a known vanilla kernel issue?  If you get me references I'll push a
> > patch upstream.
> 
> This is the size_overflow_plugin's config option from PaX and the arch
> dependency will be fixed in the next version.
I am at linux-2.6.32-hardened-r100 now and still PAX_SIZE_OVERFLOW has no depends line in security/Kconfig:
config PAX_SIZE_OVERFLOW
    bool "Prevent various integer overflows in function size parameters"
Comment 8 PaX Team 2012-04-26 19:10:24 UTC
(In reply to comment #7)
> I am at linux-2.6.32-hardened-r100 now and still PAX_SIZE_OVERFLOW has no
> depends line in security/Kconfig:
> config PAX_SIZE_OVERFLOW
>     bool "Prevent various integer overflows in function size parameters"

it's already fixed in PaX and grsec as well, you'll have to wait until gentoo updates to the latest versions.
Comment 9 PaX Team 2012-04-26 19:13:18 UTC
(In reply to comment #8)
> it's already fixed in PaX and grsec as well, you'll have to wait until
> gentoo updates to the latest versions.

eh, crap, i forgot to backport it to the .32 series, fixing it right now, sorry about it!
Comment 10 Dennis Schridde 2012-05-07 15:03:39 UTC
(In reply to comment #9)
> (In reply to comment #8)
> > it's already fixed in PaX and grsec as well, you'll have to wait until
> > gentoo updates to the latest versions.
> 
> eh, crap, i forgot to backport it to the .32 series, fixing it right now,
> sorry about it!
Comment 11 Dennis Schridde 2012-05-07 15:04:06 UTC
(in r102)