Closed olup closed 3 years ago
Might be a compiler mismatch.
libfbink.a
is built by koxtoolchain, it's probably best to use the same toolchain with go-fbink-v2.
Thanksa lot ! It took quite a while to build.
But no dice, i stil get a dump of errors :
Although it does compile when I just print, and does similar errors when I try to load the net/http modules, for example.
Not hugely familiar with CGO, but the first error very explicitly looked like you were using a softfp toolchain.
The second set is... weirder, but I'm not familiar enough w/ CGO to make proper sense of it. Make sure you're starting from scratch with the proper TC & TC setup, because IIRC, Go likes to store binaries behind your back in all kinds of weird places or something, so it may take some effort to actually get to build everything again from scratch.
Hey thanks for chiming in ! I tried cleaning every things I could, but still got the same...
Still builds over here, FWIW.
source ~SVN/Configs/trunk/Kindle/Misc/x-compile.sh kobo env bare
CGO_ENABLED=1 GOARCH=arm GOOS=linux CC=${CROSS_TC}-gcc CXX=${CROSS_TC}-g++ go build
Cool ! Hopes for me ! Can I ask if you are using koxtoolchain ? And what os ? And what does the first line sourcing config ?
Again I build fine bare bone programs. But importing modules start triggering error (at least go-fbink and net/http)
https://github.com/NiLuJe/koxtoolchain/blob/e0e19f55d7b5485f6d69394ddd8dcf7c55a28359/gen-tc.sh#L74-L79 should answer your questions ;).
(I'm on Gentoo, not that this should matter much here, it just means that I'm currently on Go 1.16.6).
Tnak you for your time - both of you. Some some reason while trying to update my go version I actually revert it to 1.14. Once remove and updated to 1.16.4 it's working peachy !
Yeah ! Let's go kobo hacking :-)
Hey there ! I'd like to try out your lib - however I can't have it compile, I get a bunch of VFP errors like this one :
/usr/lib/gcc-cross/arm-linux-gnueabi/10/../../../../arm-linux-gnueabi/bin/ld: error: /home/olup/go/pkg/mod/github.com/shermp/go-fbink-v2@v1.20.2/gofbink/../fbinklib/libfbink.a(dfa.o) uses VFP register arguments, $WORK/b032/_cgo_.o does not
I don't know much about compiling C code, but I understand the error, and that it's not kinked to your lib. However, could you help me build it ? I think I am using the propper flags and compilers :
Do you have a recommendation here ? Cheers !