Failing to build native gcc-5 on powerpc-linux-gnuspe

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello!

I have been trying to get a native gcc-5 working on powerpc-linux-gnuspe
(Debian architecture: powerpcspe) for several days now.

gcc-5 fails to build from source because the linker cannot resolve the
__unorddf2 symbol when linking libgo or libjava [1]:

/«PKGBUILDDIR»/build/./gcc/gccgo -B/«PKGBUILDDIR»/build/./gcc/ -g -O2
-static-libstdc++ -static-libgcc -Wl,-z,relro -L
../powerpc-linux-gnuspe/libgo -L ../powe
rpc-linux-gnuspe/libgo/.libs -o gofmt
../../src/gotools/../libgo/go/cmd/gofmt/doc.go
../../src/gotools/../libgo/go/cmd/gofmt/gofmt.go ../../src/gotools/../libgo
/go/cmd/gofmt/rewrite.go
../../src/gotools/../libgo/go/cmd/gofmt/simplify.go
../powerpc-linux-gnuspe/libgo/.libs/libgo.so: undefined reference to
`__unorddf2'
collect2: error: ld returned 1 exit status
Makefile:629: recipe for target 'gofmt' failed
make[4]: *** [gofmt] Error 1
make[4]: Leaving directory '/«PKGBUILDDIR»/build/gotools'
Makefile:12509: recipe for target 'all-gotools' failed
make[3]: *** [all-gotools] Error 2

As you can see in the bug report, I've tried fiddling with the build
system a lot but so far without any success. This bug seems to be
a regression caused by a previous patch that deprecated soft-fp symbols
in gcc's libgcc in favour of those available in glibc [2].

I talked to the author of the change, but unfortunately he also doesn't
have any idea what to do here and he advised me to ask on this list.

Since I am working on resurrecting Debian's powerpcspe port, I will
have to get gcc-5 working on this architecture again before I can
start building any other packages.

Any ideas?

Thanks,
Adrian

> [1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69988
> [2] https://patchwork.ozlabs.org/patch/405072/

-- 
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - glaubitz@xxxxxxxxxx
`. `'   Freie Universitaet Berlin - glaubitz@xxxxxxxxxxxxxxxxxxx
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux