QNX SDP 7.0 Make Errors

24 views
Skip to first unread message

Faruk KILAVUZ

unread,
Jun 7, 2024, 2:28:23 PMJun 7
to grpc.io
Hello all,

This is my first question on this group. I saw the warning on the github page that I should ask the question here. I'm sorry if I violated any rules.

I tried cross compile gRPC for QNX SDP 7.0. I start cmake this command:

cmake ../.. -DCMAKE_TOOLCHAIN_FILE=/home/arge/dev/grpc/cmake/qnx.nto.toolchain.cmake

and my output is:

- CMAKE_C_COMPILER: /home/arge/qnx700/host/linux/x86_64/usr/bin/qcc
-- CMAKE_CXX_COMPILER: /home/arge/qnx700/host/linux/x86_64/usr/bin/qcc
-- CMAKE_C_COMPILER: /home/arge/qnx700/host/linux/x86_64/usr/bin/qcc
-- CMAKE_CXX_COMPILER: /home/arge/qnx700/host/linux/x86_64/usr/bin/qcc
-- The C compiler identification is QCC 5.4.0
-- The CXX compiler identification is QCC 5.4.0
-- Check for working C compiler: /home/arge/qnx700/host/linux/x86_64/usr/bin/qcc
-- Check for working C compiler: /home/arge/qnx700/host/linux/x86_64/usr/bin/qcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /home/arge/qnx700/host/linux/x86_64/usr/bin/qcc
-- Check for working CXX compiler: /home/arge/qnx700/host/linux/x86_64/usr/bin/qcc -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE  
CMake Warning at third_party/abseil-cpp/CMakeLists.txt:70 (message):
  A future Abseil release will default ABSL_PROPAGATE_CXX_STD to ON for CMake
  3.8 and up.  We recommend enabling this option to ensure your project still
  builds correctly.


CMake Warning at third_party/abseil-cpp/absl/copts/AbseilConfigureCopts.cmake:70 (message):
  Value of CMAKE_SYSTEM_PROCESSOR () is unknown and cannot be used to set
  ABSL_RANDOM_RANDEN_COPTS
Call Stack (most recent call first):
  third_party/abseil-cpp/CMake/AbseilHelpers.cmake:18 (include)
  third_party/abseil-cpp/CMakeLists.txt:81 (include)


CMake Warning at third_party/abseil-cpp/absl/copts/AbseilConfigureCopts.cmake:92 (message):
  Unknown compiler: /home/arge/qnx700/host/linux/x86_64/usr/bin/qcc.
  Building with no default flags
Call Stack (most recent call first):
  third_party/abseil-cpp/CMake/AbseilHelpers.cmake:18 (include)
  third_party/abseil-cpp/CMakeLists.txt:81 (include)


-- Looking for res_servicename
-- Looking for res_servicename - not found
-- Looking for res_servicename in resolv
-- Looking for res_servicename in resolv - not found
-- Looking for gethostbyname
-- Looking for gethostbyname - not found
-- Looking for gethostbyname in nsl
-- Looking for gethostbyname in nsl - not found
-- Looking for gethostbyname in socket
-- Looking for gethostbyname in socket - found
-- Looking for socket
-- Looking for socket - not found
-- Looking for socket in socket
-- Looking for socket in socket - found
-- Looking for clock_gettime
-- Looking for clock_gettime - found
-- Looking for include file sys/types.h
-- Looking for include file sys/types.h - found
-- Looking for include file sys/socket.h
-- Looking for include file sys/socket.h - found
-- Looking for include file arpa/inet.h
-- Looking for include file arpa/inet.h - found
-- Looking for include file arpa/nameser_compat.h
-- Looking for include file arpa/nameser_compat.h - found
-- Looking for include file arpa/nameser.h
-- Looking for include file arpa/nameser.h - found
-- Looking for include file assert.h
-- Looking for include file assert.h - found
-- Looking for include file errno.h
-- Looking for include file errno.h - found
-- Looking for include file fcntl.h
-- Looking for include file fcntl.h - found
-- Looking for include file inttypes.h
-- Looking for include file inttypes.h - found
-- Looking for include file limits.h
-- Looking for include file limits.h - found
-- Looking for include file malloc.h
-- Looking for include file malloc.h - found
-- Looking for include file memory.h
-- Looking for include file memory.h - found
-- Looking for include file netdb.h
-- Looking for include file netdb.h - found
-- Looking for include file netinet/in.h
-- Looking for include file netinet/in.h - found
-- Looking for include file net/if.h
-- Looking for include file net/if.h - found
-- Looking for include file signal.h
-- Looking for include file signal.h - found
-- Looking for include file socket.h
-- Looking for include file socket.h - not found
-- Looking for include file stdbool.h
-- Looking for include file stdbool.h - found
-- Looking for include file stdint.h
-- Looking for include file stdint.h - found
-- Looking for include file stdlib.h
-- Looking for include file stdlib.h - found
-- Looking for include file strings.h
-- Looking for include file strings.h - found
-- Looking for include file string.h
-- Looking for include file string.h - found
-- Looking for include file stropts.h
-- Looking for include file stropts.h - not found
-- Looking for include file sys/ioctl.h
-- Looking for include file sys/ioctl.h - found
-- Looking for include file sys/param.h
-- Looking for include file sys/param.h - found
-- Looking for include file sys/select.h
-- Looking for include file sys/select.h - found
-- Looking for include file sys/stat.h
-- Looking for include file sys/stat.h - found
-- Looking for include file sys/time.h
-- Looking for include file sys/time.h - found
-- Looking for include file sys/uio.h
-- Looking for include file sys/uio.h - found
-- Looking for include file time.h
-- Looking for include file time.h - found
-- Looking for include file dlfcn.h
-- Looking for include file dlfcn.h - found
-- Looking for include file unistd.h
-- Looking for include file unistd.h - found
-- Looking for include files sys/types.h, netinet/tcp.h
-- Looking for include files sys/types.h, netinet/tcp.h - found
-- Looking for include files winsock2.h, windows.h
-- Looking for include files winsock2.h, windows.h - not found
-- Looking for 3 include files winsock2.h, ..., windows.h
-- Looking for 3 include files winsock2.h, ..., windows.h - not found
-- Looking for include files winsock.h, windows.h
-- Looking for include files winsock.h, windows.h - not found
-- Looking for include file windows.h
-- Looking for include file windows.h - not found
-- Performing Test HAVE_SOCKLEN_T
-- Performing Test HAVE_SOCKLEN_T - Success
-- Performing Test HAVE_TYPE_SOCKET
-- Performing Test HAVE_TYPE_SOCKET - Failed
-- Performing Test HAVE_BOOL_T
-- Performing Test HAVE_BOOL_T - Success
-- Performing Test HAVE_SSIZE_T
-- Performing Test HAVE_SSIZE_T - Success
-- Performing Test HAVE_LONGLONG
-- Performing Test HAVE_LONGLONG - Success
-- Performing Test HAVE_SIG_ATOMIC_T
-- Performing Test HAVE_SIG_ATOMIC_T - Success
-- Performing Test HAVE_STRUCT_ADDRINFO
-- Performing Test HAVE_STRUCT_ADDRINFO - Success
-- Performing Test HAVE_STRUCT_IN6_ADDR
-- Performing Test HAVE_STRUCT_IN6_ADDR - Success
-- Performing Test HAVE_STRUCT_SOCKADDR_IN6
-- Performing Test HAVE_STRUCT_SOCKADDR_IN6 - Success
-- Performing Test HAVE_STRUCT_SOCKADDR_STORAGE
-- Performing Test HAVE_STRUCT_SOCKADDR_STORAGE - Success
-- Performing Test HAVE_STRUCT_TIMEVAL
-- Performing Test HAVE_STRUCT_TIMEVAL - Success
-- Looking for AF_INET6
-- Looking for AF_INET6 - found
-- Looking for O_NONBLOCK
-- Looking for O_NONBLOCK - found
-- Looking for FIONBIO
-- Looking for FIONBIO - found
-- Looking for SIOCGIFADDR
-- Looking for SIOCGIFADDR - found
-- Looking for MSG_NOSIGNAL
-- Looking for MSG_NOSIGNAL - found
-- Looking for PF_INET6
-- Looking for PF_INET6 - found
-- Looking for SO_NONBLOCK
-- Looking for SO_NONBLOCK - not found
-- Looking for CLOCK_MONOTONIC
-- Looking for CLOCK_MONOTONIC - found
-- Performing Test HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID
-- Performing Test HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID - Success
-- Performing Test HAVE_LL
-- Performing Test HAVE_LL - Success
-- Looking for bitncmp
-- Looking for bitncmp - not found
-- Looking for closesocket
-- Looking for closesocket - not found
-- Looking for CloseSocket
-- Looking for CloseSocket - not found
-- Looking for connect
-- Looking for connect - found
-- Looking for fcntl
-- Looking for fcntl - found
-- Looking for freeaddrinfo
-- Looking for freeaddrinfo - found
-- Looking for getaddrinfo
-- Looking for getaddrinfo - found
-- Looking for getenv
-- Looking for getenv - found
-- Looking for gethostbyaddr
-- Looking for gethostbyaddr - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for gethostname
-- Looking for gethostname - found
-- Looking for getnameinfo
-- Looking for getnameinfo - found
-- Looking for getservbyport_r
-- Looking for getservbyport_r - not found
-- Looking for getservbyname_r
-- Looking for getservbyname_r - not found
-- Looking for gettimeofday
-- Looking for gettimeofday - found
-- Looking for if_indextoname
-- Looking for if_indextoname - found
-- Looking for inet_net_pton
-- Looking for inet_net_pton - found
-- Looking for inet_ntop
-- Looking for inet_ntop - found
-- Looking for inet_pton
-- Looking for inet_pton - found
-- Looking for ioctl
-- Looking for ioctl - found
-- Looking for ioctlsocket
-- Looking for ioctlsocket - not found
-- Looking for IoctlSocket
-- Looking for IoctlSocket - not found
-- Looking for recv
-- Looking for recv - found
-- Looking for recvfrom
-- Looking for recvfrom - found
-- Looking for send
-- Looking for send - found
-- Looking for setsockopt
-- Looking for setsockopt - found
-- Looking for socket
-- Looking for socket - found
-- Looking for strcasecmp
-- Looking for strcasecmp - found
-- Looking for strcmpi
-- Looking for strcmpi - not found
-- Looking for strdup
-- Looking for strdup - found
-- Looking for stricmp
-- Looking for stricmp - not found
-- Looking for strncasecmp
-- Looking for strncasecmp - found
-- Looking for strncmpi
-- Looking for strncmpi - not found
-- Looking for strnicmp
-- Looking for strnicmp - not found
-- Looking for writev
-- Looking for writev - found
-- Looking for __system_property_get
-- Looking for __system_property_get - not found
CMake Warning at third_party/protobuf/cmake/CMakeLists.txt:3 (message):
  Calling of cmake with source directory set to "cmake" subdirectory of
  Protocol Buffers project is deprecated.  Top-level directory of Protocol
  Buffers project should be used instead.


--
-- 3.21.6.0
-- Performing Test protobuf_HAVE_LD_VERSION_SCRIPT
-- Performing Test protobuf_HAVE_LD_VERSION_SCRIPT - Success
-- Performing Test protobuf_HAVE_BUILTIN_ATOMICS
-- Performing Test protobuf_HAVE_BUILTIN_ATOMICS - Success
SET aarch64
-- The ASM compiler identification is QCC
-- Found assembler: /home/arge/qnx700/host/linux/x86_64/usr/bin/qcc
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of off64_t
-- Check size of off64_t - done
-- Looking for fseeko
-- Looking for fseeko - found
-- Looking for unistd.h
-- Looking for unistd.h - found
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1")
-- Checking for module 'libsystemd'
--   Found libsystemd, version 245
-- Found systemd via pkg-config.
-- Configuring done
-- Generating done
-- Build files have been written to: /home/arge/dev/grpc/cmake/build


and I understand here. Everyhing is works. But when I run `make` command I take this error:

/home/arge/dev/grpc/third_party/protobuf/src/google/protobuf/io/zero_copy_stream_impl.cc: In function 'int google::protobuf::io::{anonymous}::close_no_eintr(int)':
/home/arge/dev/grpc/third_party/protobuf/src/google/protobuf/io/zero_copy_stream_impl.cc:76:22: error: 'close' was not declared in this scope
     result = close(fd);
                      ^
/home/arge/dev/grpc/third_party/protobuf/src/google/protobuf/io/zero_copy_stream_impl.cc: In constructor 'google::protobuf::io::FileInputStream::CopyingFileInputStream::CopyingFileInputStream(int)':
/home/arge/dev/grpc/third_party/protobuf/src/google/protobuf/io/zero_copy_stream_impl.cc:108:35: error: 'fcntl' was not declared in this scope
   int flags = fcntl(file_, F_GETFL);
                                   ^
/home/arge/dev/grpc/third_party/protobuf/src/google/protobuf/io/zero_copy_stream_impl.cc: In member function 'virtual int google::protobuf::io::FileInputStream::CopyingFileInputStream::Read(void*, int)':
/home/arge/dev/grpc/third_party/protobuf/src/google/protobuf/io/zero_copy_stream_impl.cc:142:38: error: 'read' was not declared in this scope
     result = read(file_, buffer, size);
                                      ^
/home/arge/dev/grpc/third_party/protobuf/src/google/protobuf/io/zero_copy_stream_impl.cc: In member function 'virtual int google::protobuf::io::FileInputStream::CopyingFileInputStream::Skip(int)':
/home/arge/dev/grpc/third_party/protobuf/src/google/protobuf/io/zero_copy_stream_impl.cc:156:61: error: 'lseek' was not declared in this scope
   if (!previous_seek_failed_ && lseek(file_, count, SEEK_CUR) != (off_t)-1) {
                                                             ^
/home/arge/dev/grpc/third_party/protobuf/src/google/protobuf/io/zero_copy_stream_impl.cc: In member function 'virtual bool google::protobuf::io::FileOutputStream::CopyingFileOutputStream::Write(const void*, int)':
/home/arge/dev/grpc/third_party/protobuf/src/google/protobuf/io/zero_copy_stream_impl.cc:224:77: error: 'write' was not declared in this scope
       bytes = write(file_, buffer_base + total_written, size - total_written);
                                                                             ^
cc: /home/arge/qnx700/host/linux/x86_64/usr/lib/gcc/i586-pc-nto-qnx7.0.0/5.4.0/cc1plus error 1
third_party/protobuf/CMakeFiles/libprotobuf.dir/build.make:244: recipe for target 'third_party/protobuf/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/io/zero_copy_stream_impl.cc.o' failed
make[2]: *** [third_party/protobuf/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/io/zero_copy_stream_impl.cc.o] Error 1
CMakeFiles/Makefile2:5440: recipe for target 'third_party/protobuf/CMakeFiles/libprotobuf.dir/all' failed
make[1]: *** [third_party/protobuf/CMakeFiles/libprotobuf.dir/all] Error 2
Makefile:151: recipe for target 'all' failed
make: *** [all] Error 2

How can I fix this issue? 

SDP version is 7.0
GCC version is 5.4.0
gRPC version: v1.52.2

Best regards,
Faruk Kilavuz

Reply all
Reply to author
Forward
0 new messages