问题描述
我正在尝试使用icc(ICC)19.1.2.254 20200623编译Ruby解释器-使用icc编译的Ruby做一些基准测试。
但是实际上它会产生很多警告,并且失败:
...
...
...
numeric.c(4022): warning #592: variable "c" is used before its value is set
if (MUL_OVERFLOW_FIXNUM_P(x,z)) {
^
numeric.c(4022): error: expression must have arithmetic or pointer type
if (MUL_OVERFLOW_FIXNUM_P(x,z)) {
^
numeric.c(4435): warning #1684: conversion from pointer to same-sized integral type (potential portability problem)
args[2],args[1],(VALUE)args);
^
compilation aborted for numeric.c (code 2)
make: *** [Makefile:421: numeric.o] Error 2
使用相同的CFLAGS(作为optflags传递),我能够使用Clang 10和GCC 10构建Ruby。
用于配置的命令:
CC=icc ./configure optflags="-O3 -march=native -mtune=native"
但是icc失败了。那么,有没有一种方法可以解决这个问题,从而可以通过icc成功地编译Ruby?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)