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

Can't make scst-3.8.0.4 5.14.0-388.el9 #201

Closed
AleksovAnry opened this issue Dec 4, 2023 · 1 comment · Fixed by #206
Closed

Can't make scst-3.8.0.4 5.14.0-388.el9 #201

AleksovAnry opened this issue Dec 4, 2023 · 1 comment · Fixed by #206

Comments

@AleksovAnry
Copy link

[root@a scst]#  make rpm
make scst-rpm
make[1]: Entering directory '/root/scst'
name=scst &&							\
rpmtopdir=/usr/src/packages &&					\
make scst-dist-gzip &&					\
for d in BUILD RPMS SOURCES SPECS SRPMS; do			\
  mkdir -p ${rpmtopdir}/$d;					\
done &&								\
cp scst-3.8.0.4c0fb04a.tar.bz2 ${rpmtopdir}/SOURCES &&		\
sed -e "s/@rpm_version@/3.8.0.4c0fb04a/g"				\
    -e "s|@depmod@|/usr/sbin/depmod|g"			\
	<${name}.spec.in >${name}.spec &&			\
MAKE="make" rpmbuild --define="%_topdir ${rpmtopdir}"	\
    --define="%kversion 5.14.0-388.el9.x86_64"			\
    --define="%kdir /lib/modules/5.14.0-388.el9.x86_64/build"			\
    --define="%pkg_build_mode 2release"		\
    -ba ${name}.spec &&					\
rm -f scst-3.8.0.4c0fb04a.tar.bz2
make[2]: Entering directory '/root/scst'
make[2]: Nothing to be done for 'scst-dist-gzip'.
make[2]: Leaving directory '/root/scst'
kdir=/lib/modules/5.14.0-388.el9.x86_64/build kversion=5.14.0-388.el9.x86_64

kernel_rpm=kernel-modules-core

krpmver=5.14.0-388.el9

kernel_devel_rpm=kernel-devel

setting SOURCE_DATE_EPOCH=1583625600
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.vUlqZR
+ umask 022
+ cd /usr/src/packages/BUILD
+ cd /usr/src/packages/BUILD
+ rm -rf scst-3.8.0.4c0fb04a
+ /usr/bin/bzip2 -dc /usr/src/packages/SOURCES/scst-3.8.0.4c0fb04a.tar.bz2
+ /usr/bin/tar -xof -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd scst-3.8.0.4c0fb04a
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ RPM_EC=0
++ jobs -p
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.rb8sqf
+ umask 022
+ cd /usr/src/packages/BUILD
+ cd scst-3.8.0.4c0fb04a
+ export KDIR=/lib/modules/5.14.0-388.el9.x86_64/build
+ KDIR=/lib/modules/5.14.0-388.el9.x86_64/build
+ export PREFIX=/usr
+ PREFIX=/usr
+ export BUILD_2X_MODULE=y CONFIG_SCSI_QLA_FC=y CONFIG_SCSI_QLA2XXX_TARGET=y
+ BUILD_2X_MODULE=y
+ CONFIG_SCSI_QLA_FC=y
+ CONFIG_SCSI_QLA2XXX_TARGET=y
+ make 2release
make[2]: Entering directory '/usr/src/packages/BUILD/scst-3.8.0.4c0fb04a'
cd scst && make 2release
make[3]: Entering directory '/usr/src/packages/BUILD/scst-3.8.0.4c0fb04a/scst'
make[3]: Leaving directory '/usr/src/packages/BUILD/scst-3.8.0.4c0fb04a/scst'
make[2]: Leaving directory '/usr/src/packages/BUILD/scst-3.8.0.4c0fb04a'
+ for d in scst fcst iscsi-scst qla2x00t-32gbit/qla2x00-target scst_local srpt
+ make -C scst
make[2]: Entering directory '/usr/src/packages/BUILD/scst-3.8.0.4c0fb04a/scst'
cd src && make all
make[3]: Entering directory '/usr/src/packages/BUILD/scst-3.8.0.4c0fb04a/scst/src'
echo "/* Autogenerated, don't edit */" >../include/scst_itf_ver.h
echo "" >>../include/scst_itf_ver.h
echo -n "#define SCST_INTF_VER " >>../include/scst_itf_ver.h
echo "\"`sha1sum ../include/scst.h|awk '{printf $1}'`\"" >>../include/scst_itf_ver.h
echo -n "#define SCST_CONST_INTF_VER " >>../include/scst_itf_ver.h
echo "\"`sha1sum ../include/scst_const.h|awk '{printf $1}'`\"" >>../include/scst_itf_ver.h
echo -n "#define DEV_USER_INTF_VER " >>../include/scst_itf_ver.h
echo "\"`sha1sum ../include/scst_user.h|awk '{printf $1}'`\"" >>../include/scst_itf_ver.h
make -C certs KDIR=/lib/modules/5.14.0-388.el9.x86_64/build					\
  
make[4]: Entering directory '/usr/src/packages/BUILD/scst-3.8.0.4c0fb04a/scst/src/certs'
openssl req -new -nodes -utf8 -sha512 -days 365000 \
	-batch -x509 -config x509.genkey -outform DER -out scst_module_key.der \
	-keyout scst_module_key.priv
..+...+.....+....+..+.............+..+....+..+.......+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*.......+....+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*..+....+............+.........+..+...............+.............+..+.........+.+.................+......+.+........+...+.............+.....................+..............+.+.....+.+.....+.......+...+..+............+.........+....+...+........+.........+...............+..........+.....................+..+.........+.+..+.......+...+.....+...............+......................+........+.+..+...+.+........+...+.........+.+.....+......................+............+........+................+..............+...+...+....+..+...............+.+...+.....+....+........+.......+..................+.....+....+..............+.+.....+....+.........+.....+.....................+.....................+......+....+...+..................+....................+...+...............+.+..............+......+..........+...+....................+.+......+........+.+............+...+.........+........+.............+..............+.+......+...+...........+.+...........+.......+...+..............+.+........+.......+.....+.........+.............+...+.........+........+..................+....+.....+..........+.....................+.........+..............+......+.+..................+.........+...............+..+...+.+.....+............+....+...........+.......+......+.....+.........+.+..+....+...+......+......+...+.....+..........+.....+......+......+......+....+...........+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
.+..+...+.+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*.....+.+..+.+..............+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*...+.........+........+...+..........+............+.........+...+..+.........+.........+.+..+.......+..+.+.........+...........+.........+................+.....+.......+..+.+.....+.........+..........+...+...........+......+.+.........+......+..............+......+...+.+...........+.......+..+...+..........+............+...........+...+.+...+..+................+..+.+..+............+..........+...+...+..+............+.+......+...........+....+........+.+............+...+.....+.........+......+.+...+...+.........+......+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
-----
chmod 600 scst_module_key.der
make[4]: Leaving directory '/usr/src/packages/BUILD/scst-3.8.0.4c0fb04a/scst/src/certs'
make -C /lib/modules/5.14.0-388.el9.x86_64/build M=/usr/src/packages/BUILD/scst-3.8.0.4c0fb04a/scst/src				\
  
make[4]: Entering directory '/usr/src/kernels/5.14.0-388.el9.x86_64'
  CC [M]  /usr/src/packages/BUILD/scst-3.8.0.4c0fb04a/scst/src/scst_copy_mgr.o
In file included from /usr/src/packages/BUILD/scst-3.8.0.4c0fb04a/scst/src/../include/scst.h:67,
                 from /usr/src/packages/BUILD/scst-3.8.0.4c0fb04a/scst/src/scst_copy_mgr.c:17:
/usr/src/packages/BUILD/scst-3.8.0.4c0fb04a/scst/src/../include/backport.h:241: warning: "BLK_OPEN_READ" redefined
  241 | #define BLK_OPEN_READ ((__force blk_mode_t)FMODE_READ)
      | 
In file included from /usr/src/packages/BUILD/scst-3.8.0.4c0fb04a/scst/src/../include/scst.h:37,
                 from /usr/src/packages/BUILD/scst-3.8.0.4c0fb04a/scst/src/scst_copy_mgr.c:17:
./include/linux/blkdev.h:121: note: this is the location of the previous definition
  121 | #define BLK_OPEN_READ           ((__force blk_mode_t)(1 << 0))
      | 
In file included from /usr/src/packages/BUILD/scst-3.8.0.4c0fb04a/scst/src/../include/scst.h:67,
                 from /usr/src/packages/BUILD/scst-3.8.0.4c0fb04a/scst/src/scst_copy_mgr.c:17:
/usr/src/packages/BUILD/scst-3.8.0.4c0fb04a/scst/src/../include/backport.h:242: warning: "BLK_OPEN_WRITE" redefined
  242 | #define BLK_OPEN_WRITE ((__force blk_mode_t)FMODE_WRITE)
      | 
In file included from /usr/src/packages/BUILD/scst-3.8.0.4c0fb04a/scst/src/../include/scst.h:37,
                 from /usr/src/packages/BUILD/scst-3.8.0.4c0fb04a/scst/src/scst_copy_mgr.c:17:
./include/linux/blkdev.h:123: note: this is the location of the previous definition
  123 | #define BLK_OPEN_WRITE          ((__force blk_mode_t)(1 << 1))
      | 
In file included from /usr/src/packages/BUILD/scst-3.8.0.4c0fb04a/scst/src/../include/scst.h:67,
                 from /usr/src/packages/BUILD/scst-3.8.0.4c0fb04a/scst/src/scst_copy_mgr.c:17:
/usr/src/packages/BUILD/scst-3.8.0.4c0fb04a/scst/src/../include/backport.h:243: warning: "BLK_OPEN_EXCL" redefined
  243 | #define BLK_OPEN_EXCL ((__force blk_mode_t)FMODE_EXCL)
      | 
In file included from /usr/src/packages/BUILD/scst-3.8.0.4c0fb04a/scst/src/../include/scst.h:37,
                 from /usr/src/packages/BUILD/scst-3.8.0.4c0fb04a/scst/src/scst_copy_mgr.c:17:
./include/linux/blkdev.h:125: note: this is the location of the previous definition
  125 | #define BLK_OPEN_EXCL           ((__force blk_mode_t)(1 << 2))
      | 
In file included from /usr/src/packages/BUILD/scst-3.8.0.4c0fb04a/scst/src/../include/scst.h:67,
                 from /usr/src/packages/BUILD/scst-3.8.0.4c0fb04a/scst/src/scst_copy_mgr.c:17:
/usr/src/packages/BUILD/scst-3.8.0.4c0fb04a/scst/src/../include/backport.h:248:8: error: redefinition of 'struct blk_holder_ops'
  248 | struct blk_holder_ops {
      |        ^~~~~~~~~~~~~~
In file included from /usr/src/packages/BUILD/scst-3.8.0.4c0fb04a/scst/src/../include/scst.h:37,
                 from /usr/src/packages/BUILD/scst-3.8.0.4c0fb04a/scst/src/scst_copy_mgr.c:17:
./include/linux/blkdev.h:1477:8: note: originally defined here
 1477 | struct blk_holder_ops {
      |        ^~~~~~~~~~~~~~
In file included from /usr/src/packages/BUILD/scst-3.8.0.4c0fb04a/scst/src/../include/scst.h:67,
                 from /usr/src/packages/BUILD/scst-3.8.0.4c0fb04a/scst/src/scst_copy_mgr.c:17:
/usr/src/packages/BUILD/scst-3.8.0.4c0fb04a/scst/src/../include/backport.h: In function 'blkdev_get_by_path_backport':
/usr/src/packages/BUILD/scst-3.8.0.4c0fb04a/scst/src/../include/backport.h:243:44: error: 'FMODE_EXCL' undeclared (first use in this function); did you mean 'FMODE_EXEC'?
  243 | #define BLK_OPEN_EXCL ((__force blk_mode_t)FMODE_EXCL)
      |                                            ^~~~~~~~~~
/usr/src/packages/BUILD/scst-3.8.0.4c0fb04a/scst/src/../include/backport.h:263:25: note: in expansion of macro 'BLK_OPEN_EXCL'
  263 |                 mode |= BLK_OPEN_EXCL;
      |                         ^~~~~~~~~~~~~
/usr/src/packages/BUILD/scst-3.8.0.4c0fb04a/scst/src/../include/backport.h:243:44: note: each undeclared identifier is reported only once for each function it appears in
  243 | #define BLK_OPEN_EXCL ((__force blk_mode_t)FMODE_EXCL)
      |                                            ^~~~~~~~~~
/usr/src/packages/BUILD/scst-3.8.0.4c0fb04a/scst/src/../include/backport.h:263:25: note: in expansion of macro 'BLK_OPEN_EXCL'
  263 |                 mode |= BLK_OPEN_EXCL;
      |                         ^~~~~~~~~~~~~
/usr/src/packages/BUILD/scst-3.8.0.4c0fb04a/scst/src/../include/backport.h:265:16: error: too few arguments to function 'blkdev_get_by_path'
  265 |         return blkdev_get_by_path(path, mode, holder);
      |                ^~~~~~~~~~~~~~~~~~
In file included from /usr/src/packages/BUILD/scst-3.8.0.4c0fb04a/scst/src/../include/scst.h:37,
                 from /usr/src/packages/BUILD/scst-3.8.0.4c0fb04a/scst/src/scst_copy_mgr.c:17:
./include/linux/blkdev.h:1490:22: note: declared here
 1490 | struct block_device *blkdev_get_by_path(const char *path, blk_mode_t mode,
      |                      ^~~~~~~~~~~~~~~~~~
In file included from /usr/src/packages/BUILD/scst-3.8.0.4c0fb04a/scst/src/../include/scst.h:67,
                 from /usr/src/packages/BUILD/scst-3.8.0.4c0fb04a/scst/src/scst_copy_mgr.c:17:
/usr/src/packages/BUILD/scst-3.8.0.4c0fb04a/scst/src/../include/backport.h: In function 'blkdev_put_backport':
/usr/src/packages/BUILD/scst-3.8.0.4c0fb04a/scst/src/../include/backport.h:243:44: error: 'FMODE_EXCL' undeclared (first use in this function); did you mean 'FMODE_EXEC'?
  243 | #define BLK_OPEN_EXCL ((__force blk_mode_t)FMODE_EXCL)
      |                                            ^~~~~~~~~~
/usr/src/packages/BUILD/scst-3.8.0.4c0fb04a/scst/src/../include/backport.h:276:35: note: in expansion of macro 'BLK_OPEN_EXCL'
  276 |         blkdev_put(bdev, holder ? BLK_OPEN_EXCL : 0);
      |                                   ^~~~~~~~~~~~~
make[5]: *** [scripts/Makefile.build:299: /usr/src/packages/BUILD/scst-3.8.0.4c0fb04a/scst/src/scst_copy_mgr.o] Error 1
make[4]: *** [Makefile:1929: /usr/src/packages/BUILD/scst-3.8.0.4c0fb04a/scst/src] Error 2
make[4]: Leaving directory '/usr/src/kernels/5.14.0-388.el9.x86_64'
make[3]: *** [Makefile:83: all] Error 2
make[3]: Leaving directory '/usr/src/packages/BUILD/scst-3.8.0.4c0fb04a/scst/src'
make[2]: *** [Makefile:36: all] Error 2
make[2]: Leaving directory '/usr/src/packages/BUILD/scst-3.8.0.4c0fb04a/scst'
error: Bad exit status from /var/tmp/rpm-tmp.rb8sqf (%build)


RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.rb8sqf (%build)
make[1]: *** [Makefile:355: scst-rpm] Error 1
make[1]: Leaving directory '/root/scst'
make: *** [Makefile:390: rpm] Error 2
@lnocturno
Copy link
Contributor

Hi,

Thank you for the report!

Thanks,
Gleb

lnocturno added a commit that referenced this issue Dec 27, 2023
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

Successfully merging a pull request may close this issue.

2 participants