Bug 194658 - lang/ruby-2.0.0-p576 fails to compile
Summary: lang/ruby-2.0.0-p576 fails to compile
Status: Closed Not A Bug
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Some People
Assignee: freebsd-ruby (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-10-28 12:29 UTC by marek.bedy
Modified: 2014-12-08 07:07 UTC (History)
1 user (show)

See Also:


Attachments
ruby-2.0.0-p576.log (226.69 KB, text/plain)
2014-10-28 12:29 UTC, marek.bedy
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description marek.bedy 2014-10-28 12:29:53 UTC
Created attachment 148732 [details]
ruby-2.0.0-p576.log

installing default old_thread_select libraries
--- ext/-test-/num2int/all ---
cc: warning: argument unused during compilation: '-I .'
cc: warning: argument unused during compilation: '-I ../../../.ext/include/amd64-freebsd10'
cc: warning: argument unused during compilation: '-I ../../.././include'
cc: warning: argument unused during compilation: '-I ../../.././ext/-test-/num2int'
cc: warning: argument unused during compilation: '-I /usr/local/include'
num2int.c:82:21: error: expected ')'
    sprintf(buf, "%"PRI_LL_PREFIX"d", rb_num2ll_inline(num));
                    ^
num2int.c:82:12: note: to match this '('
    sprintf(buf, "%"PRI_LL_PREFIX"d", rb_num2ll_inline(num));
           ^
num2int.c:94:21: error: expected ')'
    sprintf(buf, "%"PRI_LL_PREFIX"u", rb_num2ull(num));
                    ^
num2int.c:94:12: note: to match this '('
    sprintf(buf, "%"PRI_LL_PREFIX"u", rb_num2ull(num));
           ^
2 errors generated.
--- ext/-test-/old_thread_select/all ---
--- old_thread_select.o ---
compiling old_thread_select.c
--- ext/-test-/num2int/all ---
*** [num2int.o] Error code 1

make[4]: stopped in /usr/ports/lang/ruby20/work/ruby-2.0.0-p576/ext/-test-/num2int
1 error


Log file attached.
Comment 1 Steve Wills freebsd_committer freebsd_triage 2014-11-12 04:03:48 UTC
I'm unable to reproduce this. Can you tell me more about your system? I'm looking for things like make.conf/src.conf settings or anything else you think might be relevant. Also, are you building in poudriere? If not, could you try that?
Comment 2 marek.bedy 2014-11-25 15:15:18 UTC
Hi,

here are details about my system and make.conf:


# uname -a
FreeBSD srv-bra-rad01 10.0-STABLE FreeBSD 10.0-STABLE #5 r266470: Tue May 20 20:20:40 CEST 2014     mbe@srv-bra-rad01:/usr/obj/usr/src/sys/GENERIC  amd64

#more make.conf

FORCE_MAKE_JOBS=yes
MAKE_JOBS_NUMBER=2
FLAGS=                  -O2 -pipe -fno-strict-aliasing
COPTFLAGS=              -O2 -pipe -funroll-loops -ffast-math -fno-strict-aliasing
OPTIMIZED_CFLAGS=       YES
WITHOUT_X11=            YES
BUILD_OPTIMIZED=        YES
WITHOUT_DEBUG=          YES
WITH_OPTIMIZED_CFLAGS=  YES
NO_PROFILE=             YES
#BATCH=yes
WITH_PKGNG=yes
Comment 3 marek.bedy 2014-11-25 15:30:47 UTC
There was something wrong with CFLAGS in ccache, when i deleted ccache on the disk, the compilation finished succesfully.