Bug 5394 - [Anolis 23 GA] [x86/arm]运行2016版ltpstress编辑报错
Summary: [Anolis 23 GA] [x86/arm]运行2016版ltpstress编辑报错
Status: CLOSED INVALID
Alias: None
Product: Anolis OS 23
Classification: Anolis OS
Component: Others (show other bugs) Others
Version: 23.0
Hardware: All Linux
: P2-High S2-major
Target Milestone: rc
Assignee: gaochang
QA Contact: huangxing
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-06-02 18:04 UTC by sunqingwei
Modified: 2023-06-26 14:01 UTC (History)
2 users (show)

See Also:


Attachments
报错 (5.48 KB, text/plain)
2023-06-02 18:04 UTC, sunqingwei
Details
海光日志 (1.41 MB, application/gzip)
2023-06-02 18:05 UTC, sunqingwei
Details

Note You need to log in before you can comment on or make changes to this bug.
Description sunqingwei uniontech_group 2023-06-02 18:04:23 UTC
Created attachment 746 [details]
报错

【环境信息】:
镜像下载地址:
http://8.131.87.1/kojifiles/output/nightly/anolis-23-20230524.6/compose/BaseOS/aarch64/iso/
http://8.131.87.1/kojifiles/output/nightly/anolis-23-20230524.6/compose/BaseOS/x86_64/iso/
服务器信息:
飞腾
[root@ltptest home]# lscpu
Architecture:           aarch64
  CPU op-mode(s):       64-bit
  Address sizes:        44 bits physical, 48 bits virtual
  Byte Order:           Little Endian
CPU(s):                 128
  On-line CPU(s) list:  0-127
Vendor ID:              Phytium
  BIOS Vendor ID:       PHYTIUM
  Model name:           FTC663
    BIOS Model name:    S2500 NULL CPU @ 2.1GHz
    BIOS CPU family:    257
    Model:              3
    Thread(s) per core: 1
    Core(s) per socket: 64
    Socket(s):          2
    Stepping:           0x1
    BogoMIPS:           100.00
    Flags:              fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid

海光
[root@ltptest home]# lscpu
Architecture:            x86_64
  CPU op-mode(s):        32-bit, 64-bit
  Address sizes:         48 bits physical, 48 bits virtual
  Byte Order:            Little Endian
CPU(s):                  128
  On-line CPU(s) list:   0-127
Vendor ID:               HygonGenuine
  BIOS Vendor ID:        Chengdu Hygon
  Model name:            Hygon C86 7280 32-core Processor
    BIOS Model name:     Hygon C86 7280 32-core Processor  CPU @ 2.0GHz
    BIOS CPU family:     1
    CPU family:          24
    Model:               1
    Thread(s) per core:  2
    Core(s) per socket:  32
    Socket(s):           2
    Stepping:            1
    Frequency boost:     enabled
    CPU(s) scaling MHz:  57%
    CPU max MHz:         2000.0000
    CPU min MHz:         1200.0000
    BogoMIPS:            4000.20

【测试步骤】
安装包
yum install gcc git make pkgconf autoconf automake bison flex m4 kernel-headers glibc-headers psmisc libtirpc-devel rpcsvc-proto-devel sysstat
补丁移动到解压后的工具内
0001-change-cpuset01.patch Fix-compilation-error.patch
yum install patch
patch -p1 < 0001-change-cpuset01.patch
patch -p1 < Fix-compilation-error.patch
sync
./configure
make -j
make install 
cd /opt/ltp/testscripts
vim ltpstress.sh修改路径为home(大容量磁盘,小的可能会报错)

./ltpstress.sh -n -t 168 -S -p

【测试结果】
make -j编译报错

【预期结果】
可正常运行7天,且服务器无异常
Comment 1 sunqingwei uniontech_group 2023-06-02 18:05:17 UTC
Created attachment 747 [details]
海光日志
Comment 2 happy_orange alibaba_cloud_group 2023-06-21 16:38:46 UTC
经过本地验证,解压源码,并打补丁之后,进行编译,确实 make 出错,但是出错的提示是有个 function 被重复定义,gcc 12 版本增加了这一块的校验,强制会进行报错提示,请对源码进行修改后,重新进行 make 。
[root@iZbp1gmbng4di4cw992erkZ ltp-full-20160510]# make
make -C "lib" \
	-f "/root/code/ltp-full/ltp-full-20160510/lib/Makefile" all
make[1]: Entering directory '/root/code/ltp-full/ltp-full-20160510/lib'
make[2]: Entering directory '/root/code/ltp-full/ltp-full-20160510/lib/newlib_tests'
gcc -g -O2 -g -O2 -fno-strict-aliasing -pipe -Wall -W -Wold-style-definition -I/usr/include/tirpc -ltirpc -W -Wall -D_FORTIFY_SOURCE=2 -I../../include -I../../include -I../../include/old/ -L../../lib  test01.c  -lltp -o test01
/usr/bin/ld: ../../lib/libltp.a(tst_test.o):/root/code/ltp-full/ltp-full-20160510/lib/../include/tst_test.h:145: multiple definition of `TCID'; /tmp/ccjmmwFS.o:/root/code/ltp-full/ltp-full-20160510/lib/newlib_tests/../../include/tst_test.h:145: first defined here
collect2: error: ld returned 1 exit status
make[2]: *** [<builtin>: test01] Error 1
make[2]: Leaving directory '/root/code/ltp-full/ltp-full-20160510/lib/newlib_tests'
make[1]: *** [../include/mk/generic_trunk_target.inc:93: all] Error 2
make[1]: Leaving directory '/root/code/ltp-full/ltp-full-20160510/lib'
make: *** [Makefile:114: lib-all] Error 2
Comment 3 sunqingwei uniontech_group 2023-06-26 14:00:57 UTC
Anolis集成gcc 的版本比较高,后续测试使用ltp的2023版本
Comment 4 sunqingwei uniontech_group 2023-06-26 14:01:17 UTC
Anolis集成gcc 的版本比较高,后续测试使用ltp的2023版本