Skip to content

Conversation

@sue445
Copy link
Collaborator

@sue445 sue445 commented Aug 20, 2024

No description provided.

@sue445 sue445 force-pushed the add_go_test branch 3 times, most recently from 41e81f6 to be606db Compare August 20, 2024 16:22
sue445 added 4 commits August 21, 2024 01:41
```
CGO_CFLAGS=-I/Users/sue445/.rbenv/versions/3.3.4/include/ruby-3.3.0/arm64-darwin23 -I/Users/sue445/.rbenv/versions/3.3.4/include/ruby-3.3.0 CGO_LDFLAGS='-undefined dynamic_lookup' go test -count=1
/opt/homebrew/opt/go/libexec/pkg/tool/darwin_arm64/link: running cc failed: exit status 1
ld: warning: -undefined  dynamic_lookup is deprecated
ld: warning: -undefined  dynamic_lookup is deprecated
ld: warning: -undefined  dynamic_lookup is deprecated
ld: warning: -undefined  dynamic_lookup is deprecated
ld: warning: -undefined  dynamic_lookup is deprecated
ld: warning: -undefined  dynamic_lookup is deprecated
Undefined symbols for architecture arm64:
  "_rb_alias", referenced from:
      __cgo_575c2faba6e8_Cfunc_rb_alias in 000012.o
```
https://github.com/sue445/go-gem-wrapper/actions/runs/10475042353/job/29010778469?pr=108

```
+ rake go:test
CGO_CFLAGS=-O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wdeprecated-declarations -Wdiv-by-zero -Wduplicated-cond -Wimplicit-function-declaration -Wimplicit-int -Wpointer-arith -Wwrite-strings -Wold-style-definition -Wimplicit-fallthrough=0 -Wmissing-noreturn -Wno-cast-function-type -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-packed-bitfield-compat -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wsuggest-attribute=format -Wsuggest-attribute=noreturn -Wunused-variable -Wmisleading-indentation -Wundef  -fPIC -I/opt/hostedtoolcache/Ruby/3.3.4/x64/include/ruby-3.3.0/x86_64-linux -I/opt/hostedtoolcache/Ruby/3.3.4/x64/include/ruby-3.3.0 CGO_LDFLAGS=-L/opt/hostedtoolcache/Ruby/3.3.4/x64/lib -lruby -Wl,--unresolved-symbols=ignore-all go test -count=1 ${TEST_ARGS}
go: downloading github.com/stretchr/testify v1.9.0
go: downloading github.com/davecgh/go-spew v1.1.1
go: downloading github.com/pmezard/go-difflib v1.0.0
go: downloading gopkg.in/yaml.v3 v3.0.1
gcc_fatalf.c: In function ‘fatalf’:
gcc_fatalf.c:19:9: error: function ‘fatalf’ might be a candidate for ‘gnu_printf’ format attribute [-Werror=suggest-attribute=format]
   19 |         vfprintf(stderr, format, ap);
      |         ^~~~~~~~
gcc_fatalf.c: At top level:
cc1: note: unrecognized command-line option ‘-Wno-self-assign’ may have been intended to silence earlier diagnostics
cc1: note: unrecognized command-line option ‘-Wno-parentheses-equality’ may have been intended to silence earlier diagnostics
cc1: note: unrecognized command-line option ‘-Wno-constant-logical-operand’ may have been intended to silence earlier diagnostics
cc1: all warnings being treated as errors
```
@sue445 sue445 force-pushed the add_go_test branch 3 times, most recently from 261321a to c49778e Compare August 20, 2024 16:44
@sue445 sue445 merged commit 5504652 into main Aug 20, 2024
@sue445 sue445 deleted the add_go_test branch August 20, 2024 16:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants