Re: Link Error with DAOS 1.0

Olivier, Jeffrey V

H Archie,


On the hwloc issue, it looks like Ubuntu 20 has hwloc API version 2.x and the fixes for that version of hwloc are only in master.   Switching to master may be your best bet as Ubuntu isn’t officially supported in 1.0.


However, if you really wan to get it building, you can try this.  Before we had support for hwloc 2.x, I added the following workaround on my Fedora box.  I built a 1.5 version of hwloc in /opt/hwloc and added the following to my ~/.scons_localrc






env[“ENV”][“CGO_CFLAGS”] = “-I/opt/hwloc/include”

env[“ENV”][“CGO_LDFLAGS”] = “-L/opt/hwloc/lib -Wl,-rpath=/opt/hwloc/lib”


But I would recommend using master instead if you need to use Ubuntu 20.04 as Ubuntu isn’t officially supported in the 1.0 release.





From: <> on behalf of "Nabarro, Tom" <tom.nabarro@...>
Reply-To: "" <>
Date: Thursday, June 25, 2020 at 2:36 AM
To: "" <>
Subject: Re: [daos] Link Error with DAOS 1.0


There have been some fixes in master for build issues with ubuntu 20.04 (specifically for spdk, ipmctl and I think hwloc). Can you try building from master?




From: <> On Behalf Of Olivier, Jeffrey V
Sent: Thursday, June 25, 2020 2:06 AM
Subject: Re: [daos] Link Error with DAOS 1.0


This small patch gets me past that error:


jvolivie-desk1:[~/daos_1.0]$ git diff

diff --git a/src/control/lib/spdk/spdk.go b/src/control/lib/spdk/spdk.go

index 28b55e537..bbc3d43c6 100644

--- a/src/control/lib/spdk/spdk.go

+++ b/src/control/lib/spdk/spdk.go

@@ -30,6 +30,7 @@ package spdk


#cgo LDFLAGS: -lspdk_env_dpdk -lrte_mempool -lrte_mempool_ring -lrte_bus_pci

#cgo LDFLAGS: -lrte_pci -lrte_ring -lrte_mbuf -lrte_eal -lrte_kvargs -ldl -lnuma

+#cgo LDFLAGS: -lisal


 #include "stdlib.h"

#include "spdk/stdinc.h"


But then it runs into an issue with hwloc.


build/src/control/src/ could not determine kind of name for C.HWLOC_TOPOLOGY_FLAG_IO_DEVICES


It looks like hwloc version 1.5 which should work but perhaps there is something new on Ubuntu 20.04 that we only resolved on master.  




From: <> on behalf of "Olivier, Jeffrey V" <jeffrey.v.olivier@...>
Reply-To: "" <>
Date: Wednesday, June 24, 2020 at 5:52 PM
To: "" <>
Subject: Re: [daos] Link Error with DAOS 1.0


Hi Archie,


I don’t know if 1.0 has been tried with Ubuntu 20.04 though it does work with 18.04.   I will give it a try locally and see what I can find out.




From: <> on behalf of Archie Morningstar <archiemorningstar88@...>
Reply-To: "" <>
Date: Wednesday, June 24, 2020 at 12:29 PM
To: "" <>
Subject: Re: [daos] Link Error with DAOS 1.0


[Edited Message Follows]

Sorry for not having that:
Ubuntu 20.04 LTS


Intel Corporation (UK) Limited
Registered No. 1134945 (England)
Registered Office: Pipers Way, Swindon SN3 1RJ
VAT No: 860 2173 47

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.

Join to automatically receive all group messages.