<div dir="ltr">Hi all,<div><br></div><div>I would really appreciate it if anyone could share some insights as to why I get the following error</div><div><br></div><div><div><b>ld: unknown option: -soname</b></div><div><b>clang: error: linker command failed with exit code 1 (use -v to see invocation)</b></div>
</div><div><br></div><div>I looked up the documentation of ld (here: <a href="http://ftp.gnu.org/pub/old-gnu/Manuals/ld-2.9.1/html_node/ld_3.html">http://ftp.gnu.org/pub/old-gnu/Manuals/ld-2.9.1/html_node/ld_3.html</a>) and the option -soname does exist, however Apple's documentation (here: <a href="https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man1/ld.1.html">https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man1/ld.1.html</a>) does not include the option -soname.</div>
<div><br></div><div>I would like to know what changes are safe to make to the "buildit" file that comes with libc++ so that the build goes through. Below, I am attaching the output that shows up on the terminal screen.</div>
<div><br></div><div>Thanks in advance,</div><div><br></div><div>Drake</div><div><br></div><div><br></div><div><br></div><div><br></div><blockquote class="webkit-indent-blockquote" style="margin:0 0 0 40px;border:none;padding:0px">
<div><div>$ system_profiler SPSoftwareDataType</div></div><div><div><br></div></div><div><div>Software:</div></div><div><div><br></div></div><div><div> System Software Overview:</div></div><div><div><br></div></div><div>
<div><b> System Version: Mac OS X 10.6.8 (10K549)</b></div></div><div><div> Kernel Version: Darwin 10.8.0</div></div><div><div> Boot Volume: Macintosh HD</div></div><div><div> Boot Mode: Normal</div></div>
<div><div> Secure Virtual Memory: Enabled</div></div><div><div> 64-bit Kernel and Extensions: No</div></div><div><div><br></div></div><div><div>$ clang++ -v</div></div><div><div><b>clang version 3.4 (trunk 192978) (llvm/trunk 192977)</b></div>
</div><div><div><b>Target: x86_64-apple-darwin10.8.0</b></div></div><div><div>Thread model: posix</div></div><div><div><br></div></div><div><div>$ cd /usr/local/libcxx/lib</div></div><div><div>$ export TRIPLE=-apple-</div>
</div><div><div>$ sudo ./buildit</div></div><div><div>Password:</div></div><div><div>+ for FILE in '../src/*.cpp'</div></div><div><div>+ clang++ -c -g -Os -fPIC -nostdinc++ -std=c++11 -fstrict-aliasing -Wall -Wextra -Wshadow -Wconversion -Wpadded -Wstrict-aliasing=2 -Wstrict-overflow=4 -U__STRICT_ANSI__ -I../include ../src/algorithm.cpp</div>
</div><div><div>+ for FILE in '../src/*.cpp'</div></div><div><div>+ clang++ -c -g -Os -fPIC -nostdinc++ -std=c++11 -fstrict-aliasing -Wall -Wextra -Wshadow -Wconversion -Wpadded -Wstrict-aliasing=2 -Wstrict-overflow=4 -U__STRICT_ANSI__ -I../include ../src/bind.cpp</div>
</div><div><div>+ for FILE in '../src/*.cpp'</div></div><div><div>+ clang++ -c -g -Os -fPIC -nostdinc++ -std=c++11 -fstrict-aliasing -Wall -Wextra -Wshadow -Wconversion -Wpadded -Wstrict-aliasing=2 -Wstrict-overflow=4 -U__STRICT_ANSI__ -I../include ../src/chrono.cpp</div>
</div><div><div>+ for FILE in '../src/*.cpp'</div></div><div><div>+ clang++ -c -g -Os -fPIC -nostdinc++ -std=c++11 -fstrict-aliasing -Wall -Wextra -Wshadow -Wconversion -Wpadded -Wstrict-aliasing=2 -Wstrict-overflow=4 -U__STRICT_ANSI__ -I../include ../src/condition_variable.cpp</div>
</div><div><div>+ for FILE in '../src/*.cpp'</div></div><div><div>+ clang++ -c -g -Os -fPIC -nostdinc++ -std=c++11 -fstrict-aliasing -Wall -Wextra -Wshadow -Wconversion -Wpadded -Wstrict-aliasing=2 -Wstrict-overflow=4 -U__STRICT_ANSI__ -I../include ../src/debug.cpp</div>
</div><div><div>+ for FILE in '../src/*.cpp'</div></div><div><div>+ clang++ -c -g -Os -fPIC -nostdinc++ -std=c++11 -fstrict-aliasing -Wall -Wextra -Wshadow -Wconversion -Wpadded -Wstrict-aliasing=2 -Wstrict-overflow=4 -U__STRICT_ANSI__ -I../include ../src/exception.cpp</div>
</div><div><div>+ for FILE in '../src/*.cpp'</div></div><div><div>+ clang++ -c -g -Os -fPIC -nostdinc++ -std=c++11 -fstrict-aliasing -Wall -Wextra -Wshadow -Wconversion -Wpadded -Wstrict-aliasing=2 -Wstrict-overflow=4 -U__STRICT_ANSI__ -I../include ../src/future.cpp</div>
</div><div><div>+ for FILE in '../src/*.cpp'</div></div><div><div>+ clang++ -c -g -Os -fPIC -nostdinc++ -std=c++11 -fstrict-aliasing -Wall -Wextra -Wshadow -Wconversion -Wpadded -Wstrict-aliasing=2 -Wstrict-overflow=4 -U__STRICT_ANSI__ -I../include ../src/hash.cpp</div>
</div><div><div>+ for FILE in '../src/*.cpp'</div></div><div><div>+ clang++ -c -g -Os -fPIC -nostdinc++ -std=c++11 -fstrict-aliasing -Wall -Wextra -Wshadow -Wconversion -Wpadded -Wstrict-aliasing=2 -Wstrict-overflow=4 -U__STRICT_ANSI__ -I../include ../src/ios.cpp</div>
</div><div><div>+ for FILE in '../src/*.cpp'</div></div><div><div>+ clang++ -c -g -Os -fPIC -nostdinc++ -std=c++11 -fstrict-aliasing -Wall -Wextra -Wshadow -Wconversion -Wpadded -Wstrict-aliasing=2 -Wstrict-overflow=4 -U__STRICT_ANSI__ -I../include ../src/iostream.cpp</div>
</div><div><div>+ for FILE in '../src/*.cpp'</div></div><div><div>+ clang++ -c -g -Os -fPIC -nostdinc++ -std=c++11 -fstrict-aliasing -Wall -Wextra -Wshadow -Wconversion -Wpadded -Wstrict-aliasing=2 -Wstrict-overflow=4 -U__STRICT_ANSI__ -I../include ../src/locale.cpp</div>
</div><div><div>+ for FILE in '../src/*.cpp'</div></div><div><div>+ clang++ -c -g -Os -fPIC -nostdinc++ -std=c++11 -fstrict-aliasing -Wall -Wextra -Wshadow -Wconversion -Wpadded -Wstrict-aliasing=2 -Wstrict-overflow=4 -U__STRICT_ANSI__ -I../include ../src/memory.cpp</div>
</div><div><div>+ for FILE in '../src/*.cpp'</div></div><div><div>+ clang++ -c -g -Os -fPIC -nostdinc++ -std=c++11 -fstrict-aliasing -Wall -Wextra -Wshadow -Wconversion -Wpadded -Wstrict-aliasing=2 -Wstrict-overflow=4 -U__STRICT_ANSI__ -I../include ../src/mutex.cpp</div>
</div><div><div>+ for FILE in '../src/*.cpp'</div></div><div><div>+ clang++ -c -g -Os -fPIC -nostdinc++ -std=c++11 -fstrict-aliasing -Wall -Wextra -Wshadow -Wconversion -Wpadded -Wstrict-aliasing=2 -Wstrict-overflow=4 -U__STRICT_ANSI__ -I../include ../src/new.cpp</div>
</div><div><div>+ for FILE in '../src/*.cpp'</div></div><div><div>+ clang++ -c -g -Os -fPIC -nostdinc++ -std=c++11 -fstrict-aliasing -Wall -Wextra -Wshadow -Wconversion -Wpadded -Wstrict-aliasing=2 -Wstrict-overflow=4 -U__STRICT_ANSI__ -I../include ../src/optional.cpp</div>
</div><div><div>+ for FILE in '../src/*.cpp'</div></div><div><div>+ clang++ -c -g -Os -fPIC -nostdinc++ -std=c++11 -fstrict-aliasing -Wall -Wextra -Wshadow -Wconversion -Wpadded -Wstrict-aliasing=2 -Wstrict-overflow=4 -U__STRICT_ANSI__ -I../include ../src/random.cpp</div>
</div><div><div>+ for FILE in '../src/*.cpp'</div></div><div><div>+ clang++ -c -g -Os -fPIC -nostdinc++ -std=c++11 -fstrict-aliasing -Wall -Wextra -Wshadow -Wconversion -Wpadded -Wstrict-aliasing=2 -Wstrict-overflow=4 -U__STRICT_ANSI__ -I../include ../src/regex.cpp</div>
</div><div><div>+ for FILE in '../src/*.cpp'</div></div><div><div>+ clang++ -c -g -Os -fPIC -nostdinc++ -std=c++11 -fstrict-aliasing -Wall -Wextra -Wshadow -Wconversion -Wpadded -Wstrict-aliasing=2 -Wstrict-overflow=4 -U__STRICT_ANSI__ -I../include ../src/shared_mutex.cpp</div>
</div><div><div>+ for FILE in '../src/*.cpp'</div></div><div><div>+ clang++ -c -g -Os -fPIC -nostdinc++ -std=c++11 -fstrict-aliasing -Wall -Wextra -Wshadow -Wconversion -Wpadded -Wstrict-aliasing=2 -Wstrict-overflow=4 -U__STRICT_ANSI__ -I../include ../src/stdexcept.cpp</div>
</div><div><div>+ for FILE in '../src/*.cpp'</div></div><div><div>+ clang++ -c -g -Os -fPIC -nostdinc++ -std=c++11 -fstrict-aliasing -Wall -Wextra -Wshadow -Wconversion -Wpadded -Wstrict-aliasing=2 -Wstrict-overflow=4 -U__STRICT_ANSI__ -I../include ../src/string.cpp</div>
</div><div><div>+ for FILE in '../src/*.cpp'</div></div><div><div>+ clang++ -c -g -Os -fPIC -nostdinc++ -std=c++11 -fstrict-aliasing -Wall -Wextra -Wshadow -Wconversion -Wpadded -Wstrict-aliasing=2 -Wstrict-overflow=4 -U__STRICT_ANSI__ -I../include ../src/strstream.cpp</div>
</div><div><div>+ for FILE in '../src/*.cpp'</div></div><div><div>+ clang++ -c -g -Os -fPIC -nostdinc++ -std=c++11 -fstrict-aliasing -Wall -Wextra -Wshadow -Wconversion -Wpadded -Wstrict-aliasing=2 -Wstrict-overflow=4 -U__STRICT_ANSI__ -I../include ../src/system_error.cpp</div>
</div><div><div>+ for FILE in '../src/*.cpp'</div></div><div><div>+ clang++ -c -g -Os -fPIC -nostdinc++ -std=c++11 -fstrict-aliasing -Wall -Wextra -Wshadow -Wconversion -Wpadded -Wstrict-aliasing=2 -Wstrict-overflow=4 -U__STRICT_ANSI__ -I../include ../src/thread.cpp</div>
</div><div><div>+ for FILE in '../src/*.cpp'</div></div><div><div>+ clang++ -c -g -Os -fPIC -nostdinc++ -std=c++11 -fstrict-aliasing -Wall -Wextra -Wshadow -Wconversion -Wpadded -Wstrict-aliasing=2 -Wstrict-overflow=4 -U__STRICT_ANSI__ -I../include ../src/typeinfo.cpp</div>
</div><div><div>+ for FILE in '../src/*.cpp'</div></div><div><div>+ clang++ -c -g -Os -fPIC -nostdinc++ -std=c++11 -fstrict-aliasing -Wall -Wextra -Wshadow -Wconversion -Wpadded -Wstrict-aliasing=2 -Wstrict-overflow=4 -U__STRICT_ANSI__ -I../include ../src/utility.cpp</div>
</div><div><div>+ for FILE in '../src/*.cpp'</div></div><div><div>+ clang++ -c -g -Os -fPIC -nostdinc++ -std=c++11 -fstrict-aliasing -Wall -Wextra -Wshadow -Wconversion -Wpadded -Wstrict-aliasing=2 -Wstrict-overflow=4 -U__STRICT_ANSI__ -I../include ../src/valarray.cpp</div>
</div><div><div>+ case $TRIPLE in</div></div><div><div>+ clang algorithm.o bind.o chrono.o condition_variable.o debug.o exception.o future.o hash.o ios.o iostream.o locale.o memory.o mutex.o new.o optional.o random.o regex.o shared_mutex.o stdexcept.o string.o strstream.o system_error.o thread.o typeinfo.o utility.o valarray.o -fPIC -o libc++.so.1.0 -shared -nodefaultlibs -Wl,-soname,libc++.so.1 -lpthread -lrt -lc -lstdc++ -nostdinc++ -std=c++11 -fstrict-aliasing -Wall -Wextra -Wshadow -Wconversion -Wpadded -Wstrict-aliasing=2 -Wstrict-overflow=4 -U__STRICT_ANSI__</div>
</div><div><div>clang: warning: argument unused during compilation: '-nostdinc++'</div></div><div><div>clang: warning: argument unused during compilation: '-std=c++11'</div></div><div><div><b>ld: unknown option: -soname</b></div>
</div><div><div><b>clang: error: linker command failed with exit code 1 (use -v to see invocation)</b></div></div><div><br></div><div><br></div></blockquote><div><br></div></div>