Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make local-rpm fails on CentOS 7.6 with lfs 2.12.3 installed #8

Open
pvaldria opened this issue Dec 11, 2019 · 2 comments
Open

make local-rpm fails on CentOS 7.6 with lfs 2.12.3 installed #8

pvaldria opened this issue Dec 11, 2019 · 2 comments

Comments

@pvaldria
Copy link

Complete terminal output attached to the ticket.

[root@lustre-client-4 lemur]# lfs --version
lfs 2.12.3
[root@lustre-client-4 lemur]# uname -a
Linux lustre-client-4 3.10.0-1062.7.1.el7.x86_64 #1 SMP Mon Dec 2 17:33:29 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
[root@lustre-client-4 lemur]# lsb_release -r
Release: 7.6.1810
[root@lustre-client-4 lemur]#

[root@lustre-client-4 lemur]# make local-rpm
make -C packaging/rpm NAME=lemur VERSION=0.6.0_4_g4655df8 RELEASE=1 URL="https://github.com/intel-hpdd/lemur"
make[1]: Entering directory `/root/lemur/packaging/rpm'
cd ../../ &&
.........
........
........
github.com/intel-hpdd/lemur/vendor/github.com/aws/aws-sdk-go/service/s3/s3manager
github.com/intel-hpdd/lemur/cmd/lhsm-plugin-s3
install -d $(dirname /root/rpmbuild/BUILDROOT/lemur-hsm-agent-0.6.0_4_g4655df8-1.x86_64//usr/bin/lhsm-plugin-s3)
install -m 755 lhsm-plugin-s3 /root/rpmbuild/BUILDROOT/lemur-hsm-agent-0.6.0_4_g4655df8-1.x86_64//usr/bin/lhsm-plugin-s3
go build -v -i -ldflags "-X 'main.version=0.6.0_4_g4655df8'" -o lhsm ./cmd/lhsm
github.com/intel-hpdd/lemur/vendor/github.com/intel-hpdd/go-lustre/pkg/pool
github.com/intel-hpdd/lemur/cmd/lhsmd/agent/fileid
github.com/intel-hpdd/lemur/vendor/github.com/intel-hpdd/go-lustre/llapi
github.com/intel-hpdd/lemur/vendor/gopkg.in/yaml.v2
github.com/intel-hpdd/lemur/vendor/gopkg.in/urfave/cli.v1

github.com/intel-hpdd/lemur/vendor/github.com/intel-hpdd/go-lustre/llapi

cgo-gcc-prolog: In function '_cgo_c110903d49cd_C2func_llapi_get_version':
cgo-gcc-prolog:58:2: warning: 'llapi_get_version' is deprecated (declared at /usr/include/lustre/lustreapi.h:398) [-Wdeprecated-declarations]
cgo-gcc-prolog: In function '_cgo_c110903d49cd_Cfunc_llapi_get_version':
cgo-gcc-prolog:107:2: warning: 'llapi_get_version' is deprecated (declared at /usr/include/lustre/lustreapi.h:398) [-Wdeprecated-declarations]

github.com/intel-hpdd/lemur/vendor/github.com/intel-hpdd/go-lustre/llapi

vendor/github.com/intel-hpdd/go-lustre/llapi/changelog.go:273:39: cannot use _Ctype_int(r.flags) (type _Ctype_int) as type int32 in argument to _Cfunc_hsm_get_cl_flags
make[2]: *** [lhsm] Error 2
make[2]: Leaving directory `/root/rpmbuild/BUILD/lemur-0.6.0_4_g4655df8/src/github.com/intel-hpdd/lemur'
error: Bad exit status from /var/tmp/rpm-tmp.cPPeEL (%install)

RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.cPPeEL (%install)
make[1]: *** [rpm] Error 1
make[1]: Leaving directory `/root/lemur/packaging/rpm'
make: *** [local-rpm] Error 2
[root@lustre-client-4 lemur]#

make_local-rpm_error.txt

@utopiabound
Copy link

The following changes should be fairly straightforward to fix.

Get Version

In Lustre 2.9.0 (LU-5969 Gerrit #16721)
llapi_get_version(char *buffer, int buffer_size, char **version)
was deprecated and replaced with
llapi_get_version_string(char *version, unsigned int version_size)

HSM ChangeLog Flags

In Lustre 2.12.0 (LU-10030 Gerrit #32112) usage of changelog_rec_flags switched from an int to an enum in helper functions.

@pvaldria
Copy link
Author

Hello Nathaniel, Do you know by when the above can be fix. Also is there a pre-compiled rpms I can use for Lemur on CentOS7.6 in the meantime?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants