Error when compiling Serpent 2.1.32:missing file

Compiler issues (Intel compiler, mpicc, etc.), data libraries and everything needed to get Serpent running is discussed here
Post Reply
Staffan F
Posts: 12
Joined: Thu Apr 08, 2021 2:49 pm
Security question 1: No
Security question 2: 7

Error when compiling Serpent 2.1.32:missing file

Post by Staffan F » Wed May 12, 2021 11:09 am

Hello,

I get this error message when trying to compile Serpent2:

gcc -pedantic -Wall -ansi -DOPEN_MP -fopenmp -O3 -ffast-math -c geometryplotter.c
geometryplotter.c:22:10: fatal error: gd.h: No such file or directory
22 | #include <gd.h>
|
compilation terminated.
make: *** [Makefile:815: geometryplotter.o] Error 1


which states that one file is missing. I have run tar on
Serpent2.tar.gz and everything seems to be ok regarding the extracting of files.
I am using this version of compiler and Linux:

gcc version 9.3.0 (Ubuntu 9.3.0-17ubuntu1~20.04)

What could be wrong?

Staffan Fors

Ana Jambrina
Posts: 659
Joined: Tue May 26, 2020 5:32 pm
Security question 1: No
Security question 2: 7

Re: Error when compiling Serpent 2.1.32:missing file

Post by Ana Jambrina » Wed May 12, 2021 11:25 am

Have you installed GD Graphics library? Check: Installing and running Serpent: GD Graphics library.

Note: Serpent 2 base version corresponds with the so-called ‘Serpent2.tar.gz’. ‘sssup2.1.32.tar.gz’ includes the 2.1.32 updates - follow the procedure explained at: Installing updates.
- Ana

Staffan F
Posts: 12
Joined: Thu Apr 08, 2021 2:49 pm
Security question 1: No
Security question 2: 7

Re: Error when compiling Serpent 2.1.32:missing file

Post by Staffan F » Mon May 17, 2021 11:06 am

I have not the GD Graphics library installed but I have followed the instructions, by commenting out DFLAGS += -lgd
and added he line: CFLAGS += -DNO_GFX_MODE, in the Serpent installation maual which you refer to and the code compiled for the basic Serpent packages. But when I do the same with the Make-file for the 2.1.32 update the commenting and adding procedure does not work.
Shouldn't that be the same procedure?

Ana Jambrina
Posts: 659
Joined: Tue May 26, 2020 5:32 pm
Security question 1: No
Security question 2: 7

Re: Error when compiling Serpent 2.1.32:missing file

Post by Ana Jambrina » Mon May 17, 2021 11:44 am

There are no differences regarding compiling with/without the GD library between Serpent 2 base-version and 2.1.32.
(Check that the update is correctly installed).
- Ana

Ville Valtavirta
Posts: 539
Joined: Fri Sep 07, 2012 1:43 pm
Security question 1: No
Security question 2: 92

Re: Error when compiling Serpent 2.1.32:missing file

Post by Ville Valtavirta » Mon May 17, 2021 12:20 pm

Code: Select all

make clean
make
might also help by getting rid of any lingering object files from previous attempts.

-Ville

Post Reply