Re: gcc-4.7-20111022 fails to build on PA-RISC

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello again,

I tried disabling precompiled headers for libstdc++ (thanks apinski for pointing this) and now the build fails while trying to build atomic.o. Any ideas? Please take a look at the error message in the attached file. The culprit seems to be the following:

/usr/include/bits/pthreadtypes.h:34:8: error: no matching function for call to '<anonymous struct>::._3(const volatile __atomic_lock_t&)'



Thanks,
Dimitris


On Mon, 24 Oct 2011, Dimitrios Apostolou wrote:

Hello list,

For the first time I tried building gcc on PA-RISC so I configured with the following lines:

jimis@dingo:~/dist/src/objtmp-gcc$ export LD_LIBRARY_PATH=/opt/cfarm/gmp-latest/lib/:/opt/cfarm/mpfr-latest/lib/:/opt/cfarm/mpc-latest/lib/ jimis@dingo:~/dist/src/objtmp-gcc$ ../gcc-4.7-20111022/configure --prefix=/home/jimis/dist/src/tgt-gcc-4.7-20111022/ --enable-checking=assert,misc,runtime,rtl,df --with-gmp=/opt/cfarm/gmp-latest --with-mpfr=/opt/cfarm/mpfr-latest --with-mpc=/opt/cfarm/mpc-latest CFLAGS="-O -g"


After some time I got the attached error, unfortunately it's in some part of gcc in C++. Since I'm not coming to terms with the language could you please help me on this one? Am I missing something obvious?


Thanks in advance,
Dimitris
libtool: compile:  /home/jimis/dist/src/objtmp-gcc/./gcc/xgcc -shared-libgcc -B/home/jimis/dist/src/objtmp-gcc/./gcc -nostdinc++ -L/home/jimis/dist/src/objtmp-gcc/hppa2.0-unknown-linux-gnu/libstdc++-v3/src -L/home/jimis/dist/src/objtmp-gcc/hppa2.0-unknown-linux-gnu/libstdc++-v3/src/.libs -B/home/jimis/dist/src/tgt-gcc-4.7-20111022/hppa2.0-unknown-linux-gnu/bin/ -B/home/jimis/dist/src/tgt-gcc-4.7-20111022/hppa2.0-unknown-linux-gnu/lib/ -isystem /home/jimis/dist/src/tgt-gcc-4.7-20111022/hppa2.0-unknown-linux-gnu/include -isystem /home/jimis/dist/src/tgt-gcc-4.7-20111022/hppa2.0-unknown-linux-gnu/sys-include -I/home/jimis/dist/src/objtmp-gcc/hppa2.0-unknown-linux-gnu/libstdc++-v3/include/hppa2.0-unknown-linux-gnu -I/home/jimis/dist/src/objtmp-gcc/hppa2.0-unknown-linux-gnu/libstdc++-v3/include -I/home/jimis/dist/src/gcc-4.7-20111022/libstdc++-v3/libsupc++ -fno-implicit-templates -Wall -Wextra -Wwrite-strings -Wcast-qual -fdiagnostics-show-location=once -ffunction-sections -fdata-sections -frandom-seed=bitmap_allocator.lo -g -O2 -D_GNU_SOURCE -c ../../../../gcc-4.7-20111022/libstdc++-v3/src/bitmap_allocator.cc  -fPIC -DPIC -o .libs/bitmap_allocator.o
In file included from ../../../../gcc-4.7-20111022/libstdc++-v3/src/atomic.cc:28:0:
/home/jimis/dist/src/objtmp-gcc/hppa2.0-unknown-linux-gnu/libstdc++-v3/include/mutex: In constructor 'constexpr std::mutex::mutex()':
/home/jimis/dist/src/objtmp-gcc/hppa2.0-unknown-linux-gnu/libstdc++-v3/include/mutex:73:63: error: use of deleted function 'pthread_mutex_t::pthread_mutex_t(const pthread_mutex_t&)'
In file included from /usr/include/sys/types.h:270:0,
                 from /home/jimis/dist/src/objtmp-gcc/hppa2.0-unknown-linux-gnu/libstdc++-v3/include/gstdint.h:6,
                 from ../../../../gcc-4.7-20111022/libstdc++-v3/src/atomic.cc:26:
/usr/include/bits/pthreadtypes.h:101:3: note: 'pthread_mutex_t::pthread_mutex_t(const pthread_mutex_t&)' is implicitly deleted because the default definition would be ill-formed:
/usr/include/bits/pthreadtypes.h:101:3: error: use of deleted function '_pthread_fastlock::_pthread_fastlock(const _pthread_fastlock&)'
/usr/include/bits/pthreadtypes.h:34:8: note: '_pthread_fastlock::_pthread_fastlock(const _pthread_fastlock&)' is implicitly deleted because the default definition would be ill-formed:
/usr/include/bits/pthreadtypes.h:34:8: error: no matching function for call to '<anonymous struct>::._3(const volatile __atomic_lock_t&)'
/usr/include/bits/pthreadtypes.h:34:8: note: candidates are:
/usr/include/bits/pthreadtypes.h:29:25: note: <anonymous struct>::._3()
/usr/include/bits/pthreadtypes.h:29:25: note:   candidate expects 0 arguments, 1 provided
/usr/include/bits/pthreadtypes.h:29:25: note: constexpr<anonymous struct>::._3(const<anonymous struct>&)
/usr/include/bits/pthreadtypes.h:29:25: note:   no known conversion for argument 1 from 'const volatile __atomic_lock_t {aka const volatile<anonymous struct>}' to 'const<anonymous struct>&'
/usr/include/bits/pthreadtypes.h:29:25: note: constexpr<anonymous struct>::._3(<anonymous struct>&&)
/usr/include/bits/pthreadtypes.h:29:25: note:   no known conversion for argument 1 from 'const volatile __atomic_lock_t {aka const volatile<anonymous struct>}' to '<anonymous struct>&&'
In file included from ../../../../gcc-4.7-20111022/libstdc++-v3/src/atomic.cc:28:0:
/home/jimis/dist/src/objtmp-gcc/hppa2.0-unknown-linux-gnu/libstdc++-v3/include/mutex: In constructor 'std::recursive_mutex::recursive_mutex()':
/home/jimis/dist/src/objtmp-gcc/hppa2.0-unknown-linux-gnu/libstdc++-v3/include/mutex:165:64: error: use of deleted function 'pthread_mutex_t::pthread_mutex_t(const pthread_mutex_t&)'
/home/jimis/dist/src/objtmp-gcc/hppa2.0-unknown-linux-gnu/libstdc++-v3/include/mutex: In constructor 'std::timed_mutex::timed_mutex()':
/home/jimis/dist/src/objtmp-gcc/hppa2.0-unknown-linux-gnu/libstdc++-v3/include/mutex:227:50: error: use of deleted function 'pthread_mutex_t::pthread_mutex_t(const pthread_mutex_t&)'
/home/jimis/dist/src/objtmp-gcc/hppa2.0-unknown-linux-gnu/libstdc++-v3/include/mutex: In constructor 'std::recursive_timed_mutex::recursive_timed_mutex()':
/home/jimis/dist/src/objtmp-gcc/hppa2.0-unknown-linux-gnu/libstdc++-v3/include/mutex:332:70: error: use of deleted function 'pthread_mutex_t::pthread_mutex_t(const pthread_mutex_t&)'
make[5]: *** [atomic.lo] Error 1

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux