首页 > 其他分享 >make vic_image 失败

make vic_image 失败

时间:2024-08-16 15:50:32浏览次数:4  
标签:vic run .. VIC make drivers image

make步骤如下:

cd VIC/vic/drivers/image
dnf install openmpi
dnf install openmpi-devel.x86_64
module load mpi/openmpi-x86_64
dnf install -y netcdf-devel
dnf install -y netcdf netcdf-devel

报错如下:

/usr/bin/ld: /tmp/ccaypzjZ.o:/home/VIC/vic/drivers/image/../../vic_run/include/vic_log.h:61: multiple definition of `LOG_DEST'; /tmp/ccyuazMj.o:/home/VIC/vic/drivers/image/../../vic_run/include/vic_log.h:61: first defined here
/usr/bin/ld: /tmp/ccaypzjZ.o:/home/VIC/vic/drivers/image/../../vic_run/include/vic_def.h:76: multiple definition of `vic_run_ref_str'; /tmp/ccyuazMj.o:/home/VIC/vic/drivers/image/../../vic_run/include/vic_def.h:76: first defined here
/usr/bin/ld: /tmp/ccaypzjZ.o:/home/VIC/vic/drivers/image/../../vic_run/include/vic_run.h:157: multiple definition of `funcd'; /tmp/ccyuazMj.o:/home/VIC/vic/drivers/image/../../vic_run/include/vic_run.h:157: first defined here
/usr/bin/ld: /tmp/cczsSJD9.o:/home/VIC/vic/drivers/image/../../vic_run/include/vic_log.h:61: multiple definition of `LOG_DEST'; /tmp/ccyuazMj.o:/home/VIC/vic/drivers/image/../../vic_run/include/vic_log.h:61: first defined here
/usr/bin/ld: /tmp/cczsSJD9.o:/home/VIC/vic/drivers/image/../../vic_run/include/vic_def.h:76: multiple definition of `vic_run_ref_str'; /tmp/ccyuazMj.o:/home/VIC/vic/drivers/image/../../vic_run/include/vic_def.h:76: first defined here
/usr/bin/ld: /tmp/cczsSJD9.o:/home/VIC/vic/drivers/image/../../vic_run/include/vic_run.h:157: multiple definition of `funcd'; /tmp/ccyuazMj.o:/home/VIC/vic/drivers/image/../../vic_run/include/vic_run.h:157: first defined here
collect2: error: ld returned 1 exit status 
make[1]: *** [Makefile:126: model] Error 1
make[1]: Leaving directory '/home/VIC/vic/drivers/image'
make: *** [Makefile:109: all] Error 2

修改Makefile后,再make就成功了:添加了一句话 CFLAGS += -fcommon

 

标签:vic,run,..,VIC,make,drivers,image
From: https://www.cnblogs.com/testzcy/p/18362996

相关文章

  • 启动应用程序出现pcsvDevice.dll找不到问题解决
    其实很多用户玩单机游戏或者安装软件的时候就出现过这种问题,如果是新手第一时间会认为是软件或游戏出错了,其实并不是这样,其主要原因就是你电脑系统的该dll文件丢失了或没有安装一些系统软件平台所需要的动态链接库,这时你可以下载这个pcsvDevice.dll文件(挑选合适的版本文件)把......
  • redis启动失败报错:Job for redis.service failed because the control process exited
    问题描述启动报错如下:查看redis的启动信息:systemctlstatusredis.service或journalctl-xe由提示可以看不是配置文件,内存等原因造成的。解决方案原因:linux的一个安全子系统(SELinux)阻止了服务的启动。查看SELinux的工作模式cat /etc/selinux/configSELinu......
  • Navicat Premium v17 中文版 激活图文教程
    Navicat17全新升级,软件增强了数据库管理和数据分析的功能体验。其中包括模型设计与同步、数据字典、数据分析(dataprofiling)、用户体验、查询优化、BI功能集成MongoDB/Snowflake、专注模式、Redis哨兵模式与平台扩展LinuxARM等。此次升级让用户在数据库的创建、管理、......
  • linux:有关目录、链接文件的函数 Makefil、gdb的使用
    目录函数1.getpwuidstructpasswd*getpwuid(uid_tuid);功能:   根据用户id到/etc/passwd文件下解析获得   结构体信息参数:uid:用户id返回值:   成功返回id对应用户的信息   失败返回NULLpasswd 结构体的定义通常如下所示structpasswd{......
  • 在Windows下安装配置Navicat
    文章目录一、下载Navicat下载NavicatPremium下载NavicatPremiumLite二、安装Navicat三、试用Navicat四、链接数据库一、下载NavicatNavicatPremium与NavicatPremiumLite二者的区别是PremiumLite可以免费使用,但是只保留了精简功能,而Premium可以使用所......
  • Make Them Narrow
    题目大意:给你一个\(n\)和\(k\),再给你一个长度为\(N\)的序列\(A\),从\(A\)中任意选择\(K\)个元素并将其删除,然后按原来的顺序将剩余的元素连接起来,形成一个新的序列\(B\),然后求这个序列的极差。解题思路错误解法一开始我想到了贪心:把\(A\)数组排个序,然后把开头......
  • Android面试中Service夺命六小问
    1、请解释一下Android中的Service以及它的用途。Service是Android中的四大组件之一,它可以在后台执行长时间运行的操作,而不需要与用户进行交互。它主要用于执行一些不需要用户界面的任务,例如播放音乐、下载文件、同步数据等。Service有以下几个特点:后台运行:Service......
  • directBootAware 和 defaultToDeviceProtectedStorage
    以下为个人理解,如错请评CE:凭据加密(CE)存储空间,实际路径/data/user_ce/DE:设备加密(DE)存储空间,实际路径/data/user_de/系统解锁前也能够运行一些App,但是需要App在manifest里显式声明android:directBootAware=true。defaultToDeviceProtectedStorage:  该flag......
  • uniapp多图上传uni.chooseImage上传照片uni.uploadFile,默认上传9张图
     uniapp多图上传uni.chooseImage上传照片uni.uploadFile代码示例:/**上传照片多图*/ getImage(){ uni.chooseImage({ count:9,//默认9 sizeType:['original','compressed'],//可以指定是原图还是压缩图,默认二者都有 sourceType:['album'],//......
  • 【cmake】关于cmake链接库的顺序要求
    注意注意:在CMake中,你可以使用target_link_libraries命令来指定链接顺序。这个命令接受一个目标(target)和一系列库(库可以是库目标、库文件路径或导入的库目标)作为参数。链接顺序通常很重要,特别是当库之间存在依赖关系时。cmake_minimum_required(VERSION3.10)project(My......