From a24fb4f7f1a94b6dd32c542c75e462d7942dcf29 Mon Sep 17 00:00:00 2001 From: David Abdurachmanov Date: Thu, 24 Jan 2019 12:07:18 +0100 Subject: [PATCH] Enable bootstrap again linker segfaulted trying to link libphobos BUILDSTDERR: collect2: fatal error: ld terminated with signal 11 [Segmentation fault], core dumped BUILDSTDERR: /usr/bin/ld: core/.libs/atomic.o: relocation R_RISCV_HI20 against `gdc.dso_initialized' can not be used when making a shared object; recompile with -fPIC (for multiple files from libphobos) Signed-off-by: David Abdurachmanov --- gcc.spec | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gcc.spec b/gcc.spec index cf2f6ed..cbbb632 100644 --- a/gcc.spec +++ b/gcc.spec @@ -101,7 +101,7 @@ Summary: Various compilers (C, C++, Objective-C, ...) Name: gcc Version: %{gcc_version} -Release: %{gcc_release}.davidlt.3%{?dist} +Release: %{gcc_release}.davidlt.4%{?dist} # libgcc, libgfortran, libgomp, libstdc++ and crtstuff have # GCC Runtime Exception. License: GPLv3+ and GPLv3+ with exceptions and GPLv2+ with exceptions and LGPLv2+ and BSD @@ -1096,12 +1096,12 @@ CC="$CC" CXX="$CXX" CFLAGS="$OPT_FLAGS" \ CXXFLAGS="`echo " $OPT_FLAGS " | sed 's/ -Wall / /g;s/ -fexceptions / /g' \ | sed 's/ -Wformat-security / -Wformat -Wformat-security /'`" \ XCFLAGS="$OPT_FLAGS" TCFLAGS="$OPT_FLAGS" \ - ../configure --disable-bootstrap \ + ../configure --enable-bootstrap \ --enable-languages=c,c++,fortran${enablelobjc}${enablelada}${enablelgo}${enableld},lto \ $CONFIGURE_OPTS %ifarch sparc sparcv9 sparc64 riscv64 -make %{?_smp_mflags} BOOT_CFLAGS="$OPT_FLAGS" +make %{?_smp_mflags} BOOT_CFLAGS="$OPT_FLAGS" bootstrap %else make %{?_smp_mflags} BOOT_CFLAGS="$OPT_FLAGS" profiledbootstrap %endif