Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 607392 - sys-devel/clang: does not support -rtlib=compiler-rt on FreeBSD
Summary: sys-devel/clang: does not support -rtlib=compiler-rt on FreeBSD
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: FreeBSD (show other bugs)
Hardware: All FreeBSD
: Normal normal (vote)
Assignee: LLVM support project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-01-27 10:48 UTC by Yuta SATOH
Modified: 2019-10-11 17:37 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yuta SATOH 2017-01-27 10:48:26 UTC
USE="default-compiler-rt" is not available on FreeBSD.


FYI,
https://github.com/llvm-mirror/clang/blob/9c01f5c7390a87a62e79cba9dc336311b6fdd28e/lib/Driver/Tools.cpp#L9251
https://github.com/llvm-mirror/clang/blob/9c01f5c7390a87a62e79cba9dc336311b6fdd28e/lib/Driver/Tools.cpp#L9984


libgcc* is provided by sys-freebsd/freebsd-lib on Gentoo/FreeBSD.
# equery f sys-freebsd/freebsd-lib | grep libgcc
/usr/lib/libgcc.a
/usr/lib/libgcc_eh.a
/usr/lib/libgcc_s.so
/usr/lib/libgcc_s.so.1
/usr/lib32/libgcc.a
/usr/lib32/libgcc_eh.a
/usr/lib32/libgcc_s.so
/usr/lib32/libgcc_s.so.1
# ls -lha /usr/lib/libgcc*
lrwxrwxrwx  1 root  wheel    16B Dec 16 00:14 /usr/lib/libgcc.a -> libcompiler_rt.a
-r--r--r--  1 root  wheel    51K Dec 16 00:14 /usr/lib/libgcc_eh.a
lrwxrwxrwx  1 root  wheel    13B Dec 16 00:14 /usr/lib/libgcc_s.so -> libgcc_s.so.1
-r-xr-xr-x  1 root  wheel    58K Dec 16 00:14 /usr/lib/libgcc_s.so.1


# emerge -pv --nodeps sys-devel/llvm
[ebuild   R    ] sys-devel/llvm-3.9.1-r1:0/3.9.1::gentoo  USE="(clang) (default-compiler-rt) (default-libcxx) libffi ncurses sanitize (static-analyzer) -debug -doc (-gold) -libedit (-lldb) -multitarget -ocaml -python {-test} -xml" ABI_X86="(64) -32 (-x32)" LLVM_TARGETS="BPF (X86) -AArch64 -AMDGPU -ARM -Hexagon -MSP430 -Mips -NVPTX -PowerPC -Sparc -SystemZ -XCore" PYTHON_TARGETS="python2_7" 0 KiB

# clang -v -### -x c - 2>&1
clang version 3.9.1 (tags/RELEASE_391/final)
Target: x86_64-gentoo-freebsd11.0
Thread model: posix
InstalledDir: /usr/bin
 "/usr/bin/clang-3.9" "-cc1" "-triple" "x86_64-gentoo-freebsd11.0" "-emit-obj" "-mrelax-all" "-disable-free" "-disable-llvm-verifier" "-discard-value-names" "-main-file-name" "-" "-mrelocation-model" "static" "-mthread-model" "posix" "-mdisable-fp-elim" "-masm-verbose" "-mconstructor-aliases" "-munwind-tables" "-target-cpu" "x86-64" "-v" "-dwarf-column-info" "-debugger-tuning=gdb" "-resource-dir" "/usr/bin/../lib/clang/3.9.1" "-fdebug-compilation-dir" "/usr/portage/sys-devel/llvm" "-ferror-limit" "19" "-fmessage-length" "173" "-fobjc-runtime=gnustep" "-fdiagnostics-show-option" "-fcolor-diagnostics" "-o" "/tmp/--3c8bba.o" "-x" "c" "-"
 "/usr/bin/x86_64-gentoo-freebsd11.0-ld" "--eh-frame-hdr" "-dynamic-linker" "/libexec/ld-elf.so.1" "--hash-style=both" "--enable-new-dtags" "-o" "a.out" "/usr/lib/crt1.o" "/usr/lib/crti.o" "/usr/lib/crtbegin.o" "-L/usr/lib" "/tmp/--3c8bba.o" "-lgcc" "--as-needed" "-lgcc_s" "--no-as-needed" "-lc" "-lgcc" "--as-needed" "-lgcc_s" "--no-as-needed" "/usr/lib/crtend.o" "/usr/lib/crtn.o"

# clang -rtlib=compiler-rt -v -### -x c - 2>&1
clang version 3.9.1 (tags/RELEASE_391/final)
Target: x86_64-gentoo-freebsd11.0
Thread model: posix
InstalledDir: /usr/bin
clang-3.9: warning: argument unused during compilation: '-rtlib=compiler-rt'
 "/usr/bin/clang-3.9" "-cc1" "-triple" "x86_64-gentoo-freebsd11.0" "-emit-obj" "-mrelax-all" "-disable-free" "-disable-llvm-verifier" "-discard-value-names" "-main-file-name" "-" "-mrelocation-model" "static" "-mthread-model" "posix" "-mdisable-fp-elim" "-masm-verbose" "-mconstructor-aliases" "-munwind-tables" "-target-cpu" "x86-64" "-v" "-dwarf-column-info" "-debugger-tuning=gdb" "-resource-dir" "/usr/bin/../lib/clang/3.9.1" "-fdebug-compilation-dir" "/usr/portage/sys-devel/llvm" "-ferror-limit" "19" "-fmessage-length" "173" "-fobjc-runtime=gnustep" "-fdiagnostics-show-option" "-fcolor-diagnostics" "-o" "/tmp/--6d1b67.o" "-x" "c" "-"
 "/usr/bin/x86_64-gentoo-freebsd11.0-ld" "--eh-frame-hdr" "-dynamic-linker" "/libexec/ld-elf.so.1" "--hash-style=both" "--enable-new-dtags" "-o" "a.out" "/usr/lib/crt1.o" "/usr/lib/crti.o" "/usr/lib/crtbegin.o" "-L/usr/lib" "/tmp/--6d1b67.o" "-lgcc" "--as-needed" "-lgcc_s" "--no-as-needed" "-lc" "-lgcc" "--as-needed" "-lgcc_s" "--no-as-needed" "/usr/lib/crtend.o" "/usr/lib/crtn.o"
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2019-10-11 17:37:11 UTC
*-fbsd is gone.