https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104118
Bug ID: 104118 Summary: gcc11 fails to build R for ppc64 on 10.5.8 Product: gcc Version: 11.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: vital.had at gmail dot com CC: iains at gcc dot gnu.org Target Milestone: --- Host: powerpc-apple-darwin9 Target: powerpc-apple-darwin9 Build: powerpc-apple-darwin9 Created attachment 52234 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52234&action=edit i file for the error Error where the build fails: /opt/svacchanda/gcc11/bin/gcc -m64 -O2 -dynamiclib -Wl,-headerpad_max_install_names -undefined dynamic_lookup -single_module -multiply_defined suppress -fopenmp -L /opt/local/lib -L /usr/X11/lib -install_name libR.dylib -compatibility_version 4.1.0 -current_version 4.1.2 -headerpad_max_install_names -o libR.dylib CommandLineArgs.o Rdynload.o Renviron.o RNG.o agrep.o altclasses.o altrep.o apply.o arithmetic.o array.o attrib.o bind.o builtin.o character.o coerce.o colors.o complex.o connections.o context.o cum.o dcf.o datetime.o debug.o deparse.o devices.o dotcode.o dounzip.o dstruct.o duplicate.o edit.o engine.o envir.o errors.o eval.o format.o gevents.o gram.o gram-ex.o graphics.o grep.o identical.o inlined.o inspect.o internet.o iosupport.o lapack.o list.o localecharset.o logic.o main.o mapply.o match.o memory.o names.o objects.o options.o paste.o patterns.o platform.o plot.o plot3d.o plotmath.o print.o printarray.o printvector.o printutils.o qsort.o radixsort.o random.o raw.o registration.o relop.o rlocale.o saveload.o scan.o seq.o serialize.o sort.o source.o split.o sprintf.o startup.o subassign.o subscript.o subset.o summary.o sysutils.o times.o unique.o util.o version.o g_alab_her.o g_cntrlify.o g_fontdb.o g_her_glyph.o xxxpr.o `ls ../unix/*.o ../appl/*.o ../nmath/*.o` ../extra/tre/libtre.a ../extra/tzone/libtz.a -L"../../lib" -lRblas -lgfortran -lm -lef_ppc -lintl -Wl,-framework -Wl,CoreFoundation -lreadline -L/opt/local/lib -lpcre2-8 -llzma -lbz2 -lz -licucore -ldl -lm -liconv ld: absolute addressing (perhaps -mdynamic-no-pic) used in _walker_ProbSampleReplace from random.o not allowed in slidable image. Use '-read_only_relocs suppress' to enable text relocs collect2: error: ld returned 1 exit status make[3]: *** [libR.dylib] Error 1 make[2]: *** [R] Error 2 make[1]: *** [R] Error 1 make: *** [R] Error 1 Command producing the faulty object: /opt/svacchanda/gcc11/bin/gcc -m64 -O2 -I../../../src/extra -I. -I../../src/include -I../../../src/include -I/usr/local/include -I../../../src/nmath -DHAVE_CONFIG_H -fopenmp -fPIC -I /opt/local/include -I /usr/X11/include -c ../../../src/main/random.c -o random.o