[Bug 229246] -Wl,--unresolved-symbols=ignore-in-object-files fails for shared libraries

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sat Jun 23 06:36:53 UTC 2018


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=229246

            Bug ID: 229246
           Summary: -Wl,--unresolved-symbols=ignore-in-object-files fails
                    for shared libraries
           Product: Base System
           Version: 11.1-STABLE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: misc
          Assignee: bugs at FreeBSD.org
          Reporter: yuri at freebsd.org

This command line:
> c++ -Wl,--unresolved-symbols=ignore-in-object-files -shared -o libblank.so blank.cpp
fails:
> /usr/lib/libcxxrt.so: undefined reference to `_Unwind_GetDataRelBase at GCC_3.0'
> /usr/lib/libcxxrt.so: undefined reference to `_Unwind_SetIP at GCC_3.0'
> /usr/lib/libcxxrt.so: undefined reference to `_Unwind_GetIP at GCC_3.0'
> /lib/libc.so.7: undefined reference to `__progname'
> /usr/lib/libcxxrt.so: undefined reference to `_Unwind_RaiseException at GCC_3.0'
> /usr/lib/libcxxrt.so: undefined reference to `_Unwind_GetLanguageSpecificData at GCC_3.0'
> /usr/lib/libcxxrt.so: undefined reference to `_Unwind_GetRegionStart at GCC_3.0'
> /usr/lib/libcxxrt.so: undefined reference to `_Unwind_SetGR at GCC_3.0'
> /usr/lib/libc++.so.1: undefined reference to `_Unwind_Resume at GCC_3.0'
> /usr/lib/libcxxrt.so: undefined reference to `_Unwind_Backtrace at GCC_3.3'
> /usr/lib/libcxxrt.so: undefined reference to `_Unwind_Resume_or_Rethrow at GCC_3.3'
> /lib/libc.so.7: undefined reference to `environ'
> /usr/lib/libcxxrt.so: undefined reference to `_Unwind_GetTextRelBase at GCC_3.0'
> clang-6.0: error: linker command failed with exit code 1 (use -v to see invocation)

There are no object files that user supplied, so
-Wl,--unresolved-symbols=ignore-in-object-files should be practically a noop?

I found this error in one of the projects, and it seems like a bug in the
compiler to me. It should link whatever it links normally without this flag.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list