[PR40506] sorry, unimplemented: inlining failed

Bug #352475 reported by Thorsten Glaser
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gcc
Won't Fix
Medium
gcc-4.4 (Ubuntu)
Triaged
Low
Unassigned

Bug Description

https://launchpad.net/~mirabilos/+archive/ppa ⇒ mksh fails to compile.

Build log:

cc -Wall -g -O2 -fno-strict-aliasing -fstack-protector-all -fwrapv -std=gnu99 -Wall -I. -I'../../mksh' -DMKSH_BINSHREDUCED -include /usr/include/bsd/bsd.h -D_GNU_SOURCE -DHAVE_ATTRIBUTE=1 -DHAVE_ATTRIBUTE_BOUNDED=0 -DHAVE_ATTRIBUTE_USED=1 -DHAVE_SYS_PARAM_H=1 -DHAVE_SYS_MKDEV_H=0 -DHAVE_SYS_MMAN_H=1 -DHAVE_SYS_SYSMACROS_H=1 -DHAVE_LIBGEN_H=1 -DHAVE_LIBUTIL_H=1 -DHAVE_PATHS_H=1 -DHAVE_STDBOOL_H=1 -DHAVE_STRINGS_H=1 -DHAVE_GRP_H=1 -DHAVE_ULIMIT_H=1 -DHAVE_VALUES_H=1 -DHAVE_STDINT_H=1 -DHAVE_RLIM_T=1 -DHAVE_SIG_T=1 -DHAVE_SYS_SIGNAME=0 -DHAVE_SYS_SIGLIST=1 -DHAVE_STRSIGNAL=0 -DHAVE_ARC4RANDOM=1 -DHAVE_ARC4RANDOM_PUSHB=0 -DHAVE_MKNOD=1 -DHAVE_MKSTEMP=1 -DHAVE_NICE=1 -DHAVE_REALPATH=1 -DHAVE_REVOKE=0 -DHAVE_SETLOCALE_CTYPE=1 -DHAVE_LANGINFO_CODESET=1 -DHAVE_SETMODE=1 -DHAVE_SETRESUGID=1 -DHAVE_SETGROUPS=1 -DHAVE_STRCASESTR=1 -DHAVE_STRLCPY=1 -DHAVE_ARC4RANDOM_DECL=1 -DHAVE_ARC4RANDOM_PUSHB_DECL=1 -DHAVE_FLOCK_DECL=0 -DHAVE_REVOKE_DECL=1 -DHAVE_SYS_SIGLIST_DECL=1 -DHAVE_PERSISTENT_HISTORY=1 -DHAVE_CONFIG_H -DCONFIG_H_FILENAME=\"sh.h\" -Wl,-Bsymbolic-functions -fwhole-program --combine -o mksh ../../mksh/lalloc.c ../../mksh/edit.c ../../mksh/eval.c ../../mksh/exec.c ../../mksh/expr.c ../../mksh/funcs.c ../../mksh/histrap.c ../../mksh/jobs.c ../../mksh/lex.c ../../mksh/main.c ../../mksh/misc.c ../../mksh/shf.c ../../mksh/syn.c ../../mksh/tree.c ../../mksh/var.c -lbsd || rm -f ${tcfn}*
../../mksh/jobs.c: In function 'exchild':
../../mksh/jobs.c:415: warning: ignoring return value of 'nice', declared with attribute warn_unused_result
../../mksh/exec.c: In function 'execute':
/usr/include/bits/string3.h:79: sorry, unimplemented: inlining failed in call to 'memset': redefined extern inline functions are not considered for inlining
../../mksh/exec.c:83: sorry, unimplemented: called from here
/usr/include/bits/fcntl2.h:43: sorry, unimplemented: inlining failed in call to 'open': redefined extern inline functions are not considered for inlining
../../mksh/exec.c:1157: sorry, unimplemented: called from here
/usr/include/bits/fcntl2.h:43: sorry, unimplemented: inlining failed in call to 'open': redefined extern inline functions are not considered for inlining
../../mksh/exec.c:699: sorry, unimplemented: called from here
/usr/include/bits/unistd.h:36: sorry, unimplemented: inlining failed in call to 'read': redefined extern inline functions are not considered for inlining
../../mksh/exec.c:701: sorry, unimplemented: called from here
make: *** [debian/.build_stamp] Error 1

Revision history for this message
Matthias Klose (doko) wrote :

- please attach the preprocessed source
- please recheck with gcc-snapshot

Changed in gcc-defaults (Ubuntu):
status: New → Incomplete
Revision history for this message
Thorsten Glaser (mirabilos) wrote :

- the bug only appears when using -fwhole-program --combine
- as this is a PPA, I do not really have access to either the source or
  the compiler, because I don’t build it myself (it works fine on Hardy,
  which is what we have at work)¹
- interestingly enough, the OpenSuSE Buildservice has the same problem

¹) I could try a chroot though, but it, again, looks like a problem in the
  combination of new gcc and new headers – Debian sid doesn’t have it

Revision history for this message
Thorsten Glaser (mirabilos) wrote :
Download full text (6.0 KiB)

│ gcc version 4.4.0 20090327 (experimental) [trunk revision 145121] (Ubuntu 20090327-0ubuntu1)
└─┤ is indeed not affected by this bug.

To reproduce, I made a jaunty schroot and tried to build mksh 37.3-2 in it.

tglase@tglase:~/mksh-37.3/build/full$ cc -Wall -g -O2 -fno-strict-aliasing -fstack-protector-all -fwrapv -std=gnu99 -Wall -I. -I'../../mksh' -DMKSH_BINSHREDUCED -include /usr/include/bsd/bsd.h -D_GNU_SOURCE -DHAVE_ATTRIBUTE=1 -DHAVE_ATTRIBUTE_BOUNDED=0 -DHAVE_ATTRIBUTE_USED=1 -DHAVE_SYS_PARAM_H=1 -DHAVE_SYS_MKDEV_H=0 -DHAVE_SYS_MMAN_H=1 -DHAVE_SYS_SYSMACROS_H=1 -DHAVE_LIBGEN_H=1 -DHAVE_LIBUTIL_H=1 -DHAVE_PATHS_H=1 -DHAVE_STDBOOL_H=1 -DHAVE_STRINGS_H=1 -DHAVE_GRP_H=1 -DHAVE_ULIMIT_H=1 -DHAVE_VALUES_H=1 -DHAVE_STDINT_H=1 -D_FILE_OFFSET_BITS=64 -DHAVE_RLIM_T=1 -DHAVE_SIG_T=1 -DHAVE_SYS_SIGNAME=0 -DHAVE_SYS_SIGLIST=1 -DHAVE_STRSIGNAL=0 -DHAVE_ARC4RANDOM=1 -DHAVE_ARC4RANDOM_PUSHB=0 -DHAVE_GETRUSAGE=1 -DHAVE_MKNOD=1 -DHAVE_MKSTEMP=1 -DHAVE_NICE=1 -DHAVE_REALPATH=1 -DHAVE_REVOKE=0 -DHAVE_SETLOCALE_CTYPE=1 -DHAVE_LANGINFO_CODESET=1 -DHAVE_SETMODE=1 -DHAVE_SETRESUGID=1 -DHAVE_SETGROUPS=1 -DHAVE_STRCASESTR=1 -DHAVE_STRLCPY=1 -DHAVE_ARC4RANDOM_DECL=1 -DHAVE_ARC4RANDOM_PUSHB_DECL=1 -DHAVE_FLOCK_DECL=0 -DHAVE_REVOKE_DECL=1 -DHAVE_SYS_SIGLIST_DECL=1 -DHAVE_PERSISTENT_HISTORY=1 -Wl,-Bsymbolic-functions -fwhole-program --combine -o mksh ../../mksh/lalloc.c ../../mksh/edit.c ../../mksh/eval.c ../../mksh/exec.c ../../mksh/expr.c ../../mksh/funcs.c ../../mksh/histrap.c ../../mksh/jobs.c ../../mksh/lex.c ../../mksh/main.c ../../mksh/misc.c ../../mksh/shf.c ../../mksh/syn.c ../../mksh/tree.c ../../mksh/var.c -lbsd
../../mksh/jobs.c: In function 'exchild':
../../mksh/jobs.c:438: warning: ignoring return value of 'nice', declared with attribute warn_unused_result
../../mksh/exec.c: In function 'execute':
/usr/include/bits/string3.h:79: sorry, unimplemented: inlining failed in call to 'memset': redefined extern inline functions are not considered for inlining
../../mksh/exec.c:83: sorry, unimplemented: called from here
/usr/include/bits/fcntl2.h:43: sorry, unimplemented: inlining failed in call to 'open': redefined extern inline functions are not considered for inlining
../../mksh/exec.c:1157: sorry, unimplemented: called from here
/usr/include/bits/fcntl2.h:43: sorry, unimplemented: inlining failed in call to 'open': redefined extern inline functions are not considered for inlining
../../mksh/exec.c:699: sorry, unimplemented: called from here
/usr/include/bits/unistd.h:36: sorry, unimplemented: inlining failed in call to 'read': redefined extern inline functions are not considered for inlining
../../mksh/exec.c:701: sorry, unimplemented: called from here
tglase@tglase:~/mksh-37.3/build/full$ cc -v
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.3.3-5ubuntu4' --with-bugurl=file:///usr/share/doc/gcc-4.3/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --with-gxx-include-dir=/usr/include/c++/4.3 --program-suffix=-4.3 --enabl...

Read more...

Changed in gcc-defaults (Ubuntu):
status: Incomplete → New
Revision history for this message
Thorsten Glaser (mirabilos) wrote :

This is on a karmic schroot from today.

Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.4.0-3ubuntu5' --with-bugurl=file:///usr/share/doc/gcc-4.4/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared --enable-multiarch --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.4 --program-suffix=-4.4 --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-mpfr --enable-objc-gc --enable-targets=all --disable-werror --with-arch-32=i486 --with-tune=generic --enable-checking=release --build=i486-linux-gnu --host=i486-linux-gnu --target=i486-linux-gnu
Thread model: posix
gcc version 4.4.0 (Ubuntu 4.4.0-3ubuntu5)

Preprocessed source and one-line shell script to reproduce the problem attached:

$ sh -x thebug.sh
+ cc -O2 -std=gnu99 -fwhole-program --combine -c -o mksh.o edit.i eval.i exec.i expr.i funcs.i histrap.i jobs.i lalloc.i lex.i main.i misc.i shf.i syn.i tree.i var.i
../../mksh/jobs.c: In function 'exchild':
../../mksh/jobs.c:458: warning: ignoring return value of 'nice', declared with attribute warn_unused_result
../../mksh/edit.c: In function 'vi_cmd':
/usr/include/bits/string3.h:56: sorry, unimplemented: inlining failed in call to 'memmove': function body not available
../../mksh/edit.c:4135: sorry, unimplemented: called from here
/usr/include/bits/string3.h:56: sorry, unimplemented: inlining failed in call to 'memmove': function body not available
../../mksh/edit.c:4139: sorry, unimplemented: called from here
/usr/include/bits/string3.h:49: sorry, unimplemented: inlining failed in call to 'memcpy': redefined extern inline functions are not considered for inlining
../../mksh/edit.c:4170: sorry, unimplemented: called from here
/usr/include/bits/string3.h:49: sorry, unimplemented: inlining failed in call to 'memcpy': redefined extern inline functions are not considered for inlining
../../mksh/edit.c:4173: sorry, unimplemented: called from here
/usr/include/bits/string3.h:56: sorry, unimplemented: inlining failed in call to 'memmove': function body not available
../../mksh/edit.c:5095: sorry, unimplemented: called from here
../../mksh/lex.c:955: confused by earlier errors, bailing out

Revision history for this message
Thorsten Glaser (mirabilos) wrote :

changing from gcc-defaults to gcc-4.4 now that I pinned it down further

affects: gcc-defaults (Ubuntu) → gcc-4.4 (Ubuntu)
Matthias Klose (doko)
summary: - sorry, unimplemented: inlining failed
+ [PR40506] sorry, unimplemented: inlining failed
Changed in gcc:
status: Unknown → New
Matthias Klose (doko)
Changed in gcc-4.4 (Ubuntu):
importance: Undecided → Low
status: New → Triaged
Revision history for this message
Thorsten Glaser (mirabilos) wrote :

FWIW:

Debian sid gcc 4.4.0-11 => not affected

Debian sid gcc-snapshot 20090620-1 => affected
gcc version 4.5.0 20090620 (experimental) [trunk revision 148747]

Changed in gcc:
importance: Unknown → Medium
status: New → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.