Opened 2 years ago
Closed 23 months ago
#66164 closed defect (fixed)
libctl fails to build with gcc-4.2 (x86_64 and ppc): ctl.h:30:24: error: guile/gh.h: No such file or directory
Reported by: | barracuda156 | Owned by: | barracuda156 |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.8.0 |
Keywords: | Cc: | ||
Port: | libctl |
Description
The build quickly fails on:
libtool: compile: /usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I. -I.. -I/opt/x86_64/include -I/opt/x86_64/include/guile/3.0 -I/opt/x86_64 -pipe -Os -arch x86_64 -MT integrator.lo -MD -MP -MF .deps/integrator.Tpo -c integrator.c -o integrator.o In file included from ctl-f77-glue.c:25: ctl.h:30:24: error: guile/gh.h: No such file or directory In file included from ctl-f77-glue.c:25: ctl.h:82: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'list' ctl.h:83: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'function' ctl.h:84: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'object' ctl.h:199: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'ctl_gh_bool2scm' ctl.h:203: error: expected ')' before 'sv'
With gcc12
it builds fine.
Attachments (1)
Change History (6)
Changed 2 years ago by barracuda156
comment:1 follow-up: 3 Changed 2 years ago by barracuda156
comment:2 Changed 2 years ago by kencu (Ken)
This doesn't look like a compiler error:
fatal error: 'guile/gh.h' file not found
It looks like it can't find guile.
This is maybe a compiler error, not sure given the above, have to look see after the above is fixed:
ctl.h:82: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'list'
comment:3 Changed 2 years ago by kencu (Ken)
Replying to barracuda156:
In fact configure has a clause for modern Guile headers, but old compilers fail to account for it:
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern non-gh interface" >&5 $as_echo_n "checking for modern non-gh interface... " >&6; } ok=yes cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */
with what is posted here, I can't see what the compiler would have to do with this failing here either, but perhaps there is more in the actual config file that might explain it.
comment:4 Changed 2 years ago by kencu (Ken)
Summary: | libctl fails to build with gcc-4.2 (x86_64 and ppc) → libctl fails to build with gcc-4.2 (x86_64 and ppc): ctl.h:30:24: error: guile/gh.h: No such file or directory |
---|
comment:5 Changed 23 months ago by barracuda156
Owner: | set to barracuda156 |
---|---|
Resolution: | → fixed |
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
Xcode Clang of 10.6.8 also fails on the header:
In fact configure has a clause for modern Guile headers, but old compilers fail to account for it: