Bug 194327 - lang/ruby20 fails to compile
Summary: lang/ruby20 fails to compile
Status: Closed Overcome By Events
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-ruby (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-10-13 09:24 UTC by oz42
Modified: 2015-04-08 00:34 UTC (History)
3 users (show)

See Also:
oz42: maintainer-feedback? (ruby)


Attachments
config.log (801.68 KB, text/plain)
2014-10-13 09:24 UTC, oz42
no flags Details
patch for lang/ruby20/Makefile (537 bytes, patch)
2014-10-13 12:15 UTC, Steve Wills
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description oz42 2014-10-13 09:24:27 UTC
Created attachment 148236 [details]
config.log

checking whether -fno-omit-frame-pointer is accepted as CFLAGS... yes
checking for backtrace... yes
checking valgrind/memcheck.h usability... no
checking valgrind/memcheck.h presence... no
checking for valgrind/memcheck.h... no
checking for strip... strip
checking whether dtrace USDT is available... no
configure: error: --enable-dtrace, however, USDT is not available
===>  Script "configure" failed unexpectedly.

config.log is attached.
Comment 1 Bugzilla Automation freebsd_committer freebsd_triage 2014-10-13 09:24:27 UTC
Auto-assigned to maintainer ruby@FreeBSD.org
Comment 2 Steve Wills freebsd_committer freebsd_triage 2014-10-13 12:14:57 UTC
Need a lot more information, such as what version of FreeBSD you are using, details about how to reproduce, etc. Please add those to the ticket and I will try to reproduce.
Comment 3 Steve Wills freebsd_committer freebsd_triage 2014-10-13 12:15:30 UTC
Created attachment 148242 [details]
patch for lang/ruby20/Makefile

Just a shot in the dark, try this patch.
Comment 4 oz42 2014-10-13 13:40:22 UTC
Comment on attachment 148242 [details]
patch for lang/ruby20/Makefile

sorry, I cannot reproduce any longer. I have cleaned up my system (10.0-RELEASE-p9), installed the ruby20 binary and did a portupgrade -a.

And now, I can compile and install ruby20 just fine, config.log now says:

configure:18807: checking whether dtrace USDT is available
configure:18825: result: yes
configure:18832: checking whether dtrace needs post processing
configure:18855: result: yes

Perhaps because I had removed the automake port?
Comment 5 cmeinsch 2014-10-16 01:37:29 UTC
I ran into the same issue, then saw this post and tried a 'portmaster -s' to remove stale ports. I was then able to build the port successfully.
Comment 6 dewayne 2015-02-14 01:34:42 UTC
Ruby20 builds successfully in another jail using amd64, however in the i386 jails (FreeBSD 10.1-STABLE #0 r278144M: Wed Feb  4 05:08:40 AEDT 2015) the package does not build.

Command sequence to build is 
rm -R /var/ports/usr/ports/* /usr/staging/*
cd /usr/ports/lang/ruby20
make -DBATCH package

Result is
===>  Building package for ruby-2.0.0.598_2,1
/usr/local/lib/libyaml-0.so.2.0.4
/usr/local/lib/libcrypto.so.8
pkg-static: Unable to access file /usr/staging/usr/local/include/ruby-2.0/ruby/dl.h: No such file or directory
pkg-static: Unable to access file /usr/staging/usr/local/lib/ruby/2.0/i386-freebsd10/dl.so: No such file or directory
pkg-static: Unable to access file /usr/staging/usr/local/lib/ruby/2.0/i386-freebsd10/dl/callback.so: No such file or directory
pkg-static: Unable to access file /usr/staging/usr/local/lib/ruby/2.0/dl.rb: No such file or directory
pkg-static: Unable to access file /usr/staging/usr/local/lib/ruby/2.0/dl/callback.rb: No such file or directory
pkg-static: Unable to access file /usr/staging/usr/local/lib/ruby/2.0/dl/cparser.rb: No such file or directory
pkg-static: Unable to access file /usr/staging/usr/local/lib/ruby/2.0/dl/func.rb: No such file or directory
pkg-static: Unable to access file /usr/staging/usr/local/lib/ruby/2.0/dl/import.rb: No such file or directory
pkg-static: Unable to access file /usr/staging/usr/local/lib/ruby/2.0/dl/pack.rb: No such file or directory
pkg-static: Unable to access file /usr/staging/usr/local/lib/ruby/2.0/dl/stack.rb: No such file or directory
pkg-static: Unable to access file /usr/staging/usr/local/lib/ruby/2.0/dl/struct.rb: No such file or directory
pkg-static: Unable to access file /usr/staging/usr/local/lib/ruby/2.0/dl/types.rb: No such file or directory
pkg-static: Unable to access file /usr/staging/usr/local/lib/ruby/2.0/dl/value.rb: No such file or directory
*** Error code 1
Comment 7 dewayne 2015-04-08 00:32:24 UTC
As Oz42 can't reproduce the initial problem and I've moved to ruby22 which builds/runs. I think this should be closed - overtaken by events? Thanks for taking the time to look into this.  :)