On 2012-3-22 01:50 , Leo Singer wrote:
> On Mar 21, 2012, at 10:29 AM, Joshua Root wrote:
>
>> On 2012-3-22 01:11 , Leo Singer wrote:
>>> Attached is a revised Portfile. I am having trouble with
>>> get_canonical_archflags. After adding to build.post_args-append:
>>>
>>> CC="${configure.cc} [get_canonical_archflags cc]" \
>>> CL="${configure.cc} [get_canonical_archflags ld]" \
>>> CXX="${configure.cxx} [get_canonical_archflags cxx]" \
>>> CXXL="${configure.cxx} [get_canonical_archflags ld]"
>>>
>>> I get the following error message:
>>>
>>> :info:build shell command "/usr/bin/make HEALPIX_TARGET=osx
>>> BINDIR=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_science_healpix/healpix/work/Healpix_2.20a/bin
>>>
>>> LIBDIR=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_science_healpix/healpix/work/Healpix_2.20a/lib
>>>
>>> INCDIR=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_science_healpix/healpix/work/Healpix_2.20a/include
>>> EXTERNAL_CFITSIO=yes CFITSIO_INCDIR=/opt/local/include
>>> CFITSIO_LIBDIR=/opt/local/lib CFITSIO_EXT_LIB=/opt/local/lib/libcfitsio.a
>>> CFITSIO_EXT_INC=/opt/local/include CC=\"/usr/bin/llvm-gcc-4.2 {-arch
>>> x86_64"} CL=\"/usr/bin/llvm-gcc-4.2 {-arch x86_64"}
>>> CXX=\"/usr/bin/llvm-g++-4.2 {-arch x86_64"} CXXL=\"/usr/bin/llvm-g++-4.2
>>> {-arch x86_64"}" returned error 2
>>>
>>> I do not know why the curly braces are showing up in the arguments to Make.
>>
>> That's escaping because one of the list elements contains a space.
>> (You'll notice the first quote is also escaped but with a backslash.) We
>> do join all the list elements together before passing them to the shell,
>> so the args are not really being displayed correctly here. You'll
>> probably see something that looks more normal in the debug output.
>>
>> - Josh
>
> In the debug output, it looks like this:
>
> shell command "/usr/bin/make HEALPIX_TARGET=osx
> BINDIR=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_science_healpix/healpix/work/Healpix_2.20a/bin
>
> LIBDIR=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_science_healpix/healpix/work/Healpix_2.20a/lib
>
> INCDIR=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_science_healpix/healpix/work/Healpix_2.20a/include
> EXTERNAL_CFITSIO=yes CFITSIO_INCDIR=/opt/local/include
> CFITSIO_LIBDIR=/opt/local/lib CFITSIO_EXT_LIB=/opt/local/lib/libcfitsio.a
> CFITSIO_EXT_INC=/opt/local/include CC=\"/usr/bin/llvm-gcc-4.2 {-arch x86_64"}
> CL=\"/usr/bin/llvm-gcc-4.2 {-arch x86_64"} CXX=\"/usr/bin/llvm-g++-4.2 {-arch
> x86_64"} CXXL=\"/usr/bin/llvm-g++-4.2 {-arch x86_64"}" returned error 2
>
> It's the {-arch x86_64"} that has me worried.
I meant the debug output as opposed to the verbose output (part of which
you already showed). Look for something like "Executing command line: ".
- Josh
_______________________________________________
macports-dev mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macports-dev