This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
atomicity.h?
- From: "John David Anglin" <dave at hiauly1 dot hia dot nrc dot ca>
- To: libstdc++ at gcc dot gnu dot org
- Date: Fri, 27 Feb 2004 12:36:50 -0500 (EST)
- Subject: atomicity.h?
As a result of the recent atomic change, libstdc++ doesn't build
on hppa64-hp-hpux11.11.
The build fails with the following error:
/xxx/gnu/gcc-3.3/objdir/gcc/xgcc -shared-libgcc -B/xxx/gnu/gcc-3.3/objdir/gcc/ -
nostdinc++ -L/xxx/gnu/gcc-3.3/objdir/hppa64-hp-hpux11.11/libstdc++-v3/src -L/xxx
/gnu/gcc-3.3/objdir/hppa64-hp-hpux11.11/libstdc++-v3/src/.libs -B/opt/gnu64/gcc/
gcc-3.5.0/hppa64-hp-hpux11.11/bin/ -B/opt/gnu64/gcc/gcc-3.5.0/hppa64-hp-hpux11.1
1/lib/ -isystem /opt/gnu64/gcc/gcc-3.5.0/hppa64-hp-hpux11.11/include -isystem /o
pt/gnu64/gcc/gcc-3.5.0/hppa64-hp-hpux11.11/sys-include -I/xxx/gnu/gcc-3.3/objdir
/hppa64-hp-hpux11.11/libstdc++-v3/include/hppa64-hp-hpux11.11 -I/xxx/gnu/gcc-3.3
/objdir/hppa64-hp-hpux11.11/libstdc++-v3/include -I/xxx/gnu/gcc-3.3/gcc/libstdc+
+-v3/libsupc++ -O2 -g -O2 -g -O2 -fno-implicit-templates -Wall -W -Wwrite-string
s -Wcast-qual -fdiagnostics-show-location=once -ffunction-sections -fdata-sectio
ns -c ../../../../gcc/libstdc++-v3/src/misc-inst.cc -fPIC -DPIC -o .libs/misc-i
nst.o
../../../../gcc/libstdc++-v3/src/misc-inst.cc:46: error: explicit instantiation
of non-template `volatile int std::__Atomicity_lock'
../../../../gcc/libstdc++-v3/src/misc-inst.cc:46: error: expected `;' before '<'
token
There seem to be a number of problems:
1) The instantiation at misc-inst.cc:46 is now in the wrong namespace.
2) There is a problem in os_defines.h as the explicit instantiation
is needed on hppa64-hp-hpux11* (doh).
3) We only now seem to have the generic version of atomicity.h in
the build hierarchy:
-bash-2.05b$ find . -name atomicity.h -print
./hppa64-hp-hpux11.11/libstdc++-v3/include/bits/atomicity.h
-bash-2.05b$ ll ./hppa64-hp-hpux11.11/libstdc++-v3/include/bits/atomicity.h
lrwxr-xr-x 1 bin bin 58 Feb 27 12:07 ./hppa64-hp-hpux11.11/libstdc++-v3/include/bits/atomicity.h -> /xxx/gnu/gcc-3.3/gcc/libstdc++-v3/include/bits/atomicity.h
We used to have the cpu specific version in
dave@hiauly6:~/gnu/gcc-3.4/objdir$ find . -name atomicity.h -print
./hppa-linux/libstdc++-v3/include/hppa-linux/bits/atomicity.h
dave@hiauly6:~/gnu/gcc-3.4/objdir$ ll ./hppa-linux/libstdc++-v3/include/hppa-linux/bits/atomicity.h
lrwxrwxrwx 1 dave dave 67 Feb 25 21:09 ./hppa-linux/libstdc++-v3/include/hppa-linux/bits/atomicity.h -> /home/dave/gnu/gcc-3.4/gcc/libstdc++-v3/config/cpu/hppa/atomicity.h
I have fixes for the first two issues.
Dave
--
J. David Anglin dave.anglin@nrc-cnrc.gc.ca
National Research Council of Canada (613) 990-0752 (FAX: 952-6602)