make[1]: *** [server.o] Error 1

时间: 2023-08-29 15:10:17 浏览: 64
这个错误是在编译Redis时出现的。根据引用\[1\]中的警告信息,可以看出在函数"writeCommandsDeniedByDiskError"和"iAmMaster"中,函数没有返回任何值。这可能是导致编译错误的原因之一。 根据引用\[2\]和引用\[3\]中提供的解决办法,可以尝试升级gcc到最新版本。首先,使用命令"gcc -v"查看当前gcc的版本。然后,使用以下命令升级gcc: ``` yum -y install centos-release-scl yum -y install devtoolset-9-gcc devtoolset-9-gcc-c++ devtoolset-9-binutils scl enable devtoolset-9 bash echo "source /opt/rh/devtoolset-9/enable" >> /etc/profile ``` 这些命令将安装gcc 9.1版本,并将其设置为默认使用的版本。 希望这些信息对你有帮助! #### 引用[.reference_title] - *1* [Linux Centos7安装redis6.0.9、make报错:make[1]: *** [server.o] Error 1(已解决)](https://blog.csdn.net/fox372/article/details/111703943)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^koosearch_v1,239^v3^insert_chatgpt"}} ] [.reference_item] - *2* *3* [安装redis中执行make时出错及解决方案 make[1]: *** [server.o] Error 1 ...... make:*** [all] Error2](https://blog.csdn.net/weixin_44519874/article/details/112285537)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^koosearch_v1,239^v3^insert_chatgpt"}} ] [.reference_item] [ .reference_list ]

相关推荐

In member function ‘virtual bool xarm_control::XArmHW::init(ros::NodeHandle&, ros::NodeHandle&)’: /home/sparks/xarm_ws/src/xarm_ros/xarm_controller/src/xarm_hw.cpp:155:3: error: ‘hw_nh_’ was not declared in this scope; did you mean ‘hw_ns_’? 155 | hw_nh_ = robot_hw_nh; | ^~~~~~ | hw_ns_ /home/sparks/xarm_ws/src/xarm_ros/xarm_controller/src/xarm_hw.cpp:156:3: error: ‘root_nh_’ was not declared in this scope; did you mean ‘root_nh’? 156 | root_nh_ = root_nh; | ^~~~~~~~ | root_nh /home/sparks/xarm_ws/src/xarm_ros/xarm_controller/src/xarm_hw.cpp:206:3: error: ‘locked_ip_key_’ was not declared in this scope 206 | locked_ip_key_ = "/uf_robot/" + robot_ip; | ^~~~~~~~~~~~~~ /home/sparks/xarm_ws/src/xarm_ros/xarm_controller/src/xarm_hw.cpp:225:48: error: no matching function for call to ‘xarm_api::XArmDriver::init(ros::NodeHandle&, std::string&, bool)’ 225 | xarm_driver_.init(robot_hw_nh, robot_ip, true); | ^ In file included from /home/sparks/xarm_ws/src/xarm_ros/xarm_controller/include/xarm_controller/xarm_hw.h:36, from /home/sparks/xarm_ws/src/xarm_ros/xarm_controller/src/xarm_hw.cpp:8: /home/sparks/xarm_ws/src/xarm_ros/xarm_api/include/xarm_api/xarm_driver.h:21:14: note: candidate: ‘void xarm_api::XArmDriver::init(ros::NodeHandle&, std::string&)’ 21 | void init(ros::NodeHandle& root_nh, std::string &server_ip); | ^~~~ /home/sparks/xarm_ws/src/xarm_ros/xarm_api/include/xarm_api/xarm_driver.h:21:14: note: candidate expects 2 arguments, 3 provided /home/sparks/xarm_ws/src/xarm_ros/xarm_controller/src/xarm_hw.cpp: In destructor ‘virtual xarm_control::XArmHW::~XArmHW()’: /home/sparks/xarm_ws/src/xarm_ros/xarm_controller/src/xarm_hw.cpp:258:3: error: ‘root_nh_’ was not declared in this scope 258 | root_nh_.setParam(locked_ip_key_, false); | ^~~~~~~~ /home/sparks/xarm_ws/src/xarm_ros/xarm_controller/src/xarm_hw.cpp:258:21: error: ‘locked_ip_key_’ was not declared in this scope 258 | root_nh_.setParam(locked_ip_key_, false); | ^~~~~~~~~~~~~~ /home/sparks/xarm_ws/src/xarm_ros/xarm_controller/src/xarm_hw.cpp: In member function ‘virtual void xarm_control::XArmHW::write(const ros::Time&, const ros::Duration&)’: /home/sparks/xarm_ws/src/xarm_ros/xarm_controller/src/xarm_hw.cpp:456:5: error: ‘hw_nh_’ was not declared in this scope; did you mean ‘hw_ns_’? 456 | hw_nh_.param<float>("velo_duration", velo_duration, VELO_DURATION); | ^~~~~~ | hw_ns_ /home/sparks/xarm_ws/src/xarm_ros/xarm_controller/src/xarm_hw.cpp:456:18: error: expected primary-expression before ‘float’ 456 | hw_nh_.param<float>("velo_duration", velo_duration, VELO_DURATION); | ^~~~~ make[2]: *** [xarm_ros/xarm_controller/CMakeFiles/xarm_hw.dir/build.make:63:xarm_ros/xarm_controller/CMakeFiles/xarm_hw.dir/src/xarm_hw.cpp.o] 错误 1 make[1]: *** [CMakeFiles/Makefile2:6937:xarm_ros/xarm_controller/CMakeFiles/xarm_hw.dir/all] 错误 2 make: *** [Makefile:141:all] 错误 2 如何解决

make for plat=atlas310 cross=aarch64-ascend310-linux-gnu- LDFLAGS=-Wl,--gc-sections -static -L/home/257916/server/test/v1.1/Trunk/build/../src/thirdpart/libs/atlas310 -L/home/257916/server/test/v1.1/Trunk/build/../lib/atlas310 -ldw -lbs -lpthread -lm EXTRA_CFLAGS=-DSVN_VERSION="\"64670"\" -I /net -DOSA_MODULE_NAME=Spectrum-Convert@64670 -DBUILD_DATE="\"Mon, 24 Jul 2023 19:48:54 +0800"\" CFLAGS=-D_GNU_SOURCE -I/home/257916/server/test/v1.1/Trunk/build/../include -I/home/257916/server/test/v1.1/Trunk/build/../src/base/include -I/home/257916/server/test/v1.1/Trunk/build/../src/base/test/include -I/home/257916/server/test/v1.1/Trunk/build/../src/decode/include -I/home/257916/server/test/v1.1/Trunk/build/../src/decode/test/include -I/home/257916/server/test/v1.1/Trunk/build/../src/fourier/include -I/home/257916/server/test/v1.1/Trunk/build/../src/fourier/test/include -I/home/257916/server/test/v1.1/Trunk/build/../src/include -I/home/257916/server/test/v1.1/Trunk/build/../src/service/include -I/home/257916/server/test/v1.1/Trunk/build/../src/service/test/include -I/home/257916/server/test/v1.1/Trunk/build/../src/draw/include -I/home/257916/server/test/v1.1/Trunk/build/../src/draw/test/include -I/home/257916/server/test/v1.1/Trunk/build/../tools/include -fPIC -ffunction-sections -fdata-sections -g -Wall -O1 -c -o ############################################################ mkdir -p /home/257916/server/test/v1.1/Trunk/build/../bin/atlas310 aarch64-ascend310-linux-gnu-g++ -o draw test/src/draw_pic_test.o -Wl,--gc-sections -static -L/home/257916/server/test/v1.1/Trunk/build/../src/thirdpart/libs/atlas310 -L/home/257916/server/test/v1.1/Trunk/build/../lib/atlas310 -ldw -lbs -lpthread -lm /opt/Atlas310-ascend/toolkit/toolchain/hcc/bin/../lib64/gcc/aarch64-target-linux-gnu/7.3.0/../../../../aarch64-target-linux-gnu/bin/ld: test/src/draw_pic_test.o: Relocations in generic ELF (EM: 62) /opt/Atlas310-ascend/toolkit/toolchain/hcc/bin/../lib64/gcc/aarch64-target-linux-gnu/7.3.0/../../../../aarch64-target-linux-gnu/bin/ld: test/src/draw_pic_test.o: Relocations in generic ELF (EM: 62) /opt/Atlas310-ascend/toolkit/toolchain/hcc/bin/../lib64/gcc/aarch64-target-linux-gnu/7.3.0/../../../../aarch64-target-linux-gnu/bin/ld: test/src/draw_pic_test.o: Relocations in generic ELF (EM: 62) /opt/Atlas310-ascend/toolkit/toolchain/hcc/bin/../lib64/gcc/aarch64-target-linux-gnu/7.3.0/../../../../aarch64-target-linux-gnu/bin/ld: test/src/draw_pic_test.o: Relocations in generic ELF (EM: 62) /opt/Atlas310-ascend/toolkit/toolchain/hcc/bin/../lib64/gcc/aarch64-target-linux-gnu/7.3.0/../../../../aarch64-target-linux-gnu/bin/ld: test/src/draw_pic_test.o: Relocations in generic ELF (EM: 62) /opt/Atlas310-ascend/toolkit/toolchain/hcc/bin/../lib64/gcc/aarch64-target-linux-gnu/7.3.0/../../../../aarch64-target-linux-gnu/bin/ld: test/src/draw_pic_test.o: Relocations in generic ELF (EM: 62) /opt/Atlas310-ascend/toolkit/toolchain/hcc/bin/../lib64/gcc/aarch64-target-linux-gnu/7.3.0/../../../../aarch64-target-linux-gnu/bin/ld: test/src/draw_pic_test.o: Relocations in generic ELF (EM: 62) /opt/Atlas310-ascend/toolkit/toolchain/hcc/bin/../lib64/gcc/aarch64-target-linux-gnu/7.3.0/../../../../aarch64-target-linux-gnu/bin/ld: test/src/draw_pic_test.o: Relocations in generic ELF (EM: 62) /opt/Atlas310-ascend/toolkit/toolchain/hcc/bin/../lib64/gcc/aarch64-target-linux-gnu/7.3.0/../../../../aarch64-target-linux-gnu/bin/ld: test/src/draw_pic_test.o: error adding symbols: file in wrong format collect2: error: ld returned 1 exit status make[1]: *** [draw] Error 1 make[1]: Leaving directory /home/257916/server/test/v1.1/Trunk/src/draw' make: *** [draw] Error 2

最新推荐

recommend-type

ELDK使用与开发手册

1. 概要 这是嵌入式PowerPC, ARM和MIPS系统中使用DENX U-Boot和Linux的指导手册。文档中描述了如何在嵌入式PowerPC, ARM和MIPS系统上配置、编译、使用Das U-Boot(常常缩写为“U-Boot”)和Linux操作系统。文档中...
recommend-type

微软内部资料-SQL性能优化5

Lesson 1: Index Concepts 3 Lesson 2: Concepts – Statistics 29 Lesson 3: Concepts – Query Optimization 37 Lesson 4: Information Collection and Analysis 61 Lesson 5: Formulating and Implementing ...
recommend-type

计算机应用技术(实用手册)

CMOS checksun error-del anlts loaded 或是CMOS检查出错。 出现上面两种错是CMOS电池没电了.解决方法:打开机箱,把主板上的一节纽扣电池取出,换上一节新的既可,或是CMOS被放电了,从新进入CMOS设置时间保存并...
recommend-type

微软内部资料-SQL性能优化3

Lesson 1: Concepts – Locks and Lock Manager 3 Lesson 2: Concepts – Batch and Transaction 31 Lesson 3: Concepts – Locks and Applications 51 Lesson 4: Information Collection and Analysis 63 Lesson 5:...
recommend-type

【车牌识别】 GUI BP神经网络车牌识别(带语音播报)【含Matlab源码 668期】.zip

Matlab领域上传的视频均有对应的完整代码,皆可运行,亲测可用,适合小白; 1、代码压缩包内容 主函数:main.m; 调用函数:其他m文件;无需运行 运行结果效果图; 2、代码运行版本 Matlab 2019b;若运行有误,根据提示修改;若不会,私信博主; 3、运行操作步骤 步骤一:将所有文件放到Matlab的当前文件夹中; 步骤二:双击打开main.m文件; 步骤三:点击运行,等程序运行完得到结果; 4、仿真咨询 如需其他服务,可私信博主或扫描视频QQ名片; 4.1 博客或资源的完整代码提供 4.2 期刊或参考文献复现 4.3 Matlab程序定制 4.4 科研合作
recommend-type

zigbee-cluster-library-specification

最新的zigbee-cluster-library-specification说明文档。
recommend-type

管理建模和仿真的文件

管理Boualem Benatallah引用此版本:布阿利姆·贝纳塔拉。管理建模和仿真。约瑟夫-傅立叶大学-格勒诺布尔第一大学,1996年。法语。NNT:电话:00345357HAL ID:电话:00345357https://theses.hal.science/tel-003453572008年12月9日提交HAL是一个多学科的开放存取档案馆,用于存放和传播科学研究论文,无论它们是否被公开。论文可以来自法国或国外的教学和研究机构,也可以来自公共或私人研究中心。L’archive ouverte pluridisciplinaire
recommend-type

实现实时数据湖架构:Kafka与Hive集成

![实现实时数据湖架构:Kafka与Hive集成](https://img-blog.csdnimg.cn/img_convert/10eb2e6972b3b6086286fc64c0b3ee41.jpeg) # 1. 实时数据湖架构概述** 实时数据湖是一种现代数据管理架构,它允许企业以低延迟的方式收集、存储和处理大量数据。与传统数据仓库不同,实时数据湖不依赖于预先定义的模式,而是采用灵活的架构,可以处理各种数据类型和格式。这种架构为企业提供了以下优势: - **实时洞察:**实时数据湖允许企业访问最新的数据,从而做出更明智的决策。 - **数据民主化:**实时数据湖使各种利益相关者都可
recommend-type

云原生架构与soa架构区别?

云原生架构和SOA架构是两种不同的架构模式,主要有以下区别: 1. 设计理念不同: 云原生架构的设计理念是“设计为云”,注重应用程序的可移植性、可伸缩性、弹性和高可用性等特点。而SOA架构的设计理念是“面向服务”,注重实现业务逻辑的解耦和复用,提高系统的灵活性和可维护性。 2. 技术实现不同: 云原生架构的实现技术包括Docker、Kubernetes、Service Mesh等,注重容器化、自动化、微服务等技术。而SOA架构的实现技术包括Web Services、消息队列等,注重服务化、异步通信等技术。 3. 应用场景不同: 云原生架构适用于云计算环境下的应用场景,如容器化部署、微服务
recommend-type

JSBSim Reference Manual

JSBSim参考手册,其中包含JSBSim简介,JSBSim配置文件xml的编写语法,编程手册以及一些应用实例等。其中有部分内容还没有写完,估计有生之年很难看到完整版了,但是内容还是很有参考价值的。