Skip to content

X11 install fails because $LD_LIBRARY_PATH ends with ':' #9843

@boegel

Description

@boegel

Problem:

== installing bundle component xorgproto v2019.1 (2/50)...
  >> running command:
	[started at: 2020-02-07 14:39:43]
	[output logged in /tmp/eb-s9vrw89t/easybuild-run_cmd-7mwy9krn.log]
	/work/kehoste/sources/generic/eb_v4.1.2.dev0/ConfigureMake/config.guess
  >> command completed: exit 0, ran in 00h00m01s
  >> running command:
	[started at: 2020-02-07 14:39:44]
	[output logged in /tmp/eb-s9vrw89t/easybuild-run_cmd-skcuw2b8.log]
	if [ ! -f configure ]; then ./autogen.sh; fi &&  ./configure --prefix=/work/kehoste/CO7/broadwell/software/X11/20190717-GCCcore-8.3.0 --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu
  >> command completed: exit 77, ran in 00h00m09s
== FAILED: Installation ended unsuccessfully (build directory: /tmp/kehoste/easybuild/build/X11/20190717/GCCcore-8.3.0): build failed (first 300 chars): cmd "if [ ! -f configure ]; then ./autogen.sh; fi &&  ./configure --prefix=/work/kehoste/CO7/broadwell/software/X11/20190717-GCCcore-8.3.0 --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu " exited with exit code 77 and output:

Relevant part of config.log:

configure:3361: checking whether the C compiler works
configure:3383: gcc -O2 -ftree-vectorize -march=native -fno-math-errno -I/work/kehoste/CO7/broadwell/software/zlib/1.2.11-GCCcore-8.3.0/include -I/work/kehoste/CO7/broadwell/software/freetype/2.10.1-GCCcore-8.3.0/include -I/work/kehoste/CO7/broadwell/software/fontconfig/2.13.1-GCCcore-8.3.0/include -I/work/kehoste/CO7/broadwell/software/bzip2/1.0.8-GCCcore-8.3.0/include -I/work/kehoste/CO7/broadwell/software/gettext/0.20.1-GCCcore-8.3.0/include -I/work/kehoste/CO7/broadwell/software/binutils/2.32-GCCcore-8.3.0/include -L/work/kehoste/CO7/broadwell/software/zlib/1.2.11-GCCcore-8.3.0/lib -L/work/kehoste/CO7/broadwell/software/freetype/2.10.1-GCCcore-8.3.0/lib -L/work/kehoste/CO7/broadwell/software/fontconfig/2.13.1-GCCcore-8.3.0/lib -L/work/kehoste/CO7/broadwell/software/bzip2/1.0.8-GCCcore-8.3.0/lib -L/work/kehoste/CO7/broadwell/software/gettext/0.20.1-GCCcore-8.3.0/lib -L/work/kehoste/CO7/broadwell/software/Bison/3.3.2-GCCcore-8.3.0/lib -L/work/kehoste/CO7/broadwell/software/binutils/2.32-GCCcore-8.3.0/lib -L/work/kehoste/CO7/broadwell/software/GCCcore/8.3.0/lib64 -L/work/kehoste/CO7/broadwell/software/GCCcore/8.3.0/lib conftest.c -lm -lpthread >&5
gcc: error: ./specs: Is a directory
configure:3387: $? = 1
configure:3425: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "xorgproto"
| #define PACKAGE_TARNAME "xorgproto"
| #define PACKAGE_VERSION "2019.1"
| #define PACKAGE_STRING "xorgproto 2019.1"
| #define PACKAGE_BUGREPORT "https://gitlab.freedesktop.org/xorg/proto/xorgproto/issues"
| #define PACKAGE_URL ""
| #define PACKAGE "xorgproto"
| #define VERSION "2019.1"
| /* end confdefs.h.  */
|
| int
| main ()
| {
|
|   ;
|   return 0;
| }
configure:3430: error: in `/tmp/kehoste/easybuild/build/X11/20190717/GCCcore-8.3.0/xorgproto-2019.1':
configure:3432: error: C compiler cannot create executables

Cause (see also https://stackoverflow.com/questions/30613394/cannot-create-executables-gcc-specs-is-a-directory)

$ env | grep LIBRARY
LIBRARY_PATH=/apps/slurm/default/lib:/apps/sge/berkeleydb/lib:
LD_LIBRARY_PATH=/apps/slurm/default/lib:/apps/sge/berkeleydb/lib:

Workaround:

export LIBRARY_PATH=/apps/slurm/default/lib:/apps/sge/berkeleydb/lib
export LD_LIBRARY_PATH=/apps/slurm/default/lib:/apps/sge/berkeleydb/lib

cc @victoruse, @migueldiascosta (I hit this on giove)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions