Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 513854 - cross-hppa-unknown-linux-gnu/glibc-2.19: ports/sysdeps/unix/sysv/linux/hppa/bits/atomic.h:68:6: error: can't find a register in class 'R1_REGS' while reloading 'asm'
Summary: cross-hppa-unknown-linux-gnu/glibc-2.19: ports/sysdeps/unix/sysv/linux/hppa/b...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on: 518460
Blocks:
  Show dependency tree
 
Reported: 2014-06-19 12:55 UTC by Bertrand Jacquin
Modified: 2014-08-12 12:44 UTC (History)
1 user (show)

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


Attachments
build.log.xz (build.log.xz,87.00 KB, application/x-xz)
2014-06-19 12:55 UTC, Bertrand Jacquin
Details
emerge --info (info.log,17.33 KB, text/plain)
2014-06-19 12:56 UTC, Bertrand Jacquin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bertrand Jacquin 2014-06-19 12:55:37 UTC
When upgrading a crossdev HPPA toolchain from glibc-2.19 to glibc-2.19-r1, the following error occur :

# emerge -uva1t =cross-hppa-unknown-linux-gnu/glibc-2.19-r1
(..)
[ebuild     U  ] cross-hppa-unknown-linux-gnu/glibc-2.19-r1:2.2::x-portage [2.19:2.2::x-portage] USE="-debug -gd -hardened -multilib -nscd -profile (-selinux) -suid -systemtap -vanilla" 0 kB
(..)
hppa-unknown-linux-gnu-gcc  gethstbyad.c -c -std=gnu99 -fgnu89-inline  -O2 -Wall -Winline -Wwrite-strings -fmerge-all-constants -fno-strict-aliasing -frounding-math -pipe -Wstrict-prototypes   -fPIC -fexceptions   -U_FORTIFY_SOURCE   -I../include -I/var/tmp/portage/cross-hppa-unknown-linux-gnu/glibc-2.19-r1/work/build-default-hppa-unknown-linux-gnu-nptl/inet  -I/var/tmp/portage/cross-hppa-unknown-linux-gnu/glibc-2.19-r1/work/build-default-hppa-unknown-linux-gnu-nptl  -I../ports/sysdeps/unix/sysv/linux/hppa/nptl  -I../ports/sysdeps/unix/sysv/linux/hppa  -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../nptl/sysdeps/unix  -I../ports/sysdeps/unix  -I../sysdeps/unix  -I../sysdeps/posix  -I../ports/sysdeps/hppa/hppa1.1  -I../sysdeps/wordsize-32  -I../sysdeps/ieee754/flt-32  -I../sysdeps/ieee754/dbl-64  -I../ports/sysdeps/hppa/fpu  -I../ports/sysdeps/hppa/nptl  -I../ports/sysdeps/hppa  -I../sysdeps/ieee754  -I../sysdeps/generic  -I../nptl  -I../ports  -I.. -I../libio -I. -nostdinc -isystem /usr/lib/gcc/hppa-unknown-linux-gnu/4.8.3/include -isystem /usr/lib/gcc/hppa-unknown-linux-gnu/4.8.3/include-fixed -isystem /usr/hppa-unknown-linux-gnu/usr/include  -D_LIBC_REENTRANT -include ../include/libc-symbols.h  -DPIC -DSHARED     -o /var/tmp/portage/cross-hppa-unknown-linux-gnu/glibc-2.19-r1/work/build-default-hppa-unknown-linux-gnu-nptl/inet/gethstbyad.os -MD -MP -MF /var/tmp/portage/cross-hppa-unknown-linux-gnu/glibc-2.19-r1/work/build-default-hppa-unknown-linux-gnu-nptl/inet/gethstbyad.os.dt -MT /var/tmp/portage/cross-hppa-unknown-linux-gnu/glibc-2.19-r1/work/build-default-hppa-unknown-linux-gnu-nptl/inet/gethstbyad.os
In file included from ../include/atomic.h:50:0,
                 from ../ports/sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h:25,
                 from ../nptl/descr.h:30,
                 from ../ports/sysdeps/hppa/nptl/tls.h:56,
                 from ../include/link.h:44,
                 from ../include/dlfcn.h:4,
                 from ../nss/nsswitch.h:28,
                 from ../include/nsswitch.h:1,
                 from ../inet/netgroup.h:22,
                 from ../include/netdb.h:193,
                 from gethstbyad.c:19:
../nss/getXXbyYY.c: In function 'gethostbyaddr':
../ports/sysdeps/unix/sysv/linux/hppa/bits/atomic.h:68:6: error: can't find a register in class 'R1_REGS' while reloading 'asm'
      asm volatile(       \
      ^
      ^
../ports/sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h:219:13: note: in expansion of macro 'atomic_compare_and_exchange_val_acq'
   int val = atomic_compare_and_exchange_val_acq (futex, 1, 0);
             ^
../ports/sysdeps/unix/sysv/linux/hppa/bits/atomic.h:68:6: error: can't find a register in class 'R1_REGS' while reloading 'asm'
      asm volatile(       \
      ^
../ports/sysdeps/unix/sysv/linux/hppa/bits/atomic.h:97:12: note: in expansion of macro 'atomic_compare_and_exchange_val_acq'
      ret = atomic_compare_and_exchange_val_acq(mem, newval, oldval); \
            ^
../include/atomic.h:189:7: note: in expansion of macro 'atomic_compare_and_exchange_bool_acq'
      (atomic_compare_and_exchange_bool_acq (__atg5_memp, __atg5_value, \
       ^
../include/atomic.h:196:45: note: in expansion of macro 'atomic_exchange_acq'
 # define atomic_exchange_rel(mem, newvalue) atomic_exchange_acq (mem, newvalue)
                                             ^
../ports/sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h:293:16: note: in expansion of macro 'atomic_exchange_rel'
   ({ int val = atomic_exchange_rel (futex, 0);  \
                ^
../ports/sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h:297:36: note: in expansion of macro '__lll_unlock'
 #define lll_unlock(futex, private) __lll_unlock(&(futex), private)
                                    ^
../nptl/sysdeps/pthread/bits/libc-lockP.h:203:3: note: in expansion of macro 'lll_unlock'
   lll_unlock (NAME, LLL_PRIVATE)
   ^
../nss/getXXbyYY.c:144:3: note: in expansion of macro '__libc_lock_unlock'
   __libc_lock_unlock (lock);
   ^
../ports/sysdeps/unix/sysv/linux/hppa/bits/atomic.h:68:6: error: 'asm' operand has impossible constraints
      asm volatile(       \
      ^
../ports/sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h:219:13: note: in expansion of macro 'atomic_compare_and_exchange_val_acq'
   int val = atomic_compare_and_exchange_val_acq (futex, 1, 0);
             ^
../ports/sysdeps/unix/sysv/linux/hppa/bits/atomic.h:68:6: error: 'asm' operand has impossible constraints
      asm volatile(       \
      ^
../ports/sysdeps/unix/sysv/linux/hppa/bits/atomic.h:97:12: note: in expansion of macro 'atomic_compare_and_exchange_val_acq'
      ret = atomic_compare_and_exchange_val_acq(mem, newval, oldval); \
            ^
../include/atomic.h:189:7: note: in expansion of macro 'atomic_compare_and_exchange_bool_acq'
      (atomic_compare_and_exchange_bool_acq (__atg5_memp, __atg5_value, \
       ^
../include/atomic.h:196:45: note: in expansion of macro 'atomic_exchange_acq'
 # define atomic_exchange_rel(mem, newvalue) atomic_exchange_acq (mem, newvalue)
                                             ^
../ports/sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h:293:16: note: in expansion of macro 'atomic_exchange_rel'
   ({ int val = atomic_exchange_rel (futex, 0);  \
                ^
../ports/sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h:297:36: note: in expansion of macro '__lll_unlock'
 #define lll_unlock(futex, private) __lll_unlock(&(futex), private)
                                    ^
../nptl/sysdeps/pthread/bits/libc-lockP.h:203:3: note: in expansion of macro 'lll_unlock'
   lll_unlock (NAME, LLL_PRIVATE)
   ^
../nss/getXXbyYY.c:144:3: note: in expansion of macro '__libc_lock_unlock'
   __libc_lock_unlock (lock);
   ^
../o-iterator.mk:9: recipe for target '/var/tmp/portage/cross-hppa-unknown-linux-gnu/glibc-2.19-r1/work/build-default-hppa-unknown-linux-gnu-nptl/inet/gethstbyad.os' failed
make[2]: *** [/var/tmp/portage/cross-hppa-unknown-linux-gnu/glibc-2.19-r1/work/build-default-hppa-unknown-linux-gnu-nptl/inet/gethstbyad.os] Error 1
make[2]: Leaving directory '/var/tmp/portage/cross-hppa-unknown-linux-gnu/glibc-2.19-r1/work/glibc-2.19/inet'
Makefile:214: recipe for target 'inet/subdir_lib' failed
make[1]: *** [inet/subdir_lib] Error 2
make[1]: Leaving directory '/var/tmp/portage/cross-hppa-unknown-linux-gnu/glibc-2.19-r1/work/glibc-2.19'
Makefile:9: recipe for target 'all' failed
make: *** [all] Error 2
emake failed

Full log attached and emerge --info

Reproducible: Always
Comment 1 Bertrand Jacquin 2014-06-19 12:55:49 UTC
Created attachment 379250 [details]
build.log.xz
Comment 2 Bertrand Jacquin 2014-06-19 12:56:00 UTC
Created attachment 379252 [details]
emerge --info
Comment 3 SpanKY gentoo-dev 2014-08-11 13:48:35 UTC
should be fixed in latest 2.19-r1 patchset
Comment 4 Bertrand Jacquin 2014-08-12 12:44:41 UTC
(In reply to SpanKY from comment #3)
> should be fixed in latest 2.19-r1 patchset

ACK. Thanks