You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@impala.apache.org by Jim Apple <jb...@cloudera.com> on 2016/03/19 00:02:03 UTC

ld internal error while linking impalad

Has anyone seen this one before? I googled around and couldn't find anyone
who had a repro, but I've seen this twice today.

[100%] Building CXX object
be/src/service/CMakeFiles/impalad.dir/daemon-main.cc.o
Linking CXX executable ../../build/debug/service/impalad
/tmp/impala-deps/openldap-2.4.25/lib/libldap.a(os-ip.o): In function
`ldap_int_poll':
os-ip.c:(.text+0x2a6): warning: `sys_errlist' is deprecated; use `strerror'
or `strerror_r' instead
os-ip.c:(.text+0x29a): warning: `sys_nerr' is deprecated; use `strerror' or
`strerror_r' instead
/usr/bin/ld: BFD version 2.20.51.0.2-5.36.el6 20100205 internal error,
aborting at reloc.c line 443 in bfd_get_reloc_size

/usr/bin/ld: Please report this bug.

collect2: error: ld returned 1 exit status
make[3]: *** [be/build/debug/service/impalad] Error 1

Re: ld internal error while linking impalad

Posted by Casey Ching <ca...@cloudera.com>.
Taras said he tried it and there was a different error. That was from gold installed on the system.

The toolchain is rebuilding now. I’ll send an update when it’s done

On March 18, 2016 at 4:22:23 PM, Silvius Rus (srus@cloudera.com) wrote:

What does gold do on the same link job? Succeed, report error?  

On Fri, Mar 18, 2016 at 4:06 PM, Taras Bobrovytsky <  
tbobrovytsky@cloudera.com> wrote:  

> I'm seeing something similar:  
>  
> [100%] Building CXX object  
> be/src/service/CMakeFiles/impalad.dir/daemon-main.cc.o  
> Linking CXX executable ../../build/debug/service/impalad  
> /opt/Impala-Toolchain/openldap-2.4.25/lib/libldap.a(os-ip.o): In function  
> `ldap_int_poll':  
> os-ip.c:(.text+0x2a6): warning: `sys_errlist' is deprecated; use `strerror'  
> or `strerror_r' instead  
> os-ip.c:(.text+0x29a): warning: `sys_nerr' is deprecated; use `strerror' or  
> `strerror_r' instead  
> /usr/bin/ld:  
> /opt/Impala-Toolchain/boost-1.57.0/lib/libboost_thread.a(thread.o):  
> unrecognized relocation (0x2a) in section `.text'  
> /usr/bin/ld: final link failed: Bad value  
> collect2: error: ld returned 1 exit status  
> make[3]: *** [be/build/debug/service/impalad] Error 1  
> make[2]: *** [be/src/service/CMakeFiles/impalad.dir/all] Error 2  
> make[1]: *** [be/src/service/CMakeFiles/impalad.dir/rule] Error 2  
> make: *** [impalad] Error 2  
> Error in /home/dev/Impala/bin/make_impala.sh at line 123: make  
> -j${IMPALA_BUILD_THREADS:-4} impalad  
> Error in ./buildall.sh at line 269: $IMPALA_HOME/bin/make_impala.sh  
> ${MAKE_IMPALA_ARGS}  
>  
> On Fri, Mar 18, 2016 at 4:02 PM, Jim Apple <jb...@cloudera.com> wrote:  
>  
> > Has anyone seen this one before? I googled around and couldn't find  
> anyone  
> > who had a repro, but I've seen this twice today.  
> >  
> > [100%] Building CXX object  
> > be/src/service/CMakeFiles/impalad.dir/daemon-main.cc.o  
> > Linking CXX executable ../../build/debug/service/impalad  
> > /tmp/impala-deps/openldap-2.4.25/lib/libldap.a(os-ip.o): In function  
> > `ldap_int_poll':  
> > os-ip.c:(.text+0x2a6): warning: `sys_errlist' is deprecated; use  
> `strerror'  
> > or `strerror_r' instead  
> > os-ip.c:(.text+0x29a): warning: `sys_nerr' is deprecated; use `strerror'  
> or  
> > `strerror_r' instead  
> > /usr/bin/ld: BFD version 2.20.51.0.2-5.36.el6 20100205 internal error,  
> > aborting at reloc.c line 443 in bfd_get_reloc_size  
> >  
> > /usr/bin/ld: Please report this bug.  
> >  
> > collect2: error: ld returned 1 exit status  
> > make[3]: *** [be/build/debug/service/impalad] Error 1  
> >  
>  

Re: ld internal error while linking impalad

Posted by Silvius Rus <sr...@cloudera.com>.
What does gold do on the same link job?  Succeed, report error?

On Fri, Mar 18, 2016 at 4:06 PM, Taras Bobrovytsky <
tbobrovytsky@cloudera.com> wrote:

> I'm seeing something similar:
>
> [100%] Building CXX object
> be/src/service/CMakeFiles/impalad.dir/daemon-main.cc.o
> Linking CXX executable ../../build/debug/service/impalad
> /opt/Impala-Toolchain/openldap-2.4.25/lib/libldap.a(os-ip.o): In function
> `ldap_int_poll':
> os-ip.c:(.text+0x2a6): warning: `sys_errlist' is deprecated; use `strerror'
> or `strerror_r' instead
> os-ip.c:(.text+0x29a): warning: `sys_nerr' is deprecated; use `strerror' or
> `strerror_r' instead
> /usr/bin/ld:
> /opt/Impala-Toolchain/boost-1.57.0/lib/libboost_thread.a(thread.o):
> unrecognized relocation (0x2a) in section `.text'
> /usr/bin/ld: final link failed: Bad value
> collect2: error: ld returned 1 exit status
> make[3]: *** [be/build/debug/service/impalad] Error 1
> make[2]: *** [be/src/service/CMakeFiles/impalad.dir/all] Error 2
> make[1]: *** [be/src/service/CMakeFiles/impalad.dir/rule] Error 2
> make: *** [impalad] Error 2
> Error in /home/dev/Impala/bin/make_impala.sh at line 123: make
> -j${IMPALA_BUILD_THREADS:-4} impalad
> Error in ./buildall.sh at line 269: $IMPALA_HOME/bin/make_impala.sh
> ${MAKE_IMPALA_ARGS}
>
> On Fri, Mar 18, 2016 at 4:02 PM, Jim Apple <jb...@cloudera.com> wrote:
>
> > Has anyone seen this one before? I googled around and couldn't find
> anyone
> > who had a repro, but I've seen this twice today.
> >
> > [100%] Building CXX object
> > be/src/service/CMakeFiles/impalad.dir/daemon-main.cc.o
> > Linking CXX executable ../../build/debug/service/impalad
> > /tmp/impala-deps/openldap-2.4.25/lib/libldap.a(os-ip.o): In function
> > `ldap_int_poll':
> > os-ip.c:(.text+0x2a6): warning: `sys_errlist' is deprecated; use
> `strerror'
> > or `strerror_r' instead
> > os-ip.c:(.text+0x29a): warning: `sys_nerr' is deprecated; use `strerror'
> or
> > `strerror_r' instead
> > /usr/bin/ld: BFD version 2.20.51.0.2-5.36.el6 20100205 internal error,
> > aborting at reloc.c line 443 in bfd_get_reloc_size
> >
> > /usr/bin/ld: Please report this bug.
> >
> > collect2: error: ld returned 1 exit status
> > make[3]: *** [be/build/debug/service/impalad] Error 1
> >
>

Re: ld internal error while linking impalad

Posted by Casey Ching <ca...@cloudera.com>.
Taras and I looked at this. He was able to build after using the new binutils. I’m going to revert the binutils change and rebuild the artifacts.

On March 18, 2016 at 4:07:07 PM, Taras Bobrovytsky (tbobrovytsky@cloudera.com) wrote:

I'm seeing something similar:  

[100%] Building CXX object  
be/src/service/CMakeFiles/impalad.dir/daemon-main.cc.o  
Linking CXX executable ../../build/debug/service/impalad  
/opt/Impala-Toolchain/openldap-2.4.25/lib/libldap.a(os-ip.o): In function  
`ldap_int_poll':  
os-ip.c:(.text+0x2a6): warning: `sys_errlist' is deprecated; use `strerror'  
or `strerror_r' instead  
os-ip.c:(.text+0x29a): warning: `sys_nerr' is deprecated; use `strerror' or  
`strerror_r' instead  
/usr/bin/ld:  
/opt/Impala-Toolchain/boost-1.57.0/lib/libboost_thread.a(thread.o):  
unrecognized relocation (0x2a) in section `.text'  
/usr/bin/ld: final link failed: Bad value  
collect2: error: ld returned 1 exit status  
make[3]: *** [be/build/debug/service/impalad] Error 1  
make[2]: *** [be/src/service/CMakeFiles/impalad.dir/all] Error 2  
make[1]: *** [be/src/service/CMakeFiles/impalad.dir/rule] Error 2  
make: *** [impalad] Error 2  
Error in /home/dev/Impala/bin/make_impala.sh at line 123: make  
-j${IMPALA_BUILD_THREADS:-4} impalad  
Error in ./buildall.sh at line 269: $IMPALA_HOME/bin/make_impala.sh  
${MAKE_IMPALA_ARGS}  

On Fri, Mar 18, 2016 at 4:02 PM, Jim Apple <jb...@cloudera.com> wrote:  

> Has anyone seen this one before? I googled around and couldn't find anyone  
> who had a repro, but I've seen this twice today.  
>  
> [100%] Building CXX object  
> be/src/service/CMakeFiles/impalad.dir/daemon-main.cc.o  
> Linking CXX executable ../../build/debug/service/impalad  
> /tmp/impala-deps/openldap-2.4.25/lib/libldap.a(os-ip.o): In function  
> `ldap_int_poll':  
> os-ip.c:(.text+0x2a6): warning: `sys_errlist' is deprecated; use `strerror'  
> or `strerror_r' instead  
> os-ip.c:(.text+0x29a): warning: `sys_nerr' is deprecated; use `strerror' or  
> `strerror_r' instead  
> /usr/bin/ld: BFD version 2.20.51.0.2-5.36.el6 20100205 internal error,  
> aborting at reloc.c line 443 in bfd_get_reloc_size  
>  
> /usr/bin/ld: Please report this bug.  
>  
> collect2: error: ld returned 1 exit status  
> make[3]: *** [be/build/debug/service/impalad] Error 1  
>  

Re: ld internal error while linking impalad

Posted by Taras Bobrovytsky <tb...@cloudera.com>.
I'm seeing something similar:

[100%] Building CXX object
be/src/service/CMakeFiles/impalad.dir/daemon-main.cc.o
Linking CXX executable ../../build/debug/service/impalad
/opt/Impala-Toolchain/openldap-2.4.25/lib/libldap.a(os-ip.o): In function
`ldap_int_poll':
os-ip.c:(.text+0x2a6): warning: `sys_errlist' is deprecated; use `strerror'
or `strerror_r' instead
os-ip.c:(.text+0x29a): warning: `sys_nerr' is deprecated; use `strerror' or
`strerror_r' instead
/usr/bin/ld:
/opt/Impala-Toolchain/boost-1.57.0/lib/libboost_thread.a(thread.o):
unrecognized relocation (0x2a) in section `.text'
/usr/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status
make[3]: *** [be/build/debug/service/impalad] Error 1
make[2]: *** [be/src/service/CMakeFiles/impalad.dir/all] Error 2
make[1]: *** [be/src/service/CMakeFiles/impalad.dir/rule] Error 2
make: *** [impalad] Error 2
Error in /home/dev/Impala/bin/make_impala.sh at line 123: make
-j${IMPALA_BUILD_THREADS:-4} impalad
Error in ./buildall.sh at line 269: $IMPALA_HOME/bin/make_impala.sh
${MAKE_IMPALA_ARGS}

On Fri, Mar 18, 2016 at 4:02 PM, Jim Apple <jb...@cloudera.com> wrote:

> Has anyone seen this one before? I googled around and couldn't find anyone
> who had a repro, but I've seen this twice today.
>
> [100%] Building CXX object
> be/src/service/CMakeFiles/impalad.dir/daemon-main.cc.o
> Linking CXX executable ../../build/debug/service/impalad
> /tmp/impala-deps/openldap-2.4.25/lib/libldap.a(os-ip.o): In function
> `ldap_int_poll':
> os-ip.c:(.text+0x2a6): warning: `sys_errlist' is deprecated; use `strerror'
> or `strerror_r' instead
> os-ip.c:(.text+0x29a): warning: `sys_nerr' is deprecated; use `strerror' or
> `strerror_r' instead
> /usr/bin/ld: BFD version 2.20.51.0.2-5.36.el6 20100205 internal error,
> aborting at reloc.c line 443 in bfd_get_reloc_size
>
> /usr/bin/ld: Please report this bug.
>
> collect2: error: ld returned 1 exit status
> make[3]: *** [be/build/debug/service/impalad] Error 1
>