Seeking advice on source of compilation errors in kernel header files

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



As part of my current project, I am trying to compile some proprietary device drivers on Redhat8 using the vendor supplied Makefile, which invokes gcc. Here is the complete output of the gcc -v command:

bash-4.4$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/8/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-redhat-linux
Configured with: ../configure --enable-bootstrap --enable-languages=c,c++,fortran,lto --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-shared --enable-threads=posix --enable-checking=release --enable-multilib --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-gcc-major-version-only --with-linker-hash-style=gnu --enable-plugin --enable-initfini-array --with-isl --disable-libmpx --enable-offload-targets=nvptx-none --without-cuda-driver --enable-gnu-indirect-function --enable-cet --with-tune=generic --with-arch_32=x86-64 --build=x86_64-redhat-linux
Thread model: posix
gcc version 8.3.1 20191121 (Red Hat 8.3.1-5) (GCC)

The drivers that I am trying to compile had been originally written for Redhat6, and the compilation results in a bunch of errors in system header files such as <linux/printk.h>, <linux/kernel.h> et al.

I do not wish to flood this post with specific errors, but rather what I am trying to figure out is why is it that I am seeing the errors in the kernel header files when the code is compiled on Redhat8 with the version of gcc that is included in the distribution.

I am of the view that the root cause of the errors is a possible mismatch between the compiler version and the kernel source code.

Any thoughts would be highly appreciated.

TIA
vpb




[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux