pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Circular dependency between gcc2 and digest on FreeBSD-13.0 i386



On Sun, 9 May 2021 09:42:08 -0400
Yoshihiro Ota <ota%j.email.ne.jp@localhost> wrote:

> On Sun, 9 May 2021 10:00:19 +0000
> Niclas Rosenvik <nros%NetBSD.org@localhost> wrote:
> 
> > On Sat, 8 May 2021 11:15:20 -0400
> > Yoshihiro Ota <ota%j.email.ne.jp@localhost> wrote:
> > 
> > > Hi,
> > > 
> > > I'm interested in using seamonkey from pkgsrc.
> > > 
> > > I downloaded 2021Q1 pkgsrc.
> > > I ran ./boostrap with the default values.
> > > In other words, no extra arguments and plain  "./bootstrap".
> > > That has set to use clang.
> > > 
> > > Then, when I try to build a next thing, pkgsrc tries to build
> > > digest but digest requires gcc2 and creates a circular dependency
> > > as below.
> > > 
> > > I have FreeBSD 13.0-RELEASE on i386.
> > > 
> > > Is there way to work-around this dependency issues or build digest
> > > without gcc2?
> > > 
> > > Thanks,
> > > Hiro
> > > 
> > > # bmake build
> > > ===> Installing dependencies for digest-20190127
> > > => Build dependency gcc2>=2.95.3nb7: NOT found
> > > => Verifying reinstall for ../../lang/gcc2
> > > => Bootstrap dependency digest>=20010302: NOT found
> > > => Verifying reinstall for ../../pkgtools/digest
> > > ERROR: This package has set PKG_FAIL_REASON:
> > > ERROR: Circular dependency detected
> > > *** Error code 1
> > > 
> > > Stop.
> > > bmake[2]: stopped in /ports/pkgsrc/pkgtools/digest
> > 
> > To me it looks like you are trying to build pkgsrc packages with
> > bmake from freebsd not the one installed by the pkgsrc boostrap.
> > What is your $PATH set to when you execute bmake?
> 
> $ which bmake
> /usr/pkg/bin/bmake
> $ echo $PATH
> /sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/root/bin:/usr/pkg/bin
> 
> PATH looks okay.
> By the way, bootstrap installed bmake only.
> 
> $ ls /usr/pkg/bin
> bmake
> $
> 
> By the way, my system compiler is clang and I don't have gcc
> installed.

I just tested with the setup that you have and it works for me but if I
install bmake from FreeBSD I get the same error messages as you.
My recommendation is to change the path so that /usr/pkg/bin appear
first not last. You can check if bmake from FreeBSD is installed by
doing "ls /usr/local/bin/bmake"  or "pkg info bmake" .
"which bmake" returns /usr/pkg/bin/bmake here has well even if bmake
also exists in /usr/local/bin .


Home | Main Index | Thread Index | Old Index