#8086: numpy fails to build on Open Solaris x64 - 32 / 64-bit mixup
--------------------------+-------------------------------------------------
Reporter: drkirkby | Owner: drkirkby
Type: defect | Status: needs_info
Priority: major | Milestone: sage-4.4.3
Component: solaris | Keywords:
Author: Jaap Spies | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
--------------------------+-------------------------------------------------
Changes (by drkirkby):
* status: needs_review => needs_info
Comment:
Hi Jaap,
I'm having a problem with this. I got a message about "could not fork". I
even rebooted the machine once, thinking something was wrong, but
everything else seems to work.
Is this bit of code in the patch right? It looks wrong to me:
{{{
echo "#! /usr/bin/env bash" > gcc
echo "`which gcc` -m64 " | sed 's/$/\$@/' >> fake_gcc
}}}
Should the first line not write to the file 'fake_gcc' rather than 'gcc'?
If so, since it gets copied to $SAGE_LOCAL/bin/gcc, why not write it
directly there?
i.e.
{{{
echo "#! /usr/bin/env bash" > $SAGE_LOCAL/bin/gcc
echo "`which gcc` -m64 " | sed 's/$/\$@/' >> $SAGE_LOCAL/bin/gcc
}}}
Also, why use 'sed'? If I understand your intentions correctly,
{{{
echo "`which gcc` -m64 \$@"
}}}
would achieve the same, but without invoking 'sed'.
I would also add that 'which' is not a POSIX command, whereas 'command -v'
gives you the same information, but in a standards complient way. This can
be important, especially on Solaris 10, as the return code of 'which' is
undefined on there.
{{{
drkir...@hawk:~$ echo "`command -v gcc` -m64 \$@"
/usr/local/gcc-4.4.4/bin/gcc -m64 $@
}}}
is more portable.
However, I can't seem to get it to work. I'm not sure if I understand
exactly what you are aiming to do here. Why do we need a fake gcc?
Dave
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/8086#comment:4>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.