[gnutls-help] problems compiling with gcc 6.1.0
Ludovic Courtès
ludo at gnu.org
Mon Jun 6 22:26:36 CEST 2016
Hello,
Nikos Mavrogiannopoulos <n.mavrogiannopoulos at gmail.com> skribis:
> On Sat, 2016-06-04 at 06:41 -0400, Anthony Jagers wrote:
>> I'm in a Cross-LFS setup.
>>
>> This is the error.
>>
>> make[4]: Entering directory '/root/archives/gnutls-3.4.12/guile/src'
>> CC guile_gnutls_v_2_la-core.lo
>> core.c: In function 'scm_init_gnutls':
>> core.c:3261:31: error: expected ')' before ';' token
>> (void) gnutls_global_init ();
>> ^
>> core.c:3271:1: error: invalid use of void expression
>
> This is related to guile bindings.
… and to the C language. :-)
Anthony: what is the output of ‘gcc --version’, or ‘x-y-z-gcc --version’
if you’re cross-compiling? I cannot reproduce this:
--8<---------------cut here---------------start------------->8---
# make V=1 -C src
make: Entering directory '/home/ludo/src/gnutls/+build/guile/src'
[...]
/bin/sh ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../../guile/src -I../.. -I../../../lib/includes -I../../lib/includes -I../../../extra/includes -I../.. -I. -Wall -Wextra -Wno-strict-prototypes -Wno-unused-parameter -I../../gl -I../../../gl -pthread -I/gnu/store/hyk2i7b8mwbrbiyqk5sgrfgds9zvcrn5-guile-2.0.11/include/guile/2.0 -g -O2 -MT guile_gnutls_v_2_la-core.lo -MD -MP -MF .deps/guile_gnutls_v_2_la-core.Tpo -c -o guile_gnutls_v_2_la-core.lo `test -f 'core.c' || echo '../../../guile/src/'`core.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../../../guile/src -I../.. -I../../../lib/includes -I../../lib/includes -I../../../extra/includes -I../.. -I. -Wall -Wextra -Wno-strict-prototypes -Wno-unused-parameter -I../../gl -I../../../gl -pthread -I/gnu/store/hyk2i7b8mwbrbiyqk5sgrfgds9zvcrn5-guile-2.0.11/include/guile/2.0 -g -O2 -MT guile_gnutls_v_2_la-core.lo -MD -MP -MF .deps/guile_gnutls_v_2_la-core.Tpo -c ../../../guile/src/core.c -fPIC -DPIC -o .libs/guile_gnutls_v_2_la-core.o
[...]
make[1]: Leaving directory '/home/ludo/src/gnutls/+build/guile/src'
make: Leaving directory '/home/ludo/src/gnutls/+build/guile/src'
# gcc --version
gcc (GCC) 6.1.0
Copyright (C) 2016 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--8<---------------cut here---------------end--------------->8---
Could you show the output of ‘make V=1 -C guile/src’?
Thanks,
Ludo’
More information about the Gnutls-help
mailing list