It turns out glibc requires some special patches for the SBC I am working with. The SBC vendor has provided a portage overlay that installs the patches during the emerge process and I am not abel to successfully build glibc-2.17.
On Thu, Apr 10, 2014 at 8:43 AM, Robert K. Johnson <rj.rkjohn...@gmail.com> wrote: > I am working with an embedded Freescale P2020 based system. I cannot > seem to successfully compile the glibc-2.17 package. I am trying to > update glibc from package 2.15-r2. I have tried both gcc 4.6.3 and > 4.7.3-r1. I am thinking about submitting a bug report but I thought I > would ask here first. I might also try again after updating the > portage packages. > > Here is what I see when the compilation fails: > > powerpc-e500v2-linux-gnuspe-gcc ../sysdeps/powerpc/fpu/fraiseexcpt.c > -c -std=gnu99 -fgnu89-inline -O2 -Wa,-me500x2 -Wall -Winline > -Wwrite-strings -fmerge-all-constants -fno-strict-aliasing > -freorder-blocks -frounding-math -mcpu=8548 -mfloat-gprs=double > -mspe=yes -mtune=8548 -pipe -mhard-float -Wstrict-prototypes > -mlong-double-128 -Wno-uninitialized -U_FORTIFY_SOURCE > -D__NO_MATH_INLINES -D__LIBC_INTERNAL_MATH_INLINES -I../include > -I/var/tmp/portage/sys-libs/glibc-2.17/work/build-default-powerpc-e500v2-linux-gnuspe-nptl/math > -I/var/tmp/portage/sys-libs/glibc-2.17/work/build-default-powerpc-e500v2-linux-gnuspe-nptl > -I../sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl > -I../sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu > -I../sysdeps/powerpc/powerpc32/fpu > -I../nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32 > -I../ports/sysdeps/unix/sysv/linux/powerpc/powerpc32 > -I../sysdeps/unix/sysv/linux/powerpc/powerpc32 > -I../nptl/sysdeps/unix/sysv/linux/powerpc > -I../ports/sysdeps/unix/sysv/linux/powerpc > -I../sysdeps/unix/sysv/linux/powerpc -I../sysdeps/ieee754/ldbl-128ibm > -I../sysdeps/ieee754/ldbl-opt -I../nptl/sysdeps/unix/sysv/linux > -I../nptl/sysdeps/pthread -I../sysdeps/pthread > -I../ports/sysdeps/unix/sysv/linux -I../sysdeps/unix/sysv/linux > -I../sysdeps/gnu -I../sysdeps/unix/inet -I../nptl/sysdeps/unix/sysv > -I../ports/sysdeps/unix/sysv -I../sysdeps/unix/sysv > -I../sysdeps/unix/powerpc -I../nptl/sysdeps/unix > -I../ports/sysdeps/unix -I../sysdeps/unix -I../sysdeps/posix > -I../ports/sysdeps/powerpc/powerpc32 -I../sysdeps/powerpc/powerpc32 > -I../sysdeps/wordsize-32 -I../sysdeps/powerpc/fpu > -I../nptl/sysdeps/powerpc -I../ports/sysdeps/powerpc > -I../sysdeps/powerpc -I../sysdeps/ieee754/dbl-64 > -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754 -I../sysdeps/generic > -I../nptl -I../ports -I.. -I../libio -I. -nostdinc -isystem > /usr/lib/gcc/powerpc-e500v2-linux-gnuspe/4.7.3/include -isystem > /usr/lib/gcc/powerpc-e500v2-linux-gnuspe/4.7.3/include-fixed -isystem > /usr/include -D_LIBC_REENTRANT -include ../include/libc-symbols.h > -DNOT_IN_libc=1 -DIS_IN_libm=1 -DIN_LIB=libm -o > /var/tmp/portage/sys-libs/glibc-2.17/work/build-default-powerpc-e500v2-linux-gnuspe-nptl/math/fraiseexcpt.o > -MD -MP -MF > /var/tmp/portage/sys-libs/glibc-2.17/work/build-default-powerpc-e500v2-linux-gnuspe-nptl/math/fraiseexcpt.o.dt > -MT > /var/tmp/portage/sys-libs/glibc-2.17/work/build-default-powerpc-e500v2-linux-gnuspe-nptl/math/fraiseexcpt.o > > ../sysdeps/powerpc/fpu/fclrexcpt.c: In function '__feclearexcept': > ../sysdeps/powerpc/fpu/fclrexcpt.c:28:12: error: impossible constraint in > 'asm' > ../sysdeps/powerpc/fpu/fclrexcpt.c:35:3: error: impossible constraint in 'asm' > ../sysdeps/powerpc/fpu/fclrexcpt.c:35:3: error: impossible constraint in 'asm' > ../sysdeps/powerpc/fpu/fgetexcptflg.c: In function '__fegetexceptflag': > ../sysdeps/powerpc/fpu/fgetexcptflg.c:28:12: error: impossible > constraint in 'asm'make[2]: *** > [/var/tmp/portage/sys-libs/glibc-2.17/work/build-default-powerpc-e500v2-linux-gnuspe-nptl/math/fclrexcpt.o] > Error 1 > make[2]: *** Waiting for unfinished jobs.... > > ../sysdeps/powerpc/fpu/fraiseexcpt.c: In function '__feraiseexcept': > ../sysdeps/powerpc/fpu/fraiseexcpt.c:34:12: error: impossible > constraint in 'asm' > ../sysdeps/powerpc/fpu/fraiseexcpt.c:45:3: error: impossible constraint in > 'asm' > ../sysdeps/powerpc/fpu/fraiseexcpt.c:45:3: error: impossible constraint in > 'asm' > ../sysdeps/powerpc/fpu/fraiseexcpt.c:52:16: error: impossible > constraint in 'asm' > make[2]: *** > [/var/tmp/portage/sys-libs/glibc-2.17/work/build-default-powerpc-e500v2-linux-gnuspe-nptl/math/fgetexcptflg.o] > Error 1 > make[2]: *** > [/var/tmp/portage/sys-libs/glibc-2.17/work/build-default-powerpc-e500v2-linux-gnuspe-nptl/math/fraiseexcpt.o] > Error 1 > make[2]: Leaving directory > `/var/tmp/portage/sys-libs/glibc-2.17/work/glibc-2.17/math' > make[1]: *** [math/others] Error 2 > make[1]: Leaving directory > `/var/tmp/portage/sys-libs/glibc-2.17/work/glibc-2.17' > make: *** [all] Error 2 > emake failed > * ERROR: sys-libs/glibc-2.17 failed (compile phase): > * make for default failed > * > * Call stack: > * ebuild.sh, line 93: Called src_compile > * environment, line 3080: Called eblit-run 'src_compile' > * environment, line 851: Called eblit-glibc-src_compile > * src_compile.eblit, line 267: Called toolchain-glibc_src_compile > * src_compile.eblit, line 166: Called die > * The specific snippet of code: > * emake || die "make for ${ABI} failed" > > > Here is some additional info: > > # emerge --info > Portage 2.1.12.2 (default/linux/powerpc/ppc32/13.0, gcc-4.7.3, > glibc-2.15-r2, 3.0.4-xes_r7 ppc) > ================================================================= > System uname: Linux-3.0.4-xes_r7-ppc-e500v2-with-gentoo-2.1 > KiB Mem: 2072552 total, 735924 free > KiB Swap: 0 total, 0 free > Timestamp of tree: Wed, 09 Apr 2014 17:00:01 +0000 > ld GNU ld (GNU Binutils) 2.22 > app-shells/bash: 4.2_p37 > dev-lang/python: 2.7.3-r2, 3.2.3 > dev-util/pkgconfig: 0.27.1 > sys-apps/baselayout: 2.1-r1 > sys-apps/openrc: 0.10.4 > sys-apps/sandbox: 2.6 > sys-devel/autoconf: 2.68 > sys-devel/automake: 1.11.6, 1.13.4 > sys-devel/binutils: 2.22-r1 > sys-devel/gcc: 4.6.3, 4.7.3-r1 > sys-devel/gcc-config: 1.7.3 > sys-devel/libtool: 2.4.2 > sys-devel/make: 3.82-r3 > sys-kernel/linux-headers: 3.1 (virtual/os-headers) > sys-libs/glibc: 2.15-r2::x-portage > Repositories: gentoo x-portage > ACCEPT_KEYWORDS="ppc" > ACCEPT_LICENSE="* -@EULA" > CBUILD="powerpc-e500v2-linux-gnuspe" > CFLAGS="-O2 -mcpu=8548 -mtune=8548 -mabi=spe -mspe=yes -Wa,-me500x2 > -mfloat-gprs=double -pipe" > CHOST="powerpc-e500v2-linux-gnuspe" > CONFIG_PROTECT="/etc" > CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf > /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" > CXXFLAGS="-O2 -mcpu=8548 -mtune=8548 -mabi=spe -mspe=yes -Wa,-me500x2 > -mfloat-gprs=double -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" > FFLAGS="-O2 -pipe" > GENTOO_MIRRORS="http://distfiles.gentoo.org > rsync://gentoo.xes-inc.com/20120925" > LDFLAGS="-Wl,-O1 -Wl,--as-needed" > MAKEOPTS="-j3" > PKGDIR="/usr/portage/packages" > PORTAGE_CONFIGROOT="/" > PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times > --compress --force --whole-file --delete --stats --human-readable > --timeout=180 --exclude=/distfiles --exclude=/local > --exclude=/packages" > PORTAGE_TMPDIR="/var/tmp" > PORTDIR="/usr/portage" > PORTDIR_OVERLAY="/usr/local/portage" > SYNC="rsync://rsync.gentoo.org/gentoo-portage" > USE="acl berkdb bzip2 cli cracklib crypt cxx dri fortran gdbm iconv > ipv6 modules ncurses nptl openmp pam pcre ppc readline session ssl > tcpd unicode zlib" ABI_PPC="32" ALSA_CARDS="aoa aoa-fabric-layout > aoa-onyx aoa-soundbus aoa-soundbus-i2s aoa-tas aoa-toonie powermac > usb-audio via82xx" 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" > 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 mach64 mga nv r128 radeon > savage tdfx trident 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, LANG, > LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, > PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON