Hello, Looking for guidance on compiling R version 3.4 on Debian 12. I?m encountering the following error on compiling: /usr/bin/ld: ../unix/system.o:(.bss+0x0): multiple definition of `R_OutputCon'; CommandLineArgs.o:(.bss+0x0): first defined here /usr/bin/ld: ../unix/sys-unix.o:(.bss+0x0): multiple definition of `R_OutputCon'; CommandLineArgs.o:(.bss+0x0): first defined here /usr/bin/ld: ../unix/sys-unix.o:(.bss+0x8): multiple definition of `ptr_R_ProcessEvents'; ../unix/system.o:(.bss+0xa8): first defined here /usr/bin/ld: ../unix/X11.o:(.bss+0x0): multiple definition of `R_OutputCon'; CommandLineArgs.o:(.bss+0x0): first defined here /usr/bin/ld: connections.o: warning: relocation against `R_OutputCon' in read-only section `.text' /usr/bin/ld: connections.o: relocation R_X86_64_PC32 against symbol `R_OutputCon' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: final link failed: bad value collect2: error: ld returned 1 exit status make[3]: *** [Makefile:177: libR.so] Error 1 make[3]: Leaving directory '/mnt/vast/hpc/homes/branch/Software_BUILD/R-3.4.2/src/main' make[2]: *** [Makefile:135: R] Error 2 make[2]: Leaving directory '/mnt/vast/hpc/homes/branch/Software_BUILD/R-3.4.2/src/main' make[1]: *** [Makefile:28: R] Error 1 make[1]: Leaving directory '/mnt/vast/hpc/homes/branch/Software_BUILD/R-3.4.2/src' make: *** [Makefile:61: R] Error 1 Thanks, Jose [[alternative HTML version deleted]]
On 12/12/24 16:50, Quinones, Jose M. wrote:> Hello, > > Looking for guidance on compiling R version 3.4 on Debian 12. I?m encountering the following error on compiling: > > /usr/bin/ld: ../unix/system.o:(.bss+0x0): multiple definition of `R_OutputCon'; CommandLineArgs.o:(.bss+0x0): first defined here > /usr/bin/ld: ../unix/sys-unix.o:(.bss+0x0): multiple definition of `R_OutputCon'; CommandLineArgs.o:(.bss+0x0): first defined here > /usr/bin/ld: ../unix/sys-unix.o:(.bss+0x8): multiple definition of `ptr_R_ProcessEvents'; ../unix/system.o:(.bss+0xa8): first defined here > /usr/bin/ld: ../unix/X11.o:(.bss+0x0): multiple definition of `R_OutputCon'; CommandLineArgs.o:(.bss+0x0): first defined herePerhaps you can try building with -fcommon. Tomas> /usr/bin/ld: connections.o: warning: relocation against `R_OutputCon' in read-only section `.text' > /usr/bin/ld: connections.o: relocation R_X86_64_PC32 against symbol `R_OutputCon' can not be used when making a shared object; recompile with -fPIC > /usr/bin/ld: final link failed: bad value > collect2: error: ld returned 1 exit status > make[3]: *** [Makefile:177: libR.so] Error 1 > make[3]: Leaving directory '/mnt/vast/hpc/homes/branch/Software_BUILD/R-3.4.2/src/main' > make[2]: *** [Makefile:135: R] Error 2 > make[2]: Leaving directory '/mnt/vast/hpc/homes/branch/Software_BUILD/R-3.4.2/src/main' > make[1]: *** [Makefile:28: R] Error 1 > make[1]: Leaving directory '/mnt/vast/hpc/homes/branch/Software_BUILD/R-3.4.2/src' > make: *** [Makefile:61: R] Error 1 > > Thanks, > Jose > > [[alternative HTML version deleted]] > > > _______________________________________________ > R-SIG-Debian mailing list > R-SIG-Debian at r-project.org > https://stat.ethz.ch/mailman/listinfo/r-sig-debian
You may also need gfortran -fallow-argument-mismatch argument to avoid the problem in src/library/stats/src/lminfl.f, where the same variable, double precision dummy, is used for an array argument and a scalar argument for dqrsl(). Declaring 'dummy' as a length-1 array should also work. -- Best regards, Ivan