![]() |
|
||||
![]() Quote:
Code:
# ./boostrap --abi=64
__________________
“Mi casa tendrá dos piernas y mis sueños no tendrán fronteras„ |
|
|||
![]()
You ran?
Code:
# zap install-overlay develop |
|
||||
![]()
So, back on Tribblix after a long hiatus; I attempted to find a fix to this problem. Similarly to Solaris 10 and other illumos distributions, Tribblix comes with a mixed 32/64 bit userland and in particular, stores 32bit gcc-libs (like libstdc++.so) at /usr/lib and 64 bit ones at /usr/lib/amd64.
The gcc binary found in /usr/bin is a 32bit ELF. A possibility would be to play with crle(1) / LD_LIBRARY_PATH, prepending the 64-bit lib dirs and bootstraping with --compiler "gcc -m64". Honestly, I got a pkgsrc binary bootstrap from Joyent, which extracts 64bit gcc-libs inside /opt/local/gcc10. From there, you can compile/download a 64bit gcc10 and start building from source (or take Joyent's binaries which work well).
__________________
“Mi casa tendrá dos piernas y mis sueños no tendrán fronteras„ Last edited by Sehnsucht94; 22nd April 2022 at 11:35 AM. |
|
|||
![]()
Note that Joyent has basically sold everything, so it'll require caution in the future again.
__________________
There is a copious amount of noise on Linux fora. |
|
||||
![]()
Tried again today and it fails with the same error, even after passing CFLAGS+='-m64' and --abi 64. Unfortunately it seems that the 32-bit GCC 7.3.0 binary shipped with Tribblix m25 is producing some 32-bit shared object while attempting to compile libfetch, and the build of pkgtools/pkg_install fails while trying to link it. This is somewhat strange, considering that mixed userland used to be the norm on Solaris systems and bootstrapping with 32-bit GCC has never represented a problem.
I reckon that using --abi 32 is a very poor workaround, but at least works and makes the bootstrap process complete successfully (tested). Quote:
Anyway, there are other places where to get a 64bit GCC to bootstrap pkgsrc, but Joyent. First, illumos is binary backward compatible with SunOS 5.10, so older GCC 4/5.x SVR4 binaries for Solaris 10 should just work. Newer gcc versions could be taken from OpenIndiana's repo and converted to a SVR4 package with ips2svr4. I think both Peter Tribble and @pkgsrc-bugs should be nevertheless noticed of the issue.
__________________
“Mi casa tendrá dos piernas y mis sueños no tendrán fronteras„ Last edited by Sehnsucht94; 3rd May 2022 at 02:29 PM. |
|
||||
![]() Quote:
So, the problem was with GNU linker not being capable of handling a multi-arch environment, while illumos link-editor supports dynamically switching between 32-bit and 64-bit objects (and optionally passing the -32|-64 command-line options). From the ld(1) man page: Quote:
Quote:
Code:
# env PATH=/bin:/sbin:/usr/bin/:/usr/sbin:/usr/gnu/bin ./bootstrap --abi 64 --prefix /opt/pkg Easier done than said! ![]()
__________________
“Mi casa tendrá dos piernas y mis sueños no tendrán fronteras„ Last edited by Sehnsucht94; 3rd May 2022 at 02:28 PM. |
![]() |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Tribblix & OmniOSCE OpenSolaris/IllumOS Unix on same PC (same rpool?) | dchmelik | Solaris | 2 | 12th February 2022 06:19 PM |
Pkgsrc Idea | fn8t | NetBSD Package System (pkgsrc) | 2 | 7th September 2014 03:28 PM |
wip pkgsrc | kaludis | NetBSD Installation and Upgrading | 1 | 16th April 2014 02:54 AM |
Which is the significance about pkgsrc-2009Q2 and pkgsrc-2009Q3? | aleunix | NetBSD Package System (pkgsrc) | 3 | 16th December 2009 07:19 AM |
pkgsrc on OpenBSD | Oko | OpenBSD Packages and Ports | 3 | 22nd December 2008 06:51 PM |