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

[VTJ-JP]td-agent 4の最終リリース(4.5.2)でFluentdプラグインがインストールできない #816

Open
ytooyama opened this issue Jul 23, 2024 · 1 comment

Comments

@ytooyama
Copy link
Contributor

表題のような問題があります。
ちなみに最後にうまく動くのを確認したバージョンは、td-agent 4.4.1 fluentd 1.15.2 (c32842297ed2c306f1b841a8f6e55bdd0f1cb27f)です。

[root@kujira fluentd]# td-agent --version
td-agent 4.5.2 fluentd 1.16.3 (d3cf2e0f95a0ad88b9897197db6c5152310f114f)  

[root@kujira fluentd]# make TD_AGENT=1 gem
cp -f ../src/arrow_write.c ../src/arrow_nodes.c ../src/arrow_defs.h ../src/arrow_ipc.h ../src/float2.h arrow_ruby.c ext/arrow_file_write
/opt/td-agent/bin/fluent-gem build
  Successfully built RubyGem
  Name: fluent-plugin-arrow-file
  Version: 0.2
  File: fluent-plugin-arrow-file-0.2.gem
[root@kujira fluentd]# make TD_AGENT=1 install
/opt/td-agent/bin/fluent-gem install fluent-plugin-arrow-file-0.2.gem
Building native extensions. This could take a while...
ERROR:  Error installing fluent-plugin-arrow-file-0.2.gem:
	ERROR: Failed to build gem native extension.

    current directory: /opt/td-agent/lib/ruby/gems/2.7.0/gems/fluent-plugin-arrow-file-0.2/ext/arrow_file_write
/opt/td-agent/bin/ruby -I /opt/td-agent/lib/ruby/2.7.0 -r ./siteconf20240723-84425-1wjdxpc.rb extconf.rb
creating Makefile

current directory: /opt/td-agent/lib/ruby/gems/2.7.0/gems/fluent-plugin-arrow-file-0.2/ext/arrow_file_write
make "DESTDIR=" clean
make[1]: Entering directory '/opt/td-agent/lib/ruby/gems/2.7.0/gems/fluent-plugin-arrow-file-0.2/ext/arrow_file_write'
make[1]: Leaving directory '/opt/td-agent/lib/ruby/gems/2.7.0/gems/fluent-plugin-arrow-file-0.2/ext/arrow_file_write'

current directory: /opt/td-agent/lib/ruby/gems/2.7.0/gems/fluent-plugin-arrow-file-0.2/ext/arrow_file_write
make "DESTDIR="
make[1]: Entering directory '/opt/td-agent/lib/ruby/gems/2.7.0/gems/fluent-plugin-arrow-file-0.2/ext/arrow_file_write'
compiling arrow_nodes.c
compiling arrow_ruby.c
arrow_ruby.c: In function ‘__arrowFileWriteChunk’:
arrow_ruby.c:2160:2: error: too few arguments to function ‘writeArrowRecordBatch’
  writeArrowRecordBatch(table);
  ^~~~~~~~~~~~~~~~~~~~~
In file included from arrow_ruby.c:20:
arrow_ipc.h:245:13: note: declared here
 extern int  writeArrowRecordBatch(SQLtable *table,
             ^~~~~~~~~~~~~~~~~~~~~
make[1]: *** [Makefile:246: arrow_ruby.o] Error 1
make[1]: Leaving directory '/opt/td-agent/lib/ruby/gems/2.7.0/gems/fluent-plugin-arrow-file-0.2/ext/arrow_file_write'

make failed, exit code 2

Gem files will remain installed in /opt/td-agent/lib/ruby/gems/2.7.0/gems/fluent-plugin-arrow-file-0.2 for inspection.
Results logged to /opt/td-agent/lib/ruby/gems/2.7.0/extensions/x86_64-linux/2.7.0/fluent-plugin-arrow-file-0.2/gem_make.out
make: *** [Makefile:58: install] Error 1
@kaigai
Copy link
Contributor

kaigai commented Oct 22, 2024

メモ:まずはビルドできるようにしたい。

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