Skip to content
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

Use -print-prog-name instead of -print-file-name in gcc spkg-configure.m4 #28317

Closed
isuruf opened this issue Aug 2, 2019 · 3 comments
Closed

Comments

@isuruf
Copy link
Member

isuruf commented Aug 2, 2019

Here's what I get

~/sage$ echo $CC
/projects/66d93023-00f0-4c12-8a25-5d6d4e486740/sage-build/bin/x86_64-conda_cos6-linux-gnu-cc

~/sage$ $CC -print-prog-name=ld
/projects/66d93023-00f0-4c12-8a25-5d6d4e486740/sage-build/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/bin/ld

~/sage$ $CC -print-file-name=ld
ld

~/sage$ echo $LD
/projects/66d93023-00f0-4c12-8a25-5d6d4e486740/sage-build/bin/x86_64-conda_cos6-linux-gnu-ld

Therefore -print-file-name is clearly not what we need.
-print-prog-name gives a path with ..s in it.

We need to check that the two files are equivalent using -ef which checks that the files are the same.

CC: @embray @dimpase

Component: build: configure

Author: Isuru Fernando

Branch/Commit: dec073b

Reviewer: Dima Pasechnik

Issue created by migration from https://trac.sagemath.org/ticket/28317

@isuruf isuruf added this to the sage-8.9 milestone Aug 2, 2019
@dimpase
Copy link
Member

dimpase commented Sep 1, 2019

comment:3

looks good.

@dimpase
Copy link
Member

dimpase commented Sep 1, 2019

Reviewer: Dima Pasechnik

@vbraun
Copy link
Member

vbraun commented Sep 5, 2019

Changed branch from u/isuruf/gcc-prog to dec073b

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants