You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi :) First up, thanks for commonmarker 💖 It's been very helpful, and installs and works just fine on GNU/Linux.
However, installing the commonmarker Gem on FreeBSD fails.
repro steps
Running gem install commonmarker produces:
Building native extensions. This could take a while...
ERROR: Error installing commonmarker:
ERROR: Failed to build gem native extension.
current directory: /home/duncan/.rbenv/versions/3.4.1/lib/ruby/gems/3.4.0/gems/commonmarker-2.0.2.1/ext/commonmarker
/home/duncan/.rbenv/versions/3.4.1/bin/ruby extconf.rb
checking for clang... yes
checking for clang++... yes
checking for llvm-ar... yes
checking for cargo... yes
checking for install_name_tool... no
current directory: /home/duncan/.rbenv/versions/3.4.1/lib/ruby/gems/3.4.0/gems/commonmarker-2.0.2.1/ext/commonmarker
make DESTDIR\= sitearchdir\=./.gem.20250116-32201-hzaxz9 sitelibdir\=./.gem.20250116-32201-hzaxz9 clean
make: "/home/duncan/.rbenv/versions/3.4.1/lib/ruby/gems/3.4.0/gems/commonmarker-2.0.2.1/ext/commonmarker/Makefile" line 8: Invalid line type
make: "/home/duncan/.rbenv/versions/3.4.1/lib/ruby/gems/3.4.0/gems/commonmarker-2.0.2.1/ext/commonmarker/Makefile" line 10: Invalid line type
make: "/home/duncan/.rbenv/versions/3.4.1/lib/ruby/gems/3.4.0/gems/commonmarker-2.0.2.1/ext/commonmarker/Makefile" line 20: Invalid line type
make: "/home/duncan/.rbenv/versions/3.4.1/lib/ruby/gems/3.4.0/gems/commonmarker-2.0.2.1/ext/commonmarker/Makefile" line 22: Invalid line type
make: "/home/duncan/.rbenv/versions/3.4.1/lib/ruby/gems/3.4.0/gems/commonmarker-2.0.2.1/ext/commonmarker/Makefile" line 24: Invalid line type
make: "/home/duncan/.rbenv/versions/3.4.1/lib/ruby/gems/3.4.0/gems/commonmarker-2.0.2.1/ext/commonmarker/Makefile" line 31: Invalid line type
make: "/home/duncan/.rbenv/versions/3.4.1/lib/ruby/gems/3.4.0/gems/commonmarker-2.0.2.1/ext/commonmarker/Makefile" line 32: warning: duplicate script for target "ifneq" ignored
make: "Makefile" line 9: warning: using previous script for "ifneq" defined here
make: "/home/duncan/.rbenv/versions/3.4.1/lib/ruby/gems/3.4.0/gems/commonmarker-2.0.2.1/ext/commonmarker/Makefile" line 33: Invalid line type
make: "/home/duncan/.rbenv/versions/3.4.1/lib/ruby/gems/3.4.0/gems/commonmarker-2.0.2.1/ext/commonmarker/Makefile" line 35: Invalid line type
make: "/home/duncan/.rbenv/versions/3.4.1/lib/ruby/gems/3.4.0/gems/commonmarker-2.0.2.1/ext/commonmarker/Makefile" line 270: Invalid line type
make: "/home/duncan/.rbenv/versions/3.4.1/lib/ruby/gems/3.4.0/gems/commonmarker-2.0.2.1/ext/commonmarker/Makefile" line 271: warning: duplicate script for target "ifneq" ignored
make: "Makefile" line 9: warning: using previous script for "ifneq" defined here
make: "/home/duncan/.rbenv/versions/3.4.1/lib/ruby/gems/3.4.0/gems/commonmarker-2.0.2.1/ext/commonmarker/Makefile" line 271: warning: duplicate script for target "(,)" ignored
make: "Makefile" line 32: warning: using previous script for "(,)" defined here
make: "/home/duncan/.rbenv/versions/3.4.1/lib/ruby/gems/3.4.0/gems/commonmarker-2.0.2.1/ext/commonmarker/Makefile" line 272: Invalid line type
make: "/home/duncan/.rbenv/versions/3.4.1/lib/ruby/gems/3.4.0/gems/commonmarker-2.0.2.1/ext/commonmarker/Makefile" line 530: Invalid line type
make: "/home/duncan/.rbenv/versions/3.4.1/lib/ruby/gems/3.4.0/gems/commonmarker-2.0.2.1/ext/commonmarker/Makefile" line 535: Invalid line type
make: "/home/duncan/.rbenv/versions/3.4.1/lib/ruby/gems/3.4.0/gems/commonmarker-2.0.2.1/ext/commonmarker/Makefile" line 537: Invalid line type
make: "/home/duncan/.rbenv/versions/3.4.1/lib/ruby/gems/3.4.0/gems/commonmarker-2.0.2.1/ext/commonmarker/Makefile" line 541: Invalid line type
make: "/home/duncan/.rbenv/versions/3.4.1/lib/ruby/gems/3.4.0/gems/commonmarker-2.0.2.1/ext/commonmarker/Makefile" line 543: Invalid line type
make: "/home/duncan/.rbenv/versions/3.4.1/lib/ruby/gems/3.4.0/gems/commonmarker-2.0.2.1/ext/commonmarker/Makefile" line 545: Invalid line type
make: "/home/duncan/.rbenv/versions/3.4.1/lib/ruby/gems/3.4.0/gems/commonmarker-2.0.2.1/ext/commonmarker/Makefile" line 564: Invalid line type
make: Fatal errors encountered -- cannot continue
make: stopped in /home/duncan/.rbenv/versions/3.4.1/lib/ruby/gems/3.4.0/gems/commonmarker-2.0.2.1/ext/commonmarker
current directory: /home/duncan/.rbenv/versions/3.4.1/lib/ruby/gems/3.4.0/gems/commonmarker-2.0.2.1/ext/commonmarker
make DESTDIR\= sitearchdir\=./.gem.20250116-32201-hzaxz9 sitelibdir\=./.gem.20250116-32201-hzaxz9
make: "/home/duncan/.rbenv/versions/3.4.1/lib/ruby/gems/3.4.0/gems/commonmarker-2.0.2.1/ext/commonmarker/Makefile" line 8: Invalid line type
make: "/home/duncan/.rbenv/versions/3.4.1/lib/ruby/gems/3.4.0/gems/commonmarker-2.0.2.1/ext/commonmarker/Makefile" line 10: Invalid line type
make: "/home/duncan/.rbenv/versions/3.4.1/lib/ruby/gems/3.4.0/gems/commonmarker-2.0.2.1/ext/commonmarker/Makefile" line 20: Invalid line type
make: "/home/duncan/.rbenv/versions/3.4.1/lib/ruby/gems/3.4.0/gems/commonmarker-2.0.2.1/ext/commonmarker/Makefile" line 22: Invalid line type
make: "/home/duncan/.rbenv/versions/3.4.1/lib/ruby/gems/3.4.0/gems/commonmarker-2.0.2.1/ext/commonmarker/Makefile" line 24: Invalid line type
make: "/home/duncan/.rbenv/versions/3.4.1/lib/ruby/gems/3.4.0/gems/commonmarker-2.0.2.1/ext/commonmarker/Makefile" line 31: Invalid line type
make: "/home/duncan/.rbenv/versions/3.4.1/lib/ruby/gems/3.4.0/gems/commonmarker-2.0.2.1/ext/commonmarker/Makefile" line 32: warning: duplicate script for target "ifneq" ignored
make: "Makefile" line 9: warning: using previous script for "ifneq" defined here
make: "/home/duncan/.rbenv/versions/3.4.1/lib/ruby/gems/3.4.0/gems/commonmarker-2.0.2.1/ext/commonmarker/Makefile" line 33: Invalid line type
make: "/home/duncan/.rbenv/versions/3.4.1/lib/ruby/gems/3.4.0/gems/commonmarker-2.0.2.1/ext/commonmarker/Makefile" line 35: Invalid line type
make: "/home/duncan/.rbenv/versions/3.4.1/lib/ruby/gems/3.4.0/gems/commonmarker-2.0.2.1/ext/commonmarker/Makefile" line 270: Invalid line type
make: "/home/duncan/.rbenv/versions/3.4.1/lib/ruby/gems/3.4.0/gems/commonmarker-2.0.2.1/ext/commonmarker/Makefile" line 271: warning: duplicate script for target "ifneq" ignored
make: "Makefile" line 9: warning: using previous script for "ifneq" defined here
make: "/home/duncan/.rbenv/versions/3.4.1/lib/ruby/gems/3.4.0/gems/commonmarker-2.0.2.1/ext/commonmarker/Makefile" line 271: warning: duplicate script for target "(,)" ignored
make: "Makefile" line 32: warning: using previous script for "(,)" defined here
make: "/home/duncan/.rbenv/versions/3.4.1/lib/ruby/gems/3.4.0/gems/commonmarker-2.0.2.1/ext/commonmarker/Makefile" line 272: Invalid line type
make: "/home/duncan/.rbenv/versions/3.4.1/lib/ruby/gems/3.4.0/gems/commonmarker-2.0.2.1/ext/commonmarker/Makefile" line 530: Invalid line type
make: "/home/duncan/.rbenv/versions/3.4.1/lib/ruby/gems/3.4.0/gems/commonmarker-2.0.2.1/ext/commonmarker/Makefile" line 535: Invalid line type
make: "/home/duncan/.rbenv/versions/3.4.1/lib/ruby/gems/3.4.0/gems/commonmarker-2.0.2.1/ext/commonmarker/Makefile" line 537: Invalid line type
make: "/home/duncan/.rbenv/versions/3.4.1/lib/ruby/gems/3.4.0/gems/commonmarker-2.0.2.1/ext/commonmarker/Makefile" line 541: Invalid line type
make: "/home/duncan/.rbenv/versions/3.4.1/lib/ruby/gems/3.4.0/gems/commonmarker-2.0.2.1/ext/commonmarker/Makefile" line 543: Invalid line type
make: "/home/duncan/.rbenv/versions/3.4.1/lib/ruby/gems/3.4.0/gems/commonmarker-2.0.2.1/ext/commonmarker/Makefile" line 545: Invalid line type
make: "/home/duncan/.rbenv/versions/3.4.1/lib/ruby/gems/3.4.0/gems/commonmarker-2.0.2.1/ext/commonmarker/Makefile" line 564: Invalid line type
make: Fatal errors encountered -- cannot continue
make: stopped in /home/duncan/.rbenv/versions/3.4.1/lib/ruby/gems/3.4.0/gems/commonmarker-2.0.2.1/ext/commonmarker
make failed, exit code 1
Gem files will remain installed in /home/duncan/.rbenv/versions/3.4.1/lib/ruby/gems/3.4.0/gems/commonmarker-2.0.2.1 for inspection.
Results logged to /home/duncan/.rbenv/versions/3.4.1/lib/ruby/gems/3.4.0/extensions/x86_64-freebsd-14/3.4.0/commonmarker-2.0.2.1/gem_make.out
workaround
I suspect what's happening here is that commonmarker is expecting GNU make, not BSD make. If I install with:
make=gmake gem install commonmarker
... then everything works as intended, and the Gem installs.
Hi :) First up, thanks for commonmarker 💖 It's been very helpful, and installs and works just fine on GNU/Linux.
However, installing the commonmarker Gem on FreeBSD fails.
repro steps
Running
gem install commonmarker
produces:workaround
I suspect what's happening here is that commonmarker is expecting GNU make, not BSD make. If I install with:
... then everything works as intended, and the Gem installs.
versions
The text was updated successfully, but these errors were encountered: