Opened 5 years ago

Last modified 5 months ago

#52321 new defect

coccinelle : Configure failure (ac_nonexistent.h)

Reported by: skycrawl@… Owned by: g5pw (Aljaž Srebrnič)
Priority: Normal Milestone:
Component: ports Version: 2.3.4
Keywords: Cc: vike2000
Port: coccinelle

Description (last modified by mf2k (Frank Schima))

Hello. Seems like I failed to install the port. This is the relevant part from the log:

configure:4073: checking how to run the C preprocessor
configure:4104: /usr/bin/clang -E -I/opt/local/include conftest.c
configure:4104: $? = 0
configure:4118: /usr/bin/clang -E -I/opt/local/include conftest.c
conftest.c:11:10: fatal error: 'ac_nonexistent.h' file not found
#include <ac_nonexistent.h>
         ^
1 error generated.
configure:4118: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "coccinelle"
| #define PACKAGE_TARNAME "coccinelle"
| #define PACKAGE_VERSION "1.0.4"
| #define PACKAGE_STRING "coccinelle 1.0.4"
| #define PACKAGE_BUGREPORT "cocci@systeme.lip6.fr"
| #define PACKAGE_URL "http://coccinelle.lip6.fr/"
| #define PACKAGE "coccinelle"
| #define VERSION "1.0.4"
| /* end confdefs.h.  */
| #include <ac_nonexistent.h>
configure:4143: result: /usr/bin/clang -E
configure:4163: /usr/bin/clang -E -I/opt/local/include conftest.c
configure:4163: $? = 0
configure:4177: /usr/bin/clang -E -I/opt/local/include conftest.c
conftest.c:11:10: fatal error: 'ac_nonexistent.h' file not found
#include <ac_nonexistent.h>
         ^
1 error generated.
configure:4177: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "coccinelle"
| #define PACKAGE_TARNAME "coccinelle"
| #define PACKAGE_VERSION "1.0.4"
| #define PACKAGE_STRING "coccinelle 1.0.4"
| #define PACKAGE_BUGREPORT "cocci@systeme.lip6.fr"
| #define PACKAGE_URL "http://coccinelle.lip6.fr/"
| #define PACKAGE "coccinelle"
| #define VERSION "1.0.4"
| /* end confdefs.h.  */
| #include <ac_nonexistent.h>

Change History (8)

comment:1 Changed 5 years ago by mf2k (Frank Schima)

Owner: changed from macports-tickets@… to g5pw@…
Summary: Configure failure (ac_nonexistent.h)coccinelle : Configure failure (ac_nonexistent.h)

In the future, please use WikiFormatting and Cc the port maintainers (port info --maintainers coccinelle), if any.

comment:2 Changed 5 years ago by mf2k (Frank Schima)

Description: modified (diff)

comment:3 Changed 5 years ago by g5pw (Aljaž Srebrnič)

Is this still happening with coccinelle 1.0.6?

comment:4 Changed 5 years ago by SkyCrawl (Jiří Smolík)

No configuration error anymore but there's a build error instead (MacPorts v2.3.5!):

:info:build /opt/local/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I  -c ast_cocci.ml
:info:build ld: warning: directory not found for option '-L-c'
:info:build ld: warning: directory not found for option '-L-c'
:info:build File "dpll.ml", line 1:
:info:build Error: No implementations provided for the following modules:
:info:build          Common referenced from dpll.cmx
:info:build make[6]: *** [dpll.cmx] Error 2
:info:build make[6]: *** Waiting for unfinished jobs....
:info:build File "parse_printf.ml", line 1:
:info:build Error: No implementations provided for the following modules:
:info:build          Flag referenced from parse_printf.cmx
:info:build          Str referenced from parse_printf.cmx
:info:build File "git_grep.ml", line 1:
:info:build Error: No implementations provided for the following modules:
:info:build          Common referenced from git_grep.cmx
:info:build make[6]: *** [parse_printf.cmx] Error 2
:info:build make[6]: *** [git_grep.cmx] Error 2
:info:build File "cocci_grep.ml", line 1:
:info:build Error: No implementations provided for the following modules:
:info:build          Flag referenced from cocci_grep.cmx
:info:build          Str referenced from cocci_grep.cmx
:info:build          Common referenced from cocci_grep.cmx
:info:build make[6]: *** [cocci_grep.cmx] Error 2
:info:build ld: warning: directory not found for option '-L-c'
:info:build File "ast_cocci.ml", line 1:
:info:build Error: No implementations provided for the following modules:
:info:build          Common referenced from ast_cocci.cmx
:info:build make[6]: *** [ast_cocci.cmx] Error 2
:info:build make[6]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_coccinelle/coccinelle/work/coccinelle-1.0.6/parsing_cocci'
:info:build make[5]: *** [all.opt] Error 2
:info:build make[5]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_coccinelle/coccinelle/work/coccinelle-1.0.6/parsing_cocci'
:info:build make[4]: *** [parsing_cocci.opt] Error 2
:info:build make[4]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_coccinelle/coccinelle/work/coccinelle-1.0.6'
:info:build make[3]: *** [subdirs.opt] Error 1
:info:build make[3]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_coccinelle/coccinelle/work/coccinelle-1.0.6'
:info:build make[2]: *** [opt-compil] Error 2
:info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_coccinelle/coccinelle/work/coccinelle-1.0.6'
:info:build make[1]: *** [all-release] Error 2
:info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_coccinelle/coccinelle/work/coccinelle-1.0.6'
:info:build make: *** [all] Error 2
:info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_coccinelle/coccinelle/work/coccinelle-1.0.6'
:info:build Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_coccinelle/coccinelle/work/coccinelle-1.0.6" && /usr/bin/make -j8 -w all 
:info:build Exit code: 2
:error:build org.macports.build for port coccinelle returned: command execution failed
:debug:build Error code: CHILDSTATUS 4367 2
:debug:build Backtrace: command execution failed
    while executing
"system -nice 0 $fullcmdstring"
    ("eval" body line 1)
    invoked from within
"eval system $notty $nice \$fullcmdstring"
    invoked from within
"command_exec build"
    (procedure "portbuild::build_main" line 8)
    invoked from within
"portbuild::build_main org.macports.build"
    ("eval" body line 1)
    invoked from within
"eval $procedure $targetname"
:info:build Warning: targets not executed for coccinelle: org.macports.activate org.macports.build org.macports.destroot org.macports.install
:notice:build Please see the log file for port coccinelle for details:

comment:5 Changed 5 years ago by g5pw (Aljaž Srebrnič)

That's a weird error. Could you clean, rebuild and attach the complete log?

comment:6 Changed 5 years ago by SkyCrawl (Jiří Smolík)

Hopefully I did what you wanted me to:

sudo port clean coccinelle
sudo port install coccinelle

And the full log: https://www.dropbox.com/s/od0wlfg6n262gdp/main.log?dl=0

comment:7 Changed 22 months ago by gverm (Gijs Vermeulen)

I'm still getting the original configure error with coccinelle 1.0.6.
I'm on Mojave using 10.13 SDK.

Any ideas for a fix?

comment:8 Changed 5 months ago by vike2000

Cc: vike2000 added
Note: See TracTickets for help on using tickets.