[Bug go/71697] New: go link error

rootkit85 at yahoo dot it gcc-bugzilla@gcc.gnu.org
Wed Jun 29 14:31:00 GMT 2016


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71697

            Bug ID: 71697
           Summary: go link error
           Product: gcc
           Version: 5.3.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: go
          Assignee: ian at airs dot com
          Reporter: rootkit85 at yahoo dot it
                CC: cmang at google dot com
  Target Milestone: ---

Created attachment 38788
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38788&action=edit
workaround to compile go tool

the go tool fails to link.
configure options:

./configure --build=x86_64-linux-gnu --host=x86_64-linux-gnu
--target=i486-openwrt-linux-gnu --with-gnu-ld --enable-target-optspace
--disable-libgomp --disable-libmudflap --disable-multilib --disable-nls
--without-isl --without-cloog --with-host-libstdcxx=-lstdc++
--disable-decimal-float --with-diagnostics-color=auto-if-env --enable-libssp
--enable-__cxa_atexit --disable-libsanitizer --enable-languages=c,c++,go
--enable-shared --enable-threads --enable-lto

error:

make[2]: Entering directory '/home/matteo/src/openwrt/gccbuild/gcc'
x86_64-linux-gnu-gcc   -g -O2 -DIN_GCC  -DCROSS_DIRECTORY_STRUCTURE 
-fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing
-Wwrite-strings -Wcast-qual -Wmivirtual -pedantic -Wno-long-long
-Wno-variadic-macros -Wno-overlength-strings   -DHAVE_CONFIG_H  -o go1 \
      go/ast-dump.o go/dataflow.o go/export.o go/expressions.o go/go-backend.o
go/go-dump.o go/go-gcc.o go/go-lang.o go/go-linemap.o go/go-optimize.o go/go.o
go/gogo.o go/import.o e.o go/runtime.o go/statements.o go/types.o go/unsafe.o
attribs.o libbackend.a main.o  libcommon-target.a libcommon.a
../libcpp/libcpp.a ../libdecnumber/libdecnumber.a libcommon.a
/.libs/libbacktrace.a ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a
-lstdc++  -lmpc -lmpfr -lgmp -rdynamic -ldl -lstdc++ -L../zlib -lz
/usr/bin/ld: go/export.o: undefined reference to symbol 'ceilf@@GLIBC_2.2.5'
//lib/x86_64-linux-gnu/libm.so.6: error adding symbols: DSO missing from
command line
collect2: error: ld returned 1 exit status
../../gcc-5.3.0/gcc/go/Make-lang.in:76: recipe for target 'go1' failed
make[2]: *** [go1] Error 1
make[2]: Leaving directory '/home/matteo/src/openwrt/gccbuild/gcc'
Makefile:4122: recipe for target 'all-gcc' failed
make[1]: *** [all-gcc] Error 2
make[1]: Leaving directory '/home/matteo/src/openwrt/gccbuild'
Makefile:876: recipe for target 'all' failed
make: *** [all] Error 2

Actually I'm compiling it with a workaround, patch is attached

Cheers,


More information about the Gcc-bugs mailing list