Skip to content

change $LIBS in Ghostscript 9.27 easyconfig to include location of zlib library to link with#11291

Merged
boegel merged 1 commit intoeasybuilders:developfrom
BenjaminHCCarr:patch-1
Sep 16, 2020
Merged

change $LIBS in Ghostscript 9.27 easyconfig to include location of zlib library to link with#11291
boegel merged 1 commit intoeasybuilders:developfrom
BenjaminHCCarr:patch-1

Conversation

@BenjaminHCCarr
Copy link
Copy Markdown
Contributor

Ghostscript was not compiling due to failing on:
libpng/1.6.36-GCCcore-8.2.0/lib/libpng16.so.16: undefined reference to inflateValidate@ZLIB_1.2.9

needed to add -L$EBROOTZLIB/lib to the
preconfigopts += 'export LIBS="$LIBS -lz" && '
line

Ghostscript was not compiling due to failing on:
`libpng/1.6.36-GCCcore-8.2.0/lib/libpng16.so.16: undefined reference to inflateValidate@ZLIB_1.2.9'`

needed to add `-L$EBROOTZLIB/lib` to the
`preconfigopts += 'export LIBS="$LIBS -lz" && '`
line
@BenjaminHCCarr BenjaminHCCarr changed the title LIBS change to fix Ghostscript 9.27 - GCC 8.2.0 ZLIB error {toos} Ghostscript 9.27 - GCC 8.2.0: LIBS change to fix ZLIB error Sep 16, 2020
@BenjaminHCCarr BenjaminHCCarr changed the title {toos} Ghostscript 9.27 - GCC 8.2.0: LIBS change to fix ZLIB error {tools} Ghostscript 9.27 - GCC 8.2.0: LIBS change to fix ZLIB error Sep 16, 2020
@BenjaminHCCarr BenjaminHCCarr changed the title {tools} Ghostscript 9.27 - GCC 8.2.0: LIBS change to fix ZLIB error {tools} [GCCcore/8.20] Ghostscript 9.27: LIBS change to fix ZLIB error Sep 16, 2020
Copy link
Copy Markdown
Contributor

@Micket Micket left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@boegel
Copy link
Copy Markdown
Member

boegel commented Sep 16, 2020

@boegelbot please test @ generoso

@boegel boegel changed the title {tools} [GCCcore/8.20] Ghostscript 9.27: LIBS change to fix ZLIB error {tools} [GCCcore/8.2.0] Ghostscript 9.27: LIBS change to fix ZLIB error Sep 16, 2020
@boegelbot
Copy link
Copy Markdown
Collaborator

@boegel: Request for testing this PR well received on generoso

PR test command 'EB_PR=11291 EB_ARGS= /apps/slurm/default/bin/sbatch --job-name test_PR_11291 ~/boegelbot/eb_from_pr_upload_generoso.sh' executed!

  • exit code: 0
  • output:
Submitted batch job 7816

Test results coming soon (I hope)...

Details

- notification for comment with ID 693502378 processed

Message to humans: this is just bookkeeping information for me,
it is of no use to you (unless you think I have a bug, which I don't).

@boegel boegel added the bug fix label Sep 16, 2020
@boegel boegel added this to the next release (4.3.1) milestone Sep 16, 2020
@boegelbot
Copy link
Copy Markdown
Collaborator

Test report by @boegelbot
SUCCESS
Build succeeded for 1 out of 1 (1 easyconfigs in this PR)
generoso-x-1 - Linux centos linux 8.2.2004, x86_64, Intel(R) Xeon(R) CPU E5-2667 v3 @ 3.20GHz (haswell), Python 3.6.8
See https://gist.github.com/329f7b5c52d4323548efc9704be4d766 for a full test report.

@sassy-crick
Copy link
Copy Markdown
Collaborator

Test report by @sassy-crick
SUCCESS
Build succeeded for 1 out of 1 (1 easyconfigs in this PR)
jon-Precision-Tower-7910 - Linux debian 10.5, x86_64, Intel(R) Xeon(R) CPU E5-2623 v3 @ 3.00GHz, Python 2.7.16
See https://gist.github.com/0a3b0c3b61ef5ec87bc71d72c6b16018 for a full test report.

@Micket
Copy link
Copy Markdown
Contributor

Micket commented Sep 16, 2020

Test report by @Micket
SUCCESS
Build succeeded for 1 out of 1 (1 easyconfigs in this PR)
hebbe-c1 - Linux centos linux 7.8.2003, x86_64, Intel Core Processor (Haswell, no TSX), Python 2.7.5
See https://gist.github.com/e4b1dca59a8c0818bda526784c55713e for a full test report.

@boegel
Copy link
Copy Markdown
Member

boegel commented Sep 16, 2020

Test report by @boegel
SUCCESS
Build succeeded for 1 out of 1 (1 easyconfigs in this PR)
node3407.kirlia.os - Linux centos linux 7.8.2003, x86_64, Intel(R) Xeon(R) Gold 6240 CPU @ 2.60GHz (cascadelake), Python 2.7.5
See https://gist.github.com/9b9cb674db988fc4c029b36f3d9aa428 for a full test report.

@boegel
Copy link
Copy Markdown
Member

boegel commented Sep 16, 2020

Going in, thanks @BenjaminHCCarr!

@boegel boegel merged commit b3c955b into easybuilders:develop Sep 16, 2020
@boegel
Copy link
Copy Markdown
Member

boegel commented Sep 16, 2020

@BenjaminHCCarr I'm still a bit intriuged why this hasn't popped up for anyone else...

Can you share a bit more context about your EasyBuild configuration, which may help explain why you bumped into this but others haven't?

@boegel
Copy link
Copy Markdown
Member

boegel commented Sep 16, 2020

Could you also share which exact command was failing with the undefined reference error (so we can check works for installations that worked out fine for clues)?

@boegel boegel changed the title {tools} [GCCcore/8.2.0] Ghostscript 9.27: LIBS change to fix ZLIB error change $LIBS in Ghostscript 9.27 easyconfig to include location of zlib library to link with Sep 16, 2020
@BenjaminHCCarr
Copy link
Copy Markdown
Contributor Author

eb --version
This is EasyBuild 4.2.1 (framework: 4.2.1, easyblocks: 4.2.1)

Centos 7

   Static hostname: seskscpn080.prim.scp
         Icon name: computer-server
           Chassis: server
        Machine ID: 65113b1a0d2f6087d515e6a8cd0ee7ef
           Boot ID: 5a32347a99004bd7b9dd306f348a8a4d
  Operating System: CentOS Linux 7 (Core)
       CPE OS Name: cpe:/o:centos:centos:7
            Kernel: Linux 3.10.0-957.27.2.el7.x86_64
      Architecture: x86-64

building for Broadwell arch

Building Ghostscript 9.27 on GCCcore 8.2.0 received:

/opt/scp/software/binutils/2.31.1-GCCcore-8.2.0/bin/ld: /opt/scp/software/libpng/1.6.36-GCCcore-8.2.0/lib/libpng16.so.16: undefi
ned reference to `inflateValidate@ZLIB_1.2.9'
collect2: error: ld returned 1 exit status
make: *** [obj/aux/genconf] Error 1
make: *** Waiting for unfinished jobs....
/opt/scp/software/binutils/2.31.1-GCCcore-8.2.0/bin/ld: /opt/scp/software/libpng/1.6.36-GCCcore-8.2.0/lib/libpng16.so.16: undefi
ned reference to `inflateValidate@ZLIB_1.2.9'
collect2: error: ld returned 1 exit status
make: *** [obj/aux/genarch] Error 1
/opt/scp/software/binutils/2.31.1-GCCcore-8.2.0/bin/ld: /opt/scp/software/libpng/1.6.36-GCCcore-8.2.0/lib/libpng16.so.16: undefined reference to `inflateValidate@ZLIB_1.2.9'
collect2: error: ld returned 1 exit status
make: *** [obj/aux/echogs] Error 1
 (at easybuild/tools/run.py:533 in parse_cmd_output)

but:

seskscpg001:~/code/easybuild kkfp793$ grep -i zlib easyconfigs/b/binutils/binutils-2.31.1-GCCcore-8.2.0.eb
    # zlib is a runtime dep to avoid that it gets embedded in libbfd.so,
    ('zlib', '1.2.11'),
seskscpg001:~/code/easybuild kkfp793$ grep -i zlib easyconfigs/l/libpng/libpng-1.6.36-GCCcore-8.2.0.eb
    ('zlib', '1.2.11'),

it was pulling in system zlib which was 1.2.7

@BenjaminHCCarr BenjaminHCCarr deleted the patch-1 branch September 16, 2020 17:03
@boegel
Copy link
Copy Markdown
Member

boegel commented Sep 16, 2020

@BenjaminHCCarr Can you share the output of eb --show-config?

Also, which compiler command was triggering the failing ld? Can you maybe share a log file we can stare at?

@terjekv
Copy link
Copy Markdown
Collaborator

terjekv commented Sep 16, 2020

Test report by @terjekv
SUCCESS
Build succeeded for 49 out of 49 (1 easyconfigs in this PR)
arm1 - Linux ubuntu 18.04, AArch64, UNKNOWN (aarch64), Python 3.6.9
See https://gist.github.com/c9823ed1db0b8ce3b598184e7844aadf for a full test report.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants