shermp / go-fbink-v2

Go FBInk wrapper, Vers. 2
GNU Affero General Public License v3.0
13 stars 2 forks source link

Cross compilation #13

Closed olup closed 3 years ago

olup commented 3 years ago

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 :

 CGO_ENABLED=1 CC=arm-linux-gnueabi-gcc  CXX=arm-linux-gnueabi-g++  GOARCH=arm GOOS=linux go build

Do you have a recommendation here ? Cheers !

shermp commented 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.

olup commented 3 years ago

Thanksa lot ! It took quite a while to build.

But no dice, i stil get a dump of errors :

Click to expand! ``` # github.com/shermp/go-fbink-v2/v2/gofbink /home/olup/x-tools/arm-kobo-linux-gnueabihf/bin/arm-kobo-linux-gnueabihf-gcc did not produce error at completed:1 on input: #line 1 "cgo-builtin-prolog" #include /* for ptrdiff_t and size_t below */ /* Define intgo when compiling with GCC. */ typedef ptrdiff_t intgo; #define GO_CGO_GOSTRING_TYPEDEF typedef struct { const char *p; intgo n; } _GoString_; typedef struct { char *p; intgo n; intgo c; } _GoBytes_; _GoString_ GoString(char *p); _GoString_ GoStringN(char *p, int l); _GoBytes_ GoBytes(void *p, int n); char *CString(_GoString_); void *CBytes(_GoBytes_); void *_CMalloc(size_t); __attribute__ ((unused)) static size_t _GoStringLen(_GoString_ s) { return (size_t)s.n; } __attribute__ ((unused)) static const char *_GoStringPtr(_GoString_ s) { return s.p; } #line 26 "/home/olup/go/pkg/mod/github.com/shermp/go-fbink-v2/v2@v2.21.0/gofbink/gofbink.go" #include #include #include "fbink.h" #line 1 "cgo-generated-wrapper" #line 1 "not-declared" void __cgo_f_1_1(void) { __typeof__(CString) *__cgo_undefined__1; } #line 1 "not-type" void __cgo_f_1_2(void) { CString *__cgo_undefined__2; } #line 1 "not-int-const" void __cgo_f_1_3(void) { enum { __cgo_undefined__3 = (CString)*1 }; } #line 1 "not-num-const" void __cgo_f_1_4(void) { static const double __cgo_undefined__4 = (CString); } #line 1 "not-str-lit" void __cgo_f_1_5(void) { static const char __cgo_undefined__5[] = (CString); } #line 2 "not-declared" void __cgo_f_2_1(void) { __typeof__(ENOTSUP) *__cgo_undefined__1; } #line 2 "not-type" void __cgo_f_2_2(void) { ENOTSUP *__cgo_undefined__2; } #line 2 "not-int-const" void __cgo_f_2_3(void) { enum { __cgo_undefined__3 = (ENOTSUP)*1 }; } #line 2 "not-num-const" void __cgo_f_2_4(void) { static const double __cgo_undefined__4 = (ENOTSUP); } #line 2 "not-str-lit" void __cgo_f_2_5(void) { static const char __cgo_undefined__5[] = (ENOTSUP); } #line 3 "not-declared" void __cgo_f_3_1(void) { __typeof__(FBInkConfig) *__cgo_undefined__1; } #line 3 "not-type" void __cgo_f_3_2(void) { FBInkConfig *__cgo_undefined__2; } #line 3 "not-int-const" void __cgo_f_3_3(void) { enum { __cgo_undefined__3 = (FBInkConfig)*1 }; } #line 3 "not-num-const" void __cgo_f_3_4(void) { static const double __cgo_undefined__4 = (FBInkConfig); } #line 3 "not-str-lit" void __cgo_f_3_5(void) { static const char __cgo_undefined__5[] = (FBInkConfig); } #line 4 "not-declared" void __cgo_f_4_1(void) { __typeof__(FBInkOTConfig) *__cgo_undefined__1; } #line 4 "not-type" void __cgo_f_4_2(void) { FBInkOTConfig *__cgo_undefined__2; } #line 4 "not-int-const" void __cgo_f_4_3(void) { enum { __cgo_undefined__3 = (FBInkOTConfig)*1 }; } #line 4 "not-num-const" void __cgo_f_4_4(void) { static const double __cgo_undefined__4 = (FBInkOTConfig); } #line 4 "not-str-lit" void __cgo_f_4_5(void) { static const char __cgo_undefined__5[] = (FBInkOTConfig); } #line 5 "not-declared" void __cgo_f_5_1(void) { __typeof__(FBInkRect) *__cgo_undefined__1; } #line 5 "not-type" void __cgo_f_5_2(void) { FBInkRect *__cgo_undefined__2; } #line 5 "not-int-const" void __cgo_f_5_3(void) { enum { __cgo_undefined__3 = (FBInkRect)*1 }; } #line 5 "not-num-const" void __cgo_f_5_4(void) { static const double __cgo_undefined__4 = (FBInkRect); } #line 5 "not-str-lit" void __cgo_f_5_5(void) { static const char __cgo_undefined__5[] = (FBInkRect); } #line 6 "not-declared" void __cgo_f_6_1(void) { __typeof__(FBInkState) *__cgo_undefined__1; } #line 6 "not-type" void __cgo_f_6_2(void) { FBInkState *__cgo_undefined__2; } #line 6 "not-int-const" void __cgo_f_6_3(void) { enum { __cgo_undefined__3 = (FBInkState)*1 }; } #line 6 "not-num-const" void __cgo_f_6_4(void) { static const double __cgo_undefined__4 = (FBInkState); } #line 6 "not-str-lit" void __cgo_f_6_5(void) { static const char __cgo_undefined__5[] = (FBInkState); } #line 7 "not-declared" void __cgo_f_7_1(void) { __typeof__(FONT_STYLE_T) *__cgo_undefined__1; } #line 7 "not-type" void __cgo_f_7_2(void) { FONT_STYLE_T *__cgo_undefined__2; } #line 7 "not-int-const" void __cgo_f_7_3(void) { enum { __cgo_undefined__3 = (FONT_STYLE_T)*1 }; } #line 7 "not-num-const" void __cgo_f_7_4(void) { static const double __cgo_undefined__4 = (FONT_STYLE_T); } #line 7 "not-str-lit" void __cgo_f_7_5(void) { static const char __cgo_undefined__5[] = (FONT_STYLE_T); } #line 8 "not-declared" void __cgo_f_8_1(void) { __typeof__(GoString) *__cgo_undefined__1; } #line 8 "not-type" void __cgo_f_8_2(void) { GoString *__cgo_undefined__2; } #line 8 "not-int-const" void __cgo_f_8_3(void) { enum { __cgo_undefined__3 = (GoString)*1 }; } #line 8 "not-num-const" void __cgo_f_8_4(void) { static const double __cgo_undefined__4 = (GoString); } #line 8 "not-str-lit" void __cgo_f_8_5(void) { static const char __cgo_undefined__5[] = (GoString); } #line 9 "not-declared" void __cgo_f_9_1(void) { __typeof__(LAST_MARKER) *__cgo_undefined__1; } #line 9 "not-type" void __cgo_f_9_2(void) { LAST_MARKER *__cgo_undefined__2; } #line 9 "not-int-const" void __cgo_f_9_3(void) { enum { __cgo_undefined__3 = (LAST_MARKER)*1 }; } #line 9 "not-num-const" void __cgo_f_9_4(void) { static const double __cgo_undefined__4 = (LAST_MARKER); } #line 9 "not-str-lit" void __cgo_f_9_5(void) { static const char __cgo_undefined__5[] = (LAST_MARKER); } #line 10 "not-declared" void __cgo_f_10_1(void) { __typeof__(bool) *__cgo_undefined__1; } #line 10 "not-type" void __cgo_f_10_2(void) { bool *__cgo_undefined__2; } #line 10 "not-int-const" void __cgo_f_10_3(void) { enum { __cgo_undefined__3 = (bool)*1 }; } #line 10 "not-num-const" void __cgo_f_10_4(void) { static const double __cgo_undefined__4 = (bool); } #line 10 "not-str-lit" void __cgo_f_10_5(void) { static const char __cgo_undefined__5[] = (bool); } #line 11 "not-declared" void __cgo_f_11_1(void) { __typeof__(fbink_add_ot_font) *__cgo_undefined__1; } #line 11 "not-type" void __cgo_f_11_2(void) { fbink_add_ot_font *__cgo_undefined__2; } #line 11 "not-int-const" void __cgo_f_11_3(void) { enum { __cgo_undefined__3 = (fbink_add_ot_font)*1 }; } #line 11 "not-num-const" void __cgo_f_11_4(void) { static const double __cgo_undefined__4 = (fbink_add_ot_font); } #line 11 "not-str-lit" void __cgo_f_11_5(void) { static const char __cgo_undefined__5[] = (fbink_add_ot_font); } #line 12 "not-declared" void __cgo_f_12_1(void) { __typeof__(fbink_button_scan) *__cgo_undefined__1; } #line 12 "not-type" void __cgo_f_12_2(void) { fbink_button_scan *__cgo_undefined__2; } #line 12 "not-int-const" void __cgo_f_12_3(void) { enum { __cgo_undefined__3 = (fbink_button_scan)*1 }; } #line 12 "not-num-const" void __cgo_f_12_4(void) { static const double __cgo_undefined__4 = (fbink_button_scan); } #line 12 "not-str-lit" void __cgo_f_12_5(void) { static const char __cgo_undefined__5[] = (fbink_button_scan); } #line 13 "not-declared" void __cgo_f_13_1(void) { __typeof__(fbink_close) *__cgo_undefined__1; } #line 13 "not-type" void __cgo_f_13_2(void) { fbink_close *__cgo_undefined__2; } #line 13 "not-int-const" void __cgo_f_13_3(void) { enum { __cgo_undefined__3 = (fbink_close)*1 }; } #line 13 "not-num-const" void __cgo_f_13_4(void) { static const double __cgo_undefined__4 = (fbink_close); } #line 13 "not-str-lit" void __cgo_f_13_5(void) { static const char __cgo_undefined__5[] = (fbink_close); } #line 14 "not-declared" void __cgo_f_14_1(void) { __typeof__(fbink_cls) *__cgo_undefined__1; } #line 14 "not-type" void __cgo_f_14_2(void) { fbink_cls *__cgo_undefined__2; } #line 14 "not-int-const" void __cgo_f_14_3(void) { enum { __cgo_undefined__3 = (fbink_cls)*1 }; } #line 14 "not-num-const" void __cgo_f_14_4(void) { static const double __cgo_undefined__4 = (fbink_cls); } #line 14 "not-str-lit" void __cgo_f_14_5(void) { static const char __cgo_undefined__5[] = (fbink_cls); } #line 15 "not-declared" void __cgo_f_15_1(void) { __typeof__(fbink_free_ot_fonts) *__cgo_undefined__1; } #line 15 "not-type" void __cgo_f_15_2(void) { fbink_free_ot_fonts *__cgo_undefined__2; } #line 15 "not-int-const" void __cgo_f_15_3(void) { enum { __cgo_undefined__3 = (fbink_free_ot_fonts)*1 }; } #line 15 "not-num-const" void __cgo_f_15_4(void) { static const double __cgo_undefined__4 = (fbink_free_ot_fonts); } #line 15 "not-str-lit" void __cgo_f_15_5(void) { static const char __cgo_undefined__5[] = (fbink_free_ot_fonts); } #line 16 "not-declared" void __cgo_f_16_1(void) { __typeof__(fbink_get_last_marker) *__cgo_undefined__1; } #line 16 "not-type" void __cgo_f_16_2(void) { fbink_get_last_marker *__cgo_undefined__2; } #line 16 "not-int-const" void __cgo_f_16_3(void) { enum { __cgo_undefined__3 = (fbink_get_last_marker)*1 }; } #line 16 "not-num-const" void __cgo_f_16_4(void) { static const double __cgo_undefined__4 = (fbink_get_last_marker); } #line 16 "not-str-lit" void __cgo_f_16_5(void) { static const char __cgo_undefined__5[] = (fbink_get_last_marker); } #line 17 "not-declared" void __cgo_f_17_1(void) { __typeof__(fbink_get_last_rect) *__cgo_undefined__1; } #line 17 "not-type" void __cgo_f_17_2(void) { fbink_get_last_rect *__cgo_undefined__2; } #line 17 "not-int-const" void __cgo_f_17_3(void) { enum { __cgo_undefined__3 = (fbink_get_last_rect)*1 }; } #line 17 "not-num-const" void __cgo_f_17_4(void) { static const double __cgo_undefined__4 = (fbink_get_last_rect); } #line 17 "not-str-lit" void __cgo_f_17_5(void) { static const char __cgo_undefined__5[] = (fbink_get_last_rect); } #line 18 "not-declared" void __cgo_f_18_1(void) { __typeof__(fbink_get_state) *__cgo_undefined__1; } #line 18 "not-type" void __cgo_f_18_2(void) { fbink_get_state *__cgo_undefined__2; } #line 18 "not-int-const" void __cgo_f_18_3(void) { enum { __cgo_undefined__3 = (fbink_get_state)*1 }; } #line 18 "not-num-const" void __cgo_f_18_4(void) { static const double __cgo_undefined__4 = (fbink_get_state); } #line 18 "not-str-lit" void __cgo_f_18_5(void) { static const char __cgo_undefined__5[] = (fbink_get_state); } #line 19 "not-declared" void __cgo_f_19_1(void) { __typeof__(fbink_init) *__cgo_undefined__1; } #line 19 "not-type" void __cgo_f_19_2(void) { fbink_init *__cgo_undefined__2; } #line 19 "not-int-const" void __cgo_f_19_3(void) { enum { __cgo_undefined__3 = (fbink_init)*1 }; } #line 19 "not-num-const" void __cgo_f_19_4(void) { static const double __cgo_undefined__4 = (fbink_init); } #line 19 "not-str-lit" void __cgo_f_19_5(void) { static const char __cgo_undefined__5[] = (fbink_init); } #line 20 "not-declared" void __cgo_f_20_1(void) { __typeof__(fbink_open) *__cgo_undefined__1; } #line 20 "not-type" void __cgo_f_20_2(void) { fbink_open *__cgo_undefined__2; } #line 20 "not-int-const" void __cgo_f_20_3(void) { enum { __cgo_undefined__3 = (fbink_open)*1 }; } #line 20 "not-num-const" void __cgo_f_20_4(void) { static const double __cgo_undefined__4 = (fbink_open); } #line 20 "not-str-lit" void __cgo_f_20_5(void) { static const char __cgo_undefined__5[] = (fbink_open); } #line 21 "not-declared" void __cgo_f_21_1(void) { __typeof__(fbink_print) *__cgo_undefined__1; } #line 21 "not-type" void __cgo_f_21_2(void) { fbink_print *__cgo_undefined__2; } #line 21 "not-int-const" void __cgo_f_21_3(void) { enum { __cgo_undefined__3 = (fbink_print)*1 }; } #line 21 "not-num-const" void __cgo_f_21_4(void) { static const double __cgo_undefined__4 = (fbink_print); } #line 21 "not-str-lit" void __cgo_f_21_5(void) { static const char __cgo_undefined__5[] = (fbink_print); } #line 22 "not-declared" void __cgo_f_22_1(void) { __typeof__(fbink_print_activity_bar) *__cgo_undefined__1; } #line 22 "not-type" void __cgo_f_22_2(void) { fbink_print_activity_bar *__cgo_undefined__2; } #line 22 "not-int-const" void __cgo_f_22_3(void) { enum { __cgo_undefined__3 = (fbink_print_activity_bar)*1 }; } #line 22 "not-num-const" void __cgo_f_22_4(void) { static const double __cgo_undefined__4 = (fbink_print_activity_bar); } #line 22 "not-str-lit" void __cgo_f_22_5(void) { static const char __cgo_undefined__5[] = (fbink_print_activity_bar); } #line 23 "not-declared" void __cgo_f_23_1(void) { __typeof__(fbink_print_image) *__cgo_undefined__1; } #line 23 "not-type" void __cgo_f_23_2(void) { fbink_print_image *__cgo_undefined__2; } #line 23 "not-int-const" void __cgo_f_23_3(void) { enum { __cgo_undefined__3 = (fbink_print_image)*1 }; } #line 23 "not-num-const" void __cgo_f_23_4(void) { static const double __cgo_undefined__4 = (fbink_print_image); } #line 23 "not-str-lit" void __cgo_f_23_5(void) { static const char __cgo_undefined__5[] = (fbink_print_image); } #line 24 "not-declared" void __cgo_f_24_1(void) { __typeof__(fbink_print_ot) *__cgo_undefined__1; } #line 24 "not-type" void __cgo_f_24_2(void) { fbink_print_ot *__cgo_undefined__2; } #line 24 "not-int-const" void __cgo_f_24_3(void) { enum { __cgo_undefined__3 = (fbink_print_ot)*1 }; } #line 24 "not-num-const" void __cgo_f_24_4(void) { static const double __cgo_undefined__4 = (fbink_print_ot); } #line 24 "not-str-lit" void __cgo_f_24_5(void) { static const char __cgo_undefined__5[] = (fbink_print_ot); } #line 25 "not-declared" void __cgo_f_25_1(void) { __typeof__(fbink_print_progress_bar) *__cgo_undefined__1; } #line 25 "not-type" void __cgo_f_25_2(void) { fbink_print_progress_bar *__cgo_undefined__2; } #line 25 "not-int-const" void __cgo_f_25_3(void) { enum { __cgo_undefined__3 = (fbink_print_progress_bar)*1 }; } #line 25 "not-num-const" void __cgo_f_25_4(void) { static const double __cgo_undefined__4 = (fbink_print_progress_bar); } #line 25 "not-str-lit" void __cgo_f_25_5(void) { static const char __cgo_undefined__5[] = (fbink_print_progress_bar); } #line 26 "not-declared" void __cgo_f_26_1(void) { __typeof__(fbink_print_raw_data) *__cgo_undefined__1; } #line 26 "not-type" void __cgo_f_26_2(void) { fbink_print_raw_data *__cgo_undefined__2; } #line 26 "not-int-const" void __cgo_f_26_3(void) { enum { __cgo_undefined__3 = (fbink_print_raw_data)*1 }; } #line 26 "not-num-const" void __cgo_f_26_4(void) { static const double __cgo_undefined__4 = (fbink_print_raw_data); } #line 26 "not-str-lit" void __cgo_f_26_5(void) { static const char __cgo_undefined__5[] = (fbink_print_raw_data); } #line 27 "not-declared" void __cgo_f_27_1(void) { __typeof__(fbink_refresh) *__cgo_undefined__1; } #line 27 "not-type" void __cgo_f_27_2(void) { fbink_refresh *__cgo_undefined__2; } #line 27 "not-int-const" void __cgo_f_27_3(void) { enum { __cgo_undefined__3 = (fbink_refresh)*1 }; } #line 27 "not-num-const" void __cgo_f_27_4(void) { static const double __cgo_undefined__4 = (fbink_refresh); } #line 27 "not-str-lit" void __cgo_f_27_5(void) { static const char __cgo_undefined__5[] = (fbink_refresh); } #line 28 "not-declared" void __cgo_f_28_1(void) { __typeof__(fbink_reinit) *__cgo_undefined__1; } #line 28 "not-type" void __cgo_f_28_2(void) { fbink_reinit *__cgo_undefined__2; } #line 28 "not-int-const" void __cgo_f_28_3(void) { enum { __cgo_undefined__3 = (fbink_reinit)*1 }; } #line 28 "not-num-const" void __cgo_f_28_4(void) { static const double __cgo_undefined__4 = (fbink_reinit); } #line 28 "not-str-lit" void __cgo_f_28_5(void) { static const char __cgo_undefined__5[] = (fbink_reinit); } #line 29 "not-declared" void __cgo_f_29_1(void) { __typeof__(fbink_version) *__cgo_undefined__1; } #line 29 "not-type" void __cgo_f_29_2(void) { fbink_version *__cgo_undefined__2; } #line 29 "not-int-const" void __cgo_f_29_3(void) { enum { __cgo_undefined__3 = (fbink_version)*1 }; } #line 29 "not-num-const" void __cgo_f_29_4(void) { static const double __cgo_undefined__4 = (fbink_version); } #line 29 "not-str-lit" void __cgo_f_29_5(void) { static const char __cgo_undefined__5[] = (fbink_version); } #line 30 "not-declared" void __cgo_f_30_1(void) { __typeof__(fbink_wait_for_complete) *__cgo_undefined__1; } #line 30 "not-type" void __cgo_f_30_2(void) { fbink_wait_for_complete *__cgo_undefined__2; } #line 30 "not-int-const" void __cgo_f_30_3(void) { enum { __cgo_undefined__3 = (fbink_wait_for_complete)*1 }; } #line 30 "not-num-const" void __cgo_f_30_4(void) { static const double __cgo_undefined__4 = (fbink_wait_for_complete); } #line 30 "not-str-lit" void __cgo_f_30_5(void) { static const char __cgo_undefined__5[] = (fbink_wait_for_complete); } #line 31 "not-declared" void __cgo_f_31_1(void) { __typeof__(fbink_wait_for_submission) *__cgo_undefined__1; } #line 31 "not-type" void __cgo_f_31_2(void) { fbink_wait_for_submission *__cgo_undefined__2; } #line 31 "not-int-const" void __cgo_f_31_3(void) { enum { __cgo_undefined__3 = (fbink_wait_for_submission)*1 }; } #line 31 "not-num-const" void __cgo_f_31_4(void) { static const double __cgo_undefined__4 = (fbink_wait_for_submission); } #line 31 "not-str-lit" void __cgo_f_31_5(void) { static const char __cgo_undefined__5[] = (fbink_wait_for_submission); } #line 32 "not-declared" void __cgo_f_32_1(void) { __typeof__(fbink_wait_for_usbms_processing) *__cgo_undefined__1; } #line 32 "not-type" void __cgo_f_32_2(void) { fbink_wait_for_usbms_processing *__cgo_undefined__2; } #line 32 "not-int-const" void __cgo_f_32_3(void) { enum { __cgo_undefined__3 = (fbink_wait_for_usbms_processing)*1 }; } #line 32 "not-num-const" void __cgo_f_32_4(void) { static const double __cgo_undefined__4 = (fbink_wait_for_usbms_processing); } #line 32 "not-str-lit" void __cgo_f_32_5(void) { static const char __cgo_undefined__5[] = (fbink_wait_for_usbms_processing); } #line 33 "not-declared" void __cgo_f_33_1(void) { __typeof__(float) *__cgo_undefined__1; } #line 33 "not-type" void __cgo_f_33_2(void) { float *__cgo_undefined__2; } #line 33 "not-int-const" void __cgo_f_33_3(void) { enum { __cgo_undefined__3 = (float)*1 }; } #line 33 "not-num-const" void __cgo_f_33_4(void) { static const double __cgo_undefined__4 = (float); } #line 33 "not-str-lit" void __cgo_f_33_5(void) { static const char __cgo_undefined__5[] = (float); } #line 34 "not-declared" void __cgo_f_34_1(void) { __typeof__(free) *__cgo_undefined__1; } #line 34 "not-type" void __cgo_f_34_2(void) { free *__cgo_undefined__2; } #line 34 "not-int-const" void __cgo_f_34_3(void) { enum { __cgo_undefined__3 = (free)*1 }; } #line 34 "not-num-const" void __cgo_f_34_4(void) { static const double __cgo_undefined__4 = (free); } #line 34 "not-str-lit" void __cgo_f_34_5(void) { static const char __cgo_undefined__5[] = (free); } #line 35 "not-declared" void __cgo_f_35_1(void) { __typeof__(int) *__cgo_undefined__1; } #line 35 "not-type" void __cgo_f_35_2(void) { int *__cgo_undefined__2; } #line 35 "not-int-const" void __cgo_f_35_3(void) { enum { __cgo_undefined__3 = (int)*1 }; } #line 35 "not-num-const" void __cgo_f_35_4(void) { static const double __cgo_undefined__4 = (int); } #line 35 "not-str-lit" void __cgo_f_35_5(void) { static const char __cgo_undefined__5[] = (int); } #line 36 "not-declared" void __cgo_f_36_1(void) { __typeof__(short) *__cgo_undefined__1; } #line 36 "not-type" void __cgo_f_36_2(void) { short *__cgo_undefined__2; } #line 36 "not-int-const" void __cgo_f_36_3(void) { enum { __cgo_undefined__3 = (short)*1 }; } #line 36 "not-num-const" void __cgo_f_36_4(void) { static const double __cgo_undefined__4 = (short); } #line 36 "not-str-lit" void __cgo_f_36_5(void) { static const char __cgo_undefined__5[] = (short); } #line 37 "not-declared" void __cgo_f_37_1(void) { __typeof__(size_t) *__cgo_undefined__1; } #line 37 "not-type" void __cgo_f_37_2(void) { size_t *__cgo_undefined__2; } #line 37 "not-int-const" void __cgo_f_37_3(void) { enum { __cgo_undefined__3 = (size_t)*1 }; } #line 37 "not-num-const" void __cgo_f_37_4(void) { static const double __cgo_undefined__4 = (size_t); } #line 37 "not-str-lit" void __cgo_f_37_5(void) { static const char __cgo_undefined__5[] = (size_t); } #line 38 "not-declared" void __cgo_f_38_1(void) { __typeof__(unsigned char) *__cgo_undefined__1; } #line 38 "not-type" void __cgo_f_38_2(void) { unsigned char *__cgo_undefined__2; } #line 38 "not-int-const" void __cgo_f_38_3(void) { enum { __cgo_undefined__3 = (unsigned char)*1 }; } #line 38 "not-num-const" void __cgo_f_38_4(void) { static const double __cgo_undefined__4 = (unsigned char); } #line 38 "not-str-lit" void __cgo_f_38_5(void) { static const char __cgo_undefined__5[] = (unsigned char); } #line 39 "not-declared" void __cgo_f_39_1(void) { __typeof__(uint16_t) *__cgo_undefined__1; } #line 39 "not-type" void __cgo_f_39_2(void) { uint16_t *__cgo_undefined__2; } #line 39 "not-int-const" void __cgo_f_39_3(void) { enum { __cgo_undefined__3 = (uint16_t)*1 }; } #line 39 "not-num-const" void __cgo_f_39_4(void) { static const double __cgo_undefined__4 = (uint16_t); } #line 39 "not-str-lit" void __cgo_f_39_5(void) { static const char __cgo_undefined__5[] = (uint16_t); } #line 40 "not-declared" void __cgo_f_40_1(void) { __typeof__(uint32_t) *__cgo_undefined__1; } #line 40 "not-type" void __cgo_f_40_2(void) { uint32_t *__cgo_undefined__2; } #line 40 "not-int-const" void __cgo_f_40_3(void) { enum { __cgo_undefined__3 = (uint32_t)*1 }; } #line 40 "not-num-const" void __cgo_f_40_4(void) { static const double __cgo_undefined__4 = (uint32_t); } #line 40 "not-str-lit" void __cgo_f_40_5(void) { static const char __cgo_undefined__5[] = (uint32_t); } #line 41 "not-declared" void __cgo_f_41_1(void) { __typeof__(uint8_t) *__cgo_undefined__1; } #line 41 "not-type" void __cgo_f_41_2(void) { uint8_t *__cgo_undefined__2; } #line 41 "not-int-const" void __cgo_f_41_3(void) { enum { __cgo_undefined__3 = (uint8_t)*1 }; } #line 41 "not-num-const" void __cgo_f_41_4(void) { static const double __cgo_undefined__4 = (uint8_t); } #line 41 "not-str-lit" void __cgo_f_41_5(void) { static const char __cgo_undefined__5[] = (uint8_t); } #line 1 "completed" int __cgo__1 = __cgo__2; full error output: not-type: In function '__cgo_f_1_2': not-type:1:35: error: '__cgo_undefined__2' undeclared (first use in this function) not-type:1:35: note: each undeclared identifier is reported only once for each function it appears in not-int-const: In function '__cgo_f_1_3': not-int-const:1:63: error: invalid operands to binary * (have 'char * (*)(_GoString_)' and 'int') not-num-const: In function '__cgo_f_1_4': not-num-const:1:67: error: incompatible types when initializing type 'double' using type 'char * (*)(_GoString_)' not-str-lit: In function '__cgo_f_1_5': not-str-lit:1:67: error: invalid initializer not-type: In function '__cgo_f_2_2': not-type:2:35: error: '__cgo_undefined__2' undeclared (first use in this function) not-str-lit: In function '__cgo_f_2_5': not-str-lit:2:67: error: invalid initializer not-int-const: In function '__cgo_f_3_3': not-int-const:3:67: error: invalid type argument of unary '*' (have 'int') not-num-const: In function '__cgo_f_3_4': not-num-const:3:80: error: expected expression before ';' token not-str-lit: In function '__cgo_f_3_5': not-str-lit:3:80: error: expected expression before ';' token not-int-const: In function '__cgo_f_4_3': not-int-const:4:69: error: invalid type argument of unary '*' (have 'int') not-num-const: In function '__cgo_f_4_4': not-num-const:4:82: error: expected expression before ';' token not-str-lit: In function '__cgo_f_4_5': not-str-lit:4:82: error: expected expression before ';' token not-int-const: In function '__cgo_f_5_3': not-int-const:5:65: error: invalid type argument of unary '*' (have 'int') not-num-const: In function '__cgo_f_5_4': not-num-const:5:78: error: expected expression before ';' token not-str-lit: In function '__cgo_f_5_5': not-str-lit:5:78: error: expected expression before ';' token not-int-const: In function '__cgo_f_6_3': not-int-const:6:66: error: invalid type argument of unary '*' (have 'int') not-num-const: In function '__cgo_f_6_4': not-num-const:6:79: error: expected expression before ';' token not-str-lit: In function '__cgo_f_6_5': not-str-lit:6:79: error: expected expression before ';' token not-int-const: In function '__cgo_f_7_3': not-int-const:7:68: error: invalid type argument of unary '*' (have 'int') not-num-const: In function '__cgo_f_7_4': not-num-const:7:81: error: expected expression before ';' token not-str-lit: In function '__cgo_f_7_5': not-str-lit:7:81: error: expected expression before ';' token not-type: In function '__cgo_f_8_2': not-type:8:36: error: '__cgo_undefined__2' undeclared (first use in this function) not-int-const: In function '__cgo_f_8_3': not-int-const:8:64: error: invalid operands to binary * (have '_GoString_ (*)(char *)' and 'int') not-num-const: In function '__cgo_f_8_4': not-num-const:8:67: error: incompatible types when initializing type 'double' using type '_GoString_ (*)(char *)' not-str-lit: In function '__cgo_f_8_5': not-str-lit:8:67: error: invalid initializer not-type: In function '__cgo_f_9_2': not-type:9:39: error: '__cgo_undefined__2' undeclared (first use in this function) not-str-lit: In function '__cgo_f_9_5': not-str-lit:9:67: error: invalid initializer not-int-const: In function '__cgo_f_10_3': not-int-const:10:61: error: invalid type argument of unary '*' (have 'int') not-num-const: In function '__cgo_f_10_4': not-num-const:10:74: error: expected expression before ';' token not-str-lit: In function '__cgo_f_10_5': not-str-lit:10:74: error: expected expression before ';' token not-type: In function '__cgo_f_11_2': not-type:11:46: error: '__cgo_undefined__2' undeclared (first use in this function) not-int-const: In function '__cgo_f_11_3': not-int-const:11:74: error: invalid operands to binary * (have 'int (*)(const char *, FONT_STYLE_T)' and 'int') not-num-const: In function '__cgo_f_11_4': not-num-const:11:68: error: incompatible types when initializing type 'double' using type 'int (*)(const char *, FONT_STYLE_T)' not-str-lit: In function '__cgo_f_11_5': not-str-lit:11:68: error: invalid initializer not-type: In function '__cgo_f_12_2': not-type:12:46: error: '__cgo_undefined__2' undeclared (first use in this function) not-int-const: In function '__cgo_f_12_3': not-int-const:12:74: error: invalid operands to binary * (have 'int (*)(int, _Bool, _Bool)' and 'int') not-num-const: In function '__cgo_f_12_4': not-num-const:12:68: error: incompatible types when initializing type 'double' using type 'int (*)(int, _Bool, _Bool)' not-str-lit: In function '__cgo_f_12_5': not-str-lit:12:68: error: invalid initializer not-type: In function '__cgo_f_13_2': not-type:13:40: error: '__cgo_undefined__2' undeclared (first use in this function) not-int-const: In function '__cgo_f_13_3': not-int-const:13:68: error: invalid operands to binary * (have 'int (*)(int)' and 'int') not-num-const: In function '__cgo_f_13_4': not-num-const:13:68: error: incompatible types when initializing type 'double' using type 'int (*)(int)' not-str-lit: In function '__cgo_f_13_5': not-str-lit:13:68: error: invalid initializer not-type: In function '__cgo_f_14_2': not-type:14:38: error: '__cgo_undefined__2' undeclared (first use in this function) not-int-const: In function '__cgo_f_14_3': not-int-const:14:66: error: invalid operands to binary * (have 'int (*)(int, const FBInkConfig * restrict, const FBInkRect * restrict)' and 'int') not-num-const: In function '__cgo_f_14_4': not-num-const:14:68: error: incompatible types when initializing type 'double' using type 'int (*)(int, const FBInkConfig * restrict, const FBInkRect * restrict)' not-str-lit: In function '__cgo_f_14_5': not-str-lit:14:68: error: invalid initializer not-type: In function '__cgo_f_15_2': not-type:15:48: error: '__cgo_undefined__2' undeclared (first use in this function) not-int-const: In function '__cgo_f_15_3': not-int-const:15:76: error: invalid operands to binary * (have 'int (*)(void)' and 'int') not-num-const: In function '__cgo_f_15_4': not-num-const:15:68: error: incompatible types when initializing type 'double' using type 'int (*)(void)' not-str-lit: In function '__cgo_f_15_5': not-str-lit:15:68: error: invalid initializer not-type: In function '__cgo_f_16_2': not-type:16:50: error: '__cgo_undefined__2' undeclared (first use in this function) not-int-const: In function '__cgo_f_16_3': not-int-const:16:78: error: invalid operands to binary * (have 'uint32_t (*)(void)' {aka 'unsigned int (*)(void)'} and 'int') not-num-const: In function '__cgo_f_16_4': not-num-const:16:68: error: incompatible types when initializing type 'double' using type 'uint32_t (*)(void)' {aka 'unsigned int (*)(void)'} not-str-lit: In function '__cgo_f_16_5': not-str-lit:16:68: error: invalid initializer not-type: In function '__cgo_f_17_2': not-type:17:48: error: '__cgo_undefined__2' undeclared (first use in this function) not-int-const: In function '__cgo_f_17_3': not-int-const:17:76: error: invalid operands to binary * (have 'FBInkRect (*)(void)' and 'int') not-num-const: In function '__cgo_f_17_4': not-num-const:17:68: error: incompatible types when initializing type 'double' using type 'FBInkRect (*)(void)' not-str-lit: In function '__cgo_f_17_5': not-str-lit:17:68: error: invalid initializer not-type: In function '__cgo_f_18_2': not-type:18:44: error: '__cgo_undefined__2' undeclared (first use in this function) not-int-const: In function '__cgo_f_18_3': not-int-const:18:72: error: invalid operands to binary * (have 'void (*)(const FBInkConfig * restrict, FBInkState * restrict)' and 'int') not-num-const: In function '__cgo_f_18_4': not-num-const:18:68: error: incompatible types when initializing type 'double' using type 'void (*)(const FBInkConfig * restrict, FBInkState * restrict)' not-str-lit: In function '__cgo_f_18_5': not-str-lit:18:68: error: invalid initializer not-type: In function '__cgo_f_19_2': not-type:19:39: error: '__cgo_undefined__2' undeclared (first use in this function) not-int-const: In function '__cgo_f_19_3': not-int-const:19:67: error: invalid operands to binary * (have 'int (*)(int, const FBInkConfig * restrict)' and 'int') not-num-const: In function '__cgo_f_19_4': not-num-const:19:68: error: incompatible types when initializing type 'double' using type 'int (*)(int, const FBInkConfig * restrict)' not-str-lit: In function '__cgo_f_19_5': not-str-lit:19:68: error: invalid initializer not-type: In function '__cgo_f_20_2': not-type:20:39: error: '__cgo_undefined__2' undeclared (first use in this function) not-int-const: In function '__cgo_f_20_3': not-int-const:20:67: error: invalid operands to binary * (have 'int (*)(void)' and 'int') not-num-const: In function '__cgo_f_20_4': not-num-const:20:68: error: incompatible types when initializing type 'double' using type 'int (*)(void)' not-str-lit: In function '__cgo_f_20_5': not-str-lit:20:68: error: invalid initializer not-type: In function '__cgo_f_21_2': not-type:21:40: error: '__cgo_undefined__2' undeclared (first use in this function) not-int-const: In function '__cgo_f_21_3': not-int-const:21:68: error: invalid operands to binary * (have 'int (*)(int, const char * restrict, const FBInkConfig * restrict)' and 'int') not-num-const: In function '__cgo_f_21_4': not-num-const:21:68: error: incompatible types when initializing type 'double' using type 'int (*)(int, const char * restrict, const FBInkConfig * restrict)' not-str-lit: In function '__cgo_f_21_5': not-str-lit:21:68: error: invalid initializer not-type: In function '__cgo_f_22_2': not-type:22:53: error: '__cgo_undefined__2' undeclared (first use in this function) not-int-const: In function '__cgo_f_22_3': not-int-const:22:81: error: invalid operands to binary * (have 'int (*)(int, uint8_t, const FBInkConfig * restrict)' {aka 'int (*)(int, unsigned char, const FBInkConfig * restrict)'} and 'int') not-num-const: In function '__cgo_f_22_4': not-num-const:22:68: error: incompatible types when initializing type 'double' using type 'int (*)(int, uint8_t, const FBInkConfig * restrict)' {aka 'int (*)(int, unsigned char, const FBInkConfig * restrict)'} not-str-lit: In function '__cgo_f_22_5': not-str-lit:22:68: error: invalid initializer not-type: In function '__cgo_f_23_2': not-type:23:46: error: '__cgo_undefined__2' undeclared (first use in this function) not-int-const: In function '__cgo_f_23_3': not-int-const:23:74: error: invalid operands to binary * (have 'int (*)(int, const char *, short int, short int, const FBInkConfig * restrict)' and 'int') not-num-const: In function '__cgo_f_23_4': not-num-const:23:68: error: incompatible types when initializing type 'double' using type 'int (*)(int, const char *, short int, short int, const FBInkConfig * restrict)' not-str-lit: In function '__cgo_f_23_5': not-str-lit:23:68: error: invalid initializer not-type: In function '__cgo_f_24_2': not-type:24:43: error: '__cgo_undefined__2' undeclared (first use in this function) not-int-const: In function '__cgo_f_24_3': not-int-const:24:71: error: invalid operands to binary * (have 'int (*)(int, const char * restrict, const FBInkOTConfig * restrict, const FBInkConfig * restrict, FBInkOTFit * restrict)' and 'int') not-num-const: In function '__cgo_f_24_4': not-num-const:24:68: error: incompatible types when initializing type 'double' using type 'int (*)(int, const char * restrict, const FBInkOTConfig * restrict, const FBInkConfig * restrict, FBInkOTFit * restrict)' not-str-lit: In function '__cgo_f_24_5': not-str-lit:24:68: error: invalid initializer not-type: In function '__cgo_f_25_2': not-type:25:53: error: '__cgo_undefined__2' undeclared (first use in this function) not-int-const: In function '__cgo_f_25_3': not-int-const:25:81: error: invalid operands to binary * (have 'int (*)(int, uint8_t, const FBInkConfig * restrict)' {aka 'int (*)(int, unsigned char, const FBInkConfig * restrict)'} and 'int') not-num-const: In function '__cgo_f_25_4': not-num-const:25:68: error: incompatible types when initializing type 'double' using type 'int (*)(int, uint8_t, const FBInkConfig * restrict)' {aka 'int (*)(int, unsigned char, const FBInkConfig * restrict)'} not-str-lit: In function '__cgo_f_25_5': not-str-lit:25:68: error: invalid initializer not-type: In function '__cgo_f_26_2': not-type:26:49: error: '__cgo_undefined__2' undeclared (first use in this function) not-int-const: In function '__cgo_f_26_3': not-int-const:26:77: error: invalid operands to binary * (have 'int (*)(int, unsigned char *, const int, const int, const size_t, short int, short int, const FBInkConfig * restrict)' {aka 'int (*)(int, unsigned char *, const int, const int, const unsigned int, short int, short int, const FBInkConfig * restrict)'} and 'int') not-num-const: In function '__cgo_f_26_4': not-num-const:26:68: error: incompatible types when initializing type 'double' using type 'int (*)(int, unsigned char *, const int, const int, const size_t, short int, short int, const FBInkConfig * restrict)' {aka 'int (*)(int, unsigned char *, const int, const int, const unsigned int, short int, short int, const FBInkConfig * restrict)'} not-str-lit: In function '__cgo_f_26_5': not-str-lit:26:68: error: invalid initializer not-type: In function '__cgo_f_27_2': not-type:27:42: error: '__cgo_undefined__2' undeclared (first use in this function) not-int-const: In function '__cgo_f_27_3': not-int-const:27:70: error: invalid operands to binary * (have 'int (*)(int, uint32_t, uint32_t, uint32_t, uint32_t, const FBInkConfig * restrict)' {aka 'int (*)(int, unsigned int, unsigned int, unsigned int, unsigned int, const FBInkConfig * restrict)'} and 'int') not-num-const: In function '__cgo_f_27_4': not-num-const:27:68: error: incompatible types when initializing type 'double' using type 'int (*)(int, uint32_t, uint32_t, uint32_t, uint32_t, const FBInkConfig * restrict)' {aka 'int (*)(int, unsigned int, unsigned int, unsigned int, unsigned int, const FBInkConfig * restrict)'} not-str-lit: In function '__cgo_f_27_5': not-str-lit:27:68: error: invalid initializer not-type: In function '__cgo_f_28_2': not-type:28:41: error: '__cgo_undefined__2' undeclared (first use in this function) not-int-const: In function '__cgo_f_28_3': not-int-const:28:69: error: invalid operands to binary * (have 'int (*)(int, const FBInkConfig * restrict)' and 'int') not-num-const: In function '__cgo_f_28_4': not-num-const:28:68: error: incompatible types when initializing type 'double' using type 'int (*)(int, const FBInkConfig * restrict)' not-str-lit: In function '__cgo_f_28_5': not-str-lit:28:68: error: invalid initializer not-type: In function '__cgo_f_29_2': not-type:29:42: error: '__cgo_undefined__2' undeclared (first use in this function) not-int-const: In function '__cgo_f_29_3': not-int-const:29:70: error: invalid operands to binary * (have '__attribute__((const)) const char * (*)(void)' and 'int') not-num-const: In function '__cgo_f_29_4': not-num-const:29:68: error: incompatible types when initializing type 'double' using type '__attribute__((const)) const char * (*)(void)' not-str-lit: In function '__cgo_f_29_5': not-str-lit:29:68: error: invalid initializer not-type: In function '__cgo_f_30_2': not-type:30:52: error: '__cgo_undefined__2' undeclared (first use in this function) not-int-const: In function '__cgo_f_30_3': not-int-const:30:80: error: invalid operands to binary * (have 'int (*)(int, uint32_t)' {aka 'int (*)(int, unsigned int)'} and 'int') not-num-const: In function '__cgo_f_30_4': not-num-const:30:68: error: incompatible types when initializing type 'double' using type 'int (*)(int, uint32_t)' {aka 'int (*)(int, unsigned int)'} not-str-lit: In function '__cgo_f_30_5': not-str-lit:30:68: error: invalid initializer not-type: In function '__cgo_f_31_2': not-type:31:54: error: '__cgo_undefined__2' undeclared (first use in this function) not-int-const: In function '__cgo_f_31_3': not-int-const:31:82: error: invalid operands to binary * (have 'int (*)(int, uint32_t)' {aka 'int (*)(int, unsigned int)'} and 'int') not-num-const: In function '__cgo_f_31_4': not-num-const:31:68: error: incompatible types when initializing type 'double' using type 'int (*)(int, uint32_t)' {aka 'int (*)(int, unsigned int)'} not-str-lit: In function '__cgo_f_31_5': not-str-lit:31:68: error: invalid initializer not-type: In function '__cgo_f_32_2': not-type:32:60: error: '__cgo_undefined__2' undeclared (first use in this function) not-int-const: In function '__cgo_f_32_3': not-int-const:32:88: error: invalid operands to binary * (have 'int (*)(int, _Bool)' and 'int') not-num-const: In function '__cgo_f_32_4': not-num-const:32:68: error: incompatible types when initializing type 'double' using type 'int (*)(int, _Bool)' not-str-lit: In function '__cgo_f_32_5': not-str-lit:32:68: error: invalid initializer not-int-const: In function '__cgo_f_33_3': not-int-const:33:62: error: invalid type argument of unary '*' (have 'int') not-num-const: In function '__cgo_f_33_4': not-num-const:33:75: error: expected expression before ';' token not-str-lit: In function '__cgo_f_33_5': not-str-lit:33:75: error: expected expression before ';' token not-type: In function '__cgo_f_34_2': not-type:34:33: error: '__cgo_undefined__2' undeclared (first use in this function) not-int-const: In function '__cgo_f_34_3': not-int-const:34:61: error: invalid operands to binary * (have 'void (*)(void *)' and 'int') not-num-const: In function '__cgo_f_34_4': not-num-const:34:68: error: incompatible types when initializing type 'double' using type 'void (*)(void *)' not-str-lit: In function '__cgo_f_34_5': not-str-lit:34:68: error: invalid initializer not-int-const: In function '__cgo_f_35_3': not-int-const:35:60: error: invalid type argument of unary '*' (have 'int') not-num-const: In function '__cgo_f_35_4': not-num-const:35:73: error: expected expression before ';' token not-str-lit: In function '__cgo_f_35_5': not-str-lit:35:73: error: expected expression before ';' token not-int-const: In function '__cgo_f_36_3': not-int-const:36:62: error: invalid type argument of unary '*' (have 'int') not-num-const: In function '__cgo_f_36_4': not-num-const:36:75: error: expected expression before ';' token not-str-lit: In function '__cgo_f_36_5': not-str-lit:36:75: error: expected expression before ';' token not-int-const: In function '__cgo_f_37_3': not-int-const:37:63: error: invalid type argument of unary '*' (have 'int') not-num-const: In function '__cgo_f_37_4': not-num-const:37:76: error: expected expression before ';' token not-str-lit: In function '__cgo_f_37_5': not-str-lit:37:76: error: expected expression before ';' token not-int-const: In function '__cgo_f_38_3': not-int-const:38:70: error: invalid type argument of unary '*' (have 'int') not-num-const: In function '__cgo_f_38_4': not-num-const:38:83: error: expected expression before ';' token not-str-lit: In function '__cgo_f_38_5': not-str-lit:38:83: error: expected expression before ';' token not-int-const: In function '__cgo_f_39_3': not-int-const:39:65: error: invalid type argument of unary '*' (have 'int') not-num-const: In function '__cgo_f_39_4': not-num-const:39:78: error: expected expression before ';' token not-str-lit: In function '__cgo_f_39_5': not-str-lit:39:78: error: expected expression before ';' token not-int-const: In function '__cgo_f_40_3': not-int-const:40:65: error: invalid type argument of unary '*' (have 'int') not-num-const: In function '__cgo_f_40_4': not-num-const:40:78: error: expected expression before ';' token not-str-lit: In function '__cgo_f_40_5': not-str-lit:40:78: error: expected expression before ';' token not-int-const: In function '__cgo_f_41_3': not-int-const:41:64: error: invalid type argument of unary '*' (have 'int') not-num-const: In function '__cgo_f_41_4': not-num-const:41:77: error: expected expression before ';' token not-str-lit: In function '__cgo_f_41_5': not-str-lit:41:77: error: expected expression before ';' token completed: At top level: completed:1:16: error: '__cgo__2' undeclared here (not in a function); did you mean '__cgo__1'? ```
olup commented 3 years ago

Although it does compile when I just print, and does similar errors when I try to load the net/http modules, for example.

NiLuJe commented 3 years ago

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.

olup commented 3 years ago

Hey thanks for chiming in ! I tried cleaning every things I could, but still got the same...

NiLuJe commented 3 years ago

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
olup commented 3 years ago

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)

NiLuJe commented 3 years ago

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).

olup commented 3 years ago

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 :-)