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)

main.log (117.5 KB) - added by barracuda156 2 years ago.

Download all attachments as: .zip

Change History (6)

Changed 2 years ago by barracuda156

Attachment: main.log added

comment:1 Changed 2 years ago by barracuda156

Xcode Clang of 10.6.8 also fails on the header:

libtool: compile:  /usr/bin/clang -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:12: fatal error: 'guile/gh.h' file not found
#  include <guile/gh.h>
           ^
1 error generated.
In file included from ctl.c:27:
./ctl.h:30:12: fatal error: 'guile/gh.h' file not found
#  include <guile/gh.h>
           ^
In file included from subplex.c:62:
./ctl.h:30:12: fatal error: 'guile/gh.h' file not found
#  include <guile/gh.h>
           ^
make[3]: *** [ctl-f77-glue.lo] Error 1

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.  */

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'
Last edited 2 years ago by kencu (Ken) (previous) (diff)

comment:3 in reply to:  1 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: newclosed

In 43e76d29a18faba480f55a6d9456c84269a57521/macports-ports (master):

libctl: blacklist old compilers, which fail to build it
Fixes: #66164

Note: See TracTickets for help on using tickets.