Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 555670 - app-shells/ksh src/lib/libast/comp/tmpnam.c:48:14: error: storage size of 'buf' isn't known
Summary: app-shells/ksh src/lib/libast/comp/tmpnam.c:48:14: error: storage size of 'bu...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Mike Gilbert
URL:
Whiteboard:
Keywords:
: 562244 (view as bug list)
Depends on:
Blocks: 505542
  Show dependency tree
 
Reported: 2015-07-23 09:52 UTC by Piotr Szymaniak
Modified: 2015-11-29 20:05 UTC (History)
4 users (show)

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


Attachments
build.log (build.log,587.73 KB, text/plain)
2015-07-23 09:54 UTC, Piotr Szymaniak
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Piotr Szymaniak 2015-07-23 09:52:10 UTC
+ /usr/bin/cmp -s /var/tmp/portage/app-shells/ksh-93.20140625/work/src/cmd/nmake/pkg-freetype.mk /var/tmp/portage/app-shells/ksh-93.20140625/work/arch/linux.i386/lib/make/pkg-freetype.mk
+ /bin/mv /var/tmp/portage/app-shells/ksh-93.20140625/work/arch/linux.i386/lib/make/pkg-freetype.mk /var/tmp/portage/app-shells/ksh-93.20140625/work/arch/linux.i386/lib/make/pkg-freetype.mk.old
+ true
+ /bin/cp /var/tmp/portage/app-shells/ksh-93.20140625/work/src/cmd/nmake/pkg-freetype.mk /var/tmp/portage/app-shells/ksh-93.20140625/work/arch/linux.i386/lib/make/pkg-freetype.mk
+ test '' = pkg-cobol.mk
+ /usr/bin/cmp -s /var/tmp/portage/app-shells/ksh-93.20140625/work/src/cmd/nmake/pkg-cobol.mk /var/tmp/portage/app-shells/ksh-93.20140625/work/arch/linux.i386/lib/make/pkg-cobol.mk
+ /bin/mv /var/tmp/portage/app-shells/ksh-93.20140625/work/arch/linux.i386/lib/make/pkg-cobol.mk /var/tmp/portage/app-shells/ksh-93.20140625/work/arch/linux.i386/lib/make/pkg-cobol.mk.old
+ true
+ /bin/cp /var/tmp/portage/app-shells/ksh-93.20140625/work/src/cmd/nmake/pkg-cobol.mk /var/tmp/portage/app-shells/ksh-93.20140625/work/arch/linux.i386/lib/make/pkg-cobol.mk
+ test '' = pkg-cobol-cobc.mk
+ /usr/bin/cmp -s /var/tmp/portage/app-shells/ksh-93.20140625/work/src/cmd/nmake/pkg-cobol-cobc.mk /var/tmp/portage/app-shells/ksh-93.20140625/work/arch/linux.i386/lib/make/pkg-cobol-cobc.mk
+ /bin/mv /var/tmp/portage/app-shells/ksh-93.20140625/work/arch/linux.i386/lib/make/pkg-cobol-cobc.mk /var/tmp/portage/app-shells/ksh-93.20140625/work/arch/linux.i386/lib/make/pkg-cobol-cobc.mk.old
+ true
+ /bin/cp /var/tmp/portage/app-shells/ksh-93.20140625/work/src/cmd/nmake/pkg-cobol-cobc.mk /var/tmp/portage/app-shells/ksh-93.20140625/work/arch/linux.i386/lib/make/pkg-cobol-cobc.mk
+ test '' = pkg-cobol-mfcobc.mk
+ /usr/bin/cmp -s /var/tmp/portage/app-shells/ksh-93.20140625/work/src/cmd/nmake/pkg-cobol-mfcobc.mk /var/tmp/portage/app-shells/ksh-93.20140625/work/arch/linux.i386/lib/make/pkg-cobol-mfcobc.mk
+ /bin/mv /var/tmp/portage/app-shells/ksh-93.20140625/work/arch/linux.i386/lib/make/pkg-cobol-mfcobc.mk /var/tmp/portage/app-shells/ksh-93.20140625/work/arch/linux.i386/lib/make/pkg-cobol-mfcobc.mk.old
+ true
+ /bin/cp /var/tmp/portage/app-shells/ksh-93.20140625/work/src/cmd/nmake/pkg-cobol-mfcobc.mk /var/tmp/portage/app-shells/ksh-93.20140625/work/arch/linux.i386/lib/make/pkg-cobol-mfcobc.mk
+ test '' = ppcc
+ /usr/bin/cmp -s ppcc /var/tmp/portage/app-shells/ksh-93.20140625/work/arch/linux.i386/lib/make/ppcc
+ /bin/mv /var/tmp/portage/app-shells/ksh-93.20140625/work/arch/linux.i386/lib/make/ppcc /var/tmp/portage/app-shells/ksh-93.20140625/work/arch/linux.i386/lib/make/ppcc.old
+ true
+ /bin/cp ppcc /var/tmp/portage/app-shells/ksh-93.20140625/work/arch/linux.i386/lib/make/ppcc
+ nmake --base --compile --file=/var/tmp/portage/app-shells/ksh-93.20140625/work/src/cmd/nmake/Makerules.mk
sh: line 3: nmake: command not found
mamake [cmd/nmake]: *** exit code 127 making Makerules.mo
mamake: *** exit code 1 making cmd/nmake
package: make: errors making /var/tmp/portage/app-shells/ksh-93.20140625/work/arch/linux.i386/bin/nmake
package: make done  at Thu Jul 23 00:37:43 CEST 2015 in /var/tmp/portage/app-shells/ksh-93.20140625/work/arch/linux.i386
 * ERROR: app-shells/ksh-93.20140625::gentoo failed (compile phase):
 *   (no error message)
 *
 * Call stack:
 *     ebuild.sh, line  93:  Called src_compile
 *   environment, line 1948:  Called die
 * The specific snippet of code:
 *       sh bin/package flat only make ast-ksh SHELL=sh SHOPT_SYSRC=1 || die
 *
 * If you need support, post the output of `emerge --info '=app-shells/ksh-93.20140625::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=app-shells/ksh-93.20140625::gentoo'`.


Portage 2.2.20 (python 2.7.10-final-0, default/linux/amd64/13.0, gcc-5.1.0, glibc-2.21-r1, 4.0.0 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.0.0-x86_64-Common_KVM_processor-with-gentoo-2.2
KiB Mem:    16446612 total,  10725652 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Tue, 21 Jul 2015 21:45:01 +0000
sh bash 4.3_p39
ld GNU ld (Gentoo 2.25 p1.2) 2.25
app-shells/bash:          4.3_p39::gentoo
dev-lang/perl:            5.22.0::gentoo
dev-lang/python:          2.7.10::gentoo, 3.3.5-r1::gentoo
dev-util/pkgconfig:       0.28-r3::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.17::gentoo
sys-apps/sandbox:         2.6-r1::gentoo
sys-devel/autoconf:       2.69-r1::gentoo
sys-devel/automake:       1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25-r1::gentoo
sys-devel/gcc:            5.1.0::gentoo
sys-devel/gcc-config:     1.8::gentoo
sys-devel/libtool:        2.4.6-r1::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.1::gentoo (virtual/os-headers)
sys-libs/glibc:           2.21-r1::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync1.fi.gentoo.org/gentoo-portage
    priority: -1000

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -mno-sse3 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=nocona -mno-sse3 -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"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://trumpetti.atm.tut.fi/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j25"
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 fortran gdbm iconv ipv6 mmx mmxext modules multilib ncurses nls nptl openmp pam pcre readline session sse sse2 ssl tcpd unicode zlib" ABI_X86="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_3" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga nouveau nv r128 radeon savage sis tdfx trident vesa via vmware 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:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON


[ebuild  N    ] app-shells/ksh-93.20140625
Comment 1 Piotr Szymaniak 2015-07-23 09:54:10 UTC
Created attachment 407438 [details]
build.log
Comment 2 BobbyK 2015-10-12 19:15:09 UTC
This reproduces for me with gcc-4.9.3 though not with gcc-4.8.5
Comment 3 Joshua Kinard gentoo-dev 2015-11-27 13:03:44 UTC
(In reply to BobbyK from comment #2)
> This reproduces for me with gcc-4.9.3 though not with gcc-4.8.5

Oddly enough, using gcc-4.8.5 w/ pdksh also fixes a compile bug there, too.  Hmm...
Comment 4 Sergey S. Starikoff 2015-11-29 12:11:37 UTC
(In reply to Piotr Szymaniak from comment #0)
You've missed the error itself.

=app-shells/ksh-93.20120229, =sys-devel/gcc-4.9.3:
…
+ cc -march=native -O2 -pipe -Wl,-O1 -Wl,--as-needed -L/var/tmp/portage/app-shells/ksh-93.20120229/work/arch/linux.i386/lib -o nmake archive.o bind.o command.o dump.o expand.o main.o make.o mam.o metarule.o misc.o object.o option.o parse.o read.o rule.o scan.o state.o trap.o variable.o version.o /var/tmp/portage/app-shells/ksh-93.20120229/work/arch/linux.i386/lib/libcoshell.a /var/tmp/portage/app-shells/ksh-93.20120229/work/arch/linux.i386/lib/libast.a -lardir /var/tmp/portage/app-shells/ksh-93.20120229/work/arch/linux.i386/lib/libast.a /var/tmp/portage/app-shells/ksh-93.20120229/work/arch/linux.i386/lib/libast.a
/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lardir
collect2: error: ld returned 1 exit status
mamake [cmd/nmake]: *** exit code 1 making nmake
…

# equery u sys-devel/gcc
[ Legend : U - final flag setting for installation]
[        : I - package is installed with flag     ]
[ Colors : set, unset                             ]
 * Found these USE flags for sys-devel/gcc-4.9.3:
 U I
 - - cilk            : Support the Cilk Plus language (C/C++ based languages for parallel programming)
 + + cxx             : Build support for C++ (bindings, extra libraries, code generation, ...)
 - - debug           : Enable extra debug codepaths, like asserts and extra output. If you want to get meaningful
                       backtraces see https://wiki.gentoo.org/wiki/Project:Quality_Assurance/Backtraces
 - - doc             : Add extra documentation (API, Javadoc, etc). It is recommended to enable per package
                       instead of globally
 + + fortran         : Add support for fortran
 + + gcj             : Enable building with gcj (The GNU Compiler for the Javatm Programming Language)
 - - go              : Build the GCC Go language frontend.
 - - graphite        : Add support for the framework for loop optimizations based on a polyhedral intermediate
                       representation
 + + nls             : Add Native Language Support (using gettext - GNU locale utilities)
 - - nopie           : Disable PIE support (NOT FOR GENERAL USE)
 - - nossp           : Disable SSP support (NOT FOR GENERAL USE)
 + + nptl            : Enable support for Native POSIX Threads Library, the new threading module (requires
                       linux-2.6 or better usually)
 - - objc            : Build support for the Objective C code language
 - - objc++          : Build support for the Objective C++ language
 - - objc-gc         : Build support for the Objective C code language Garbage Collector
 + + openmp          : Build support for the OpenMP (support parallel computing), requires >=sys-devel/gcc-4.2
                       built with USE="openmp"
 - - regression-test : Run the testsuite and install the results (requires FEATURES=test)
 + + sanitize        : Build support various sanitizer functions (ASAN/TSAN/etc...)
 - - vanilla         : Do not add extra patches which change default behaviour; DO NOT USE THIS ON A GLOBAL SCALE
                       as the severity of the meaning changes drastically

P.S. Please, rename bug to something more correct, like:
"app-shells/ksh (sys-devel/gcc:4.9+): …bin/ld: cannot find -lardir"
Comment 5 Mike Gilbert gentoo-dev 2015-11-29 17:27:02 UTC
*** Bug 562244 has been marked as a duplicate of this bug. ***
Comment 6 Mike Gilbert gentoo-dev 2015-11-29 19:04:19 UTC
For some reason, the build system is generating a blank value for L_tmpnam in arch/linux.i386/include/ast/ast_stdio.h.

#ifndef P_tmpdir
#define P_tmpdir 
                               /*NOCATLITERAL*/
#endif
#ifndef L_ctermid
#define L_ctermid 
#endif
#ifndef L_tmpnam
#define L_tmpnam 
#endif
Comment 7 Mike Gilbert gentoo-dev 2015-11-29 20:05:07 UTC
commit c7dc706efaceb4816df5eedb45cd7c79ef1c3ef4
Author: Mike Gilbert <floppym@gentoo.org>
Date:   Sun Nov 29 15:03:23 2015 -0500

    app-shells/ksh: Fix build with GCC 5
    
    Bug: https://bugs.gentoo.org/555670
    
    Package-Manager: portage-2.2.26_p3

 app-shells/ksh/files/cpp.patch        | 24 ++++++++++++++++++++++++
 app-shells/ksh/ksh-93.20140625.ebuild |  3 ++-
 2 files changed, 26 insertions(+), 1 deletion(-)