Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Since DMDFE 2.061 build as shared lib is broken #291

Closed
bioinfornatics opened this issue Feb 13, 2013 · 4 comments
Closed

Since DMDFE 2.061 build as shared lib is broken #291

bioinfornatics opened this issue Feb 13, 2013 · 4 comments

Comments

@bioinfornatics
Copy link
Contributor

Since DMDFE 2.061 build as shared lib is broken

/usr/bin/cc  -fPIC -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4  -m64 -mtune=generic   -Wl,-z,relro  -shared -Wl,-soname,libphobos-ldc-debug.so.61 -o ../lib64/libphobos-ldc-debug.so.2.0.61 CMakeFiles/phobos-ldc-debug_64.dir/phobos/etc/c/zlib/zutil.c.o CMakeFiles/phobos-ldc-debug_64.dir/phobos/etc/c/zlib/gzwrite.c.o CMakeFiles/phobos-ldc-debug_64.dir/phobos/etc/c/zlib/gzclose.c.o CMakeFiles/phobos-ldc-debug_64.dir/phobos/etc/c/zlib/crc32.c.o CMakeFiles/phobos-ldc-debug_64.dir/phobos/etc/c/zlib/gzlib.c.o CMakeFiles/phobos-ldc-debug_64.dir/phobos/etc/c/zlib/uncompr.c.o CMakeFiles/phobos-ldc-debug_64.dir/phobos/etc/c/zlib/infback.c.o CMakeFiles/phobos-ldc-debug_64.dir/phobos/etc/c/zlib/inflate.c.o CMakeFiles/phobos-ldc-debug_64.dir/phobos/etc/c/zlib/trees.c.o CMakeFiles/phobos-ldc-debug_64.dir/phobos/etc/c/zlib/adler32.c.o CMakeFiles/phobos-ldc-debug_64.dir/phobos/etc/c/zlib/gzread.c.o CMakeFiles/phobos-ldc-debug_64.dir/phobos/etc/c/zlib/inftrees.c.o CMakeFiles/phobos-ldc-debug_64.dir/phobos/etc/c/zlib/compress.c.o CMakeFiles/phobos-ldc-debug_64.dir/phobos/etc/c/zlib/deflate.c.o CMakeFiles/phobos-ldc-debug_64.dir/phobos/etc/c/zlib/inffast.c.o CMakeFiles/phobos-ldc-debug_64.dir/druntime/src/core/stdc/errno.c.o CMakeFiles/phobos-ldc-debug_64.dir/druntime/src/rt/complex.c.o std/range-debug_64.o std/parallelism-debug_64.o std/stdio-debug_64.o std/functional-debug_64.o std/base64-debug_64.o std/socketstream-debug_64.o std/regexp-debug_64.o std/complex-debug_64.o std/uri-debug_64.o std/variant-debug_64.o std/getopt-debug_64.o std/traits-debug_64.o std/regex-debug_64.o std/zip-debug_64.o std/numeric-debug_64.o std/metastrings-debug_64.o std/json-debug_64.o std/math-debug_64.o std/format-debug_64.o std/signals-debug_64.o std/conv-debug_64.o std/encoding-debug_64.o std/zlib-debug_64.o std/utf-debug_64.o std/syserror-debug_64.o std/cstream-debug_64.o std/path-debug_64.o std/uuid-debug_64.o std/mmfile-debug_64.o std/container-debug_64.o std/stream-debug_64.o std/random-debug_64.o std/typetuple-debug_64.o std/uni-debug_64.o std/system-debug_64.o std/csv-debug_64.o std/md5-debug_64.o std/array-debug_64.o std/socket-debug_64.o std/stdint-debug_64.o std/perf-debug_64.o std/bitmanip-debug_64.o std/process-debug_64.o std/algorithm-debug_64.o std/string-debug_64.o std/typecons-debug_64.o std/demangle-debug_64.o std/file-debug_64.o std/bigint-debug_64.o std/xml-debug_64.o std/stdiobase-debug_64.o std/typelist-debug_64.o std/mathspecial-debug_64.o std/cpuid-debug_64.o std/exception-debug_64.o std/ascii-debug_64.o std/outbuffer-debug_64.o std/concurrency-debug_64.o std/compiler-debug_64.o std/datetime-debug_64.o std/ctype-debug_64.o std/digest/ripemd-debug_64.o std/digest/sha-debug_64.o std/digest/md-debug_64.o std/digest/digest-debug_64.o std/digest/crc-debug_64.o std/net/curl-debug_64.o std/net/isemail-debug_64.o std/internal/digest/sha_SSSE3-debug_64.o std/internal/math/biguintx86-debug_64.o std/internal/math/biguintnoasm-debug_64.o std/internal/math/biguintcore-debug_64.o std/internal/math/gammafunction-debug_64.o std/internal/math/errorfunction-debug_64.o std/internal/uni_tab-debug_64.o std/internal/windows/advapi32-debug_64.o std/internal/uni-debug_64.o std/internal/processinit-debug_64.o std/c/stdio-debug_64.o std/c/wcharh-debug_64.o std/c/fenv-debug_64.o std/c/stddef-debug_64.o std/c/time-debug_64.o std/c/stdarg-debug_64.o std/c/math-debug_64.o std/c/locale-debug_64.o std/c/process-debug_64.o std/c/string-debug_64.o std/c/stdlib-debug_64.o std/c/linux/tipc-debug_64.o std/c/linux/termios-debug_64.o std/c/linux/linux-debug_64.o std/c/linux/socket-debug_64.o std/c/linux/linuxextern-debug_64.o std/c/linux/pthread-debug_64.o etc/c/curl-debug_64.o etc/c/sqlite3-debug_64.o etc/c/zlib-debug_64.o crc32-debug_64.o src/core/atomic-debug_64.o src/core/time-debug_64.o src/core/math-debug_64.o src/core/bitop-debug_64.o src/core/vararg-debug_64.o src/core/simd-debug_64.o src/core/thread-debug_64.o src/core/demangle-debug_64.o src/core/cpuid-debug_64.o src/core/exception-debug_64.o src/core/runtime-debug_64.o src/core/memory-debug_64.o src/core/sync/semaphore-debug_64.o src/core/sync/barrier-debug_64.o src/core/sync/config-debug_64.o src/core/sync/condition-debug_64.o src/core/sync/rwmutex-debug_64.o src/core/sync/mutex-debug_64.o src/core/sync/exception-debug_64.o src/core/sys/posix/netdb-debug_64.o src/core/sys/posix/semaphore-debug_64.o src/core/sys/posix/stdio-debug_64.o src/core/sys/posix/poll-debug_64.o src/core/sys/posix/dlfcn-debug_64.o src/core/sys/posix/termios-debug_64.o src/core/sys/posix/sched-debug_64.o src/core/sys/posix/setjmp-debug_64.o src/core/sys/posix/arpa/inet-debug_64.o src/core/sys/posix/time-debug_64.o src/core/sys/posix/config-debug_64.o src/core/sys/posix/utime-debug_64.o src/core/sys/posix/netinet/in_-debug_64.o src/core/sys/posix/netinet/tcp-debug_64.o src/core/sys/posix/unistd-debug_64.o src/core/sys/posix/inttypes-debug_64.o src/core/sys/posix/signal-debug_64.o src/core/sys/posix/pwd-debug_64.o src/core/sys/posix/net/if_-debug_64.o src/core/sys/posix/dirent-debug_64.o src/core/sys/posix/stdlib-debug_64.o src/core/sys/posix/ucontext-debug_64.o src/core/sys/posix/pthread-debug_64.o src/core/sys/posix/fcntl-debug_64.o src/core/sys/posix/sys/statvfs-debug_64.o src/core/sys/posix/sys/select-debug_64.o src/core/sys/posix/sys/mman-debug_64.o src/core/sys/posix/sys/ioctl-debug_64.o src/core/sys/posix/sys/types-debug_64.o src/core/sys/posix/sys/stat-debug_64.o src/core/sys/posix/sys/time-debug_64.o src/core/sys/posix/sys/utsname-debug_64.o src/core/sys/posix/sys/socket-debug_64.o src/core/sys/posix/sys/ipc-debug_64.o src/core/sys/posix/sys/un-debug_64.o src/core/sys/posix/sys/uio-debug_64.o src/core/sys/posix/sys/shm-debug_64.o src/core/sys/posix/sys/wait-debug_64.o src/core/stdc/stdio-debug_64.o src/core/stdc/limits-debug_64.o src/core/stdc/complex-debug_64.o src/core/stdc/tgmath-debug_64.o src/core/stdc/errno-debug_64.o src/core/stdc/wctype-debug_64.o src/core/stdc/fenv-debug_64.o src/core/stdc/stddef-debug_64.o src/core/stdc/time-debug_64.o src/core/stdc/stdarg-debug_64.o src/core/stdc/config-debug_64.o src/core/stdc/float_-debug_64.o src/core/stdc/math-debug_64.o src/core/stdc/inttypes-debug_64.o src/core/stdc/signal-debug_64.o src/core/stdc/wchar_-debug_64.o src/core/stdc/stdint-debug_64.o src/core/stdc/locale-debug_64.o src/core/stdc/string-debug_64.o src/core/stdc/stdlib-debug_64.o src/core/stdc/ctype-debug_64.o src/ldc/eh-debug_64.o src/ldc/arrayinit-debug_64.o src/ldc/longdouble-debug_64.o src/ldc/memory-debug_64.o src/object_-debug_64.o src/gc/gcstats-debug_64.o src/gc/gcx-debug_64.o src/gc/gcbits-debug_64.o src/gc/gcalloc-debug_64.o src/gc/gc-debug_64.o src/rt/aApplyR-debug_64.o src/rt/arrayshort-debug_64.o src/rt/arraybyte-debug_64.o src/rt/qsort-debug_64.o src/rt/arrayfloat-debug_64.o src/rt/arraycat-debug_64.o src/rt/aaA-debug_64.o src/rt/obj-debug_64.o src/rt/memset-debug_64.o src/rt/switch_-debug_64.o src/rt/cmath2-debug_64.o src/rt/cast_-debug_64.o src/rt/typeinfo/ti_ubyte-debug_64.o src/rt/typeinfo/ti_void-debug_64.o src/rt/typeinfo/ti_int-debug_64.o src/rt/typeinfo/ti_ulong-debug_64.o src/rt/typeinfo/ti_Afloat-debug_64.o src/rt/typeinfo/ti_Aint-debug_64.o src/rt/typeinfo/ti_ireal-debug_64.o src/rt/typeinfo/ti_dchar-debug_64.o src/rt/typeinfo/ti_Ag-debug_64.o src/rt/typeinfo/ti_Acfloat-debug_64.o src/rt/typeinfo/ti_wchar-debug_64.o src/rt/typeinfo/ti_float-debug_64.o src/rt/typeinfo/ti_idouble-debug_64.o src/rt/typeinfo/ti_C-debug_64.o src/rt/typeinfo/ti_cfloat-debug_64.o src/rt/typeinfo/ti_ifloat-debug_64.o src/rt/typeinfo/ti_uint-debug_64.o src/rt/typeinfo/ti_short-debug_64.o src/rt/typeinfo/ti_double-debug_64.o src/rt/typeinfo/ti_AC-debug_64.o src/rt/typeinfo/ti_cdouble-debug_64.o src/rt/typeinfo/ti_creal-debug_64.o src/rt/typeinfo/ti_long-debug_64.o src/rt/typeinfo/ti_char-debug_64.o src/rt/typeinfo/ti_byte-debug_64.o src/rt/typeinfo/ti_real-debug_64.o src/rt/typeinfo/ti_Adouble-debug_64.o src/rt/typeinfo/ti_Along-debug_64.o src/rt/typeinfo/ti_delegate-debug_64.o src/rt/typeinfo/ti_ushort-debug_64.o src/rt/typeinfo/ti_Ashort-debug_64.o src/rt/typeinfo/ti_Areal-debug_64.o src/rt/typeinfo/ti_Acreal-debug_64.o src/rt/typeinfo/ti_ptr-debug_64.o src/rt/typeinfo/ti_Acdouble-debug_64.o src/rt/invariant-debug_64.o src/rt/util/hash-debug_64.o src/rt/util/utf-debug_64.o src/rt/util/console-debug_64.o src/rt/util/string-debug_64.o src/rt/image-debug_64.o src/rt/lifetime-debug_64.o src/rt/arrayreal-debug_64.o src/rt/tlsgc-debug_64.o src/rt/arrayassign-debug_64.o src/rt/arraydouble-debug_64.o src/rt/arraycast-debug_64.o src/rt/minfo-debug_64.o src/rt/dmain2-debug_64.o src/rt/invariant_-debug_64.o src/rt/cover-debug_64.o src/rt/adi-debug_64.o src/rt/arrayint-debug_64.o src/rt/aApply-debug_64.o src/rt/monitor_-debug_64.o src/rt/critical_-debug_64.o src/rt/memory-debug_64.o -lcurl 
/usr/bin/ld: std/internal/digest/sha_SSSE3-debug_64.o: relocation R_X86_64_32S against `_D3std8internal6digest9sha_SSSE315bswap_shufb_ctlyG4k' can not be used when making a shared object; recompile with -fPIC
std/internal/digest/sha_SSSE3-debug_64.o: could not read symbols: Bad value

in more here i see -lcurl but does we need to add -lzlib a is used for std.zlib?

@dnadlinger
Copy link
Member

No, druntime ships with its own embedded copy of zlib.

@bioinfornatics
Copy link
Contributor Author

oh ok embedded a lib is bad but I will do with

In any case the problem here is not about zlib
But ldc build in shared mode with dmdfe 2.061
Latest ldc rev at this date
LLVM 3.1

@bioinfornatics
Copy link
Contributor Author

what is the latest rev with dmdfe 2.060 into runtime/phobos/ submodule ?

@dnadlinger
Copy link
Member

Should be fixed in Git master.

redstar pushed a commit that referenced this issue Sep 27, 2014
__simd implementation available only if D_SIMD.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants