From owner-freebsd-ruby@FreeBSD.ORG Wed Feb 19 14:52:34 2014 Return-Path: Delivered-To: ruby@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 6D2581F9 for ; Wed, 19 Feb 2014 14:52:34 +0000 (UTC) Received: from mail-qc0-x230.google.com (mail-qc0-x230.google.com [IPv6:2607:f8b0:400d:c01::230]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 3067D1DD6 for ; Wed, 19 Feb 2014 14:52:34 +0000 (UTC) Received: by mail-qc0-f176.google.com with SMTP id e16so586946qcx.35 for ; Wed, 19 Feb 2014 06:52:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:date:message-id:subject:from:to:content-type; bh=LFQMZ0ky2IelNp3nFDRvA8IdYJnnwBkJsywRE1Wl838=; b=nW8p/rFuZbHjKy0JPbKqXh1vyWq9Ohrdg40DiR1WyWQwvzUAKg1L7m66Rg3NFoSSRK zyeHmKG7E72c/eeB16ToqIau+dL8LLM5ic+5Pz1LTqtgBF6dqYdrcqFBTHRwaVtZdpmb xxTEXk9kM17gEv62KGxAi3SQNm3sVC8nuxXuQb0o8UucMaDBRjj3Z7QiZVX5+8lN1KjO 9W0Cd/szmTrqIzgwpU5r4dAepfizkE3PiRVtE/b86+xADvYuF1yULuuHBhezhmmtgOGs CixuoITZcY6+JOLQ83vMD0+TJ8Y3rMQqpEDRxJmWOvcGtlcxK3r6xZlLXDdsJYET/XQk UtOw== MIME-Version: 1.0 X-Received: by 10.236.81.237 with SMTP id m73mr39046738yhe.29.1392821553397; Wed, 19 Feb 2014 06:52:33 -0800 (PST) Sender: antoine.brodin.freebsd@gmail.com Received: by 10.170.80.11 with HTTP; Wed, 19 Feb 2014 06:52:33 -0800 (PST) Date: Wed, 19 Feb 2014 15:52:33 +0100 X-Google-Sender-Auth: 0q1VQM373ylR4fsROPdY-boEfi8 Message-ID: Subject: Ruby and clang 3.4 From: Antoine Brodin To: ruby@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: freebsd-ruby@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: FreeBSD-specific Ruby discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Feb 2014 14:52:34 -0000 Hi there, With clang 3.4 (imported 3 days ago in head), ruby has problems configuring / building dl.so. Logs for ruby19 and ruby 20 are available at http://package21.nyi.freebsd.org/bulk/head-default-baseline/2014-02-18_15h22m08s/logs/errors/ruby-1.9.3.484_1,1.log and http://package21.nyi.freebsd.org/bulk/head-default-baseline/2014-02-18_15h22m08s/logs/errors/ruby20-2.0.0.353_4,1.log ... configuring dl Failed to configure dl. It will not be installed. configuring dl/callback Failed to configure dl/callback. It will not be installed. configuring dl/win32 Failed to configure dl/win32. It will not be installed. ... ===> Building package for ruby-1.9.3.484_1,1 pkg-static: lstat(/wrkdirs/usr/ports/lang/ruby19/work/stage/usr/local/include/ruby-1.9/ruby/dl.h): No such file or directory pkg-static: lstat(/wrkdirs/usr/ports/lang/ruby19/work/stage/usr/local/lib/ruby/1.9/amd64-freebsd11/dl/callback.so): No such file or directory pkg-static: lstat(/wrkdirs/usr/ports/lang/ruby19/work/stage/usr/local/lib/ruby/1.9/amd64-freebsd11/dl.so): No such file or directory pkg-static: lstat(/wrkdirs/usr/ports/lang/ruby19/work/stage/usr/local/lib/ruby/1.9/dl/callback.rb): No such file or directory pkg-static: lstat(/wrkdirs/usr/ports/lang/ruby19/work/stage/usr/local/lib/ruby/1.9/dl/cparser.rb): No such file or directory pkg-static: lstat(/wrkdirs/usr/ports/lang/ruby19/work/stage/usr/local/lib/ruby/1.9/dl/func.rb): No such file or directory pkg-static: lstat(/wrkdirs/usr/ports/lang/ruby19/work/stage/usr/local/lib/ruby/1.9/dl/import.rb): No such file or directory pkg-static: lstat(/wrkdirs/usr/ports/lang/ruby19/work/stage/usr/local/lib/ruby/1.9/dl/pack.rb): No such file or directory pkg-static: lstat(/wrkdirs/usr/ports/lang/ruby19/work/stage/usr/local/lib/ruby/1.9/dl/stack.rb): No such file or directory pkg-static: lstat(/wrkdirs/usr/ports/lang/ruby19/work/stage/usr/local/lib/ruby/1.9/dl/struct.rb): No such file or directory pkg-static: lstat(/wrkdirs/usr/ports/lang/ruby19/work/stage/usr/local/lib/ruby/1.9/dl/types.rb): No such file or directory pkg-static: lstat(/wrkdirs/usr/ports/lang/ruby19/work/stage/usr/local/lib/ruby/1.9/dl/value.rb): No such file or directory pkg-static: lstat(/wrkdirs/usr/ports/lang/ruby19/work/stage/usr/local/lib/ruby/1.9/dl.rb): No such file or directory pkg-static: lstat(/wrkdirs/usr/ports/lang/ruby19/work/stage/usr/local/lib/ruby/1.9/dl/): No such file or directory pkg-static: lstat(/wrkdirs/usr/ports/lang/ruby19/work/stage/usr/local/lib/ruby/1.9/amd64-freebsd11/dl/): No such file or directory This is due to clang 3.4 rejecting -fno-defer-pop I have the following patch for ruby19: Index: lang/ruby19/files/patch-ext__dl__extconf.rb =================================================================== --- lang/ruby19/files/patch-ext__dl__extconf.rb (revision 0) +++ lang/ruby19/files/patch-ext__dl__extconf.rb (working copy) @@ -0,0 +1,12 @@ +--- ./ext/dl/extconf.rb.orig 2010-02-25 22:49:20.000000000 +0000 ++++ ./ext/dl/extconf.rb 2014-02-18 22:06:44.000000000 +0000 +@@ -1,7 +1,8 @@ + require 'mkmf' + + if RbConfig::CONFIG['GCC'] == 'yes' +- $CFLAGS << " -fno-defer-pop -fno-omit-frame-pointer" ++ $CFLAGS << " -fno-defer-pop" unless have_macro("__clang__") ++ $CFLAGS << " -fno-omit-frame-pointer" + end + + $INSTALLFILES = [ Cheers, Antoine