Skip to content

palo master分支编译失败 #201

@saga1015

Description

@saga1015

你好,我编译master分支时,第三方的软件包编译都OK
编译器 GCC 4.8.2
cmake版本 3.0.2
当执行./build.sh后,编译出现如下错误
[ 3%] Building CXX object src/exec/CMakeFiles/Exec.dir/exec_node.cpp.o
In file included from /root/palo/be/src/olap/aggregate_func.h:21:0,
from /root/palo/be/src/olap/field.h:21,
from /root/palo/be/src/runtime/vectorized_row_batch.h:23,
from /root/palo/be/src/exec/olap_scanner.h:33,
from /root/palo/be/src/exec/olap_scan_node.h:30,
from /root/palo/be/src/exec/exec_node.cpp:47:
/root/palo/be/src/olap/types.h: In static member function ‘static std::string palo::FieldTypeTraits<(palo::FieldType)9u>::to_string(char*)’:
/root/palo/be/src/olap/types.h:410:65: error: expected ‘)’ before ‘PRIu64’
current += snprintf(current, end - current, "%" PRIu64, prefix);
^
/root/palo/be/src/olap/types.h:410:79: warning: spurious trailing ‘%’ in format [-Wformat=]
current += snprintf(current, end - current, "%" PRIu64, prefix);
^
/root/palo/be/src/olap/types.h:410:79: warning: too many arguments for format [-Wformat-extra-args]
/root/palo/be/src/olap/types.h:410:79: warning: spurious trailing ‘%’ in format [-Wformat=]
/root/palo/be/src/olap/types.h:410:79: warning: too many arguments for format [-Wformat-extra-args]
/root/palo/be/src/olap/types.h:411:68: error: expected ‘)’ before ‘PRIu64’
current += snprintf(current, end - current, "%.19" PRIu64, middle);
^
/root/palo/be/src/olap/types.h:411:82: warning: conversion lacks type at end of format [-Wformat=]
current += snprintf(current, end - current, "%.19" PRIu64, middle);
^
/root/palo/be/src/olap/types.h:411:82: warning: too many arguments for format [-Wformat-extra-args]
/root/palo/be/src/olap/types.h:411:82: warning: conversion lacks type at end of format [-Wformat=]
/root/palo/be/src/olap/types.h:411:82: warning: too many arguments for format [-Wformat-extra-args]
/root/palo/be/src/olap/types.h:412:68: error: expected ‘)’ before ‘PRIu64’
current += snprintf(current, end - current, "%.19" PRIu64, suffix);
^
/root/palo/be/src/olap/types.h:412:82: warning: conversion lacks type at end of format [-Wformat=]
current += snprintf(current, end - current, "%.19" PRIu64, suffix);
^
/root/palo/be/src/olap/types.h:412:82: warning: too many arguments for format [-Wformat-extra-args]
/root/palo/be/src/olap/types.h:412:82: warning: conversion lacks type at end of format [-Wformat=]
/root/palo/be/src/olap/types.h:412:82: warning: too many arguments for format [-Wformat-extra-args]
/root/palo/be/src/olap/types.h:414:65: error: expected ‘)’ before ‘PRIu64’
current += snprintf(current, end - current, "%" PRIu64, middle);
^
/root/palo/be/src/olap/types.h:414:79: warning: spurious trailing ‘%’ in format [-Wformat=]
current += snprintf(current, end - current, "%" PRIu64, middle);
^
/root/palo/be/src/olap/types.h:414:79: warning: too many arguments for format [-Wformat-extra-args]
/root/palo/be/src/olap/types.h:414:79: warning: spurious trailing ‘%’ in format [-Wformat=]
/root/palo/be/src/olap/types.h:414:79: warning: too many arguments for format [-Wformat-extra-args]
/root/palo/be/src/olap/types.h:415:68: error: expected ‘)’ before ‘PRIu64’
current += snprintf(current, end - current, "%.19" PRIu64, suffix);
^
/root/palo/be/src/olap/types.h:415:82: warning: conversion lacks type at end of format [-Wformat=]
current += snprintf(current, end - current, "%.19" PRIu64, suffix);
^
/root/palo/be/src/olap/types.h:415:82: warning: too many arguments for format [-Wformat-extra-args]
/root/palo/be/src/olap/types.h:415:82: warning: conversion lacks type at end of format [-Wformat=]
/root/palo/be/src/olap/types.h:415:82: warning: too many arguments for format [-Wformat-extra-args]
/root/palo/be/src/olap/types.h:417:65: error: expected ‘)’ before ‘PRIu64’
current += snprintf(current, end - current, "%" PRIu64, suffix);
^
/root/palo/be/src/olap/types.h:417:79: warning: spurious trailing ‘%’ in format [-Wformat=]
current += snprintf(current, end - current, "%" PRIu64, suffix);
^
/root/palo/be/src/olap/types.h:417:79: warning: too many arguments for format [-Wformat-extra-args]
/root/palo/be/src/olap/types.h:417:79: warning: spurious trailing ‘%’ in format [-Wformat=]
/root/palo/be/src/olap/types.h:417:79: warning: too many arguments for format [-Wformat-extra-args]
make[2]: *** [src/exec/CMakeFiles/Exec.dir/exec_node.cpp.o] 错误 1
make[1]: *** [src/exec/CMakeFiles/Exec.dir/all] 错误 2
make: *** [all] 错误 2

请问大拿们,这个如何解决?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions