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.




Nope.

I can get it to work by manually adding

CC=gcc47

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.

Regards,

    JB

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 <jwbacon%tds.net@localhost> 
wrote:


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:

pre-build:
         ${CC} -v

Output:

===> 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]

Also:

FreeBSD sculpin.jbacon bacon ~/Pkgsrc/pkgsrc-2/wip/ape 411: dir
/usr/home/bacon/Pkgsrc/pkgsrc-2/wip/ape/work/.gcc/bin/gcc
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

Cheers,

     JB

On 07/31/14 20:57, OBATA Akio wrote:
On Fri, 01 Aug 2014 09:35:33 +0900, Jason Bacon <jwbacon%tds.net@localhost> 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
  jwbacon%tds.net@localhost

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



Home | Main Index | Thread Index | Old Index