Rebuilding the 'parted' package on ppc64 fails. gcc complains a bunch, and then we see lines such as: /usr/bin/ld: BFD 2.14.90.0.8 20040114 assertion fail ../../bfd/elflink.c:2275 See ~sopwith/rebuild/logs/parted*ppc64*.log for the whole spiel.
This is primarily bug on parted's part. -Wl,-static is terribly wrong and so is -Wl,-lc. Instead of -Wl,-static it should pass -static to the compiler, gcc links things different for -static and !-static. If -Wl,-static is used, this is hidden to the compiler driver and bad things happen. And why that -Wl,-lc in there? gcc driver puts -lc by default at the right place on the link line...
Fixing, thanks.