pkgsrc-Users archive

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

Re: pkgsrc on AIX 7.1



Tried it.

There doesn't seem to be a "cc" command in my PATH, just "gcc".

rama:~# which gcc
/usr/bin/gcc
rama:~# /storage2/auto-pkgsrc-setup

============================================================================
Default responses are shown in [].  Simple press Enter to accept defaults.

Type Ctrl+c at any time to stop installation.
============================================================================
   
============================================================================
Running as root.  Installing globally.
============================================================================

OK to proceed? ([y]/n)
Installation prefix? [/usr] /opt

You must now choose a pkgsrc snapshot to install.

Quarterly snapshots such as "2015Q4" have gone through additional quality
control at the end of each quarter and contain fewer bugs.

The "current" snapshot contains the latest commits of each package.

See ftp://ftp.netbsd.org/pub/pkgsrc/ for a list of available snapshots.

1.. Install a quarterly snapshot
2.. Install current

Selection? 2
============================================================================
Pkgsrc supports multiple installations on the same computer.  Pkgsrc-setup
handles multiple installations under the same prefix by appending serial
numbers, beginning with 1.  The default install number shown will be 1
greater than the highest one under the same prefix.

You can overwrite or update an existing installation by overriding the
default here and entering a number lower than the default shown.
============================================================================
Install number? [1]

============================================================================
Packages will be installed under

    /opt/pkg-1
   
Frameworks for building and installing will be under

    /opt/pkgsrc-1

System files will be under

    /opt/pkg-1
============================================================================

Press Enter to continue...

============================================================================
You will need at least a C compiler and a C++ compiler to build most
pkgsrc packages.  Many packages also require a Fortran compiler.  On
some systems, such as NetBSD, pkgsrc can build its own Fortran compilers.
On other systems, you should use a base compiler collection that includes
Fortran.  GCC 4.5 or later is recommended.

If pkgsrc is bootstrapped to use the GCC compiler collection,
it will look for gfortran in the PATH when building certain packages.
============================================================================
Compilers in your current PATH include:

which: 0652-141 There is no cc in /usr/bin /etc /usr/sbin /usr/ucb
/usr/bin/X11 /sbin /usr/java5/jre/bin /usr/java5/bin.
rama:~#


On 02/22/2016 12:38 PM, Jason Bacon wrote:
>
> I'd be interested in knowing if my auto-pkgsrc-setup script works for
> you:
>
>     http://acadix.biz/pkgsrc.php
>
> I use this to bootstrap pkgsrc trees on CentOS and OS X, as well as
> additional trees for development and testing on NetBSD.
>
> There's logic in it for dealing with base compilers on CentOS and OS X
> that should also work on AIX, but I don't have access to an AIX
> machine for testing.
>
> Regards,
>
>     Jason
>
> On 02/22/16 12:33, Rodrigo Garcia wrote:
>> Yes, gcc is in my PATH.
>>
>> I exported USE_NATIVE_GCC=yes
>>
>> then purged the work directory for nano and had different results.
>>
>> This isn't the output of my first try, some other things seem to have
>> succeeded (digest, e.g.) in previous attempts.
>>
>> rama:/storage1/pkgsrc/editors/nano# bmake
>> => Bootstrap dependency digest>=20010302: found digest-20121220
>> => Bootstrap dependency tnftp-[0-9]*: NOT found
>> => Verifying reinstall for ../../net/tnftp
>> ===> Checking for vulnerabilities in tnftp-20151004
>> ===> Building for tnftp-20151004
>> /opt/pkg/bin//bmake  all-recursive
>> Making all in libnetbsd
>> Making all in libedit
>> /opt/pkg/bin//bmake  all-am
>> Making all in src
>> /opt/pkg/bin/pdksh ../libtool  --tag=CC    --mode=link gcc  -O
>> -I/usr/include   -L/usr/lib -Wl,-R/usr/lib -Wl,-R/opt/pkg/lib -o tnftp
>> tnftp-cmds.o tnftp-cmdtab.o  tnftp-complete.o tnftp-domacro.o
>> tnftp-fetch.o tnftp-ftp.o tnftp-main.o  tnftp-progressbar.o
>> tnftp-ruserpass.o  tnftp-util.o tnftp-ssl.o ../libnetbsd/libnetbsd.la
>> ../libedit/libedit.la  -L/usr/lib  -lssl -lcrypto -ltermcap
>> libtool: link: gcc -O -I/usr/include -Wl,-R/usr/lib -Wl,-R/opt/pkg/lib
>> -o tnftp tnftp-cmds.o tnftp-cmdtab.o tnftp-complete.o tnftp-domacro.o
>> tnftp-fetch.o tnftp-ftp.o tnftp-main.o tnftp-progressbar.o
>> tnftp-ruserpass.o tnftp-util.o tnftp-ssl.o  -L/usr/lib
>> ../libnetbsd/.libs/libnetbsd.a ../libedit/.libs/libedit.a -lssl -lcrypto
>> -ltermcap
>> ld: 0706-027 The -R /opt/pkg/lib flag is ignored.
>> ld: 0711-317 ERROR: Undefined symbol: .vasprintf
>> ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more
>> information.
>> collect2: error: ld returned 8 exit status
>> *** Error code 1
>>
>> Stop.
>> bmake[2]: stopped in /storage1/pkgsrc/net/tnftp/work/tnftp-20151004/src
>> *** Error code 1
>>
>> Stop.
>> bmake[1]: stopped in /storage1/pkgsrc/net/tnftp/work/tnftp-20151004
>> *** Error code 1
>>
>> Stop.
>> bmake: stopped in /storage1/pkgsrc/net/tnftp/work/tnftp-20151004
>> *** Error code 1
>>
>> Stop.
>> bmake[2]: stopped in /storage1/pkgsrc/net/tnftp
>> *** Error code 1
>>
>> Stop.
>> bmake[1]: stopped in /storage1/pkgsrc/net/tnftp
>> *** Error code 1
>>
>> Stop.
>> bmake: stopped in /storage1/pkgsrc/editors/nano
>>
>>
>> On 02/22/2016 12:21 PM, J Raynor wrote:
>>> Is gcc in your PATH?
>>>
>>>> On Feb 22, 2016, at 11:06 AM, Rodrigo Garcia
>>>> <rgarcia%inmegen.gob.mx@localhost> wrote:
>>>>
>>>> Okay so I fooled around with rpms and such and finally updated gcc
>>>> to 4.8.3.
>>>>
>>>>
>>>> rama:/storage1/pkgsrc/bootstrap# export CC=/opt/freeware/bin/gcc
>>>> rama:/storage1/pkgsrc/bootstrap# $CC --version
>>>> gcc (GCC) 4.8.3
>>>> [...]
>>>> rama:/storage1/pkgsrc/bootstrap# export GCCBASE=/opt/freeware
>>>>
>>>>
>>>> Then I ran bootstrap again, no apparent errors.
>>>>
>>>> I set in mk.conf:
>>>> CC=gcc
>>>> CXX=g++
>>>>
>>>>
>>>> Then tried to install nano, failed:
>>>>
>>>> rama:/storage1/pkgsrc# cd editors/nano/
>>>>
>>>> rama:/storage1/pkgsrc/editors/nano# bmake
>>>> => Bootstrap dependency digest>=20010302: NOT found
>>>> => Verifying reinstall for ../../pkgtools/digest
>>>> ===> Skipping vulnerability checks.
>>>> WARNING: No /opt/pkg/var/db/pkg/pkg-vulnerabilities file found.
>>>> WARNING: To fix run: `/opt/pkg/sbin/pkg_admin -K /opt/pkg/var/db/pkg
>>>> fetch-pkg-vulnerabilities'.
>>>> ===> Installing dependencies for digest-20121220
>>>> => 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[3]: stopped in /storage1/pkgsrc/pkgtools/digest
>>>> *** Error code 1
>>>>
>>>> Stop.
>>>> bmake[2]: stopped in /storage1/pkgsrc/lang/gcc2
>>>> *** Error code 1
>>>>
>>>> Stop.
>>>> bmake[1]: stopped in /storage1/pkgsrc/pkgtools/digest
>>>> *** Error code 1
>>>>
>>>> Stop.
>>>> bmake: stopped in /storage1/pkgsrc/editors/nano
>>>>
>>>>
>>>>
>>>>
>>>> On 02/20/2016 07:22 AM, Jason Bacon wrote:
>>>>> As a heads-up, even if you get it to recognize your GCC 4.2 base, you
>>>>> will probably still run into the need to
>>>>> install a GCC package.  E.g. boost requires GCC 4.5 or later.
>>>>>
>>>>> I'd look for a newer GCC to use as a base compiler.
>>>>>
>>>>> Regards,
>>>>>
>>>>>     Jason
>>>>>
>>>>> On 02/19/16 17:41, Rodrigo Garcia wrote:
>>>>>> Hi all,
>>>>>>
>>>>>> We have a nice Power7 machine, 200G RAM, 56 cores, large storage.
>>>>>> But it
>>>>>> has AIX 7.1 installed.
>>>>>>
>>>>>> I absentmindedly installed a couple of rpms from here:
>>>>>>
>>>>>> http://www.perzl.org/aix/index.php?n=Main.HomePage
>>>>>>
>>>>>> Anyway I got gcc 4.2 running and then downloaded pkgsrc and now I
>>>>>> seem
>>>>>> to have bootstraped it. I used /opt/pkg for prefix.
>>>>>>
>>>>>> I then go to any pkgsrc directory, say pkgsrc/nano and try bmake. It
>>>>>> fails!
>>>>>>
>>>>>> Output of bmake command bellow. Thanks!
>>>>>>
>>>>>> Rodrigo
>>>>>>
>>>>>>
>>>>>>
>>>>>> rama:/storage2/pkgsrc/editors/nano# echo $CC
>>>>>> /opt/freeware/bin/gcc
>>>>>>
>>>>>> rama:/storage2/pkgsrc/editors/nano# $CC --version
>>>>>> gcc (GCC) 4.2.0
>>>>>>
>>>>>> rama:/storage2/pkgsrc/editors/nano# echo $PATH
>>>>>> /opt/pkg/bin:/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/sbin:/usr/java5/jre/bin:/usr/java5/bin
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> rama:/storage2/pkgsrc/editors/nano# bmake
>>>>>> => Bootstrap dependency digest>=20010302: NOT found
>>>>>> => Verifying reinstall for ../../pkgtools/digest
>>>>>> ===> Skipping vulnerability checks.
>>>>>> WARNING: No /var/opt/pkg/pkg-vulnerabilities file found.
>>>>>> WARNING: To fix run: `/opt/pkg/sbin/pkg_admin -K /var/opt/pkg
>>>>>> fetch-pkg-vulnerabilities'.
>>>>>> ===> Installing dependencies for digest-20121220
>>>>>> => 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[3]: stopped in /storage2/pkgsrc/pkgtools/digest
>>>>>> *** Error code 1
>>>>>>
>>>>>> Stop.
>>>>>> bmake[2]: stopped in /storage2/pkgsrc/lang/gcc2
>>>>>> *** Error code 1
>>>>>>
>>>>>> Stop.
>>>>>> bmake[1]: stopped in /storage2/pkgsrc/pkgtools/digest
>>>>>> *** Error code 1
>>>>>>
>>>>>> Stop.
>>>>>> bmake: stopped in /storage2/pkgsrc/editors/nano
>>>>>>
>



Home | Main Index | Thread Index | Old Index