Skip to content
Permalink
66a911b91c
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
rebuilding the drivers resulted in

```
[BEE] make SYSSRC=/scratch/local2/beehive/nvidia_linux-4.14.87-236-390.87-0/tmp/linux-4.14.87-236.x86_64/source module
make[1]: Entering directory '/scratch/local2/beehive/nvidia_linux-4.14.87-236-390.87-0/tmp/linux-4.14.87-236.x86_64/source'

Compiler version check failed:

The major and minor number of the compiler used to
compile the kernel:

gcc version 7.3.0 (GCC)

does not match the compiler used here:

cc (GCC) 7.5.0
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


It is recommended to set the CC environment variable
to the compiler that was used to compile the kernel.

The compiler version check can be disabled by setting
the IGNORE_CC_MISMATCH environment variable to "1".
However, mixing compiler versions between the kernel
and kernel modules can result in subtle bugs that are
difficult to diagnose.

*** Failed CC version check. Bailing out! ***
```

fixed by feeding `IGNORE_CC_MISMATCH=1`.

refs: #1505 / #1509
1 contributor

Users who have contributed to this file

executable file 60 lines (41 sloc) 1.62 KB
#!/bin/env beesh
NVIDIA_ARCHIVE="NVIDIA-Linux-x86_64-${PKGVERSION}.run"
SRCURL[0]="https://download.nvidia.com/XFree86/Linux-x86_64/${PKGVERSION}/${NVIDIA_ARCHIVE}"
PATCHURL+=()
LINUXPKG=${PKGEXTRANAME}.${ARCH}
LINUXKLOCALVER=$(beeversion --format "%v.mx64.%r" "${LINUXPKG}")
# '4.4.mx64.75' to '4.4.0.mx64.75'
if [[ $LINUXKLOCALVER =~ ^([0-9]+\.[0-9]+)(\.mx64.*) ]]; then
LINUXKLOCALVER="${BASH_REMATCH[1]}.0${BASH_REMATCH[2]}"
fi
build_in_sourcedir
sourcesubdir_append kernel
: ${BEE_TMP_TMPDIR:=/tmp}
mee_extract() {
LINUXBUILDARCHIVE="${BEE_BUILDARCHIVEDIR}/${LINUXPKG}.beebuild.tar.bz2"
print_info "extracting nvidia archive .."
start_cmd rmdir ${S}
start_cmd sh ${F}/${NVIDIA_ARCHIVE} -x --target ${S}
if [ -d "/usr/src/linux/${LINUXPKG}/source" ] ; then
LINUXSRCDIR="/usr/src/linux/${LINUXPKG}/source"
elif [ -d "${BEE_TMP_TMPDIR}/${LINUXPKG}/source" ] ; then
LINUXSRCDIR="${BEE_TMP_TMPDIR}/${LINUXPKG}/source"
else
print_info "extracting linux build ${LINUXPKG} .."
start_cmd gtar -xf "${LINUXBUILDARCHIVE}" -C ${BEE_TMP_TMPDIR}
LINUXSRCDIR="${BEE_TMP_TMPDIR}/${LINUXPKG}/source"
fi
print_info "using kernel sources from ${LINUXSRCDIR} .."
}
mee_build_pre() {
ln -s ${LINUXSRCDIR}/include ${S}/include
}
mee_build() {
IGNORE_CC_MISMATCH=1 \
make SYSSRC=${LINUXSRCDIR} module
}
mee_install() {
mkdir -pv ${D}${DATAROOTDIR}/nvidia/kernel/${LINUXKLOCALVER}/${PKGVERSION}
cp -v *.ko ${D}${DATAROOTDIR}/nvidia/kernel/${LINUXKLOCALVER}/${PKGVERSION}/
ln -s ${PKGVERSION} ${D}${DATAROOTDIR}/nvidia/kernel/${LINUXKLOCALVER}/current
}