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: Gaius Mulley
Subject: Re: What is realpath in tools-src? (gcc-12 devel branch)
Date: Mon, 14 Feb 2022 18:09:10 +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 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]