Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linker warning when compiling #53

Open
arlesontonnera opened this issue Mar 14, 2024 · 6 comments
Open

Linker warning when compiling #53

arlesontonnera opened this issue Mar 14, 2024 · 6 comments

Comments

@arlesontonnera
Copy link

After running the go build command, the compilation stops with the following messages:

I appreciate any help.

github.com/Benau/go_rlottie

In file included from vector_stb_stb_image.cpp:14:
vector_stb_stb_image.h: In function ‘int stbi__jpeg_info(stbi__context*, int*, int*, int*)’:
vector_stb_stb_image.h:956:29: warning: value computed is not used [-Wunused-value]
956 | #define stbi__errpuc(x,y) ((unsigned char *)(size_t) (stbi__err(x,y)?NULL:NULL))
| ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
vector_stb_stb_image.h:3811:7: note: in expansion of macro ‘stbi__errpuc’
3811 | stbi__errpuc("outofmem", "Out of memory");
| ^~~~~~~~~~~~

watgbridge

/usr/bin/ld: warning: /tmp/go-link-2201394933/000027.o: missing .note.GNU-stack section implies executable stack
/usr/bin/ld: NOTE: This behaviour is deprecated and will be removed in a future version of the linker

@akshettrj
Copy link
Owner

The rlottie one is just warning

You can ignore that

The ldd one also looks like a warning. Is any binary file named watgbridge getting generated?

@arlesontonnera
Copy link
Author

The rlottie one is just warning

You can ignore that

The ldd one also looks like a warning. Is any binary file named watgbridge getting generated?

I imagined. Yes, a binary named watgbridge was generated with approximately 35.4MB. I hope everything is ok. I take this opportunity to praise your incredible work. Health and peace to you. ;-)

@akshettrj
Copy link
Owner

Yeah, the bot should work then

You probably are running very old version of gcc or something.

Thank you for your kind words ☺️

@arlesontonnera
Copy link
Author

Yeah, the bot should work then

You probably are running very old version of gcc or something.

Thank you for your kind words

gcc version 13.2.0 (GCC)

You are welcome! :-)

@akshettrj
Copy link
Owner

And what golang version ?

@arlesontonnera
Copy link
Author

go version go1.21.8 linux/amd64

@akshettrj akshettrj changed the title Error when compiling Linker warning when compiling Mar 23, 2024
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

No branches or pull requests

2 participants