Opened 2 years ago

Closed 22 months ago

#66028 closed defect (fixed)

coreutils fails to build due to apparent path recursion

Reported by: rmottola (Riccardo) Owned by: mascguy (Christopher Nielsen)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: khepler, cwoffenden (Carl Woffenden)
Port: coreutils

Description

I get something like this:

Error: Failed to configure coreutils: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_sysutils_coreutils/coreutils/work/coreutils-9.1/confdir3/confdir3/confdir3/confdir3/confdir3/confdir3/confdir3/confdir3/confdir3/confdir3/confdir3/confdir3/confdir3/confdir3/confdir3/confdir3/confdir3/confdir3/confdir3/confdir3/confdir3/confdir3/confdir3/confdir3/confdir3/confdir3/confdir3/confdir3/confdir3/confdir3/confdir3/confdir3/confdir3/confdir3/confdir3/confdir3/confdir3/confdir3/confdir3/confdir3/confdir3/confdir3/confdir3/confdir3/confdir3/confdir3/confdir3/confdir3/confdir3/confdir3/confdir3/confdir3/confdir3/confdir3/confdir3/confdir3/confdir3/confdir3/confdir3/confdir3/confdir3/confdir3/confdir3/confdir3/confdir3/confdir3/confdir3/confdir3/confdir3/confdir3/confdir3/confdir3/confdir3/confdir3/confdir3/confdir3/confdir3/confdir3/confdir3/confdir3/confdir3/confdir3/confdir3/confdir3/confdir3/confdir3/confdir3/confdir3/confdir3/confdir3/confdir3/confdir3/confdir3/confdir3/confdir3/confdir3: file name too long

I remember seeing that, but it went away years ago... changing compiler has no effect, it must be the make files somehow.

Attachments (1)

coreutils.log (176.0 KB) - added by rmottola (Riccardo) 2 years ago.

Download all attachments as: .zip

Change History (8)

Changed 2 years ago by rmottola (Riccardo)

Attachment: coreutils.log added

comment:1 Changed 2 years ago by rmottola (Riccardo)

I wonder if this is related to:

https://trac.macports.org/ticket/62994

the path is not the same, but it still spits out "no space left on the device" as kind of recursion

comment:2 Changed 2 years ago by jmroot (Joshua Root)

Owner: set to mascguy
Status: newassigned

comment:3 Changed 2 years ago by khepler

Cc: khepler added

comment:4 Changed 23 months ago by cwoffenden (Carl Woffenden)

Cc: cwoffenden added

comment:5 Changed 23 months ago by barracuda156

I get this error on 10.6 PPC. But coreutils-devel install fine.

comment:6 Changed 22 months ago by rmottola (Riccardo)

I hacked a little and found that applying https://trac.macports.org/ticket/62994 does not work.

However, I was able to fix by still patching configure this way:

  /* Leaving behind such a deep directory is not polite.
     So clean up here, right away, even though the driving
     shell script would also clean up.  */
  {
    size_t i;

    /* Try rmdir first, in case the chdir failed.  */
    rmdir -rf (DIR_NAME);
    for (i = 0; i <= n_chdirs; i++)
      {
        if (chdir ("..") < 0)
          break;
        if (rmdir (DIR_NAME) != 0)
          break;
      }
  }

Please note the "-rf" i added in the first rmdir.

it helps the cleanup.

comment:7 Changed 22 months ago by kencu (Ken)

Resolution: fixed
Status: assignedclosed

In 96c9d4293aaa701ee42f292ddae87740c2b45ff6/macports-ports (master):

coreutils: fix build on Leopard

there are several tests run during configure, for issues that
do not occur on Darwin, that fail in an unusual fashion on Leopard.
This failure does not appear to occur on any other systems.

This patch avoids running these failing tests on Leopard.

see: #62994
closes: #66028

Note: See TracTickets for help on using tickets.