Gentoo Archives: gentoo-ppc-user

From: "Robert K. Johnson" <rj.rkjohnson@×××××.com>
To: gentoo-ppc-user@l.g.o
Subject: [gentoo-ppc-user] Re: Has anyone successfully compiled pkg sys-libs/glibc-2.17 for ppc-32?
Date: Fri, 11 Apr 2014 20:16:57
Message-Id: CAB6ML5mRjcFJFtORS_FkmzMDMs7gdTJ1MPLX0X13e8Zo723mhw@mail.gmail.com
In Reply to: [gentoo-ppc-user] Re: Has anyone successfully compiled pkg sys-libs/glibc-2.17 for ppc-32? by "Robert K. Johnson"
1 Sorry for the typos. That should have been I am "now" able to
2 successfully build glibc-2.17. Problem resolved.
3
4 On Fri, Apr 11, 2014 at 12:11 PM, Robert K. Johnson
5 <rj.rkjohnson@×××××.com> wrote:
6 > It turns out glibc requires some special patches for the SBC I am
7 > working with. The SBC vendor has provided a portage overlay that
8 > installs the patches during the emerge process and I am not abel to
9 > successfully build glibc-2.17.
10 >
11 > On Thu, Apr 10, 2014 at 8:43 AM, Robert K. Johnson
12 > <rj.rkjohnson@×××××.com> wrote:
13 >> I am working with an embedded Freescale P2020 based system. I cannot
14 >> seem to successfully compile the glibc-2.17 package. I am trying to
15 >> update glibc from package 2.15-r2. I have tried both gcc 4.6.3 and
16 >> 4.7.3-r1. I am thinking about submitting a bug report but I thought I
17 >> would ask here first. I might also try again after updating the
18 >> portage packages.
19 >>
20 >> Here is what I see when the compilation fails:
21 >>
22 >> powerpc-e500v2-linux-gnuspe-gcc ../sysdeps/powerpc/fpu/fraiseexcpt.c
23 >> -c -std=gnu99 -fgnu89-inline -O2 -Wa,-me500x2 -Wall -Winline
24 >> -Wwrite-strings -fmerge-all-constants -fno-strict-aliasing
25 >> -freorder-blocks -frounding-math -mcpu=8548 -mfloat-gprs=double
26 >> -mspe=yes -mtune=8548 -pipe -mhard-float -Wstrict-prototypes
27 >> -mlong-double-128 -Wno-uninitialized -U_FORTIFY_SOURCE
28 >> -D__NO_MATH_INLINES -D__LIBC_INTERNAL_MATH_INLINES -I../include
29 >> -I/var/tmp/portage/sys-libs/glibc-2.17/work/build-default-powerpc-e500v2-linux-gnuspe-nptl/math
30 >> -I/var/tmp/portage/sys-libs/glibc-2.17/work/build-default-powerpc-e500v2-linux-gnuspe-nptl
31 >> -I../sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl
32 >> -I../sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu
33 >> -I../sysdeps/powerpc/powerpc32/fpu
34 >> -I../nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32
35 >> -I../ports/sysdeps/unix/sysv/linux/powerpc/powerpc32
36 >> -I../sysdeps/unix/sysv/linux/powerpc/powerpc32
37 >> -I../nptl/sysdeps/unix/sysv/linux/powerpc
38 >> -I../ports/sysdeps/unix/sysv/linux/powerpc
39 >> -I../sysdeps/unix/sysv/linux/powerpc -I../sysdeps/ieee754/ldbl-128ibm
40 >> -I../sysdeps/ieee754/ldbl-opt -I../nptl/sysdeps/unix/sysv/linux
41 >> -I../nptl/sysdeps/pthread -I../sysdeps/pthread
42 >> -I../ports/sysdeps/unix/sysv/linux -I../sysdeps/unix/sysv/linux
43 >> -I../sysdeps/gnu -I../sysdeps/unix/inet -I../nptl/sysdeps/unix/sysv
44 >> -I../ports/sysdeps/unix/sysv -I../sysdeps/unix/sysv
45 >> -I../sysdeps/unix/powerpc -I../nptl/sysdeps/unix
46 >> -I../ports/sysdeps/unix -I../sysdeps/unix -I../sysdeps/posix
47 >> -I../ports/sysdeps/powerpc/powerpc32 -I../sysdeps/powerpc/powerpc32
48 >> -I../sysdeps/wordsize-32 -I../sysdeps/powerpc/fpu
49 >> -I../nptl/sysdeps/powerpc -I../ports/sysdeps/powerpc
50 >> -I../sysdeps/powerpc -I../sysdeps/ieee754/dbl-64
51 >> -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754 -I../sysdeps/generic
52 >> -I../nptl -I../ports -I.. -I../libio -I. -nostdinc -isystem
53 >> /usr/lib/gcc/powerpc-e500v2-linux-gnuspe/4.7.3/include -isystem
54 >> /usr/lib/gcc/powerpc-e500v2-linux-gnuspe/4.7.3/include-fixed -isystem
55 >> /usr/include -D_LIBC_REENTRANT -include ../include/libc-symbols.h
56 >> -DNOT_IN_libc=1 -DIS_IN_libm=1 -DIN_LIB=libm -o
57 >> /var/tmp/portage/sys-libs/glibc-2.17/work/build-default-powerpc-e500v2-linux-gnuspe-nptl/math/fraiseexcpt.o
58 >> -MD -MP -MF /var/tmp/portage/sys-libs/glibc-2.17/work/build-default-powerpc-e500v2-linux-gnuspe-nptl/math/fraiseexcpt.o.dt
59 >> -MT /var/tmp/portage/sys-libs/glibc-2.17/work/build-default-powerpc-e500v2-linux-gnuspe-nptl/math/fraiseexcpt.o
60 >>
61 >> ../sysdeps/powerpc/fpu/fclrexcpt.c: In function '__feclearexcept':
62 >> ../sysdeps/powerpc/fpu/fclrexcpt.c:28:12: error: impossible constraint in 'asm'
63 >> ../sysdeps/powerpc/fpu/fclrexcpt.c:35:3: error: impossible constraint in 'asm'
64 >> ../sysdeps/powerpc/fpu/fclrexcpt.c:35:3: error: impossible constraint in 'asm'
65 >> ../sysdeps/powerpc/fpu/fgetexcptflg.c: In function '__fegetexceptflag':
66 >> ../sysdeps/powerpc/fpu/fgetexcptflg.c:28:12: error: impossible
67 >> constraint in 'asm'make[2]: ***
68 >> [/var/tmp/portage/sys-libs/glibc-2.17/work/build-default-powerpc-e500v2-linux-gnuspe-nptl/math/fclrexcpt.o]
69 >> Error 1
70 >> make[2]: *** Waiting for unfinished jobs....
71 >>
72 >> ../sysdeps/powerpc/fpu/fraiseexcpt.c: In function '__feraiseexcept':
73 >> ../sysdeps/powerpc/fpu/fraiseexcpt.c:34:12: error: impossible
74 >> constraint in 'asm'
75 >> ../sysdeps/powerpc/fpu/fraiseexcpt.c:45:3: error: impossible constraint in 'asm'
76 >> ../sysdeps/powerpc/fpu/fraiseexcpt.c:45:3: error: impossible constraint in 'asm'
77 >> ../sysdeps/powerpc/fpu/fraiseexcpt.c:52:16: error: impossible
78 >> constraint in 'asm'
79 >> make[2]: *** [/var/tmp/portage/sys-libs/glibc-2.17/work/build-default-powerpc-e500v2-linux-gnuspe-nptl/math/fgetexcptflg.o]
80 >> Error 1
81 >> make[2]: *** [/var/tmp/portage/sys-libs/glibc-2.17/work/build-default-powerpc-e500v2-linux-gnuspe-nptl/math/fraiseexcpt.o]
82 >> Error 1
83 >> make[2]: Leaving directory
84 >> `/var/tmp/portage/sys-libs/glibc-2.17/work/glibc-2.17/math'
85 >> make[1]: *** [math/others] Error 2
86 >> make[1]: Leaving directory
87 >> `/var/tmp/portage/sys-libs/glibc-2.17/work/glibc-2.17'
88 >> make: *** [all] Error 2
89 >> emake failed
90 >> * ERROR: sys-libs/glibc-2.17 failed (compile phase):
91 >> * make for default failed
92 >> *
93 >> * Call stack:
94 >> * ebuild.sh, line 93: Called src_compile
95 >> * environment, line 3080: Called eblit-run 'src_compile'
96 >> * environment, line 851: Called eblit-glibc-src_compile
97 >> * src_compile.eblit, line 267: Called toolchain-glibc_src_compile
98 >> * src_compile.eblit, line 166: Called die
99 >> * The specific snippet of code:
100 >> * emake || die "make for ${ABI} failed"
101 >>
102 >>
103 >> Here is some additional info:
104 >>
105 >> # emerge --info
106 >> Portage 2.1.12.2 (default/linux/powerpc/ppc32/13.0, gcc-4.7.3,
107 >> glibc-2.15-r2, 3.0.4-xes_r7 ppc)
108 >> =================================================================
109 >> System uname: Linux-3.0.4-xes_r7-ppc-e500v2-with-gentoo-2.1
110 >> KiB Mem: 2072552 total, 735924 free
111 >> KiB Swap: 0 total, 0 free
112 >> Timestamp of tree: Wed, 09 Apr 2014 17:00:01 +0000
113 >> ld GNU ld (GNU Binutils) 2.22
114 >> app-shells/bash: 4.2_p37
115 >> dev-lang/python: 2.7.3-r2, 3.2.3
116 >> dev-util/pkgconfig: 0.27.1
117 >> sys-apps/baselayout: 2.1-r1
118 >> sys-apps/openrc: 0.10.4
119 >> sys-apps/sandbox: 2.6
120 >> sys-devel/autoconf: 2.68
121 >> sys-devel/automake: 1.11.6, 1.13.4
122 >> sys-devel/binutils: 2.22-r1
123 >> sys-devel/gcc: 4.6.3, 4.7.3-r1
124 >> sys-devel/gcc-config: 1.7.3
125 >> sys-devel/libtool: 2.4.2
126 >> sys-devel/make: 3.82-r3
127 >> sys-kernel/linux-headers: 3.1 (virtual/os-headers)
128 >> sys-libs/glibc: 2.15-r2::x-portage
129 >> Repositories: gentoo x-portage
130 >> ACCEPT_KEYWORDS="ppc"
131 >> ACCEPT_LICENSE="* -@EULA"
132 >> CBUILD="powerpc-e500v2-linux-gnuspe"
133 >> CFLAGS="-O2 -mcpu=8548 -mtune=8548 -mabi=spe -mspe=yes -Wa,-me500x2
134 >> -mfloat-gprs=double -pipe"
135 >> CHOST="powerpc-e500v2-linux-gnuspe"
136 >> CONFIG_PROTECT="/etc"
137 >> CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf
138 >> /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
139 >> CXXFLAGS="-O2 -mcpu=8548 -mtune=8548 -mabi=spe -mspe=yes -Wa,-me500x2
140 >> -mfloat-gprs=double -pipe"
141 >> DISTDIR="/usr/portage/distfiles"
142 >> FCFLAGS="-O2 -pipe"
143 >> FEATURES="assume-digests binpkg-logs config-protect-if-modified
144 >> distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch
145 >> preserve-libs protect-owned sandbox sfperms strict
146 >> unknown-features-warn unmerge-logs unmerge-orphans userfetch"
147 >> FFLAGS="-O2 -pipe"
148 >> GENTOO_MIRRORS="http://distfiles.gentoo.org rsync://gentoo.xes-inc.com/20120925"
149 >> LDFLAGS="-Wl,-O1 -Wl,--as-needed"
150 >> MAKEOPTS="-j3"
151 >> PKGDIR="/usr/portage/packages"
152 >> PORTAGE_CONFIGROOT="/"
153 >> PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times
154 >> --compress --force --whole-file --delete --stats --human-readable
155 >> --timeout=180 --exclude=/distfiles --exclude=/local
156 >> --exclude=/packages"
157 >> PORTAGE_TMPDIR="/var/tmp"
158 >> PORTDIR="/usr/portage"
159 >> PORTDIR_OVERLAY="/usr/local/portage"
160 >> SYNC="rsync://rsync.gentoo.org/gentoo-portage"
161 >> USE="acl berkdb bzip2 cli cracklib crypt cxx dri fortran gdbm iconv
162 >> ipv6 modules ncurses nptl openmp pam pcre ppc readline session ssl
163 >> tcpd unicode zlib" ABI_PPC="32" ALSA_CARDS="aoa aoa-fabric-layout
164 >> aoa-onyx aoa-soundbus aoa-soundbus-i2s aoa-tas aoa-toonie powermac
165 >> usb-audio via82xx" APACHE2_MODULES="authn_core authz_core
166 >> socache_shmcb unixd actions alias auth_basic authn_alias authn_anon
167 >> authn_dbm authn_default authn_file authz_dbm authz_default
168 >> authz_groupfile authz_host authz_owner authz_user autoindex cache cgi
169 >> cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter
170 >> file_cache filter headers include info log_config logio mem_cache mime
171 >> mime_magic negotiation rewrite setenvif speling status unique_id
172 >> userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan
173 >> sheets stage tables krita karbon braindump author" CAMERAS="ptp2"
174 >> COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog"
175 >> ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18
176 >> garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver
177 >> oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip
178 >> tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse evdev"
179 >> KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216
180 >> lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console
181 >> presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice"
182 >> PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7"
183 >> PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20"
184 >> USERLAND="GNU" VIDEO_CARDS="fbdev glint mach64 mga nv r128 radeon
185 >> savage tdfx trident dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan
186 >> length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit
187 >> sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
188 >> Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG,
189 >> LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS,
190 >> PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON