pkgsrc-Users archive

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

Re: Installing and using pkgsrc with external compiler (in HPC environment) ... library path troubles.


I can get it to work by manually adding


to mk.conf after bootstrapping is done. It would be nice if the full path of the default compiler could be specified during the bootstrap process, though.

This is not a high priority issue from my perspective, but I'd be happy to test any patches if someone is going to work on it.



On 8/3/14 8:48 PM, OBATA Akio wrote:
env CC=/usr/local/bin/gcc47 GCCBASE=/usr/local ./bootstrap ?

On Sun, 03 Aug 2014 22:42:14 +0900, Jason Bacon <> 

Thanks for the tip - it doesn't quite work for me, though.

I tried using this to bootstrap from /usr/local/bin/gcc47 on FreeBSD.
The bootstrap process did indeed use gcc47, but package builds do not.
I added the following quick-check to a package Makefile:

         ${CC} -v


===> Building for ape-3.5.2
cc -v
Using built-in specs.
Target: amd64-undermydesk-freebsd
Configured with: FreeBSD/amd64 system compiler
Thread model: posix
gcc version 4.2.1 20070831 patched [FreeBSD]


FreeBSD sculpin.jbacon bacon ~/Pkgsrc/pkgsrc-2/wip/ape 411: dir
lrwxr-x---  1 bacon  1001  12 Aug  3 08:19
/usr/home/bacon/Pkgsrc/pkgsrc-2/wip/ape/work/.gcc/bin/gcc@ -> /usr/bin/gcc



On 07/31/14 20:57, OBATA Akio wrote:
On Fri, 01 Aug 2014 09:35:33 +0900, Jason Bacon <> wrote:

I have used it with external compilers on RHEL. The only requirement is
that the same compiler is first in your PATH during bootstrap and
package building.

env CC=/path/to/your/cc ./bootstrap

  Jason W. Bacon

  Circumstances don't make a man:
  They reveal him.

Home | Main Index | Thread Index | Old Index