Replies: 1 comment 1 reply
-
The errors come from an example program, so configuring with --disable-examples-build should prevent them from building and avoid the error.
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there,
Can you please help me with the below errors I encountered in building libssh2?
I saw a comment about updating the toolchain. But is there another work around maybe?
Thanks.
SYSROOT = --sysroot=/home/WF_4.mm7/sysroot/mm7-glibc_small/x86-linux2/../sysroot
CC session.lo
SYSROOT = --sysroot=/home/WF_4.mm7/sysroot/mm7-glibc_small/x86-linux2/../sysroot
session.c:572: warning: expected [error|warning|ignored] after '#pragma GCC diagnostic'
session.c:573: warning: unknown option after '#pragma GCC diagnostic' kind
session.c:585: warning: expected [error|warning|ignored] after '#pragma GCC diagnostic'
CC sftp.lo
SYSROOT = --sysroot=/home/WF_4.mm7/sysroot/mm7-glibc_small/x86-linux2/../sysroot
CC transport.lo
SYSROOT = --sysroot=/home/WF_4.mm7/sysroot/mm7-glibc_small/x86-linux2/../sysroot
CC userauth.lo
SYSROOT = --sysroot=/home/WF_4.mm7/sysroot/mm7-glibc_small/x86-linux2/../sysroot
CC userauth_kbd_packet.lo
SYSROOT = --sysroot=/home/WF_4.mm7/sysroot/mm7-glibc_small/x86-linux2/../sysroot
CC version.lo
SYSROOT = --sysroot=/home/WF_4.mm7/sysroot/mm7-glibc_small/x86-linux2/../sysroot
CCLD libssh2.la
SYSROOT = --sysroot=/home/WF_4.mm7/sysroot/mm7-glibc_small/x86-linux2/../sysroot
make[2]: Leaving directory
/home/mm6/views/libssh2-1.11.1/src' make[1]: Leaving directory
/home/mm6/views/libssh2-1.11.1/src'Making all in docs
make[1]: Entering directory
/home/mm6/views/libssh2-1.11.1/docs' make[1]: Nothing to be done for
all'.make[1]: Leaving directory
/home/mm6/views/libssh2-1.11.1/docs' Making all in tests make[1]: Entering directory
/home/mm6/views/libssh2-1.11.1/tests'Making all in ossfuzz
make[2]: Entering directory
/home/mm6/views/libssh2-1.11.1/tests/ossfuzz' make[2]: Nothing to be done for
all'.make[2]: Leaving directory
/home/mm6/views/libssh2-1.11.1/tests/ossfuzz' make[2]: Entering directory
/home/mm6/views/libssh2-1.11.1/tests'make[2]: Nothing to be done for
all-am'. make[2]: Leaving directory
/home/mm6/views/libssh2-1.11.1/tests'make[1]: Leaving directory
/home/mm6/views/libssh2-1.11.1/tests' Making all in example make[1]: Entering directory
/home/mm6/views/libssh2-1.11.1/example'CC direct_tcpip.o
SYSROOT = --sysroot=/home/WF_4.mm7/sysroot/mm7-glibc_small/x86-linux2/../sysroot
direct_tcpip.c: In function 'main':
direct_tcpip.c:252: error: #pragma GCC diagnostic not allowed inside functions
direct_tcpip.c:253: error: #pragma GCC diagnostic not allowed inside functions
direct_tcpip.c:257: error: #pragma GCC diagnostic not allowed inside functions
direct_tcpip.c:267: error: #pragma GCC diagnostic not allowed inside functions
direct_tcpip.c:268: error: #pragma GCC diagnostic not allowed inside functions
direct_tcpip.c:272: error: #pragma GCC diagnostic not allowed inside functions
make[1]: *** [direct_tcpip.o] Error 1
make[1]: Leaving directory `/home/mm6/views/libssh2-1.11.1/example'
make: *** [all-recursive] Error 1
Beta Was this translation helpful? Give feedback.
All reactions