Date: Sat, 10 Nov 2012 09:00:29 +0900 From: =?UTF-8?Q?Ry=C5=8DTa_SimaMoto?= <liangtai.s4@gmail.com> To: freebsd-ports@freebsd.org Subject: Re: extconf.rb always fails at databases/rrdtool with CC=clang in /etc/make.conf Message-ID: <CABDoUfCKz0sq-%2BJzw-akWGw8z_=c_ZTza7dQ4fXSVHmyWdnJqQ@mail.gmail.com> In-Reply-To: <CABDoUfCLgWqfD1j6-Kv-eGer_9=zb89n7SwYW9V=KO30Lk_i5A@mail.gmail.com> References: <CABDoUfCLgWqfD1j6-Kv-eGer_9=zb89n7SwYW9V=KO30Lk_i5A@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
I am sorry I made misunderstanding to this issue. Once CC=3D is set when ruby is built, it seems that ruby remembers this in lib/ruby/1.9/i386-freebsd9/rbconfig.rb file. That is why generated Makefile from extconf.rb always invokes the same compiler even if environmental parameter is changed to other settings in /etc/make.conf later. 2012/11/10, Ry=C5=8DTa SimaMoto <liangtai.s4@gmail.com>: > Hi, > > Selecting RUBY_MODULE option for databases/rrdtool, and if you use > 'clang' as the default compiler > by setting CC=3Dclang at /etc/make.conf, this port would stop with the > following error message, > and any environmental setting like as USE_GCC=3Dany could not affect. > > gmake[4]: Leaving directory > `/usr/ports/databases/rrdtool/work/rrdtool-1.4.7/bindings/perl-shared' > cd ruby && /usr/local/bin/ruby extconf.rb && gmake EPREFIX=3D/usr/local > sitedir=3D/usr/local/lib/ruby RUBYARCHDIR=3D > checking for rrd_create() in -lrrd... yes > creating Makefile > gmake[4]: Entering directory > `/usr/ports/databases/rrdtool/work/rrdtool-1.4.7/bindings/ruby' > linking shared-object RRD.so > clang: warning: argument unused during compilation: > '-rpath=3D/usr/lib:/usr/local/lib' > clang: warning: argument unused during compilation: > '-rpath=3D/usr/lib:/usr/local/lib' > /usr/local/lib: file not recognized: File format not recognized > clang: error: linker command failed with exit code 1 (use -v to see > invocation) > gmake[4]: *** [RRD.so] Error 1 > gmake[4]: Leaving directory > `/usr/ports/databases/rrdtool/work/rrdtool-1.4.7/bindings/ruby' > gmake[3]: *** [ruby] Error 2 > <..snipped..> > > Here is excerpt from my /etc/make.conf: > CC=3Dclang > CXX=3Dclang++ > CPP=3Dclang-cpp > RUBY_DEFAULT_VER=3D1.9 > PERL_VERSION=3D5.14.2 > > Port's switches for running make (WITH_GCC=3D4.6 and WITH_GCC=3Dany) are > ignored when the ruby > binding module creates Makefile from extconf.rb, then it always > invokes clang, and note > that CC=3Dclang happens at perl module Makefile from Makefile.PL too. > > Is there a way to get a good relationship between clang and ruby > extconf.rb? Or can I > have exact option for completely masking CC=3D and CXX=3D settings in > /etc/make.conf? >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CABDoUfCKz0sq-%2BJzw-akWGw8z_=c_ZTza7dQ4fXSVHmyWdnJqQ>