Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Jun 2014 09:51:09 +0200
From:      Thomas Krause <freebsd-stable@chef-ingenieur.de>
To:        Dimitry Andric <dim@freebsd.org>
Cc:        owner-freebsd-stable@freebsd.org, freebsd-stable@freebsd.org
Subject:   Re: FreeBSD10 - libstdc++.so.7 - arcconf
Message-ID:  <2a18f66fc548692ec5377f6348eb2382@chef-ingenieur.de>
In-Reply-To: <5A1E4599-3634-48A4-BC2F-D8AE5F02DE78@FreeBSD.org>
References:  <539F5C97.6090000@chef-ingenieur.de> <5A1E4599-3634-48A4-BC2F-D8AE5F02DE78@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Am 16.06.2014 23:56, schrieb Dimitry Andric:
> On 16 Jun 2014, at 23:07, Thomas Krause
> <freebsd-stable@chef-ingenieur.de> wrote:
>> 
>> I'm using Adaptec controllers for my servers.
>> The arcconf utility is not working under FreeBSD10 (because of clang):
>> Shared object "libstdc++.so.7" not found, required by "arcconf"
> 
> This has nothing to do with clang, it's because libstdc++ is not
> installed by default.
> 
> 
>> Is there an easy way to get it working?
>> I don't want to install gcc (about 470MB disk space) only for this 
>> tool.
> 
> make -C /usr/src/gnu/lib/libstdc++ -D WITH_GNUCXX obj all install
> make -C /usr/src/gnu/lib/libsupc++ -D WITH_GNUCXX obj all install
> 
> You can also set WITH_GNUCXX in /etc/src.conf, for your next 
> buildworld.
> 
> -Dimitry
> 
> P.S.: I think Baptiste is working on creating a separate port for just
> installing the libstdc++ runtime files from the gcc port.  But this 
> will
> get you up and running now.

doesn't work for my ;-(

# make -C /usr/src/gnu/lib/libstdc++ -D WITH_GNUCXX obj all install
ln -sf /usr/src/gnu/lib/libstdc++/../../../contrib/gcc/unwind-generic.h 
unwind.h
c++  -O2 -pipe -march=core2 -DIN_GLIBCPP_V3 -DHAVE_CONFIG_H 
-I/usr/src/gnu/lib/libstdc++ 
-I/usr/src/gnu/lib/libstdc++/../../../contrib/libstdc++/libsupc++ 
-I/usr/src/gnu/lib/libstdc++/../../../contrib/gcc 
-I/usr/src/gnu/lib/libstdc++/../../../contrib/libstdc++/include 
-I/usr/src/gnu/lib/libstdc++/../../../contrib/gcclibs/include 
-I/usr/src/gnu/lib/libstdc++/../../../contrib/libstdc++/include -I. 
-frandom-seed=RepeatabilityConsideredGood -Qunused-arguments 
-fstack-protector  -Wno-c++11-extensions -fno-implicit-templates 
-ffunction-sections -fdata-sections -Wno-deprecated -stdlib=libstdc++ -c 
/usr/src/gnu/lib/libstdc++/../../../contrib/libstdc++/src/bitmap_allocator.cc 
-o bitmap_allocator.o
In file included from 
/usr/src/gnu/lib/libstdc++/../../../contrib/libstdc++/src/bitmap_allocator.cc:30:
/usr/src/gnu/lib/libstdc++/../../../contrib/libstdc++/include/ext/bitmap_allocator.h:37:10: 
fatal error: 'cstddef' file not found
#include <cstddef> // For std::size_t, and ptrdiff_t.
          ^
1 error generated.
*** Error code 1

Stop.
make: stopped in /usr/src/gnu/lib/libstdc++

# uname -srp
FreeBSD 10.0-RELEASE-p3 amd64

/Thomas.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2a18f66fc548692ec5377f6348eb2382>