|
From: | Brian Callahan |
Subject: | Re: What is realpath in tools-src? (gcc-12 devel branch) |
Date: | Tue, 15 Feb 2022 13:54:12 +0000 |
Hi John,sure realpath can be used to determine the absolute path. Is it a GNU ism?NAME
realpath - print the resolved path
SYNOPSIS
realpath [OPTION]... FILE...
DESCRIPTION
Print the resolved absolute file name; all but the last component must exist
-e, --canonicalize-existing
all components of the path must existcalcpath is calling realpath to obtain the absolute path for example:$ realpath -e ../graft-combine
$ /home/gaius/GM2/graft-combineregards,GaiusOn Mon, Feb 14, 2022 at 6:02 PM john o goyo <jog37@riddermarkfarm.ca> wrote:Greetings.
Trying to build the latest gcc-12 version from git on a NetBSD 9.1 Sparc
box, the build halts:
NEW_SRCDIR=`../../../src/gcc-git/gcc/m2/tools-src/calcpath ../
../../../src/gcc-git/gcc m2` ; \
export NEW_SRCDIR ; \
cd m2 ; \
[...]
The problem is that gcc/m2/tools-src/calcpath invokes "realpath", which
is not found.
What is realpath?
Sincerely,
john
[Prev in Thread] | Current Thread | [Next in Thread] |