lu_zero at gentoo.org
2006-Jun-12 13:41 UTC
[Rd] Link error with glibc-2.4 on linux/PPC (PR#8967)
Full_Name: Luca Barbato Version: 2.3.1 OS: Gentoo Linux/PPC Submission from: (NULL) (151.44.163.144) system informations Portage 2.1 (default-linux/ppc/ppc32/2006.0/G4, gcc-4.1.1, glibc-2.4-r3, 2.6.17-rc5 ppc) ================================================================System uname: 2.6.17-rc5 ppc 7447A, altivec supported Gentoo Base System version 1.12.1 distcc 2.18.3 powerpc-unknown-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] dev-lang/python: 2.4.3-r1 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: [Not Present] dev-util/confcache: 0.4.2-r1 sys-apps/sandbox: 1.2.18.1 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2 sys-devel/binutils: 2.16.1-r2 sys-devel/gcc-config: 1.3.13-r2 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r4 ACCEPT_KEYWORDS="ppc ~ppc" AUTOCLEAN="yes" CBUILD="powerpc-unknown-linux-gnu" CFLAGS="-O2 -mcpu=G4 -mtune=G4 -fno-strict-aliasing -pipe -maltivec -mabi=altivec" CHOST="powerpc-unknown-linux-gnu" Fault log gfortran -fpic -g -O2 -c xxxpr.f -o xxxpr.o powerpc-unknown-linux-gnu-gcc -shared -o libR.so Rembedded.o CConverters.o CommandLineArgs.o Rdynload.o Renviron.o RNG.o apply.o arithmetic.o apse.o array.o attrib.o base.o bind.o builtin.o character.o coerce.o colors.o complex.o connections.o context.o cov.o cum.o dcf.o datetime.o debug.o deparse.o deriv.o dotcode.o dounzip.o dstruct.o duplicate.o engine.o envir.o errors.o eval.o format.o fourier.o gevents.o gram.o gram-ex.o graphics.o identical.o internet.o iosupport.o lapack.o list.o localecharset.o logic.o main.o mapply.o match.o memory.o model.o names.o objects.o optim.o optimize.o options.o par.o paste.o pcre.o platform.o plot.o plot3d.o plotmath.o print.o printarray.o printvector.o printutils.o qsort.o random.o regex.o registration.o relop.o rlocale.o saveload.o scan.o seq.o serialize.o size.o sort.o source.o split.o sprintf.o startup.o subassign.o subscript.o subset.o summary.o sysutils.o unique.o util.o version.o vfonts.o xxxpr.o `ls ../appl/*.o ../nmath/*.o ../unix/*.o 2>/dev/null` -lgfortran -lm -lgcc_s ../extra/zlib/libz.a ../extra/bzip2/libbz2.a ../extra/pcre/libpcre.a -lreadline -ldl -lm /usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.1/../../../crti.o: In function `call_gmon_start': /var/tmp/portage/glibc-2.4-r3/work/build-default-powerpc-unknown-linux-gnu-nptl/csu/crti.S:18: relocation truncated to fit: R_PPC_GOT16 against undefined symbol `__gmon_start__' CConverters.o: In function `do_setToCConverterActiveStatus': CConverters.c:(.text+0x522): relocation truncated to fit: R_PPC_GOT16 against symbol `R_NaInt' defined in .sbss section in main.o CConverters.c:(.text+0x556): relocation truncated to fit: R_PPC_GOT16 against symbol `R_FunTab' defined in .data.rel section in names.o CConverters.o: In function `R_converterMatchClass': CConverters.c:(.text+0x71a): relocation truncated to fit: R_PPC_GOT16 against symbol `R_ClassSymbol' defined in .sbss section in main.o CConverters.c:(.text+0x7f2): relocation truncated to fit: R_PPC_GOT16 against symbol `R_NilValue' defined in .sbss section in main.o CommandLineArgs.o: In function `R_common_command_line': CommandLineArgs.c:(.text+0x5e): relocation truncated to fit: R_PPC_GOT16 against symbol `R_RestoreHistory' defined in .sbss section in main.o CommandLineArgs.c:(.text+0x722): relocation truncated to fit: R_PPC_GOT16 against symbol `R_StdinEnc' defined in .data section in main.o Rdynload.o: In function `GetFullDLLPath': Rdynload.c:(.text+0x6a): relocation truncated to fit: R_PPC_GOT16 against symbol `R_osDynSymbol' defined in .sdata section in Rdynload.o Rdynload.o: In function `Rf_MakeDLLInfo': Rdynload.c:(.text+0x1c2): relocation truncated to fit: R_PPC_GOT16 against symbol `R_ClassSymbol' defined in .sbss section in main.o Rdynload.c:(.text+0x1e6): relocation truncated to fit: R_PPC_GOT16 against symbol `R_NilValue' defined in .sbss section in main.o Rdynload.c:(.text+0x3a2): additional relocation overflows omitted from the output collect2: ld returned 1 exit status
ripley at stats.ox.ac.uk
2006-Jun-12 15:52 UTC
[Rd] Link error with glibc-2.4 on linux/PPC (PR#8967)
Does this system need -fPIC? R cannot be expected to know the settings needed in config.site for all possible systems, and as you will see from the notes in configure.ac, ppc32 does not appear to need -fPIC according to the gcc documentation. Indeed, the manual INSTALL asked you to read says: Variables such as @env{CPICFLAGS} are determined where possible by @command{configure}. Some systems allows two types of PIC flags, for example @samp{-fpic} and @samp{-fPIC}, and if they differ the first allows only a limited number of symbols in a shared library. Since @R{} as a shared library has about 6200 symbols, if in doubt use the larger version. and an issue discussed in the installation manual is hardly a bug. On Mon, 12 Jun 2006, lu_zero at gentoo.org wrote:> Full_Name: Luca Barbato > Version: 2.3.1 > OS: Gentoo Linux/PPC > Submission from: (NULL) (151.44.163.144) > > > system informations > > Portage 2.1 (default-linux/ppc/ppc32/2006.0/G4, gcc-4.1.1, glibc-2.4-r3, > 2.6.17-rc5 ppc) > ================================================================> System uname: 2.6.17-rc5 ppc 7447A, altivec supported > Gentoo Base System version 1.12.1 > distcc 2.18.3 powerpc-unknown-linux-gnu (protocols 1 and 2) (default port 3632) > [disabled] > dev-lang/python: 2.4.3-r1 > dev-python/pycrypto: 2.0.1-r5 > dev-util/ccache: [Not Present] > dev-util/confcache: 0.4.2-r1 > sys-apps/sandbox: 1.2.18.1 > sys-devel/autoconf: 2.13, 2.59-r7 > sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2 > sys-devel/binutils: 2.16.1-r2 > sys-devel/gcc-config: 1.3.13-r2 > sys-devel/libtool: 1.5.22 > virtual/os-headers: 2.6.11-r4 > ACCEPT_KEYWORDS="ppc ~ppc" > AUTOCLEAN="yes" > CBUILD="powerpc-unknown-linux-gnu" > CFLAGS="-O2 -mcpu=G4 -mtune=G4 -fno-strict-aliasing -pipe -maltivec > -mabi=altivec" > CHOST="powerpc-unknown-linux-gnu" > > Fault log > > gfortran -fpic -g -O2 -c xxxpr.f -o xxxpr.o > powerpc-unknown-linux-gnu-gcc -shared -o libR.so Rembedded.o CConverters.o > CommandLineArgs.o Rdynload.o Renviron.o RNG.o apply.o arithmetic.o apse.o > array.o attrib.o base.o bind.o builtin.o character.o coerce.o colors.o complex.o > connections.o context.o cov.o cum.o dcf.o datetime.o debug.o deparse.o deriv.o > dotcode.o dounzip.o dstruct.o duplicate.o engine.o envir.o errors.o eval.o > format.o fourier.o gevents.o gram.o gram-ex.o graphics.o identical.o internet.o > iosupport.o lapack.o list.o localecharset.o logic.o main.o mapply.o match.o > memory.o model.o names.o objects.o optim.o optimize.o options.o par.o paste.o > pcre.o platform.o plot.o plot3d.o plotmath.o print.o printarray.o printvector.o > printutils.o qsort.o random.o regex.o registration.o relop.o rlocale.o > saveload.o scan.o seq.o serialize.o size.o sort.o source.o split.o sprintf.o > startup.o subassign.o subscript.o subset.o summary.o sysutils.o unique.o util.o > version.o vfonts.o xxxpr.o `ls ../appl/*.o ../nmath/*.o ../unix/*.o > 2>/dev/null` -lgfortran -lm -lgcc_s ../extra/zlib/libz.a > ../extra/bzip2/libbz2.a ../extra/pcre/libpcre.a -lreadline -ldl -lm > /usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.1/../../../crti.o: In function > `call_gmon_start': > /var/tmp/portage/glibc-2.4-r3/work/build-default-powerpc-unknown-linux-gnu-nptl/csu/crti.S:18: > relocation truncated to fit: R_PPC_GOT16 against undefined symbol > `__gmon_start__' > CConverters.o: In function `do_setToCConverterActiveStatus': > CConverters.c:(.text+0x522): relocation truncated to fit: R_PPC_GOT16 against > symbol `R_NaInt' defined in .sbss section in main.o > CConverters.c:(.text+0x556): relocation truncated to fit: R_PPC_GOT16 against > symbol `R_FunTab' defined in .data.rel section in names.o > CConverters.o: In function `R_converterMatchClass': > CConverters.c:(.text+0x71a): relocation truncated to fit: R_PPC_GOT16 against > symbol `R_ClassSymbol' defined in .sbss section in main.o > CConverters.c:(.text+0x7f2): relocation truncated to fit: R_PPC_GOT16 against > symbol `R_NilValue' defined in .sbss section in main.o > CommandLineArgs.o: In function `R_common_command_line': > CommandLineArgs.c:(.text+0x5e): relocation truncated to fit: R_PPC_GOT16 against > symbol `R_RestoreHistory' defined in .sbss section in main.o > CommandLineArgs.c:(.text+0x722): relocation truncated to fit: R_PPC_GOT16 > against symbol `R_StdinEnc' defined in .data section in main.o > Rdynload.o: In function `GetFullDLLPath': > Rdynload.c:(.text+0x6a): relocation truncated to fit: R_PPC_GOT16 against symbol > `R_osDynSymbol' defined in .sdata section in Rdynload.o > Rdynload.o: In function `Rf_MakeDLLInfo': > Rdynload.c:(.text+0x1c2): relocation truncated to fit: R_PPC_GOT16 against > symbol `R_ClassSymbol' defined in .sbss section in main.o > Rdynload.c:(.text+0x1e6): relocation truncated to fit: R_PPC_GOT16 against > symbol `R_NilValue' defined in .sbss section in main.o > Rdynload.c:(.text+0x3a2): additional relocation overflows omitted from the > output > collect2: ld returned 1 exit status > > ______________________________________________ > R-devel at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel > >-- Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595