tech-pkg archive

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

Re: Using modern gcc from pkgsrc on old systems for c++



Earlier I wrote about gcc7's stdc++ not being found when building on
netbsd-5.  I have the following ktrace from the link, which is showing a
lot of paths that don't match where things really are.  I'll keep
looking into this, but I thought those following along might be
interested.   Jonathan's suggestion about the paths not matching appears
to be correct.

 21428      1 ld       NAMI  "/usr/pkg/gcc7/lib/gcc/i486--netbsdelf/7.3.0/libstdc++.so"
 21428      1 ld       RET   open -1 errno 2 No such file or directory
 21428      1 ld       CALL  open(0xbb9160c0,0,0x1b6)
 21428      1 ld       NAMI  "/usr/pkg/gcc7/lib/gcc/i486--netbsdelf/7.3.0/libstdc++.a"
 21428      1 ld       RET   open -1 errno 2 No such file or directory
 21428      1 ld       CALL  open(0xbb9160c0,0,0x1b6)
 21428      1 ld       NAMI  "/n0/ANONCVS/pkgsrc/devel/re2c/work/.buildlink/lib/libstdc++.so"
 21428      1 ld       RET   open -1 errno 2 No such file or directory
 21428      1 ld       CALL  open(0xbb9160c0,0,0x1b6)
 21428      1 ld       NAMI  "/n0/ANONCVS/pkgsrc/devel/re2c/work/.buildlink/lib/libstdc++.a"
 21428      1 ld       RET   open -1 errno 2 No such file or directory
 21428      1 ld       CALL  open(0xbb90f0a0,0,0x1b6)
 21428      1 ld       NAMI  "/usr/bin/../libdata/libstdc++.so"
 21428      1 ld       RET   open -1 errno 2 No such file or directory
 21428      1 ld       CALL  open(0xbb90e680,0,0x1b6)
 21428      1 ld       NAMI  "/usr/bin/../libdata/libstdc++.a"
 21428      1 ld       RET   open -1 errno 2 No such file or directory
 21428      1 ld       CALL  open(0xbb90e680,0,0x1b6)
 21428      1 ld       NAMI  "/usr/lib/libstdc++.so"
 21428      1 ld       RET   open 9

in buildlink:

/usr/pkgsrc/devel/re2c/work/.buildlink/gcc7/lib/libstdc++.a
/usr/pkgsrc/devel/re2c/work/.buildlink/gcc7/lib/libstdc++.la
/usr/pkgsrc/devel/re2c/work/.buildlink/gcc7/lib/libstdc++.so
/usr/pkgsrc/devel/re2c/work/.buildlink/gcc7/lib/libstdc++.so.7
/usr/pkgsrc/devel/re2c/work/.buildlink/gcc7/lib/libstdc++.so.7.24
/usr/pkgsrc/devel/re2c/work/.buildlink/gcc7/lib/libstdc++.so.7.24-gdb.py
/usr/pkgsrc/devel/re2c/work/.buildlink/gcc7/lib/libstdc++fs.a
/usr/pkgsrc/devel/re2c/work/.buildlink/gcc7/lib/libstdc++fs.la
/usr/pkgsrc/devel/re2c/work/.buildlink/gcc7/i486--netbsdelf/lib/libstdc++.so
/usr/pkgsrc/devel/re2c/work/.buildlink/gcc7/i486--netbsdelf/lib/libstdc++.so.7
/usr/pkgsrc/devel/re2c/work/.buildlink/gcc7/i486--netbsdelf/lib/libstdc++.so.7.24
/usr/pkgsrc/devel/re2c/work/.buildlink/gcc7/i486--netbsdelf/lib/libstdc++.so.7.24-gdb.py

in the filesystem:

/usr/pkg/gcc7/lib/libstdc++.a
/usr/pkg/gcc7/lib/libstdc++.la
/usr/pkg/gcc7/lib/libstdc++.so
/usr/pkg/gcc7/lib/libstdc++.so.7
/usr/pkg/gcc7/lib/libstdc++.so.7.24
/usr/pkg/gcc7/lib/libstdc++.so.7.24-gdb.py
/usr/pkg/gcc7/lib/libstdc++fs.a
/usr/pkg/gcc7/lib/libstdc++fs.la
/usr/pkg/gcc7/i486--netbsdelf/lib/libstdc++.so
/usr/pkg/gcc7/i486--netbsdelf/lib/libstdc++.so.7
/usr/pkg/gcc7/i486--netbsdelf/lib/libstdc++.so.7.24
/usr/pkg/gcc7/i486--netbsdelf/lib/libstdc++.so.7.24-gdb.py

/usr/lib/libstdc++.so.2
/usr/lib/libstdc++.so.2.0
/usr/lib/libstdc++.so.4.0
/usr/lib/libstdc++.so.4
/usr/lib/libstdc++.so.5
/usr/lib/libstdc++.so
/usr/lib/libstdc++.so.5.0
/usr/lib/libstdc++.so.6
/usr/lib/libstdc++.a
/usr/lib/libstdc++_p.a
/usr/lib/libstdc++_pic.a
/usr/lib/libstdc++.so.6.0


Home | Main Index | Thread Index | Old Index