Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 23 Jun 2018 06:36:50 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 229246] -Wl,--unresolved-symbols=ignore-in-object-files fails for shared libraries
Message-ID:  <bug-229246-227@https.bugs.freebsd.org/bugzilla/>

index | next in thread | raw e-mail

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@FreeBSD.org
          Reporter: yuri@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@GCC_3.0'
> /usr/lib/libcxxrt.so: undefined reference to `_Unwind_SetIP@GCC_3.0'
> /usr/lib/libcxxrt.so: undefined reference to `_Unwind_GetIP@GCC_3.0'
> /lib/libc.so.7: undefined reference to `__progname'
> /usr/lib/libcxxrt.so: undefined reference to `_Unwind_RaiseException@GCC_3.0'
> /usr/lib/libcxxrt.so: undefined reference to `_Unwind_GetLanguageSpecificData@GCC_3.0'
> /usr/lib/libcxxrt.so: undefined reference to `_Unwind_GetRegionStart@GCC_3.0'
> /usr/lib/libcxxrt.so: undefined reference to `_Unwind_SetGR@GCC_3.0'
> /usr/lib/libc++.so.1: undefined reference to `_Unwind_Resume@GCC_3.0'
> /usr/lib/libcxxrt.so: undefined reference to `_Unwind_Backtrace@GCC_3.3'
> /usr/lib/libcxxrt.so: undefined reference to `_Unwind_Resume_or_Rethrow@GCC_3.3'
> /lib/libc.so.7: undefined reference to `environ'
> /usr/lib/libcxxrt.so: undefined reference to `_Unwind_GetTextRelBase@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.

help

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