gm2
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What is realpath in tools-src? (gcc-12 devel branch)


From: Brian Callahan
Subject: Re: What is realpath in tools-src? (gcc-12 devel branch)
Date: Tue, 15 Feb 2022 13:54:12 +0000

It is mostly a GNU-ism but things are changing. OpenBSD added a realpath(1) utility in the current development cycle, to be included in the OpenBSD 7.1 release. FreeBSD also has a realpath(1) utility, since FreeBSD 4.3. NetBSD recently imported a realpath(1) utility in the current development cycle, to be included in NetBSD 10.0.

~Brian


------- Original Message -------
On Monday, February 14th, 2022 at 1:09 PM, Gaius Mulley <mulley.gaius@gmail.com> wrote:
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 exist

calcpath is calling realpath to obtain the absolute path for example:

$ realpath -e ../graft-combine
$ /home/gaius/GM2/graft-combine

regards,
Gaius


On 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]