On Nov 23, 2010, at 3:06 PM, Stuart Henderson wrote: > looks like you are setting DESTDIR during build. unfortunately DESTDIR builds > got broken with the move to GCC 4 and aren't supported during the build phase > any more. > > http://marc.info/?l=openbsd-tech&m=128072148432121&w=2 > > the patches in the previous message in the thread do work (you must build > and install gcc with the patch *before* doing the DESTDIR build), but you're > creating maintenance problems that way. > > the simplest way to do what you're trying to do now is probably to unpack > OS tgz sets to some other directory and build in a chroot jail (watch out > for mount options nodev/nosuid). > > but the simplest way overall is to do the build without setting DESTDIR.
I'm willing to try not using DESTDIR. But the FAQ clearly states to set it: Make sure all the appropriate directories are created. # cd /usr/src/etc && env DESTDIR=/ make distrib-dirs http://www.openbsd.org/faq/faq5.html#BldUserland I will try this without setting DESTDIR. > > > > On 2010-11-23, Don Jackson <don.jack...@gmail.com> wrote: >> Hello, >> >> In general, I run/track stable. I periodically rebuild the OS from source. >> I've done this successfully probably about 50 times over the past N years. >> I have a set of shell scripts I use to set up the various directories, pull >> from CVS, build kernel, build userland, build release, etc, so my actions are >> consistent. >> >> I recently built a new 4.8 amd64 machine, from the images on the cdrom. >> >> Then I pulled down the stable sources (4 patches since release), and rebuild >> the kernel, installed new kernel, and rebooted. >> >> dmesg | head >> OpenBSD 4.8-stable (GENERIC.MP) #0: Sun Nov 21 17:12:18 PST 2010 >> d...@obsdbuildamd.siptone.net:/home2/4.8/amd64/src/sys/arch/amd64/compile >> /GENERIC.MP >> >> Then I attempted to build userland. After running for 60-90 minutes, the >> build dies as shown in the messages below. >> >> I have re-checked/re-traced my steps here 2-3 times, including starting all >> over from scratch. Still, I can't see what I am doing wrong. >> >> I did find something about changes to libstdc++-v3 at this link: >> >> http://www.openbsd.org/faq/current.html#20100923 >> >> But I am attempting to build stable, not current. >> >> I would definitely be grateful for any advice. >> I must be doing something wrong, but so far I just can't figure out what. >> >> Don >> >> ===> libstdc++-v3 >> c++ -O2 -pipe -g -DIN_GLIBCPP_V3 -DHAVE_CONFIG_H >> -I/home2/4.8/amd64/src/gnu/lib/libstdc++-v3/../libstdc++-v3/ >> -I/home2/4.8/amd64/src/gnu/lib/libstdc++-v3/../../gcc/libstdc++-v3/libsupc++ >> -I/home2/4.8/amd64/src/gnu/lib/libstdc++-v3/../../gcc/gcc >> -I/home2/4.8/amd64/src/gnu/lib/libstdc++-v3/../../gcc/libstdc++-v3/include >> -I/home2/4.8/amd64/src/gnu/lib/libstdc++-v3/../../gcc/gcc/gcc/include >> -I/home2/4.8/amd64/src/gnu/lib/libstdc++-v3/../../gcc/libstdc++-v3/include >> -I/home2/4.8/amd64/src/gnu/lib/libstdc++-v3/../libiberty/include -I. >> -frandom-seed=RepeatabilityConsideredGood -DIN_GLIBCPP_V3 -DHAVE_CONFIG_H >> -I/home2/4.8/amd64/src/gnu/lib/libstdc++-v3 >> -I/home2/4.8/amd64/src/gnu/lib/libstdc++-v3/../../gcc/libstdc++-v3/libsupc++ >> -I/home2/4.8/amd64/src/gnu/lib/libstdc++-v3/../../gcc/gcc >> -I/home2/4.8/amd64/src/gnu/lib/libstdc++-v3/../../gcc/libstdc++-v3/include >> -I/home2/4.8/amd64/src/gnu/lib/libstdc++-v3/../../gcc/gcc/gcc/include >> -I/home2/4.8/amd64/src/gnu/lib/libstdc++-v3/../../gcc/libstdc++-v3/include >> -I/home2/4.8/amd64/src/gnu/lib/libstdc++-v3/../libiberty/include -I. >> -frandom-seed=RepeatabilityConsideredGood -fno-implicit-templates >> -ffunction-sections -fdata-sections -Wno-deprecated -fno-implicit-templates >> -ffunction-sections -fdata-sections -Wno-deprecated -idirafter >> //usr/include/g++ -nostdinc -idirafter //usr/include -c >> /home2/4.8/amd64/src/gnu/lib/libstdc++-v3/../../gcc/libstdc++-v3/src/bitmap_a >> llocator.cc -o bitmap_allocator.o >> In file included from >> /home2/4.8/amd64/src/gnu/lib/libstdc++-v3/../../gcc/libstdc++-v3/include/ext/ >> bitmap_allocator.h:37, >> from >> /home2/4.8/amd64/src/gnu/lib/libstdc++-v3/../../gcc/libstdc++-v3/src/bitmap_a >> llocator.cc:30: >> //usr/include/g++/cstddef:50:28: error: bits/c++config.h: No such file or >> directory >> In file included from >> /home2/4.8/amd64/src/gnu/lib/libstdc++-v3/../../gcc/libstdc++-v3/include/ext/ >> bitmap_allocator.h:43, >> from >> /home2/4.8/amd64/src/gnu/lib/libstdc++-v3/../../gcc/libstdc++-v3/src/bitmap_a >> llocator.cc:30: >> /home2/4.8/amd64/src/gnu/lib/libstdc++-v3/../../gcc/libstdc++-v3/include/ext/ >> concurrence.h:41:24: error: bits/gthr.h: No such file or directory >> In file included from >> /home2/4.8/amd64/src/gnu/lib/libstdc++-v3/../../gcc/libstdc++-v3/include/ext/ >> bitmap_allocator.h:37, >> from >> /home2/4.8/amd64/src/gnu/lib/libstdc++-v3/../../gcc/libstdc++-v3/src/bitmap_a >> llocator.cc:30: >> //usr/include/g++/cstddef:53: error: expected constructor, destructor, or type >> conversion before '(' token >> //usr/include/g++/cstddef:58: error: '_GLIBCXX_END_NAMESPACE' does not name a >> type >> In file included from >> /home2/4.8/amd64/src/gnu/lib/libstdc++-v3/../../gcc/libstdc++-v3/include/ext/ >> bitmap_allocator.h:38, >> from >> /home2/4.8/amd64/src/gnu/lib/libstdc++-v3/../../gcc/libstdc++-v3/src/bitmap_a >> llocator.cc:30: >> /home2/4.8/amd64/src/gnu/lib/libstdc++-v3/../../gcc/libstdc++-v3/include/bits >> /functexcept.h:93: error: '_GLIBCXX_END_NAMESPACE' does not name a type >> In file included from //usr/include/g++/utility:66, >> from >> /home2/4.8/amd64/src/gnu/lib/libstdc++-v3/../../gcc/libstdc++-v3/include/ext/ >> bitmap_allocator.h:39, >> from >> /home2/4.8/amd64/src/gnu/lib/libstdc++-v3/../../gcc/libstdc++-v3/src/bitmap_a >> llocator.cc:30: >> /home2/4.8/amd64/src/gnu/lib/libstdc++-v3/../../gcc/libstdc++-v3/include/bits >> /stl_relops.h:136: error: '_GLIBCXX_END_NAMESPACE' does not name a type >> In file included from //usr/include/g++/utility:67, >> from >> /home2/4.8/amd64/src/gnu/lib/libstdc++-v3/../../gcc/libstdc++-v3/include/ext/ >> bitmap_allocator.h:39, >> from >> /home2/4.8/amd64/src/gnu/lib/libstdc++-v3/../../gcc/libstdc++-v3/src/bitmap_a >> llocator.cc:30: >> /home2/4.8/amd64/src/gnu/lib/libstdc++-v3/../../gcc/libstdc++-v3/include/bits >> /stl_pair.h:94: error: template with C linkage >> /home2/4.8/amd64/src/gnu/lib/libstdc++-v3/../../gcc/libstdc++-v3/include/bits >> /stl_pair.h:96: error: expected ',' or '...' before '<' token >> /home2/4.8/amd64/src/gnu/lib/libstdc++-v3/../../gcc/libstdc++-v3/include/bits >> /stl_pair.h:96: error: 'bool operator==(int)' must have an argument of class >> or enumerated type >> /home2/4.8/amd64/src/gnu/lib/libstdc++-v3/../../gcc/libstdc++-v3/include/bits >> /stl_pair.h:100: error: template with C linkage >> /home2/4.8/amd64/src/gnu/lib/libstdc++-v3/../../gcc/libstdc++-v3/include/bits >> /stl_pair.h:102: error: expected ',' or '...' before '<' token >> /home2/4.8/amd64/src/gnu/lib/libstdc++-v3/../../gcc/libstdc++-v3/include/bits >> /stl_pair.h:102: error: 'bool operator<(int)' must have an argument of class >> or enumerated type >> /home2/4.8/amd64/src/gnu/lib/libstdc++-v3/../../gcc/libstdc++-v3/include/bits >> /stl_pair.h:107: error: template with C linkage >> /home2/4.8/amd64/src/gnu/lib/libstdc++-v3/../../gcc/libstdc++-v3/include/bits >> /stl_pair.h:109: error: expected ',' or '...' before '<' token >> /home2/4.8/amd64/src/gnu/lib/libstdc++-v3/../../gcc/libstdc++-v3/include/bits >> /stl_pair.h:109: error: 'bool operator!=(int)' must have an argument of class >> or enumerated type >> /home2/4.8/amd64/src/gnu/lib/libstdc++-v3/../../gcc/libstdc++-v3/include/bits >> /stl_pair.h:113: error: template with C linkage >> /home2/4.8/amd64/src/gnu/lib/libstdc++-v3/../../gcc/libstdc++-v3/include/bits >> /stl_pair.h:115: error: expected ',' or '...' before '<' token >> /home2/4.8/amd64/src/gnu/lib/libstdc++-v3/../../gcc/libstdc++-v3/include/bits >> /stl_pair.h:115: error: 'bool operator>(int)' must have an argument of class >> or enumerated type >> /home2/4.8/amd64/src/gnu/lib/libstdc++-v3/../../gcc/libstdc++-v3/include/bits >> /stl_pair.h:119: error: template with C linkage >> /home2/4.8/amd64/src/gnu/lib/libstdc++-v3/../../gcc/libstdc++-v3/include/bits >> /stl_pair.h:121: error: expected ',' or '...' before '<' token >> /home2/4.8/amd64/src/gnu/lib/libstdc++-v3/../../gcc/libstdc++-v3/include/bits >> /stl_pair.h:121: error: 'bool operator<=(int)' must have an argument of class >> or enumerated type >> /home2/4.8/amd64/src/gnu/lib/libstdc++-v3/../../gcc/libstdc++-v3/include/bits >> /stl_pair.h:125: error: template with C linkage >> /home2/4.8/amd64/src/gnu/lib/libstdc++-v3/../../gcc/libstdc++-v3/include/bits >> /stl_pair.h:127: error: expected ',' or '...' before '<' token >> /home2/4.8/amd64/src/gnu/lib/libstdc++-v3/../../gcc/libstdc++-v3/include/bits >> /stl_pair.h:127: error: 'bool operator>=(int)' must have an argument of class >> or enumerated type >> /home2/4.8/amd64/src/gnu/lib/libstdc++-v3/../../gcc/libstdc++-v3/include/bits >> /stl_pair.h:142: error: template with C linkage >> /home2/4.8/amd64/src/gnu/lib/libstdc++-v3/../../gcc/libstdc++-v3/include/bits >> /stl_pair.h:143: error: expected initializer before '<' token >> /home2/4.8/amd64/src/gnu/lib/libstdc++-v3/../../gcc/libstdc++-v3/include/bits >> /stl_pair.h:147: error: '_GLIBCXX_END_NAMESPACE' does not name a type >> In file included from //usr/include/g++/functional:55, >> from >> /home2/4.8/amd64/src/gnu/lib/libstdc++-v3/../../gcc/libstdc++-v3/include/ext/ >> bitmap_allocator.h:40, >> from >> /home2/4.8/amd64/src/gnu/lib/libstdc++-v3/../../gcc/libstdc++-v3/src/bitmap_a >> llocator.cc:30: >> /home2/4.8/amd64/src/gnu/lib/libstdc++-v3/../../gcc/libstdc++-v3/include/bits >> /stl_function.h:113: error: template with C linkage >> /home2/4.8/amd64/src/gnu/lib/libstdc++-v3/../../gcc/libstdc++-v3/include/bits >> /stl_function.h:133: error: template with C linkage >> /home2/4.8/amd64/src/gnu/lib/libstdc++-v3/../../gcc/libstdc++-v3/include/bits >> /stl_function.h:142: error: template with C linkage >> /home2/4.8/amd64/src/gnu/lib/libstdc++-v3/../../gcc/libstdc++-v3/include/bits >> /stl_function.h:151: error: template with C linkage >> /home2/4.8/amd64/src/gnu/lib/libstdc++-v3/../../gcc/libstdc++-v3/include/bits >> /stl_function.h:160: error: template with C linkage >> /home2/4.8/amd64/src/gnu/lib/libstdc++-v3/../../gcc/libstdc++-v3/include/bits >> /stl_function.h:169: error: template with C linkage >> /home2/4.8/amd64/src/gnu/lib/libstdc++-v3/../../gcc/libstdc++-v3/include/bits >> /stl_function.h:178: error: template with C linkage >> /home2/4.8/amd64/src/gnu/lib/libstdc++-v3/../../gcc/libstdc++-v3/include/bits >> /stl_function.h:179: error: expected template-name before '<' token >> /home2/4.8/amd64/src/gnu/lib/libstdc++-v3/../../gcc/libstdc++-v3/include/bits >> /stl_function.h:179: error: expected `{' before '<' token >> /home2/4.8/amd64/src/gnu/lib/libstdc++-v3/../../gcc/libstdc++-v3/include/bits >> /stl_function.h:179: error: expected unqualified-id before '<' token >> /home2/4.8/amd64/src/gnu/lib/libstdc++-v3/../../gcc/libstdc++-v3/include/bits >> /stl_function.h:195: error: template with C linkage >> /home2/4.8/amd64/src/gnu/lib/libstdc++-v3/../../gcc/libstdc++-v3/include/bits >> /stl_function.h:204: error: template with C linkage >> /home2/4.8/amd64/src/gnu/lib/libstdc++-v3/../../gcc/libstdc++-v3/include/bits >> /stl_function.h:213: error: template with C linkage >> /home2/4.8/amd64/src/gnu/lib/libstdc++-v3/../../gcc/libstdc++-v3/include/bits >> /stl_function.h:222: error: template with C linkage >> /home2/4.8/amd64/src/gnu/lib/libstdc++-v3/../../gcc/libstdc++-v3/include/bits >> /stl_function.h:231: error: template with C linkage >> /home2/4.8/amd64/src/gnu/lib/libstdc++-v3/../../gcc/libstdc++-v3/include/bits >> /stl_function.h:240: error: template with C linkage >> /home2/4.8/amd64/src/gnu/lib/libstdc++-v3/../../gcc/libstdc++-v3/include/bits >> /stl_function.h:256: error: template with C linkage >> /home2/4.8/amd64/src/gnu/lib/libstdc++-v3/../../gcc/libstdc++-v3/include/bits >> /stl_function.h:265: error: template with C linkage >> /home2/4.8/amd64/src/gnu/lib/libstdc++-v3/../../gcc/libstdc++-v3/include/bits >> /stl_function.h:274: error: template with C linkage >> /home2/4.8/amd64/src/gnu/lib/libstdc++-v3/../../gcc/libstdc++-v3/include/bits >> /stl_function.h:275: error: expected template-name before '<' token >> /home2/4.8/amd64/src/gnu/lib/libstdc++-v3/../../gcc/libstdc++-v3/include/bits >> /stl_function.h:275: error: expected `{' before '<' token >> /home2/4.8/amd64/src/gnu/lib/libstdc++-v3/../../gcc/libstdc++-v3/include/bits >> /stl_function.h:275: error: expected unqualified-id before '<' token >> /home2/4.8/amd64/src/gnu/lib/libstdc++-v3/../../gcc/libstdc++-v3/include/bits >> /stl_function.h:311: error: template with C linkage >> /home2/4.8/amd64/src/gnu/lib/libstdc++-v3/../../gcc/libstdc++-v3/include/bits >> /stl_function.h:313: error: expected template-name before '<' token >> /home2/4.8/amd64/src/gnu/lib/libstdc++-v3/../../gcc/libstdc++-v3/include/bits >> /stl_function.h:313: error: expected `{' before '<' token >> /home2/4.8/amd64/src/gnu/lib/libstdc++-v3/../../gcc/libstdc++-v3/include/bits >> /stl_function.h:313: error: expected unqualified-id before '<' token >> /home2/4.8/amd64/src/gnu/lib/libstdc++-v3/../../gcc/libstdc++-v3/include/bits >> /stl_function.h:327: error: template with C linkage >> /home2/4.8/amd64/src/gnu/lib/libstdc++-v3/../../gcc/libstdc++-v3/include/bits >> /stl_function.h:333: error: template with C linkage >> /home2/4.8/amd64/src/gnu/lib/libstdc++-v3/../../gcc/libstdc++-v3/include/bits >> /stl_function.h:353: error: template with C linkage >> /home2/4.8/amd64/src/gnu/lib/libstdc++-v3/../../gcc/libstdc++-v3/include/bits >> /stl_function.h:391: error: template with C linkage >> /home2/4.8/amd64/src/gnu/lib/libstdc++-v3/../../gcc/libstdc++-v3/include/bits >> /stl_function.h:393: error: expected template-name before '<' token >> /home2/4.8/amd64/src/gnu/lib/libstdc++-v3/../../gcc/libstdc++-v3/include/bits >> /stl_function.h:393: error: expected `{' before '<' token >> /home2/4.8/amd64/src/gnu/lib/libstdc++-v3/../../gcc/libstdc++-v3/include/bits >> /stl_function.h:393: error: expected unqualified-id before '<' token >> /home2/4.8/amd64/src/gnu/lib/libstdc++-v3/../../gcc/libstdc++-v3/include/bits >> /stl_function.h:416: error: template with C linkage >> /home2/4.8/amd64/src/gnu/lib/libstdc++-v3/../../gcc/libstdc++-v3/include/bits >> /stl_function.h:425: error: template with C linkage >> /home2/4.8/amd64/src/gnu/lib/libstdc++-v3/../../gcc/libstdc++-v3/include/bits >> /stl_function.h:427: error: expected template-name before '<' token >> /home2/4.8/amd64/src/gnu/lib/libstdc++-v3/../../gcc/libstdc++-v3/include/bits >> /stl_function.h:427: error: expected `{' before '<' token >> /home2/4.8/amd64/src/gnu/lib/libstdc++-v3/../../gcc/libstdc++-v3/include/bits >> /stl_function.h:427: error: expected unqualified-id before '<' token >> /home2/4.8/amd64/src/gnu/lib/libstdc++-v3/../../gcc/libstdc++-v3/include/bits >> /stl_function.h:450: error: template with C linkage >> /home2/4.8/amd64/src/gnu/lib/libstdc++-v3/../../gcc/libstdc++-v3/include/bits >> /stl_function.h:480: error: template with C linkage >> /home2/4.8/amd64/src/gnu/lib/libstdc++-v3/../../gcc/libstdc++-v3/include/bits >> /stl_function.h:481: error: expected template-name before '<' token >> /home2/4.8/amd64/src/gnu/lib/libstdc++-v3/../../gcc/libstdc++-v3/include/bits >> /stl_function.h:481: error: expected `{' before '<' token >> /home2/4.8/amd64/src/gnu/lib/libstdc++-v3/../../gcc/libstdc++-v3/include/bits >> /stl_function.h:481: error: expected unqualified-id before '<' token >> /home2/4.8/amd64/src/gnu/lib/libstdc++-v3/../../gcc/libstdc++-v3/include/bits >> /stl_function.h:498: error: template with C linkage >> /home2/4.8/amd64/src/gnu/lib/libstdc++-v3/../../gcc/libstdc++-v3/include/bits >> /stl_function.h:504: error: template with C linkage >> /home2/4.8/amd64/src/gnu/lib/libstdc++-v3/../../gcc/libstdc++-v3/include/bits >> /stl_function.h:523: error: template with C linkage >> /home2/4.8/amd64/src/gnu/lib/libstdc++-v3/../../gcc/libstdc++-v3/include/bits >> /stl_function.h:529: error: template with C linkage >> /home2/4.8/amd64/src/gnu/lib/libstdc++-v3/../../gcc/libstdc++-v3/include/bits >> /stl_function.h:530: error: expected template-name before '<' token >> /home2/4.8/amd64/src/gnu/lib/libstdc++-v3/../../gcc/libstdc++-v3/include/bits >> /stl_function.h:530: error: expected `{' before '<' token >> /home2/4.8/amd64/src/gnu/lib/libstdc++-v3/../../gcc/libstdc++-v3/include/bits >> /stl_function.h:530: error: expected unqualified-id before '<' token >> /home2/4.8/amd64/src/gnu/lib/libstdc++-v3/../../gcc/libstdc++-v3/include/bits >> /stl_function.h:541: error: template with C linkage >> /home2/4.8/amd64/src/gnu/lib/libstdc++-v3/../../gcc/libstdc++-v3/include/bits >> /stl_function.h:542: error: expected template-name before '<' token >> /home2/4.8/amd64/src/gnu/lib/libstdc++-v3/../../gcc/libstdc++-v3/include/bits >> /stl_function.h:542: error: expected `{' before '<' token >> /home2/4.8/amd64/src/gnu/lib/libstdc++-v3/../../gcc/libstdc++-v3/include/bits >> /stl_function.h:542: error: expected unqualified-id before '<' token >> /home2/4.8/amd64/src/gnu/lib/libstdc++-v3/../../gcc/libstdc++-v3/include/bits >> /stl_function.h:554: error: template with C linkage >> /home2/4.8/amd64/src/gnu/lib/libstdc++-v3/../../gcc/libstdc++-v3/include/bits >> /stl_function.h:555: error: expected template-name before '<' token >> /home2/4.8/amd64/src/gnu/lib/libstdc++-v3/../../gcc/libstdc++-v3/include/bits >> /stl_function.h:555: error: expected `{' before '<' token >> /home2/4.8/amd64/src/gnu/lib/libstdc++-v3/../../gcc/libstdc++-v3/include/bits >> /stl_function.h:555: error: expected unqualified-id before '<' token >> /home2/4.8/amd64/src/gnu/lib/libstdc++-v3/../../gcc/libstdc++-v3/include/bits >> /stl_function.h:582: error: template with C linkage >> /home2/4.8/amd64/src/gnu/lib/libstdc++-v3/../../gcc/libstdc++-v3/include/bits >> /stl_function.h:583: error: expected template-name before '<' token >> /home2/4.8/amd64/src/gnu/lib/libstdc++-v3/../../gcc/libstdc++-v3/include/bits >> /stl_function.h:583: error: expected `{' before '<' token >> /home2/4.8/amd64/src/gnu/lib/libstdc++-v3/../../gcc/libstdc++-v3/include/bits >> /stl_function.h:583: error: expected unqualified-id before '<' token >> /home2/4.8/amd64/src/gnu/lib/libstdc++-v3/../../gcc/libstdc++-v3/include/bits >> /stl_function.h:598: error: template with C linkage >> /home2/4.8/amd64/src/gnu/lib/libstdc++-v3/../../gcc/libstdc++-v3/include/bits >> /stl_function.h:599: error: expected template-name before '<' token >> /home2/4.8/amd64/src/gnu/lib/libstdc++-v3/../../gcc/libstdc++-v3/include/bits >> /stl_function.h:599: error: expected `{' before '<' token >> /home2/4.8/amd64/src/gnu/lib/libstdc++-v3/../../gcc/libstdc++-v3/include/bits >> /stl_function.h:599: error: expected unqualified-id before '<' token >> /home2/4.8/amd64/src/gnu/lib/libstdc++-v3/../../gcc/libstdc++-v3/include/bits >> /stl_function.h:614: error: template with C linkage >> /home2/4.8/amd64/src/gnu/lib/libstdc++-v3/../../gcc/libstdc++-v3/include/bits >> /stl_function.h:615: error: expected template-name before '<' token >> /home2/4.8/amd64/src/gnu/lib/libstdc++-v3/../../gcc/libstdc++-v3/include/bits >> /stl_function.h:615: error: expected `{' before '<' token >> /home2/4.8/amd64/src/gnu/lib/libstdc++-v3/../../gcc/libstdc++-v3/include/bits >> /stl_function.h:615: error: expected unqualified-id before '<' token >> /home2/4.8/amd64/src/gnu/lib/libstdc++-v3/../../gcc/libstdc++-v3/include/bits >> /stl_function.h:630: error: template with C linkage >> /home2/4.8/amd64/src/gnu/lib/libstdc++-v3/../../gcc/libstdc++-v3/include/bits >> /stl_function.h:631: error: expected template-name before '<' token >> /home2/4.8/amd64/src/gnu/lib/libstdc++-v3/../../gcc/libstdc++-v3/include/bits >> /stl_function.h:631: error: expected `{' before '<' token >> /home2/4.8/amd64/src/gnu/lib/libstdc++-v3/../../gcc/libstdc++-v3/include/bits >> /stl_function.h:631: error: expected unqualified-id before '<' token >> /home2/4.8/amd64/src/gnu/lib/libstdc++-v3/../../gcc/libstdc++-v3/include/bits >> /stl_function.h:646: error: template with C linkage >> /home2/4.8/amd64/src/gnu/lib/libstdc++-v3/../../gcc/libstdc++-v3/include/bits >> /stl_function.h:662: error: template with C linkage >> /home2/4.8/amd64/src/gnu/lib/libstdc++-v3/../../gcc/libstdc++-v3/include/bits >> /stl_function.h:678: error: template with C linkage >> /home2/4.8/amd64/src/gnu/lib/libstdc++-v3/../../gcc/libstdc++-v3/include/bits >> /stl_function.h:694: error: template with C linkage >> /home2/4.8/amd64/src/gnu/lib/libstdc++-v3/../../gcc/libstdc++-v3/include/bits >> /stl_function.h:711: error: template with C linkage >> /home2/4.8/amd64/src/gnu/lib/libstdc++-v3/../../gcc/libstdc++-v3/include/bits >> /stl_function.h:716: error: template with C linkage >> /home2/4.8/amd64/src/gnu/lib/libstdc++-v3/../../gcc/libstdc++-v3/include/bits >> /stl_function.h:721: error: template with C linkage >> /home2/4.8/amd64/src/gnu/lib/libstdc++-v3/../../gcc/libstdc++-v3/include/bits >> /stl_function.h:726: error: template with C linkage >> /home2/4.8/amd64/src/gnu/lib/libstdc++-v3/../../gcc/libstdc++-v3/include/bits >> /stl_function.h:731: error: template with C linkage >> /home2/4.8/amd64/src/gnu/lib/libstdc++-v3/../../gcc/libstdc++-v3/include/bits >> /stl_function.h:736: error: template with C linkage >> /home2/4.8/amd64/src/gnu/lib/libstdc++-v3/../../gcc/libstdc++-v3/include/bits >> /stl_function.h:741: error: template with C linkage >> /home2/4.8/amd64/src/gnu/lib/libstdc++-v3/../../gcc/libstdc++-v3/include/bits >> /stl_function.h:746: error: template with C linkage >> In file included from >> /home2/4.8/amd64/src/gnu/lib/libstdc++-v3/../../gcc/libstdc++-v3/libsupc++/ne >> w:45, >> from >> /home2/4.8/amd64/src/gnu/lib/libstdc++-v3/../../gcc/libstdc++-v3/include/ext/ >> bitmap_allocator.h:41, >> from >> /home2/4.8/amd64/src/gnu/lib/libstdc++-v3/../../gcc/libstdc++-v3/src/bitmap_a >> llocator.cc:30: >> /home2/4.8/amd64/src/gnu/lib/libstdc++-v3/../../gcc/libstdc++-v3/libsupc++/ex >> ception:40: error: '#pragma' is not allowed here >> /home2/4.8/amd64/src/gnu/lib/libstdc++-v3/../../gcc/libstdc++-v3/libsupc++/ex >> ception:133: error: expected declaration before end of line >> *** Error code 1 >> >> Stop in /home2/4.8/amd64/src/gnu/lib/libstdc++-v3 (line 104 of >> /usr/share/mk/sys.mk). >> *** Error code 1 >> >> Stop in /home2/4.8/amd64/src/gnu/lib (line 48 of >> /usr/share/mk/bsd.subdir.mk). >> *** Error code 1 >> >> Stop in /home2/4.8/amd64/src (line 74 of Makefile).