Opened 7 years ago

Closed 7 years ago

#6769 closed defect (fixed)

configure option ' --with-ld-shared' causes calling of 'yes' looping indefinitely.

Reported by: dreieck Owned by: warmerdam
Priority: normal Milestone:
Component: default Version: 2.1.1
Severity: normal Keywords: build, compilation, ld-shared
Cc:

Description (last modified by dreieck)

When I compile gdal 2.1.1 on my arch linux system (64 bit) and I have the option --with-ld-shared passed to configure, at some point the process yes runs for indefinite time and consumes all available CPU power. Compilation does not continue, stdout outputs the same message over and over.

Looking at the output of the compilation, at some point the command

Error: Failed to load processor bash
No macro or processor named 'bash' found

is issued where the compilation hang and looping output of yes seems to occur.

While yes loops, a look in a tree-like rendered ps-output looks like (output of ps -e --cumulative --forest --headers --lines 60 k +comm -o "pid=----PID,size,%mem,%cpu,args=COMMAND----"):

----PID  SIZE %MEM %CPU COMMAND----
[...]
   5438  2132  0.0  7.1  \_ /bin/bash -l
   8356   540  0.0  0.2  |   \_ /bin/sh ./build.sh
   8358  2932  0.0 15.3  |       \_ /usr/bin/bash /sbin/makepkg -f
   3205  1372  0.0  7.3  |           \_ make
   5068 14352  0.2  1.9  |               \_ make /var/abs/local/own/gdal-custom/src/gdal-2.1.1/libgdal.a /var/abs/local/own/gdal-custom/src/gdal-2.1.1/libgdal.so
   5073   424  0.0 87.0  |                   \_ yes
[...]

I use the following commands to build gdal (taken from the official Arch Linux PKGBUILD, and modified):

Error: Failed to load processor bash
No macro or processor named 'bash' found

I attach the following additional information as files:

  • The complete PKGBUILD to build the package in the way the error occurs,
  • the log of stdout and stderr (combined) when configuring and building the package that way,
  • the log of stdout and stderr (combined) when configuring and succesfully building the package without --with-ld-shared.

Attachments (3)

PKGBUILD.with-ld-shared (4.5 KB ) - added by dreieck 7 years ago.
PKGBUILD with --with-ld-shared.
makepkg.with-ld-shared.log.xz (32.6 KB ) - added by dreieck 7 years ago.
Compile log (stdout and stderr) with '--with-ld-shared'.
makepkg.not-with-ld-shared.log.xz (72.3 KB ) - added by dreieck 7 years ago.
Compile log (stdout and stderr) without '--with-ld-shared'.

Download all attachments as: .zip

Change History (8)

by dreieck, 7 years ago

Attachment: PKGBUILD.with-ld-shared added

PKGBUILD with --with-ld-shared.

by dreieck, 7 years ago

Compile log (stdout and stderr) with '--with-ld-shared'.

by dreieck, 7 years ago

Compile log (stdout and stderr) without '--with-ld-shared'.

comment:1 by dreieck, 7 years ago

Description: modified (diff)

comment:2 by dreieck, 7 years ago

Description: modified (diff)

comment:3 by dreieck, 7 years ago

Description: modified (diff)

comment:4 by Even Rouault, 7 years ago

As far as I understand m4/acinclude.m4, --with-ld-shared is not supported. Only --with-ld-shared=/path/to/binary or --without-ld-shared are.

comment:5 by Even Rouault, 7 years ago

Resolution: fixed
Status: newclosed

In 37079:

configure: error out if --with-ld-shared is specified (fixes #6769)

Note: See TracTickets for help on using tickets.