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

Replies

Subject Author
[gentoo-ppc-user] Re: Has anyone successfully compiled pkg sys-libs/glibc-2.17 for ppc-32? "Robert K. Johnson" <rj.rkjohnson@×××××.com>