Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 641080

Summary: app-editors/nano-2.9.1::gentoo does not build with PIE gcc 7.2.0 desktop 17 profile
Product: Gentoo Linux Reporter: Roman Gruber <roman.gruber>
Component: Current packagesAssignee: SpanKY <vapier>
Status: RESOLVED NEEDINFO    
Severity: major CC: grknight, josef64, jstein
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=641076
Whiteboard:
Package list:
Runtime testing required: ---

Description Roman Gruber 2017-12-15 02:14:29 UTC
Serious you do not even test the basic suggested editor for the shell with newest PIE and gcc ? but throw out an eselect news item which forces you to update to the not needed PIE?

x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..  -DLOCALEDIR=\"/usr/share/locale\" -DSYSCONFDIR=\"/etc\" -I../lib -I../lib -D_GNU_SOURCE -I/usr/include/ncursesw   -march=native -O2 -pipe -fomit-frame-pointer -Wall -c -o history.o history.c
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..  -DLOCALEDIR=\"/usr/share/locale\" -DSYSCONFDIR=\"/etc\" -I../lib -I../lib -D_GNU_SOURCE -I/usr/include/ncursesw   -march=native -O2 -pipe -fomit-frame-pointer -Wall -c -o move.o move.c
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..  -DLOCALEDIR=\"/usr/share/locale\" -DSYSCONFDIR=\"/etc\" -I../lib -I../lib -D_GNU_SOURCE -I/usr/include/ncursesw   -march=native -O2 -pipe -fomit-frame-pointer -Wall -c -o prompt.o prompt.c
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..  -DLOCALEDIR=\"/usr/share/locale\" -DSYSCONFDIR=\"/etc\" -I../lib -I../lib -D_GNU_SOURCE -I/usr/include/ncursesw   -march=native -O2 -pipe -fomit-frame-pointer -Wall -c -o rcfile.o rcfile.c
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..  -DLOCALEDIR=\"/usr/share/locale\" -DSYSCONFDIR=\"/etc\" -I../lib -I../lib -D_GNU_SOURCE -I/usr/include/ncursesw   -march=native -O2 -pipe -fomit-frame-pointer -Wall -c -o search.o search.c
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..  -DLOCALEDIR=\"/usr/share/locale\" -DSYSCONFDIR=\"/etc\" -I../lib -I../lib -D_GNU_SOURCE -I/usr/include/ncursesw   -march=native -O2 -pipe -fomit-frame-pointer -Wall -c -o text.o text.c
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..  -DLOCALEDIR=\"/usr/share/locale\" -DSYSCONFDIR=\"/etc\" -I../lib -I../lib -D_GNU_SOURCE -I/usr/include/ncursesw   -march=native -O2 -pipe -fomit-frame-pointer -Wall -c -o utils.o utils.c
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..  -DLOCALEDIR=\"/usr/share/locale\" -DSYSCONFDIR=\"/etc\" -I../lib -I../lib -D_GNU_SOURCE -I/usr/include/ncursesw   -march=native -O2 -pipe -fomit-frame-pointer -Wall -c -o winio.o winio.c
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..  -DLOCALEDIR=\"/usr/share/locale\" -DSYSCONFDIR=\"/etc\" -I../lib -I../lib -D_GNU_SOURCE -I/usr/include/ncursesw   -march=native -O2 -pipe -fomit-frame-pointer -Wall -c -o nano.o nano.c
text.c: In function 'do_justify':
text.c:2454:17: error: 'openfilestruct {aka struct openfilestruct}' has no member named 'mark'
     if (openfile->mark && openfile->kind_of_mark == SOFTMARK)
                 ^~
text.c:2454:35: error: 'openfilestruct {aka struct openfilestruct}' has no member named 'kind_of_mark'
     if (openfile->mark && openfile->kind_of_mark == SOFTMARK)
                                   ^~
text.c:2455:10: error: 'openfilestruct {aka struct openfilestruct}' has no member named 'mark'
  openfile->mark = NULL;
          ^~
make[2]: *** [Makefile:1572: text.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory '/var/tmp/portage/app-editors/nano-2.9.1/work/nano-2.9.1/src'
make[1]: *** [Makefile:1544: all-recursive] Error 1
make[1]: Leaving directory '/var/tmp/portage/app-editors/nano-2.9.1/work/nano-2.9.1'
make: *** [Makefile:1483: all] Error 2
 * ERROR: app-editors/nano-2.9.1::gentoo failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=app-editors/nano-2.9.1::gentoo'`,
Comment 1 Jonas Stein gentoo-dev 2017-12-15 02:49:15 UTC
Thank you for your report. Please *attach* the logfiles,
https://wiki.gentoo.org/wiki/Bugzilla/Bug_report_guide#Report_a_build-time_bug_.28emerge_failed.29

Can someone confirm this?

I set the importance to major, because of the importance of nano as primary editor.
Comment 2 josef.95 2017-12-15 03:30:17 UTC
> 
> Can someone confirm this?
> 
> I set the importance to major, because of the importance of nano as primary
> editor.

I can not confirm this.

[ebuild   R   ] sys-devel/gcc-7.2.0  USE="cxx fortran (multilib) nptl openmp pch pgo (pie) sanitize ssp vtv (-altivec) (-awt) -cilk -debug -doc (-fixed-point) (-gcj) -go -graphite (-hardened) (-jit) (-libssp) -mpx -nls -objc -objc++ -objc-gc -regression-test -vanilla" 
[ebuild   R   ] app-editors/nano-2.9.1  USE="magic ncurses nls spell unicode -debug -justify -minimal -slang -static"

Builds and works here fine.
Comment 3 Brian Evans (RETIRED) gentoo-dev 2017-12-15 14:28:10 UTC
Works here.. 
Portage 2.3.18 (python 3.5.4-final-0, default/linux/amd64/17.0, gcc-7.2.0, glibc-2.26-r3, 4.11.0-bcachefs+ x86_64)                           [61/1850]
=================================================================
System uname: Linux-4.11.0-bcachefs+-x86_64-Intel_Celeron_4x0_-Conroe-Merom_Class_Core_2-with-gentoo-2.4.1
KiB Mem:     2050272 total,    425412 free
KiB Swap:    3145724 total,   3125420 free
Head commit of repository gentoo: fbdd43bc59039f43a7c224586bc81c47ea6748c1

Head commit of repository mysql: 3007cfdf814727b90978e91991c0ad26f2ad4a74

Head commit of repository grknight: 65232980df3d6264404416cb8188cc2a2320992e

sh bash 4.4_p12
ld GNU ld (Gentoo 2.29.1 p3) 2.29.1
distcc 3.2rc1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:          4.4_p12::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.26.1-r1::gentoo
dev-lang/python:          2.7.14-r1::gentoo, 3.5.4-r1::gentoo
dev-util/cmake:           3.10.0::gentoo
sys-apps/baselayout:      2.4.1-r2::gentoo
sys-apps/openrc:          0.34.11::gentoo
sys-apps/sandbox:         2.12::gentoo
sys-devel/autoconf:       2.69-r4::gentoo
sys-devel/automake:       1.13.4-r1::gentoo, 1.15.1-r1::gentoo
sys-devel/binutils:       2.29.1-r1::gentoo
sys-devel/gcc:            6.4.0::gentoo, 7.2.0::gentoo
sys-devel/gcc-config:     1.9.0-r1::gentoo
sys-devel/libtool:        2.4.6-r4::gentoo
sys-devel/make:           4.2.1-r1::gentoo
sys-kernel/linux-headers: 4.13::gentoo (virtual/os-headers)
sys-libs/glibc:           2.26-r3::gentoo


ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CXXFLAGS="-O2 -pipe"
DISTDIR="/var/lib/portage/distfiles"
EMERGE_DEFAULT_OPTS="--quiet-build=y --keep-going --autounmask-keep-masks=y"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch prese
rve-libs protect-owned sandbox sfperms sign strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j2"
Comment 4 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2017-12-15 14:33:35 UTC
Same here... builds and works fine on:

# emerge --info nano
Portage 2.3.18 (python 3.5.4-final-0, default/linux/amd64/17.0/desktop/plasma, gcc-7.2.0-asneeded, glibc-2.26-r3, 4.9.67 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.9.67-x86_64-Intel-R-_Core-TM-_i7-3740QM_CPU_@_2.70GHz-with-gentoo-2.4.1
KiB Mem:    32950416 total,   2931904 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Thu, 14 Dec 2017 17:45:01 +0000
Head commit of repository gentoo: 87936449631e29d8fd3cc000abf4305a4b0be4cc
Timestamp of repository poly-c: Thu, 14 Dec 2017 11:04:47 +0000
sh dash 0.5.9.1-r3
ld GNU ld (Gentoo 2.29.1 p2) 2.29.1
app-shells/bash:          4.4_p12::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.26.1-r1::gentoo
dev-lang/python:          2.7.14-r1::gentoo, 3.5.4-r1::gentoo, 3.6.3-r1::gentoo
dev-util/cmake:           3.10.0::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1-r2::gentoo
sys-apps/openrc:          0.34.11::gentoo
sys-apps/sandbox:         2.12::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.11.6-r2::gentoo, 1.15.1-r1::gentoo
sys-devel/binutils:       2.29.1-r1::gentoo
sys-devel/gcc:            6.4.0::gentoo, 7.2.0::gentoo
sys-devel/gcc-config:     1.9.0-r1::gentoo
sys-devel/libtool:        2.4.6-r4::gentoo
sys-devel/make:           4.2.1-r1::gentoo
sys-kernel/linux-headers: 4.13::gentoo (virtual/os-headers)
sys-libs/glibc:           2.26-r3::gentoo
Repositories:

gentoo
    location: /var/portage
    sync-type: rsync
    sync-uri: rsync://rsync.de.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-extra-opts: 

thabairne
    location: /var/lib/layman/thabairne
    masters: gentoo
    priority: 0

poly-c
    location: /var/lib/layman/poly-c
    masters: gentoo
    priority: 1

Installed sets: @system
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -mtune=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ConsoleKit /etc/X11/Sessions /etc/X11/app-defaults /etc/X11/xinit /etc/bonobo-activation /etc/ca-certificates /etc/ca-certificates.conf /etc/dbus-1 /etc/dconf /etc/env.d /etc/fonts /etc/fonts/fonts.conf /etc/foomatic /etc/games /etc/gconf /etc/gentoo-release /etc/gimp /etc/gnome-vfs-2.0 /etc/gre.d /etc/gtk-2.0 /etc/hp /etc/hsqldb /etc/htdig /etc/init.d /etc/iproute2 /etc/java-config-2 /etc/lftp /etc/logrotate.d /etc/ntop /etc/opt /etc/pango /etc/polkit-1 /etc/profile.d /etc/qt4 /etc/revdep-rebuild /etc/sandbox.d /etc/sasl2 /etc/sensors.d /etc/sgml /etc/sound /etc/ssl /etc/ssmtp /etc/t1lib /etc/terminfo /etc/usb_modeswitch.d /etc/vbox /etc/xdg /etc/xinetd.d /etc/xml"
CXXFLAGS="-march=native -mtune=native -O2 -pipe"
DISTDIR="/var/tmp/distfiles"
EMERGE_DEFAULT_OPTS="--alphabetical --with-bdeps=y --misspell-suggestions=n --autounmask=n --quiet-build=n --binpkg-respect-use=n --verbose-slot-rebuilds=n --keep-going --fuzzy-search=n"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict network-sandbox news parallel-fetch preserve-libs protect-owned sandbox sfperms sign strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo"
INSTALL_MASK="/etc/systemd /lib/systemd /lib32/systemd /lib64/systemd /usr/lib/systemd /usr/lib32/systemd /usr/lib64/systemd /etc/init.d/functions.sh"
LDFLAGS="-Wl,-O1 -Wl,--hash-style=gnu -Wl,--sort-common -Wl,--as-needed"
MAKEOPTS="-j4"
PKGDIR="/opt/portage/packages"
PORTAGE_BZIP2_COMMAND="lbzip2 -q"
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 --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acl acpi activities alsa amd64 branding bzip2 cairo caps cdda cdr cli consolekit cracklib crypt cups cxx dbus declarative dts dvd dvdr emboss encode exif fam ffmpeg firefox flac gcrypt gdbm gif glamor gmp gnutls gtk iconv icu idn inotify ipv6 jpeg jpeg2k kde kipi kwallet lame lcms libinput libnotify lzma mad matroska midi mmap mmx mmxext mng modules mp3 mp4 mpeg mpfr multilib ncurses nls nptl nsplugin ogg opengl openmp opus pam pango pcre pdf phonon plasma png policykit ppds pulseaudio qml qt3support qt4 qt5 quicktime readline rtmp schroedinger sdl seccomp session slang spell sse sse2 ssl startup-notification svg theora threads tiff tinfo truetype twolame udev udisks unicode upower usb vaapi vcd vdpau vorbis vpx widgets wxwidgets x264 x265 xattr xcb xcomposite xinerama xml xrandr xv xvid zlib" ABI_X86="64" ALSA_CARDS="hda-intel" 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" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx f16c mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" CURL_SSL="gnutls" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64 pc" INPUT_DEVICES="libinput synaptics" KERNEL="linux" L10N="de de-1901 en" LIBREOFFICE_EXTENSIONS="pdfimport presenter-console presenter-minimizer" LINGUAS="de de@1901 en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-0" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_5" PYTHON_TARGETS="python2_7 python3_5 python3_6" QEMU_SOFTMMU_TARGETS="arm i386 x86_64" QEMU_USER_TARGETS="arm i386 x86_64" RUBY_TARGETS="ruby23 ruby24" USERLAND="GNU" VIDEO_CARDS="radeon radeonsi"
Unset:  CC, CPPFLAGS, CTARGET, CXX, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

app-editors/nano-2.9.1::gentoo was built with the following:
USE="-debug -justify magic -minimal ncurses nls slang spell -static unicode" ABI_X86="(64)"