Summary: | sys-devel/llvm-3.5.2 with ABI_X86=32 on PAX kernel fails tests - Can't allocate RWX Memory: Operation not permitted | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | eroen <erikdenstore+gbugs> |
Component: | [OLD] Core system | Assignee: | LLVM support project <llvm> |
Status: | RESOLVED OBSOLETE | ||
Severity: | normal | CC: | mgorny |
Priority: | Normal | Keywords: | TESTFAILURE |
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
See Also: | https://bugs.gentoo.org/show_bug.cgi?id=583024 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
build.log.xz
dmesg output |
Created attachment 434274 [details]
dmesg output
localhost ~ # emerge --info '=sys-devel/llvm-3.5.2::gentoo' Portage 2.2.26 (python 3.4.3-final-0, hardened/linux/amd64, gcc-4.9.3-vanilla, glibc-2.22-r4, 4.4.8-hardened-r1 x86_64) ================================================================= System Settings ================================================================= System uname: Linux-4.4.8-hardened-r1-x86_64-Intel-R-_Core-TM-_i5-2520M_CPU_@_2.50GHz-with-gentoo-2.2 KiB Mem: 3870988 total, 2792984 free KiB Swap: 0 total, 0 free Timestamp of repository gentoo: Fri, 13 May 2016 00:45:01 +0000 sh bash 4.3_p42-r1 ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1 app-shells/bash: 4.3_p42-r1::gentoo dev-lang/perl: 5.20.2::gentoo dev-lang/python: 2.7.10-r1::gentoo, 3.4.3-r1::gentoo dev-util/pkgconfig: 0.28-r2::gentoo sys-apps/baselayout: 2.2::gentoo sys-apps/openrc: 0.19.1::gentoo sys-apps/sandbox: 2.10-r1::gentoo sys-devel/autoconf: 2.69::gentoo sys-devel/automake: 1.14.1::gentoo, 1.15::gentoo sys-devel/binutils: 2.25.1-r1::gentoo sys-devel/gcc: 4.9.3::gentoo sys-devel/gcc-config: 1.7.3::gentoo sys-devel/libtool: 2.4.6::gentoo sys-devel/make: 4.1-r1::gentoo sys-kernel/linux-headers: 4.3::gentoo (virtual/os-headers) sys-libs/glibc: 2.22-r4::gentoo Repositories: gentoo location: /usr/portage sync-type: rsync sync-uri: rsync://rsync.gentoo.org/gentoo-portage priority: -1000 ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo" CXXFLAGS="-O2 -pipe" DISTDIR="/usr/portage/distfiles" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://distfiles.gentoo.org" LDFLAGS="-Wl,-O1 -Wl,--as-needed" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" USE="acl amd64 berkdb bindist bzip2 cli cracklib crypt cxx dri gdbm hardened iconv ipv6 justify mmx mmxext modules multilib ncurses nls nptl openmp pam pax_kernel pcre pie readline seccomp session sse sse2 ssl ssp tcpd unicode urandom xattr xtpax zlib" ABI_X86="32 64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON localhost ~ # emerge -pqv '=sys-devel/llvm-3.5.2::gentoo' [ebuild N ] sys-devel/llvm-3.5.2 USE="libffi ncurses static-analyzer {test} -clang -debug -doc -gold -libedit -multitarget -ocaml -python -xml" ABI_X86="32 (64) (-x32)" PYTHON_TARGETS="python2_7 -pypy" VIDEO_CARDS="radeon" * IMPORTANT: 9 news items need reading for repository 'gentoo'. * Use eselect news read to view new items. A typical test failure from the build log: ******************** FAIL: LLVM :: ExecutionEngine/test-shift.ll (6267 of 11282) ******************** TEST 'LLVM :: ExecutionEngine/test-shift.ll' FAILED ******************** Script: -- /var/tmp/portage/sys-devel/llvm-3.5.2/work/llvm-3.5.2.src-abi_x86_32.x86/Release/bin/lli /var/tmp/portage/sys-devel/llvm-3.5.2/work/llvm-3.5.2.src/test/ExecutionEngine/test-shift.ll > /dev/null -- Exit Code: 1 Command Output (stderr): -- LLVM ERROR: Allocation failed when allocating new memory in the JIT Can't allocate RWX Memory: Operation not permitted -- ******************** The test suite passes with ABI_X86=64. Tests DebugInfo/llvm-symbolizer-zlib.test and MC/ELF/compression.s also fail on non-hardened setups, see bug 583024. Hardened is not supported. |
Created attachment 434272 [details] build.log.xz ******************** Failing Tests (116): LLVM :: DebugInfo/debuglineinfo.test LLVM :: DebugInfo/llvm-symbolizer-zlib.test LLVM :: ExecutionEngine/2002-12-16-ArgTest.ll LLVM :: ExecutionEngine/2003-01-04-ArgumentBug.ll LLVM :: ExecutionEngine/2003-01-04-LoopTest.ll LLVM :: ExecutionEngine/2003-01-04-PhiTest.ll LLVM :: ExecutionEngine/2003-01-09-SARTest.ll LLVM :: ExecutionEngine/2003-01-10-FUCOM.ll LLVM :: ExecutionEngine/2003-01-15-AlignmentTest.ll LLVM :: ExecutionEngine/2003-05-07-ArgumentTest.ll LLVM :: ExecutionEngine/2003-05-11-PHIRegAllocBug.ll LLVM :: ExecutionEngine/2003-06-04-bzip2-bug.ll LLVM :: ExecutionEngine/2003-06-05-PHIBug.ll LLVM :: ExecutionEngine/2003-08-15-AllocaAssertion.ll LLVM :: ExecutionEngine/2003-08-21-EnvironmentTest.ll LLVM :: ExecutionEngine/2003-08-23-RegisterAllocatePhysReg.ll LLVM :: ExecutionEngine/2003-10-18-PHINode-ConstantExpr-CondCode-Failure.ll LLVM :: ExecutionEngine/2005-12-02-TailCallBug.ll LLVM :: ExecutionEngine/MCJIT/2002-12-16-ArgTest.ll LLVM :: ExecutionEngine/MCJIT/2003-01-04-ArgumentBug.ll LLVM :: ExecutionEngine/MCJIT/2003-01-04-LoopTest.ll LLVM :: ExecutionEngine/MCJIT/2003-01-04-PhiTest.ll LLVM :: ExecutionEngine/MCJIT/2003-01-09-SARTest.ll LLVM :: ExecutionEngine/MCJIT/2003-01-10-FUCOM.ll LLVM :: ExecutionEngine/MCJIT/2003-01-15-AlignmentTest.ll LLVM :: ExecutionEngine/MCJIT/2003-05-06-LivenessClobber.ll LLVM :: ExecutionEngine/MCJIT/2003-05-07-ArgumentTest.ll LLVM :: ExecutionEngine/MCJIT/2003-05-11-PHIRegAllocBug.ll LLVM :: ExecutionEngine/MCJIT/2003-06-04-bzip2-bug.ll LLVM :: ExecutionEngine/MCJIT/2003-06-05-PHIBug.ll LLVM :: ExecutionEngine/MCJIT/2003-08-15-AllocaAssertion.ll LLVM :: ExecutionEngine/MCJIT/2003-08-21-EnvironmentTest.ll LLVM :: ExecutionEngine/MCJIT/2003-08-23-RegisterAllocatePhysReg.ll LLVM :: ExecutionEngine/MCJIT/2003-10-18-PHINode-ConstantExpr-CondCode-Failure.ll LLVM :: ExecutionEngine/MCJIT/2005-12-02-TailCallBug.ll LLVM :: ExecutionEngine/MCJIT/2013-04-04-RelocAddend.ll LLVM :: ExecutionEngine/MCJIT/cross-module-a.ll LLVM :: ExecutionEngine/MCJIT/eh.ll LLVM :: ExecutionEngine/MCJIT/hello.ll LLVM :: ExecutionEngine/MCJIT/hello2.ll LLVM :: ExecutionEngine/MCJIT/load-object-a.ll LLVM :: ExecutionEngine/MCJIT/multi-module-a.ll LLVM :: ExecutionEngine/MCJIT/multi-module-eh-a.ll LLVM :: ExecutionEngine/MCJIT/non-extern-addend-smallcodemodel.ll LLVM :: ExecutionEngine/MCJIT/non-extern-addend.ll LLVM :: ExecutionEngine/MCJIT/pr13727.ll LLVM :: ExecutionEngine/MCJIT/remote/cross-module-a.ll LLVM :: ExecutionEngine/MCJIT/remote/multi-module-a.ll LLVM :: ExecutionEngine/MCJIT/remote/simpletest-remote.ll LLVM :: ExecutionEngine/MCJIT/remote/test-common-symbols-remote.ll LLVM :: ExecutionEngine/MCJIT/remote/test-data-align-remote.ll LLVM :: ExecutionEngine/MCJIT/remote/test-fp-no-external-funcs-remote.ll LLVM :: ExecutionEngine/MCJIT/remote/test-global-init-nonzero-remote.ll LLVM :: ExecutionEngine/MCJIT/remote/test-ptr-reloc-remote.ll LLVM :: ExecutionEngine/MCJIT/simplesttest.ll LLVM :: ExecutionEngine/MCJIT/simpletest.ll LLVM :: ExecutionEngine/MCJIT/stubs.ll LLVM :: ExecutionEngine/MCJIT/test-arith.ll LLVM :: ExecutionEngine/MCJIT/test-branch.ll LLVM :: ExecutionEngine/MCJIT/test-call-no-external-funcs.ll LLVM :: ExecutionEngine/MCJIT/test-call.ll LLVM :: ExecutionEngine/MCJIT/test-cast.ll LLVM :: ExecutionEngine/MCJIT/test-common-symbols-alignment.ll LLVM :: ExecutionEngine/MCJIT/test-common-symbols.ll LLVM :: ExecutionEngine/MCJIT/test-constantexpr.ll LLVM :: ExecutionEngine/MCJIT/test-data-align.ll LLVM :: ExecutionEngine/MCJIT/test-fp-no-external-funcs.ll LLVM :: ExecutionEngine/MCJIT/test-fp.ll LLVM :: ExecutionEngine/MCJIT/test-global-ctors.ll LLVM :: ExecutionEngine/MCJIT/test-global-init-nonzero.ll LLVM :: ExecutionEngine/MCJIT/test-global.ll LLVM :: ExecutionEngine/MCJIT/test-loadstore.ll LLVM :: ExecutionEngine/MCJIT/test-local.ll LLVM :: ExecutionEngine/MCJIT/test-logical.ll LLVM :: ExecutionEngine/MCJIT/test-loop.ll LLVM :: ExecutionEngine/MCJIT/test-phi.ll LLVM :: ExecutionEngine/MCJIT/test-ptr-reloc.ll LLVM :: ExecutionEngine/MCJIT/test-ret.ll LLVM :: ExecutionEngine/MCJIT/test-return.ll LLVM :: ExecutionEngine/MCJIT/test-setcond-fp.ll LLVM :: ExecutionEngine/MCJIT/test-setcond-int.ll LLVM :: ExecutionEngine/MCJIT/test-shift.ll LLVM :: ExecutionEngine/RuntimeDyld/X86/MachO_x86-64_PIC_relocations.s LLVM :: ExecutionEngine/hello.ll LLVM :: ExecutionEngine/hello2.ll LLVM :: ExecutionEngine/mov64zext32.ll LLVM :: ExecutionEngine/simplesttest.ll LLVM :: ExecutionEngine/simpletest.ll LLVM :: ExecutionEngine/stubs.ll LLVM :: ExecutionEngine/test-arith.ll LLVM :: ExecutionEngine/test-branch.ll LLVM :: ExecutionEngine/test-call-no-external-funcs.ll LLVM :: ExecutionEngine/test-call.ll LLVM :: ExecutionEngine/test-cast.ll LLVM :: ExecutionEngine/test-common-symbols.ll LLVM :: ExecutionEngine/test-constantexpr.ll LLVM :: ExecutionEngine/test-fp-no-external-funcs.ll LLVM :: ExecutionEngine/test-fp.ll LLVM :: ExecutionEngine/test-global-init-nonzero.ll LLVM :: ExecutionEngine/test-global.ll LLVM :: ExecutionEngine/test-interp-vec-arithm_float.ll LLVM :: ExecutionEngine/test-interp-vec-arithm_int.ll LLVM :: ExecutionEngine/test-interp-vec-logical.ll LLVM :: ExecutionEngine/test-interp-vec-setcond-fp.ll LLVM :: ExecutionEngine/test-interp-vec-setcond-int.ll LLVM :: ExecutionEngine/test-loadstore.ll LLVM :: ExecutionEngine/test-local.ll LLVM :: ExecutionEngine/test-logical.ll LLVM :: ExecutionEngine/test-loop.ll LLVM :: ExecutionEngine/test-phi.ll LLVM :: ExecutionEngine/test-ret.ll LLVM :: ExecutionEngine/test-return.ll LLVM :: ExecutionEngine/test-setcond-fp.ll LLVM :: ExecutionEngine/test-setcond-int.ll LLVM :: ExecutionEngine/test-shift.ll LLVM :: MC/ELF/compression.s Expected Passes : 6972 Expected Failures : 53 Unsupported Tests : 4141 Unexpected Failures: 116 Makefile:102: recipe for target 'check-local' failed make[1]: *** [check-local] Error 1 make[1]: Leaving directory '/var/tmp/portage/sys-devel/llvm-3.5.2/work/llvm-3.5.2.src-abi_x86_32.x86/test' /var/tmp/portage/sys-devel/llvm-3.5.2/work/llvm-3.5.2.src/Makefile.rules:1794: recipe for target 'check' failed make: *** [check] Error 2 * ERROR: sys-devel/llvm-3.5.2::gentoo failed (test phase): * emake failed