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

RFH: golang dynamic linker



Hi,

golang uses ld-elf.so.1 which is only present in freebsd-hackedutils
which has been removed from archive.

I have tried modifying the build scripts to use standard
/lib/ld*.so.1, but that fails on kfreebsd-i386 with:

cgo -dynimport _cgo1_.o >_obj/_cgo_import.c_ && mv -f
_obj/_cgo_import.c_ _obj/_cgo_import.c
Inconsistency detected by ld.so: dl-deps.c: 626: _dl_map_object_deps:
Assertion `nlist > 1' failed!
make[3]: *** [_obj/_cgo_import.c] Error 127
make[3]: Leaving directory
`/build/buildd-golang_2011.04.13-2~exp6-kfreebsd-i386-mL5F9f/golang-2011.04.13/src/pkg/runtime/cgo'
make[2]: *** [runtime/cgo.install] Error 1
make[2]: Leaving directory
`/build/buildd-golang_2011.04.13-2~exp6-kfreebsd-i386-mL5F9f/golang-2011.04.13/src/pkg'
make[1]: *** [debian/build.stamp] Error 2
make[1]: Leaving directory
`/build/buildd-golang_2011.04.13-2~exp6-kfreebsd-i386-mL5F9f/golang-2011.04.13'
make: *** [build] Error 2

Which is basically beyond my skill (time to debug) to fix that.

I was able to build kfreebsd-amd64 on asdfasdf, but it may also fail
on buildd, but it hasn't been built yet.

Ondrej
-- 
Ondřej Surý <ondrej@sury.org>


Reply to: