[mpich-discuss] mpich-master: final link failed: nonrepresentable section on output

Siegmar Gross siegmar.gross at informatik.hs-fulda.de
Wed Nov 7 06:51:59 CST 2018


Hi,

back in my office I tried some more versions:

--enable-fortran=fc
--enable-fortran=f77
--enable-fortran=no

All versions break with an error.

loki mpich-master_2018-11-07_Linux.x86_64.64_fc 121 head -7 config.log | tail -1
   $ ../mpich/configure --prefix=/usr/local/mpich-master_64_cc 
--libdir=/usr/local/mpich-master_64_cc/lib64 
--includedir=/usr/local/mpich-master_64_cc/include64 CC=cc CXX=CC F77=f77 FC=f95 
CFLAGS=-m64 CXXFLAGS=-m64 FFLAGS=-m64 FCFLAGS=-m64 LDFLAGS=-m64 -L/usr/lib64 
-R/usr/lib64 --enable-fortran=fc --enable-cxx --enable-romio --enable-debuginfo 
--enable-smpcoll --enable-threads=multiple --with-thread-package=posix 
--enable-shared
fd1026 has logged off pts/4 from :0.
loki mpich-master_2018-11-07_Linux.x86_64.64_fc 122

loki mpich-master_2018-11-07_Linux.x86_64.64_fc 123 tail 
log.configure.Linux.x86_64.64_cc
checking whether to build static libraries... yes
checking for f95 option to produce PIC... -KPIC
checking if f95 PIC flag -KPIC works... yes
checking if f95 static flag -Bstatic works... yes
checking if f95 supports -c -o file.o... yes
checking if f95 supports -c -o file.o... (cached) yes
checking whether the f95 linker (/usr/bin/ld -m elf_x86_64) supports shared 
libraries... yes
checking dynamic linker characteristics... (cached) GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
configure: error: Fortran 90 support requires enabling Fortran 77
loki mpich-master_2018-11-07_Linux.x86_64.64_fc 12


"configure" shouldn't break, especially because "--enable-f77" is deprecated.


loki mpich-master_2018-11-07_Linux.x86_64.64_f77 121 head -7 config.log | tail -1
   $ ../mpich/configure --prefix=/usr/local/mpich-master_64_cc 
--libdir=/usr/local/mpich-master_64_cc/lib64 
--includedir=/usr/local/mpich-master_64_cc/include64 CC=cc CXX=CC F77=f77 FC=f95 
CFLAGS=-m64 CXXFLAGS=-m64 FFLAGS=-m64 FCFLAGS=-m64 LDFLAGS=-m64 -L/usr/lib64 
-R/usr/lib64 --enable-fortran=f77 --enable-cxx --enable-romio --enable-debuginfo 
--enable-smpcoll --enable-threads=multiple --with-thread-package=posix 
--enable-shared
fd1026 has logged off pts/2 from :0.
loki mpich-master_2018-11-07_Linux.x86_64.64_f77 122


loki mpich-master_2018-11-07_Linux.x86_64.64_f77 125 tail -33 
log.make.Linux.x86_64.64_cc | grep -v NOTICE
   CC       src/pmi/simple/lib_libmpi_la-simple_pmi.lo
   CCLD     src/mpi/debugger/libdbginitdummy.la
   CXX      src/binding/cxx/initcxx.lo
   CC       src/env/mpichversion.o
"/export2/src/mpich-master/mpich/src/openpa/src/primitives/opa_gcc_intel_32_64_ops.h", 
line 98: warning: parameter in inline asm statement unused: %2
"/export2/src/mpich-master/mpich/src/openpa/src/primitives/opa_gcc_intel_32_64_ops.h", 
line 105: warning: parameter in inline asm statement unused: %1
"/export2/src/mpich-master/mpich/src/openpa/src/primitives/opa_gcc_intel_32_64_ops.h", 
line 112: warning: parameter in inline asm statement unused: %1
"/export2/src/mpich-master/mpich/src/openpa/src/primitives/opa_gcc_intel_32_64_ops.h", 
line 121: warning: parameter in inline asm statement unused: %2
"/export2/src/mpich-master/mpich/src/openpa/src/primitives/opa_gcc_intel_32_64_ops.h", 
line 128: warning: parameter in inline asm statement unused: %3
"/export2/src/mpich-master/mpich/src/openpa/src/primitives/opa_gcc_intel_32_64_ops.h", 
line 140: warning: parameter in inline asm statement unused: %1
"/export2/src/mpich-master/mpich/src/openpa/src/primitives/opa_gcc_intel_32_64_ops.h", 
line 148: warning: parameter in inline asm statement unused: %1
"/export2/src/mpich-master/mpich/src/openpa/src/primitives/opa_gcc_intel_32_64_ops.h", 
line 155: warning: parameter in inline asm statement unused: %3
"/export2/src/mpich-master/mpich/src/openpa/src/primitives/opa_gcc_intel_32_64_ops.h", 
line 162: warning: parameter in inline asm statement unused: %3
   CC       src/env/mpivars.o
   CCLD     lib/libtvmpich.la
"../mpich/src/include/mpir_handlemem.h", line 61: warning: null dimension: indirect
"../mpich/src/include/mpir_handlemem.h", line 122: warning: null dimension: indirect
   GEN      lib/libmpi.la
"./src/include/mpichconf.h", line 1718: Warning (Anachronism): Attempt to 
redefine __restrict__ without using #undef.
1 Warning(s) detected.
f90: Warning: Option -shared passed to ld, if ld is invoked, ignored otherwise
/usr/bin/ld: /opt/sun/developerstudio12.6/lib/compilers/amd64/crt1x.o: 
relocation R_X86_64_32 against hidden symbol `__dso_handle' can not be used when 
making a shared object
/usr/bin/ld: final link failed: nonrepresentable section on output
postopt: error: ld failed to link the binary
Makefile:17006: recipe for target 'lib/libmpi.la' failed
make[2]: *** [lib/libmpi.la] Error 2
make[2]: Leaving directory 
'/export2/src/mpich-master/mpich-master_2018-11-07_Linux.x86_64.64_f77'
Makefile:40516: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory 
'/export2/src/mpich-master/mpich-master_2018-11-07_Linux.x86_64.64_f77'
Makefile:10582: recipe for target 'all' failed
make: *** [all] Error 2
loki mpich-master_2018-11-07_Linux.x86_64.64_f77 126



loki mpich-master_2018-11-07_Linux.x86_64.64_no 122 head -7 config.log | tail -1
   $ ../mpich/configure --prefix=/usr/local/mpich-master_64_cc 
--libdir=/usr/local/mpich-master_64_cc/lib64 
--includedir=/usr/local/mpich-master_64_cc/include64 CC=cc CXX=CC F77=f77 FC=f95 
CFLAGS=-m64 CXXFLAGS=-m64 FFLAGS=-m64 FCFLAGS=-m64 LDFLAGS=-m64 -L/usr/lib64 
-R/usr/lib64 --enable-fortran=no --enable-cxx --enable-romio --enable-debuginfo 
--enable-smpcoll --enable-threads=multiple --with-thread-package=posix 
--enable-shared
loki mpich-master_2018-11-07_Linux.x86_64.64_no 123

loki mpich-master_2018-11-07_Linux.x86_64.64_no 124 tail -35 
log.make.Linux.x86_64.64_cc
"./src/include/mpichconf.h", line 1718: Warning (Anachronism): Attempt to 
redefine __restrict__ without using #undef.
1 Warning(s) detected.
   CXXLD    lib/libmpicxx.la
   CCLD     src/env/mpichversion
   CCLD     src/env/mpivars
CC: -library=Crun cannot be used with -std=c++03. To use this library you need 
to switch to -std=sun03
CC: -library=Cstd cannot be used with -std=c++03. To use this library you need 
to switch to -std=sun03
Makefile:10787: recipe for target 'lib/libmpicxx.la' failed
make[2]: *** [lib/libmpicxx.la] Error 1
make[2]: *** Waiting for unfinished jobs....
/usr/bin/ld: src/env/mpichversion.o: in function `hwloc_distrib':
mpichversion.c:(.text+0xb0): undefined reference to `hwloc_bitmap_weight'
/usr/bin/ld: mpichversion.c:(.text+0x13d): undefined reference to 
`hwloc_bitmap_weight'
/usr/bin/ld: mpichversion.c:(.text+0x1e4): undefined reference to `hwloc_bitmap_dup'
/usr/bin/ld: mpichversion.c:(.text+0x219): undefined reference to `hwloc_bitmap_or'
/usr/bin/ld: src/env/mpichversion.o: in function `MPIR_Datatype_free_contents':
mpichversion.c:(.text+0x33b): undefined reference to `MPIR_Datatype_builtin'
/usr/bin/ld: mpichversion.c:(.text+0x35a): undefined reference to 
`MPIR_Datatype_direct'
/usr/bin/ld: mpichversion.c:(.text+0x369): undefined reference to 
`MPIR_Datatype_mem'
/usr/bin/ld: mpichversion.c:(.text+0x3b0): undefined reference to `MPIR_Process'
/usr/bin/ld: mpichversion.c:(.text+0x42a): undefined reference to `MPIR_Assert_fail'
/usr/bin/ld: mpichversion.c:(.text+0x447): undefined reference to `MPIR_Assert_fail'
/usr/bin/ld: src/env/mpichversion.o: in function `MPIR_Datatype_free':
mpichversion.c:(.text+0x47e): undefined reference to `MPIR_Dataloop_free'
/usr/bin/ld: mpichversion.c:(.text+0x485): undefined reference to 
`MPIR_Datatype_mem'
postopt: error: ld failed to link the binary
cc: postopt failed for src/env/.libs/mpichversion
Makefile:20520: recipe for target 'src/env/mpichversion' failed
make[2]: *** [src/env/mpichversion] Error 2
make[2]: Leaving directory 
'/export2/src/mpich-master/mpich-master_2018-11-07_Linux.x86_64.64_no'
Makefile:40516: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory 
'/export2/src/mpich-master/mpich-master_2018-11-07_Linux.x86_64.64_no'
Makefile:10582: recipe for target 'all' failed
make: *** [all] Error 2
loki mpich-master_2018-11-07_Linux.x86_64.64_no 125


I would be grateful, if somebody can fix the problems. Do you need anything
else? Thank you very much for any help in advance.


Kind regards

Siegmar



On 11/7/18 10:28 AM, Siegmar Gross wrote:
> Hi,
> 
> I've updated the software with the following commands.
> 
> cd mpich
> git pull https://github.com/pmodels/mpich.git master
> git submodule update --init --recursive
> autogen.sh
> 
> I got the same error as before building the package once more
> with the following configure command.
> 
> loki mpich-master_2018-11-07_Linux.x86_64.64_cc 112 head -7 config.log | tail -1
>    $ ../mpich/configure --prefix=/usr/local/mpich-master_64_cc 
> --libdir=/usr/local/mpich-master_64_cc/lib64 
> --includedir=/usr/local/mpich-master_64_cc/include64 CC=cc CXX=CC F77=f77 FC=f95 
> CFLAGS=-m64 CXXFLAGS=-m64 FFLAGS=-m64 FCFLAGS=-m64 LDFLAGS=-m64 -L/usr/lib64 
> -R/usr/lib64 --enable-fortran=yes --enable-cxx --enable-romio --enable-debuginfo 
> --enable-smpcoll --enable-threads=multiple --with-thread-package=posix 
> --enable-shared
> loki mpich-master_2018-11-07_Linux.x86_64.64_cc 112
> 
> 
> Best regards and thank you very much for your help
> 
> Siegmar
> 
> 
> Am 06.11.2018 um 18:21 schrieb Madhu, Kavitha Tiptur:
>> Hi
>> Looks like your linker is failing for fortran90. You could disable fortran 
>> builds during configuration if you don’t need this. Alternatively, this issue 
>> seems to be fixed in https://github.com/pmodels/mpich/pull/3353 and merged 
>> into MPICH master. Can you pull from master and try this one more time?
>>
>>> On Nov 1, 2018, at 2:11 AM, Siegmar Gross 
>>> <siegmar.gross at informatik.hs-fulda.de 
>>> <mailto:siegmar.gross at informatik.hs-fulda.de>> wrote:
>>>
>>> Hi,
>>>
>>> thank you very much your help. I'm waiting for your solution.
>>>
>>> Kind regards
>>>
>>> Siegmar
>>>
>>>
>>>> Sorry I was away for some time. I have created an 
>>>> issue(https://github.com/pmodels/mpich/issues/3358) and am looking into it. 
>>>> I will get back to you with updates as soon as possible. Sorry about the 
>>>> delays.
>>>>> On Oct 31, 2018, at 2:57 AM, Siegmar Gross via discuss <discuss at mpich.org 
>>>>> <mailto:discuss at mpich.org> <mailto:discuss at mpich.org>> wrote:
>>>>>
>>>>> Hi,
>>>>>
>>>>> I tried to build mpich-master-v3.3b3-357-gdcd523e and the latest version
>>>>> of mpich-master from github on my "SUSE Linux Enterprise Server 12.3
>>>>> (x86_64)" with Sun C 5.15 (Oracle Developer Studio 12.6). Unfortunately,
>>>>> I get the following error for both versions.
>>>>>
>>>>> loki mpich-master-v3.3b3-357-gdcd523e-Linux.x86_64.64_cc 138 tail -30 
>>>>> log.make.Linux.x86_64.64_cc | grep -v NOTICE
>>>>> "../mpich-master-v3.3b3-357-gdcd523e/src/include/mpir_handlemem.h", line 
>>>>> 122: warning: null dimension: indirect
>>>>>  CC       src/pmi/simple/lib_libmpi_la-simple_pmiutil.lo
>>>>>  CC       src/pmi/simple/lib_libmpi_la-simple_pmi.lo
>>>>>  CC       src/mpi/debugger/src_mpi_debugger_libdbginitdummy_la-dbginit.lo
>>>>> "/export2/src/mpich-3.3/mpich-master-v3.3b3-357-gdcd523e/src/openpa/src/primitives/opa_gcc_intel_32_64_ops.h", 
>>>>> line 98: warning: parameter in inline asm statement unused: %2
>>>>> "/export2/src/mpich-3.3/mpich-master-v3.3b3-357-gdcd523e/src/openpa/src/primitives/opa_gcc_intel_32_64_ops.h", 
>>>>> line 105: warning: parameter in inline asm statement unused: %1
>>>>> "/export2/src/mpich-3.3/mpich-master-v3.3b3-357-gdcd523e/src/openpa/src/primitives/opa_gcc_intel_32_64_ops.h", 
>>>>> line 112: warning: parameter in inline asm statement unused: %1
>>>>> "/export2/src/mpich-3.3/mpich-master-v3.3b3-357-gdcd523e/src/openpa/src/primitives/opa_gcc_intel_32_64_ops.h", 
>>>>> line 121: warning: parameter in inline asm statement unused: %2
>>>>> "/export2/src/mpich-3.3/mpich-master-v3.3b3-357-gdcd523e/src/openpa/src/primitives/opa_gcc_intel_32_64_ops.h", 
>>>>> line 128: warning: parameter in inline asm statement unused: %3
>>>>> "/export2/src/mpich-3.3/mpich-master-v3.3b3-357-gdcd523e/src/openpa/src/primitives/opa_gcc_intel_32_64_ops.h", 
>>>>> line 140: warning: parameter in inline asm statement unused: %1
>>>>> "/export2/src/mpich-3.3/mpich-master-v3.3b3-357-gdcd523e/src/openpa/src/primitives/opa_gcc_intel_32_64_ops.h", 
>>>>> line 148: warning: parameter in inline asm statement unused: %1
>>>>> "/export2/src/mpich-3.3/mpich-master-v3.3b3-357-gdcd523e/src/openpa/src/primitives/opa_gcc_intel_32_64_ops.h", 
>>>>> line 155: warning: parameter in inline asm statement unused: %3
>>>>> "/export2/src/mpich-3.3/mpich-master-v3.3b3-357-gdcd523e/src/openpa/src/primitives/opa_gcc_intel_32_64_ops.h", 
>>>>> line 162: warning: parameter in inline asm statement unused: %3
>>>>> "../mpich-master-v3.3b3-357-gdcd523e/src/include/mpir_handlemem.h", line 
>>>>> 61: warning: null dimension: indirect
>>>>> "../mpich-master-v3.3b3-357-gdcd523e/src/include/mpir_handlemem.h", line 
>>>>> 122: warning: null dimension: indirect
>>>>>  CCLD     src/mpi/debugger/libdbginitdummy.la <http://libdbginitdummy.la> 
>>>>> <http://libdbginitdummy.la>
>>>>>  GEN      lib/libmpi.la <http://libmpi.la> <http://libmpi.la>
>>>>> f90: Warning: Option -shared passed to ld, if ld is invoked, ignored otherwise
>>>>> /usr/bin/ld: /opt/sun/developerstudio12.6/lib/compilers/amd64/crt1x.o: 
>>>>> relocation R_X86_64_32 against hidden symbol `__dso_handle' can not be used 
>>>>> when making a shared object
>>>>> /usr/bin/ld: final link failed: nonrepresentable section on output
>>>>> postopt: error: ld failed to link the binary
>>>>> Makefile:17007: recipe for target 'lib/libmpi.la <http://libmpi.la> 
>>>>> <http://libmpi.la>' failed
>>>>> make[2]: *** [lib/libmpi.la <http://libmpi.la> <http://libmpi.la>] Error 2
>>>>> make[2]: Leaving directory 
>>>>> '/export2/src/mpich-3.3/mpich-master-v3.3b3-357-gdcd523e-Linux.x86_64.64_cc'
>>>>> Makefile:40517: recipe for target 'all-recursive' failed
>>>>> make[1]: *** [all-recursive] Error 1
>>>>> make[1]: Leaving directory 
>>>>> '/export2/src/mpich-3.3/mpich-master-v3.3b3-357-gdcd523e-Linux.x86_64.64_cc'
>>>>> Makefile:10583: recipe for target 'all' failed
>>>>> make: *** [all] Error 2
>>>>> loki mpich-master-v3.3b3-357-gdcd523e-Linux.x86_64.64_cc 138
>>>>>
>>>>>
>>>>> loki mpich-master-v3.3b3-357-gdcd523e-Linux.x86_64.64_cc 141 head -7 
>>>>> config.log | tail -1
>>>>>  $ ../mpich-master-v3.3b3-357-gdcd523e/configure 
>>>>> --prefix=/usr/local/mpich-3.3_64_cc 
>>>>> --libdir=/usr/local/mpich-3.3_64_cc/lib64 
>>>>> --includedir=/usr/local/mpich-3.3_64_cc/include64 CC=cc CXX=CC F77=f77 
>>>>> FC=f95 CFLAGS=-m64 CXXFLAGS=-m64 FFLAGS=-m64 FCFLAGS=-m64 LDFLAGS=-m64 
>>>>> -L/usr/lib64 -R/usr/lib64 --enable-fortran=yes --enable-cxx --enable-romio 
>>>>> --enable-debuginfo --enable-smpcoll --enable-threads=multiple 
>>>>> --with-thread-package=posix --enable-shared
>>>>> loki mpich-master-v3.3b3-357-gdcd523e-Linux.x86_64.64_cc 142
>>>>>
>>>>>
>>>>> I would be grateful, if somebody can fix the problem. Do you need anything
>>>>> else? Thank you very much for any help in advance.
>>>>>
>>>>>
>>>>> Kind regards
>>>>>
>>>>> Siegmar
>>>>> _______________________________________________
>>>>> discuss mailing list discuss at mpich.org <mailto:discuss at mpich.org> 
>>>>> <mailto:discuss at mpich.org>
>>>>> To manage subscription options or unsubscribe:
>>>>> https://lists.mpich.org/mailman/listinfo/discuss
>>



More information about the discuss mailing list