Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 567180 - sci-mathematics/fricas-1.2.7 fails to compile -- mmap: Operation not permitted
Summary: sci-mathematics/fricas-1.2.7 fails to compile -- mmap: Operation not permitted
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Hardened (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: The Gentoo Linux Hardened Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-11-30 18:13 UTC by Markus Walter
Modified: 2018-03-26 05:23 UTC (History)
1 user (show)

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


Attachments
build log (fricas-1.2.7:20151130-085855.log,41.64 KB, text/plain)
2015-11-30 18:13 UTC, Markus Walter
Details
emerge --info (info.txt,6.25 KB, text/plain)
2015-11-30 18:13 UTC, Markus Walter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Walter 2015-11-30 18:13:13 UTC
Created attachment 418230 [details]
build log

On my hardened ~amd64 system with gcc-5.2.0 I see the following failure.

make[3]: Entering directory '/var/tmp/portage/sci-mathematics/fricas-1.2.7/work/fricas-1.2.7/src/boot'
/var/tmp/portage/sci-mathematics/fricas-1.2.7/work/fricas-1.2.7/src/scripts/build_helper --compile_lisp --debug=no --use=/var/tmp/portage/sci-mathematics/fricas-1.2.7/work/fricas-1.2.7/build/x86_64-pc-linux-gnu/bin/lisp --output=stage0/ptyout.fasl compiled/ptyout.clisp
mmap: Operation not permitted
ensure_space: failed to validate 1040384 bytes at 0x20000000
(hint: Try "ulimit -a"; maybe you should increase memory limits.)
Makefile:253: recipe for target 'stage0/ptyout.fasl' failed
make[3]: *** [stage0/ptyout.fasl] Error 1
Comment 1 Markus Walter 2015-11-30 18:13:25 UTC
Created attachment 418232 [details]
emerge --info
Comment 2 Kobboi 2015-12-20 10:24:56 UTC
I think I am seeing the same thing (since update to gcc-5)
Comment 3 Markus Walter 2016-01-24 14:58:26 UTC
I had to execute the following commands by hand:

paxctl-ng -mr /var/tmp/portage/sci-mathematics/fricas-1.2.7-r1/work/fricas-1.2.7/build/x86_64-pc-linux-gnu/bin/lisp
paxctl-ng -mr /var/tmp/portage/sci-mathematics/fricas-1.2.7-r1/work/fricas-1.2.7/src/boot/stage0/bootsys
paxctl-ng -mr /var/tmp/portage/sci-mathematics/fricas-1.2.7-r1/work/fricas-1.2.7/src/boot/stage1/bootsys
paxctl-ng -mr /var/tmp/portage/sci-mathematics/fricas-1.2.7-r1/work/fricas-1.2.7/build/x86_64-pc-linux-gnu/bin/bootsys
paxctl-ng -mr /var/tmp/portage/sci-mathematics/fricas-1.2.7-r1/work/fricas-1.2.7/build/x86_64-pc-linux-gnu/bin/interpsys
paxctl-ng -mr /var/tmp/portage/sci-mathematics/fricas-1.2.7-r1/work/fricas-1.2.7/target/x86_64-pc-linux-gnu/bin/AXIOMsys

Afterwards it merged, but produced the following warning:

 * QA Notice: The following files contain writable and executable sections
 *  Files with such sections will not work properly (or at all!) on some
 *  architectures/operating systems.  A bug should be filed at
 *  http://bugs.gentoo.org/ to make sure the issue is fixed.
 *  For more information, see:
 * 
 *    https://wiki.gentoo.org/wiki/Hardened/GNU_stack_quickstart
 * 
 *  Please include the following list of files in your report:
 *  Note: Bugs should be filed for the respective maintainers
 *  of the package in question and not hardened@g.o.
 * RWX --- --- usr/lib64/fricas/target/x86_64-pc-linux-gnu/bin/AXIOMsys
Comment 4 Toralf Förster gentoo-dev 2016-05-22 07:40:48 UTC
same here at:

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

  This is an unstable amd64 chroot image (named amd64-plasma-unstable_20160509-225719) at a hardened host acting as a tinderbox.

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

  make.conf: USE="mmx sse sse2 pax_kernel xtpax -cdinstall -oci8 -bindist alisp apache avx btrfs cairo -clang cups dot -fontconfig gnomecanvas gtkstyle haptic hdf5 isag javafx kerberos kvm logrotate melt mng modplug mysql ois openexr policykit postscript printsupport qt3support qt5 ssse3 system-libs -system-llvm theora tk ufed usbredir webkit wxwidgets xvfb"

  -----------------------------------------------------------------
Comment 5 Andrey Grozin gentoo-dev 2018-03-26 05:23:09 UTC
No longer in the tree