| Summary: | sys-libs/glibc-2.28-r6 : pthread_mutex_getprioceiling.c: In function ‘pthread_mutex_getprioceiling’: ../include/atomic.h:672:4: error: read-only variable ‘__atg100_val’ used as ‘asm’ output | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Joakim Tjernlund <joakim.tjernlund> |
| Component: | Current packages | Assignee: | Gentoo Toolchain Maintainers <toolchain> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | normal | ||
| Priority: | Normal | ||
| Version: | unspecified | ||
| Hardware: | PPC | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
1) Please attach the entire build log to this bug report. 2) Please post your `emerge --info` output in a comment. Sounds similar to https://bugs.gentoo.org/682008. (In reply to Sergei Trofimovich from comment #2) > Sounds similar to https://bugs.gentoo.org/682008. That is exactly it, I too am building with gcc 4.9 Would be nice if this error could be worked around There a re a few options: 1. Using newer compiler should just work. 2. Backporting a fix to an old compiler gcc. Might take a while (if feasible at all)/ 3. Check if glibc was able to fix it in past history and we could backport something. So far it's not clear why [1.] does not just work for you. Using pieces of toolchain from wildly different times is full of problems like this. *** This bug has been marked as a duplicate of bug 682008 *** |
Building glibc-2.28-r6 on ppc I get this error: In file included from ../sysdeps/nptl/lowlevellock.h:22:0, from ../sysdeps/unix/sysv/linux/powerpc/lowlevellock.h:22, from ../nptl/descr.h:29, from ../sysdeps/powerpc/nptl/tls.h:50, from ../include/errno.h:25, from pthread_mutex_getprioceiling.c:20: pthread_mutex_getprioceiling.c: In function ‘pthread_mutex_getprioceiling’: ../include/atomic.h:672:4: error: read-only variable ‘__atg100_val’ used as ‘asm’ output __asm ("" : "=r" (__atg100_val) : "0" (*(mem))); \ ^ pthread_mutex_getprioceiling.c:29:26: note: in expansion of macro ‘atomic_load_relaxed’ if (__builtin_expect ((atomic_load_relaxed (&(mutex->__data.__kind)) ^ ../o-iterator.mk:9: recipe for target '/var/tmp/portage/sys-libs/glibc-2.28-r6/work/build-ppc-powerpc-unknown-linux-gnu-nptl/nptl/pthread_mutex_getprioceiling.o' failed