Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 Jan 2009 09:35:18 +0200
From:      Sorin Panca <sorin.panca@psrk.com>
To:        freebsd-stable@freebsd.org
Cc:        Doug Barton <dougb@FreeBSD.org>
Subject:   ruby18 fails to compile on amd64 after freebsd-update upgrade from 6.x to 7.x - was: Installing packages using ports after freebsd-update doesn't work on amd64
Message-ID:  <497D67B6.2090501@psrk.com>
In-Reply-To: <497CAA5C.2050900@FreeBSD.org>
References:  <497B85DE.1040005@psrk.com> <497BA079.6060309@FreeBSD.org> <497C28A6.9040701@psrk.com> <497CAA5C.2050900@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Doug Barton wrote:
> Sorin Panca wrote:
>> Prior to starting the upgrade I did a pkg_delete -a. I wanted a clean
>> system (just like a reinstallation). How do I ensure that all packages
>> were removed by pkg_delete -a ?
> 
> Check /usr/local and make sure there is nothing there. In particular
> make sure that /usr/local/lib/compat/pkg does not exist. It sounds
> like this is already true, but also make sure that /var/db/pkg is
> empty as well. If none of that works then you've got a bigger problem.
> 
> If you still can't install ruby and/or portupgrade, try installing a
> simple port just using 'make clean ; make install' in the port's
> directory. If that works, try a more complex port until something
> fails. If nothing fails installing manually it's a problem with
> portupgrade and/or ruby and you can send in a new bug report focusing
> on that.
> 
> You might also consider using portmaster of course. :)
> 
> 
> hope this helps,
> 
> Doug
> 

/usr/local/compat/pkg existed but I followed your advice and removed it.
/var/db/pkg was empty when I checked it.
I proceeded to trying to install /usr/ports/lang/ruby18 by make clean
and then make install clean. It failed with the same error as in my
previous attempts.

However, some packages built correctly: shells/bash, lang/perl5.8,
sysutils/ezjail and www/apache.

I really wanted to take portmaster into consideration (it's a better
alternative to portupgrade in my opinion also), but sysutils/puppet uses
portupgrade as its backend and I use puppet on my servers. So I'm stuck
with portupgrade.

I also noticed when compiling other programs, that the line contains the
following arguments: -fPIC -DPIC, while compiling ruby18, it only
contains -fPIC. I added -DPIC to /etc/make.conf, so that the CFLAGS line
would look like:
CFLAGS?= -O2 -fPIC -DPIC -pipe
After that, the compiler output lines still look like:
cc -O2 -fno-strict-aliasing -pipe   -fPIC  -DRUBY_EXPORT -I. -I.   -c
variable.c
and fails as in my previous attempts.

Sorin.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?497D67B6.2090501>