Skip to main content
Topic solved
This topic has been marked as solved and requires no further attention.
Topic: signal.h: compiler are not able to find it (Read 181 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

signal.h: compiler are not able to find it

I need a help. When I try to compile an aur package (I haven't tried with other package) I get always the same error: enable to find signal.h and the compilation is aborted.

Somebody can help me? I've no idea what to do. The headers are installed correctly and, if I do a search, there a lot of signal.h, but the compiler is not able to find it. I'm talking about gcc.

Thank you!

Re: signal.h: compiler are not able to find it

Reply #1
Are you talking about a specific AUR package. If so which one?

Post the output. All of it. Use pastebin or an attachment if it's too big.

Re: signal.h: compiler are not able to find it

Reply #2
@gripped, forgive me for the delay to answer, but I was a little bit busy. I can report you the last two:

Quote
pckage: gdcm

42%] Building CXX object Source/Common/CMakeFiles/gdcmCommon.dir/gdcmVersion.cxx.o
In file included from /home/frank/.cache/trizen/sources/gdcm/src/build/Utilities/socketxx/socket++/config.h:135,
                from /home/frank/.cache/trizen/sources/gdcm/src/GDCM-3.0.24/Utilities/socketxx/socket++/sockinet.h:14,
                from /home/frank/.cache/trizen/sources/gdcm/src/GDCM-3.0.24/Utilities/socketxx/socket++/sockinet.cpp:22:
/home/frank/.cache/trizen/sources/gdcm/src/GDCM-3.0.24/Utilities/socketxx/socket++/local.h:40:10: fatal error: signal.h: No
such file or directory
  40 | #include <signal.h>
     |          ^~~~~~~~~~
compilation terminated.
make[2]: *** [Utilities/socketxx/socket++/CMakeFiles/socketxx.dir/build.make:93: Utilities/socketxx/socket++/CMakeFiles/soc
ketxx.dir/sockinet.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from /home/frank/.cache/trizen/sources/gdcm/src/build/Utilities/socketxx/socket++/config.h:135,
                from /home/frank/.cache/trizen/sources/gdcm/src/GDCM-3.0.24/Utilities/socketxx/socket++/sockstream.h:22,
                from /home/frank/.cache/trizen/sources/gdcm/src/GDCM-3.0.24/Utilities/socketxx/socket++/sockstream.cpp:49:
/home/frank/.cache/trizen/sources/gdcm/src/GDCM-3.0.24/Utilities/socketxx/socket++/local.h:40:10: fatal error: signal.h: No
such file or directory
  40 | #include <signal.h>
     |          ^~~~~~~~~~
compilation terminated.
Deprecated command line option: -py3. Ignored, this option is no longer supported.
make[2]: *** [Utilities/socketxx/socket++/CMakeFiles/socketxx.dir/build.make:79: Utilities/socketxx/socket++/CMakeFiles/soc
ketxx.dir/sockstream.cpp.o] Error 1
In file included from /home/frank/.cache/trizen/sources/gdcm/src/build/Utilities/socketxx/socket++/config.h:135,
                from /home/frank/.cache/trizen/sources/gdcm/src/GDCM-3.0.24/Utilities/socketxx/socket++/fork.cpp:13:
/home/frank/.cache/trizen/sources/gdcm/src/GDCM-3.0.24/Utilities/socketxx/socket++/local.h:40:10: fatal error: signal.h: No
such file or directory
  40 | #include <signal.h>
make: *** [Makefile:156: all] Error 2
==> ERROR: A failure occurred in build().
   Aborting...
:: Unable to build gdcm - makepkg exited with code: 4
=>> Try again? [y/N]:

………………………………..

package: insight-toolkit

[  2%] Built target ITKImageFilterBase-all
/home/frank/.cache/trizen/sources/insight-toolkit/src/ITK-5.4.2/Modules/ThirdParty/VNL/src/vxl/v3p/netlib/libf2c/sig_die.c:
7:10: fatal error: signal.h: No such file or directory
   7 | #include "signal.h"
     |          ^~~~~~~~~~
compilation terminated.
make[2]: *** [Modules/ThirdParty/VNL/src/vxl/v3p/netlib/CMakeFiles/itkv3p_netlib.dir/build.make:401: Modules/ThirdParty/VNL
/src/vxl/v3p/netlib/CMakeFiles/itkv3p_netlib.dir/libf2c/sig_die.c.o] Error 1
make[2]: *** Waiting for unfinished jobs....
[  2%] Building C object Modules/ThirdParty/VNL/src/vxl/v3p/netlib/CMakeFiles/itkv3p_netlib.dir/libf2c/z_div.c.o
[  2%] Built target ITKCurvatureFlow-all
[  2%] Built target ITKImageAdaptors-all
[  2%] Built target ITKImageFunction-all
make[1]: *** [CMakeFiles/Makefile2:6271: Modules/ThirdParty/VNL/src/vxl/v3p/netlib/CMakeFiles/itkv3p_netlib.dir/all] Error
2
make[1]: *** Waiting for unfinished jobs....
[  2%] Built target ITKAnisotropicSmoothing-all
[  2%] Built target ITKImageCompose-all
[  2%] Built target ITKImageGrid-all
make[1]: *** [CMakeFiles/Makefile2:6167: Modules/ThirdParty/KWSys/src/KWSys/CMakeFiles/itksys.dir/all] Error 2
make: *** [Makefile:156: all] Error 2
==> ERROR: A failure occurred in build().
   Aborting...
:: Unable to build insight-toolkit - makepkg exited with code: 4
=>> Try again? [y/N]:

---------------------

Thank you. Francesco

Re: signal.h: compiler are not able to find it

Reply #3
Not sure why it's not working but can tell you this.
They are C++ programs

The following command will show you where g++ is looking for signal.h
Code: [Select]
echo | g++ -v -E -x c++ -

Of interest is the output between:
#include "..." search starts here:
....
....
End of search list.


In my case it's
Quote
#include <...> search starts here:
 /usr/lib/gcc/x86_64-pc-linux-gnu/14.2.1/../../../../include/c++/14.2.1
 /usr/lib/gcc/x86_64-pc-linux-gnu/14.2.1/../../../../include/c++/14.2.1/x86_64-pc-linux-gnu
 /usr/lib/gcc/x86_64-pc-linux-gnu/14.2.1/../../../../include/c++/14.2.1/backward
 /usr/lib/gcc/x86_64-pc-linux-gnu/14.2.1/include
 /usr/local/include
 /usr/lib/gcc/x86_64-pc-linux-gnu/14.2.1/include-fixed
 /usr/include
End of search list.
On my system it's the last of these  /usr/include which includes a signal.h
This file is provided by glibc
Code: [Select]
pacman -Qo /usr/include/signal.h
/usr/include/signal.h is owned by glibc 2.40+r16+gaa533d58ff-2



Re: signal.h: compiler are not able to find it

Reply #4
@gripped: I've the same results, but simply the compiler is not able to find signal.h. I don't understand why, its the first time, after many years, that I've a similar problem, but I discover that in /usr/local there isn't signal.h!!!

I try to reinstall glib. Thank you

 

Re: signal.h: compiler are not able to find it

Reply #5
To reinstall glibc solved the problem and signal.h appear, like a miracle ;-)

Thank you!!!