All of lore.kernel.org
 help / color / mirror / Atom feed
From: Cao, Gang <gang.cao at intel.com>
To: spdk@lists.01.org
Subject: Re: [SPDK] compile error in old linux kernel version
Date: Tue, 24 Oct 2017 07:23:11 +0000	[thread overview]
Message-ID: <F009CE4E1CB4E047B169243B6A318927314B9EFC@SHSMSX101.ccr.corp.intel.com> (raw)
In-Reply-To: 33c1f062.8c5d.15f4d39f839.Coremail.liupan1234@163.com

[-- Attachment #1: Type: text/plain, Size: 4977 bytes --]

For devtoolset, you may also refer to http://linux.web.cern.ch/linux/devtoolset/

From: SPDK [mailto:spdk-bounces(a)lists.01.org] On Behalf Of liupan1234
Sent: Tuesday, October 24, 2017 3:13 PM
To: Storage Performance Development Kit <spdk(a)lists.01.org>
Subject: Re: [SPDK] compile error in old linux kernel version

I just need to compile spdk successful under 2.6.32


At 2017-10-24 15:01:47, "Cao, Gang" <gang.cao(a)intel.com<mailto:gang.cao(a)intel.com>> wrote:

Have you installed the “devtoolset-1.1”?

By the way, which component of SPDK are you trying to enable on the old linux kernel 2.6.32 here?

From: SPDK [mailto:spdk-bounces(a)lists.01.org<mailto:spdk-bounces(a)lists.01.org>] On Behalf Of liupan1234
Sent: Tuesday, October 24, 2017 2:53 PM
To: Storage Performance Development Kit <spdk(a)lists.01.org<mailto:spdk(a)lists.01.org>>
Subject: Re: [SPDK] compile error in old linux kernel version

scl could work, but error below:

[root(a)e18g06550.et15sqa<mailto:root(a)e18g06550.et15sqa> /etc/yum.repos.d]
#scl enable devtoolset-1.1 bash
Unable to open /etc/scl/prefixes/devtoolset-1.1!

At 2017-10-24 14:37:42, "Cao, Gang" <gang.cao(a)intel.com<mailto:gang.cao(a)intel.com>> wrote:
Have you checked whether scl can work? If it is workable, the scl-utils-build may be not required.

# scl
Need at least 3 arguments.
Run scl --help to get help.

From: SPDK [mailto:spdk-bounces(a)lists.01.org<mailto:spdk-bounces(a)lists.01.org>] On Behalf Of liupan1234
Sent: Tuesday, October 24, 2017 2:35 PM
To: Storage Performance Development Kit <spdk(a)lists.01.org<mailto:spdk(a)lists.01.org>>
Subject: Re: [SPDK] compile error in old linux kernel version

I can install scl-utils now, but for scl-utils-build,  I could not
#yum install scl-utils scl-utils-build -b current
Loaded plugins: bestyumcache, branch, fastestmirror, security
Loading mirror speeds from cached hostfile
Setting up Install Process
Package scl-utils-20120927-9.el5.x86_64 already installed and latest version
No package scl-utils-build available.
Nothing to do

Could you tell me where I could go to download this scl-utils-build?
 Great Thanks

At 2017-10-24 14:14:01, "Cao, Gang" <gang.cao(a)intel.com<mailto:gang.cao(a)intel.com>> wrote:
On redhat, you can try:

yum install scl-utils scl-utils-build

For more about scl, https://access.redhat.com/documentation/en-US/Red_Hat_Developer_Toolset/1/html-single/Software_Collections_Guide/

From: SPDK [mailto:spdk-bounces(a)lists.01.org<mailto:spdk-bounces(a)lists.01.org>] On Behalf Of liupan1234
Sent: Tuesday, October 24, 2017 1:58 PM
To: Storage Performance Development Kit <spdk(a)lists.01.org<mailto:spdk(a)lists.01.org>>
Subject: Re: [SPDK] compile error in old linux kernel version

Hi Gang,

[wanjun.lp(a)e18g06550.et15sqa<mailto:wanjun.lp(a)e18g06550.et15sqa> /home/wanjun.lp/ussos]
$scl enable devtoolset-1.1 bash
-bash: scl: command not found

what is the mean of scl?





At 2017-10-24 12:18:25, "Cao, Gang" <gang.cao(a)intel.com<mailto:gang.cao(a)intel.com>> wrote:
Hi Pan,

Try below command before running the “make” command:

scl enable devtoolset-1.1 bash

You may replace "bash" with their preferred shell.

Thanks,
Gang

From: SPDK [mailto:spdk-bounces(a)lists.01.org<mailto:spdk-bounces(a)lists.01.org>] On Behalf Of liupan1234
Sent: Tuesday, October 24, 2017 11:47 AM
To: spdk(a)lists.01.org<mailto:spdk(a)lists.01.org>
Subject: [SPDK] compile error in old linux kernel version

Hi All,

I met an error when I tried to compile spdk under linux kernel 2.6.32, and gcc version is 4.9.2:
$make DPDK_DIR=../dpdk/build/
  CC lib/bdev/bdev.o
bdev.c:1: error: bad value (native) for -march= switch
bdev.c:1: error: bad value (native) for -mtune= switch
make[2]: *** [bdev.o] Error 1
make[1]: *** [bdev] Error 2
make: *** [lib] Error 2
bdev.c:1: error: bad value (native) for -march= switch

Could you give me some help?

Thanks very much!
Pan

【网易自营】好吃到爆!鲜香弹滑加热即食,经典13香/麻辣小龙虾仅75元3斤>>   <http://you.163.com/item/detail?id=1183001&from=web_gg_mail_jiaobiao_7>

【网易自营|30天无忧退货】仅售同款价1/4!MUJI制造商“2017秋冬舒适家居拖鞋系列”限时仅34.9元>>  <http://you.163.com/item/detail?id=1165011&from=web_gg_mail_jiaobiao_9>

【网易自营|30天无忧退货】仅售同款价1/4!MUJI制造商“2017秋冬舒适家居拖鞋系列”限时仅34.9元>>  <http://you.163.com/item/detail?id=1165011&from=web_gg_mail_jiaobiao_9>

【网易自营|30天无忧退货】仅售同款价1/4!MUJI制造商“2017秋冬舒适家居拖鞋系列”限时仅34.9元>>  <http://you.163.com/item/detail?id=1165011&from=web_gg_mail_jiaobiao_9>

【网易自营】好吃到爆!鲜香弹滑加热即食,经典13香/麻辣小龙虾仅75元3斤>>   <http://you.163.com/item/detail?id=1183001&from=web_gg_mail_jiaobiao_7>

[-- Attachment #2: attachment.html --]
[-- Type: text/html, Size: 35373 bytes --]

             reply	other threads:[~2017-10-24  7:23 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-24  7:23 Cao, Gang [this message]
  -- strict thread matches above, loose matches on Subject: below --
2017-10-25 11:17 [SPDK] compile error in old linux kernel version Rodriguez, Edwin
2017-10-25  3:44 liupan1234
2017-10-24 17:36 Verkamp, Daniel
2017-10-24  7:12 liupan1234
2017-10-24  7:01 Cao, Gang
2017-10-24  6:52 liupan1234
2017-10-24  6:37 Cao, Gang
2017-10-24  6:34 liupan1234
2017-10-24  6:14 Cao, Gang
2017-10-24  5:57 liupan1234
2017-10-24  4:18 Cao, Gang
2017-10-24  3:46 liupan1234

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=F009CE4E1CB4E047B169243B6A318927314B9EFC@SHSMSX101.ccr.corp.intel.com \
    --to=spdk@lists.01.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.