pkgsrc-Users archive

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

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



On Mon, 10 May 2021 12:32:19 +0000
Niclas Rosenvik <nros%NetBSD.org@localhost> wrote:

> 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 .


Hi Niclas,

Thanks for trying.
After you reported it worked for you, I got more confidence on succeeding and tried various ways.

Apparently, PATH wasn't the issue.
The issue was where I extracted pkgsrc.
I had had /ports/pkgsrc as a work directory and I had failed.

After moving to other locations, like /usr/pkg/pksrc, /tmp/pkgsrc, /mnt/pkgsrc, etc
all other locations started building fine.

I don't know why /ports directory is so special but I was quite unlucky.

'bmake' wasn't an issue.  FreeBSD no longer install a 'make' as 'bmake' on 13.x.
I recall it was a long time ago...

Regards,
Hiro


Home | Main Index | Thread Index | Old Index