https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88431

            Bug ID: 88431
           Summary: link errors on build
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: d
          Assignee: ibuclaw at gdcproject dot org
          Reporter: dcb314 at hotmail dot com
  Target Milestone: ---

For this configure line:

../trunk/configure --prefix=/home/dcb/gcc/results.266950 \
        --disable-multilib \
        --disable-werror \
        --enable-checking=df,extra,fold,rtl,yes \
        --enable-languages=c,c++,d,fortran

sed 's/-O2/-O3 -march=native -Wlogical-op/' < Makefile > Makefile.tmp
mv Makefile.tmp Makefile

I got:

/home/dcb/gcc/working/./gcc/xgcc -shared-libgcc -B/home/dcb/gcc/working/./gcc
-nostdinc++ -L/home/dcb/gcc/working/x86_64-pc-linux-gnu/libstdc++-v3/src
-L/home/dcb/gcc/working/x86_64-pc-linux-gnu/libstdc++-v3/src/.libs
-L/home/dcb/gcc/working/x86_64-pc-linux-gnu/libstdc++-v3/libsupc++/.libs
-B/home/dcb/gcc/results.266950/x86_64-pc-linux-gnu/bin/
-B/home/dcb/gcc/results.266950/x86_64-pc-linux-gnu/lib/ -isystem
/home/dcb/gcc/results.266950/x86_64-pc-linux-gnu/include -isystem
/home/dcb/gcc/results.266950/x86_64-pc-linux-gnu/sys-include -D_GNU_SOURCE
-D_DEBUG -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS
-I. -I../../../../trunk/libsanitizer/lsan -I.. -I
../../../../trunk/libsanitizer/include -I ../../../../trunk/libsanitizer -Wall
-W -Wno-unused-parameter -Wwrite-strings -pedantic -Wno-long-long -fPIC
-fno-builtin -fno-exceptions -fno-rtti -fomit-frame-pointer -funwind-tables
-fvisibility=hidden -Wno-variadic-macros -I../../libstdc++-v3/include
-I../../libstdc++-v3/include/x86_64-pc-linux-gnu
-I../../../../trunk/libsanitizer/../libstdc++-v3/libsupc++ -std=gnu++11 -g -O3
-march=native -Wlogical-op -D_GNU_SOURCE -MT lsan_allocator.lo -MD -MP -MF
.deps/lsan_allocator.Tpo -c
../../../../trunk/libsanitizer/lsan/lsan_allocator.cc  -fPIC -DPIC -o
.libs/lsan_allocator.o
/usr/bin/ld: core/.libs/atomic.o: relocation R_X86_64_32S against hidden symbol
`gdc.dso_slot' can not be used when making a shared object
/usr/bin/ld: core/.libs/attribute.o: relocation R_X86_64_32S against hidden
symbol `gdc.dso_slot' can not be used when making a shared object
/usr/bin/ld: core/.libs/bitop.o: relocation R_X86_64_32 against
`.rodata.str1.8' can not be used when making a shared object; recompile with
-fPIC

Reply via email to