https://bugs.dragonflybsd.org/https://bugs.dragonflybsd.org/favicon.ico?16293952082011-05-17T17:31:52ZDragonFlyBSD bugtrackerDragonFlyBSD - Bug #2076: [snapshots build broken] pkgsrc bootstrap fails with gcc44https://bugs.dragonflybsd.org/issues/2076?journal_id=99092011-05-17T17:31:52Zmatthiasr
<ul></ul><p>The problem is a collision between the internal libfetch pkg_install et al. <br />build during their configure phase and DragonFly's system libfetch. For some <br />reason the latter is being linked where it should be the former.</p>
<p>For reproducing this it's enough to bmake in pkgtools/pkg_install.</p>
<p>Moving /usr/libfetch.* out of the way "fixes" this.</p> DragonFlyBSD - Bug #2076: [snapshots build broken] pkgsrc bootstrap fails with gcc44https://bugs.dragonflybsd.org/issues/2076?journal_id=99102011-05-17T18:05:43Zmatthiasr
<ul></ul><p>The problem also applies with pkgin and the regular libfetch from pkgsrc. With <br />CCVER=gcc41 /usr/pkg/lib/libfetch.a is used, as it should be. With gcc44 <br />/usr/lib/libfetch.a is used, which is incompatible.</p> DragonFlyBSD - Bug #2076: [snapshots build broken] pkgsrc bootstrap fails with gcc44https://bugs.dragonflybsd.org/issues/2076?journal_id=99112011-05-17T18:09:00Zmatthiasr
<ul></ul><p>The full link command for pkgin is</p>
<p>cc <del>L/export/pkgobj/bootstrap/work/pkgsrc/pkgtools/pkgin/work/libnbcompat -<br />L/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib -Wl,-R/usr/pkg/lib -o pkgin main.o <br />summary.o tools.o pkgindb.o depends.o actions.o pkglist.o download.o order.o <br />impact.o autoremove.o fsops.o pkgindb_queries.o automatic.o decompress.o dewey.o <br />fexec.o global.o opattern.o pkgdb.o var.o sqlite3.o -L/usr/pkg/lib -Wl,</del><br />rpath,/usr/pkg/lib -lbz2 -lz -larchive -lfetch -lssl -lcrypto -ltermcap -lutil -<br />lpthread -lnbcompat -lnbcompat</p>
<p>calling it from $WRKDIR works if and only if I prepend CCVER=gcc41 or move <br />/usr/lib/libfetch.* out of the way. BINUTILSVER has no effect.</p> DragonFlyBSD - Bug #2076: [snapshots build broken] pkgsrc bootstrap fails with gcc44https://bugs.dragonflybsd.org/issues/2076?journal_id=99122011-05-17T20:45:11Zmatthiasr
<ul></ul><p>This is caused by DragonFly commit e42b0192f1e7ce6df0aa461075bde4978fa72adc<sup><a href="#fn1">1</a></sup>, <br />without these changes building and linking pkg_install works fine.</p>
<p>[1] <br /><a class="external" href="http://gitweb.dragonflybsd.org/dragonfly.git/commit/e42b0192f1e7ce6df0aa461075bd">http://gitweb.dragonflybsd.org/dragonfly.git/commit/e42b0192f1e7ce6df0aa461075bd</a><br />e4978fa72adc</p> DragonFlyBSD - Bug #2076: [snapshots build broken] pkgsrc bootstrap fails with gcc44https://bugs.dragonflybsd.org/issues/2076?journal_id=99162011-05-18T02:39:32Zmatthiasr
<ul></ul><p>... and it's fixed with 3385e5b7b79897e14d0c17d477a34bb9257b257c.</p>