Re: gcc build errors out with 'Error: symbol `_GLOBAL__sub_I.00099_tzdb.cc' is already defined'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, 22 Feb 2025 at 18:41, Saifi Khan
<saifi@xxxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
>
> On Sat, 22 Feb 2025, Jonathan Wakely via Gcc-help wrote:
>
> >
> > You didn't say how your configuring GCC but it looks like you're using
> > vtable-verify and so is the bug reporter. That's probably the cause, maybe
> > there's a bug in the vtv codegen.
> >
>
> Hey Jonathan. Thanks for your kind reply.
>
> Here is the config.sh script that is run.
>
>
> DIR_SRC=/opt/gcc/src
> DIR_DST=/opt/gcc
>
> CC="gcc"  CXX="g++"  CFLAGS="-O2 -pipe"  CXXFLAGS="${CFLAGS}" ${DIR_SRC}/configure \
>    --prefix=${DIR_DST}               \
>    --exec-prefix=${DIR_DST}          \
>    --datarootdir=${DIR_DST}/doc/share   \
>    --datadir=${DIR_DST}/doc          \
>    --docdir=${DIR_DST}/doc           \
>    --htmldir=${DIR_DST}/doc          \
>    --mandir=${DIR_DST}/doc/man       \
>    --infodir=${DIR_DST}/doc/info     \
>    --enable-languages=c,jit,c++      \
>    --enable-bootstrap                \
>    --disable-multilib                \
>    --enable-libstdcxx                \
>    --enable-libstdcxx-debug          \
>    --enable-libstdcxx-backtrace=yes  \
>    --enable-shared                   \
>    --enable-host-shared              \
>    --enable-plugin                   \
>    --enable-default-pie              \
>    --enable-ld=yes                   \
>    --with-gnu-ld                     \
>    --with-linker-hash-style=gnu      \
>    --enable-linker-build-id          \
>    --enable-clocale=gnu              \
>    --enable-gnu-indirect-function    \
>    --enable-gnu-unique-object        \
>    --enable-libssp                   \
>    --enable-lto                      \
>    --enable-gcov                     \
>    --enable-vtable-verify            \
>    --enable-__cxa_atexit             \
>    --enable-threads=posix            \
>    --enable-tls                      \
>    --enable-werror                   \
>    --disable-unwind-exceptions       \
>    --enable-install-libiberty        \
>    --enable-c++-tools
>
> This is the script that i've been using for the last 2 years and it's only in this week that this error has been encountered.
>
> As things stand, is removing '--enable-vtable-verify' a good enough workaround ?

Yes.

I would remove nearly all your configure options. Most of them are
defaults, and things like --enable-vtable-verify are not the default
for very good reasons.



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux