pkgsrc-Bugs archive

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

Re: pkg/42624

The following reply was made to PR pkg/42624; it has been noted by GNATS.

From: Aleksej Saushev <>
Subject: Re: pkg/42624
Date: Fri, 19 Feb 2010 22:09:32 +0300

 The problem is that "gcc -E" is BAD CPP.
 Set CPP=cpp in mk.conf and rebuild (sequentially):
 lang/f2c, devel/libtool-base, math/blas.
 1. pkgtools/bootstrap-mk-files redefines CPP as "$(CC) -E",
 see pkgtools/bootstrap-mk-files/files/mods/
 2. lang/f2c uses CPP to build f2c-f77 wrapper that simulates g77 interface.
 3. devel/libtool-base uses the f2c-f77 script to determine calling
 convention for Fortran compiler.
 Just because "gcc -E test.F" breaks instead of preprocessing the file
 libtool chooses wrong convention.
 As result you see "f77 -G -h" instead of "f77 -shared -Wl,-z -Wl,text..."
 HE CE3OH...

Home | Main Index | Thread Index | Old Index