-
-
Notifications
You must be signed in to change notification settings - Fork 487
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make testcc.sh exit with an exit code of 1 if preprocessing a file fails. #11169
Comments
comment:2
Where is test.cc used? It does not seem to be used by prereq-0.9 in sage-4.7.rc4. |
Changed keywords from none to sd32 |
comment:4
Replying to @sagetrac-mariah:
Some of the .spkg's use it. Not many I must admit, but a few do, mainly in an attempt to support the Sun (now Oracle) compiler, but it might be used for AIX/HP-UX too. It would be worth fixing this bug. It might be sensible to add support for 'clang' to this script later, although since that's supposed to be compatible with gcc, perhaps it's not needed. |
This comment has been minimized.
This comment has been minimized.
comment:5
Attachment: 11169_testcc.patch.gz |
comment:6
I'm not entirely sure this patch is a good idea. How universal is the command line option "-E" to run the preprocessor? |
This comment has been minimized.
This comment has been minimized.
comment:11
is this ancient ticket now obsolete ? |
comment:13
I agree that this is invalid. Currently, there is no use case for this ticket. We only use |
Reviewer: Jonathan Kliem |
The script
$SAGE_ROOT/spkg/bin/testcc.sh
checks to see what C compiler the environment variable$CC
is. But currently the script always exits with a 0, even if an error occurs.This patch will correct that.
Note some forms of error will not be detected. If CC is defined as
ls
, then the code will try to list the C file, which will succeed without error. But the changes will allow one to check if a compiler is installed or not.Apply attachment: 11169_testcc.patch to the SAGE_ROOT repository.
CC: @jhpalmieri @mkoeppe @kliem
Component: scripts
Keywords: sd32
Author: David Kirkby
Reviewer: Jonathan Kliem
Issue created by migration from https://trac.sagemath.org/ticket/11169
The text was updated successfully, but these errors were encountered: