This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
compiling gcc 5.x snapshot fails for ppc
- From: "Klaus Rudolph" <lts-rudolph at gmx dot de>
- To: gcc-help at gcc dot gnu dot org
- Date: Wed, 28 Jan 2015 12:41:48 +0100
- Subject: compiling gcc 5.x snapshot fails for ppc
- Authentication-results: sourceware.org; auth=none
- Sensitivity: Normal
I try to compile recent gcc snapshot 20150125 for ppc but it fails with:
libtool: compile: /home/krud/own_components/gcc_install/gccinst016ma/gcc-5-20150125/build_powerpc-unknown-linux-gnu_5-20150125/./gcc/xg++ -B/home/krud/own_components/gcc_install/gccinst016ma/gcc-5-20150125/build_powerpc-unknown-linux-gnu_5-20150125/./gcc/ -nostdinc++ -nostdinc++ -I/home/krud/own_components/gcc_install/gccinst016ma/gcc-5-20150125/build_powerpc-unknown-linux-gnu_5-20150125/powerpc-unknown-linux-gnu/libstdc++-v3/include/powerpc-unknown-linux-gnu -I/home/krud/own_components/gcc_install/gccinst016ma/gcc-5-20150125/build_powerpc-unknown-linux-gnu_5-20150125/powerpc-unknown-linux-gnu/libstdc++-v3/include -I/home/krud/own_components/gcc_install/gccinst016ma/gcc-5-20150125/libstdc++-v3/libsupc++ -I/home/krud/own_components/gcc_install/gccinst016ma/gcc-5-20150125/libstdc++-v3/include/backward -I/home/krud/own_components/gcc_install/gccinst016ma/gcc-5-20150125/libstdc++-v3/testsuite/util -L/home/krud/own_components/gcc_install/gccinst016ma/gcc-5-20150125/build_powerpc-unknown-linux-gnu_5-20150125/powerpc-unknown-linux-gnu/libstdc++-v3/src -L/home/krud/own_components/gcc_install/gccinst016ma/gcc-5-20150125/build_powerpc-unknown-linux-gnu_5-20150125/powerpc-unknown-linux-gnu/libstdc++-v3/src/.libs -L/home/krud/own_components/gcc_install/gccinst016ma/gcc-5-20150125/build_powerpc-unknown-linux-gnu_5-20150125/powerpc-unknown-linux-gnu/libstdc++-v3/libsupc++/.libs -B/home/krud/own_components/gcc_install/gccinst016ma/gcc-5-20150125/build_powerpc-unknown-linux-gnu_5-20150125/powerpc-unknown-linux-gnu/libstdc++-v3/src/.libs -B/home/krud/own_components/gcc_install/gccinst016ma/gcc-5-20150125/build_powerpc-unknown-linux-gnu_5-20150125/powerpc-unknown-linux-gnu/libstdc++-v3/libsupc++/.libs -B/opt/powerpc-unknown-linux-gnu_5-20150125/powerpc-unknown-linux-gnu/bin/ -B/opt/powerpc-unknown-linux-gnu_5-20150125/powerpc-unknown-linux-gnu/lib/ -isystem /opt/powerpc-unknown-linux-gnu_5-20150125/powerpc-unknown-linux-gnu/include -isystem /opt/powerpc-unknown-linux-gnu_5-20150125/powerpc-unknown-linux-gnu/sys-include -DHAVE_CONFIG_H -I. -I../../../libitm -I../../../libitm/config/powerpc -I../../../libitm/config/posix -I../../../libitm/config/generic -I../../../libitm -mhtm -Wall -pthread -Werror -std=gnu++0x -funwind-tables -fno-exceptions -fno-rtti -fabi-version=4 -g -O2 -D_GNU_SOURCE -MT rwlock.lo -MD -MP -MF .deps/rwlock.Tpo -c ../../../libitm/config/posix/rwlock.cc -fPIC -DPIC -o .libs/rwlock.o
../../../libitm/config/posix/rwlock.cc: In constructor 'GTM::gtm_rwlock::gtm_rwlock()':
../../../libitm/config/posix/rwlock.cc:40:17: error: no matching function for call to 'pthread_cond_t::pthread_cond_t(<brace-enclosed initializer list>)'
w_writers (0)
^
In file included from /opt/ppc1/ppc/ppc_6xx/usr/include/sys/types.h:266:0,
from /opt/ppc1/ppc/ppc_6xx/usr/include/stdlib.h:414,
from ../../../libitm/libitm_i.h:36,
from ../../../libitm/config/posix/rwlock.cc:25:
/opt/ppc1/ppc/ppc_6xx/usr/include/bits/pthreadtypes.h:70:3: note: candidate: pthread_cond_t::pthread_cond_t()
} pthread_cond_t;
^
/opt/ppc1/ppc/ppc_6xx/usr/include/bits/pthreadtypes.h:70:3: note: candidate expects 0 arguments, 1 provided
/opt/ppc1/ppc/ppc_6xx/usr/include/bits/pthreadtypes.h:70:3: note: candidate: constexpr pthread_cond_t::pthread_cond_t(const pthread_cond_t&)
/opt/ppc1/ppc/ppc_6xx/usr/include/bits/pthreadtypes.h:70:3: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const pthread_cond_t&'
/opt/ppc1/ppc/ppc_6xx/usr/include/bits/pthreadtypes.h:70:3: note: candidate: constexpr pthread_cond_t::pthread_cond_t(pthread_cond_t&&)
/opt/ppc1/ppc/ppc_6xx/usr/include/bits/pthreadtypes.h:70:3: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'pthread_cond_t&&'
../../../libitm/config/posix/rwlock.cc:40:17: error: no matching function for call to 'pthread_cond_t::pthread_cond_t(<brace-enclosed initializer list>)'
w_writers (0)
^
In file included from /opt/ppc1/ppc/ppc_6xx/usr/include/sys/types.h:266:0,
from /opt/ppc1/ppc/ppc_6xx/usr/include/stdlib.h:414,
from ../../../libitm/libitm_i.h:36,
from ../../../libitm/config/posix/rwlock.cc:25:
/opt/ppc1/ppc/ppc_6xx/usr/include/bits/pthreadtypes.h:70:3: note: candidate: pthread_cond_t::pthread_cond_t()
} pthread_cond_t;
^
/opt/ppc1/ppc/ppc_6xx/usr/include/bits/pthreadtypes.h:70:3: note: candidate expects 0 arguments, 1 provided
/opt/ppc1/ppc/ppc_6xx/usr/include/bits/pthreadtypes.h:70:3: note: candidate: constexpr pthread_cond_t::pthread_cond_t(const pthread_cond_t&)
/opt/ppc1/ppc/ppc_6xx/usr/include/bits/pthreadtypes.h:70:3: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const pthread_cond_t&'
/opt/ppc1/ppc/ppc_6xx/usr/include/bits/pthreadtypes.h:70:3: note: candidate: constexpr pthread_cond_t::pthread_cond_t(pthread_cond_t&&)
/opt/ppc1/ppc/ppc_6xx/usr/include/bits/pthreadtypes.h:70:3: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'pthread_cond_t&&'
../../../libitm/config/posix/rwlock.cc:40:17: error: no matching function for call to 'pthread_cond_t::pthread_cond_t(<brace-enclosed initializer list>)'
w_writers (0)
^
In file included from /opt/ppc1/ppc/ppc_6xx/usr/include/sys/types.h:266:0,
from /opt/ppc1/ppc/ppc_6xx/usr/include/stdlib.h:414,
from ../../../libitm/libitm_i.h:36,
from ../../../libitm/config/posix/rwlock.cc:25:
/opt/ppc1/ppc/ppc_6xx/usr/include/bits/pthreadtypes.h:70:3: note: candidate: pthread_cond_t::pthread_cond_t()
} pthread_cond_t;
^
/opt/ppc1/ppc/ppc_6xx/usr/include/bits/pthreadtypes.h:70:3: note: candidate expects 0 arguments, 1 provided
/opt/ppc1/ppc/ppc_6xx/usr/include/bits/pthreadtypes.h:70:3: note: candidate: constexpr pthread_cond_t::pthread_cond_t(const pthread_cond_t&)
/opt/ppc1/ppc/ppc_6xx/usr/include/bits/pthreadtypes.h:70:3: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const pthread_cond_t&'
/opt/ppc1/ppc/ppc_6xx/usr/include/bits/pthreadtypes.h:70:3: note: candidate: constexpr pthread_cond_t::pthread_cond_t(pthread_cond_t&&)
/opt/ppc1/ppc/ppc_6xx/usr/include/bits/pthreadtypes.h:70:3: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'pthread_cond_t&&'
Makefile:517: recipe for target 'rwlock.lo' failed
make[3]: *** [rwlock.lo] Error 1
make[3]: Leaving directory '/home/krud/own_components/gcc_install/gccinst016ma/gcc-5-20150125/build_powerpc-unknown-linux-gnu_5-20150125/powerpc-unknown-linux-gnu/libitm'
Makefile:697: recipe for target 'install-recursive' failed
make[2]: *** [install-recursive] Error 1
make[2]: Leaving directory '/home/krud/own_components/gcc_install/gccinst016ma/gcc-5-20150125/build_powerpc-unknown-linux-gnu_5-20150125/powerpc-unknown-linux-gnu/libitm'
Makefile:15064: recipe for target 'install-target-libitm' failed
make[1]: *** [install-target-libitm] Error 2
make[1]: Leaving directory '/home/krud/own_components/gcc_install/gccinst016ma/gcc-5-20150125/build_powerpc-unknown-linux-gnu_5-20150125'
Makefile:2267: recipe for target 'install' failed
make: *** [install] Error 2
The problem is present from version 4.7.x. Can anyone help how I can compile a newer gcc version for ppc?
Configure was done with:
../configure --prefix=/opt/powerpc-unknown-linux-gnu_5-20150125 --target=powerpc-unknown-linux-gnu --with-sysroot=/opt/ppc1/ppc//ppc_6xx --enable-languages=c,c++
Build was done with binutils 2.25
Regards
Klaus