Dear Gregorio folks,
I've been working on updating the gregorio packages in the AUR.* The first
step for that is being able to build outside of the packaging environment,
so I've tried various avenues of downloading and building the source. While
I can successfully build and install from the v2.4.2 tarball (i.e. build
the gregorio executable and use the distributed fonts), I've had various
errors building different branches from the repository.
develop: I tried this first, because my understanding is that this is the
main "bleeding-edge" branch, which is what users would expect from a
gregorio-git package. build.sh fails with
'/usr/lib/gcc/x86_64-unknown-linux-gnu/4.9.2/../../../../lib/libfl.so:
undefined reference to `yylex'' (develop.log attached).
release-3.0: The gregorio executable builds fine, but I can't build the
fonts. I suspect this is related to Arch's not including python2 bindings
for fontforge. When I try 'make fonts', python2 complains that it can't
find fontforge, as expected. However, when I try to run squarize.py with
python3, I get a really strange ImportError saying that psMat is not a
built-in module (rather than the usual module not found). I described this
on Stackoverflow: [1] Does anyone build the fonts on Arch Linux?
I've tested both of these in a clean virtual machine, so I'm reasonably
confident it's not just my config. Does anyone have any ideas for either of
these? Please let me know if you need more information about my setup or if
the above is unclear. (And please don't rush to reply this weekend.)
Thank you,
Br Anthony
* I know that this was recently removed from the development branches; I
prefer to install from a package, but the only place those files really
need to be is on the AUR, so while I'm happy to merge them in if I get them
working, I'm equally happy to leave them in my own repo. (AUR = Arch User
Repository)
[1]:
http://stackoverflow.com/questions/29441053/importerror-psmat-is-not-a-built-in-module
Creating build files using Autotools
Configuring build files; options:
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for gcc option to accept ISO C99... -std=gnu99
checking for gcc -std=gnu99 option to accept ISO Standard C... (cached)
-std=gnu99
checking how to run the C preprocessor... gcc -std=gnu99 -E
checking for flex... flex
checking lex output file root... lex.yy
checking lex library... -lfl
checking whether yytext is a pointer... yes
checking for bison... bison -y
checking for windres... no
checking whether C compiler accepts -fstack-protector-strong... yes
checking whether C compiler accepts -fPIE... yes
checking whether C compiler accepts -Wformat... yes
checking whether C compiler accepts -Werror=format-security... yes
checking whether the linker accepts -Wl,-z,relro... yes
checking whether the linker accepts -Wl,-z,now... yes
checking whether the linker accepts -fPIE... yes
checking whether the linker accepts -pie... yes
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for stdint.h... (cached) yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating examples/Makefile
config.status: creating contrib/Makefile
config.status: creating doc/Makefile
config.status: creating tex/Makefile
config.status: creating fonts/Makefile
config.status: creating src/config_.h
config.status: executing depfiles commands
Building Gregorio; options:
Making all in src
make[1]: Entering directory '/home/avb/downloads/gregorio/src'
make all-am
make[2]: Entering directory '/home/avb/downloads/gregorio/src'
depbase=`echo characters.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -std=gnu99 -DHAVE_CONFIG_H
-DBRANCH_VERSION='"bdevelop-20150404_1116-43d961e"' -I. -I../src -I../src/gabc
-I../src/dump -I../src/gregoriotex -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2
-Wdeclaration-after-statement -fstack-protector-strong -fPIE -Wformat
-Werror=format-security -MT characters.o -MD -MP -MF $depbase.Tpo -c -o
characters.o characters.c &&\
mv -f $depbase.Tpo $depbase.Po
In file included from /usr/include/stdio.h:27:0,
from characters.c:29:
/usr/include/features.h:328:4: warning: #warning _FORTIFY_SOURCE requires
compiling with optimization (-O) [-Wcpp]
# warning _FORTIFY_SOURCE requires compiling with optimization (-O)
^
depbase=`echo gregorio-utils.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -std=gnu99 -DHAVE_CONFIG_H
-DBRANCH_VERSION='"bdevelop-20150404_1116-43d961e"' -I. -I../src -I../src/gabc
-I../src/dump -I../src/gregoriotex -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2
-Wdeclaration-after-statement -fstack-protector-strong -fPIE -Wformat
-Werror=format-security -MT gregorio-utils.o -MD -MP -MF $depbase.Tpo -c -o
gregorio-utils.o gregorio-utils.c &&\
mv -f $depbase.Tpo $depbase.Po
In file included from /usr/include/stdio.h:27:0,
from gregorio-utils.c:21:
/usr/include/features.h:328:4: warning: #warning _FORTIFY_SOURCE requires
compiling with optimization (-O) [-Wcpp]
# warning _FORTIFY_SOURCE requires compiling with optimization (-O)
^
depbase=`echo messages.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -std=gnu99 -DHAVE_CONFIG_H
-DBRANCH_VERSION='"bdevelop-20150404_1116-43d961e"' -I. -I../src -I../src/gabc
-I../src/dump -I../src/gregoriotex -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2
-Wdeclaration-after-statement -fstack-protector-strong -fPIE -Wformat
-Werror=format-security -MT messages.o -MD -MP -MF $depbase.Tpo -c -o
messages.o messages.c &&\
mv -f $depbase.Tpo $depbase.Po
In file included from /usr/include/stdio.h:27:0,
from messages.c:21:
/usr/include/features.h:328:4: warning: #warning _FORTIFY_SOURCE requires
compiling with optimization (-O) [-Wcpp]
# warning _FORTIFY_SOURCE requires compiling with optimization (-O)
^
depbase=`echo struct.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -std=gnu99 -DHAVE_CONFIG_H
-DBRANCH_VERSION='"bdevelop-20150404_1116-43d961e"' -I. -I../src -I../src/gabc
-I../src/dump -I../src/gregoriotex -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2
-Wdeclaration-after-statement -fstack-protector-strong -fPIE -Wformat
-Werror=format-security -MT struct.o -MD -MP -MF $depbase.Tpo -c -o struct.o
struct.c &&\
mv -f $depbase.Tpo $depbase.Po
In file included from /usr/include/stdio.h:27:0,
from struct.c:41:
/usr/include/features.h:328:4: warning: #warning _FORTIFY_SOURCE requires
compiling with optimization (-O) [-Wcpp]
# warning _FORTIFY_SOURCE requires compiling with optimization (-O)
^
depbase=`echo unicode.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -std=gnu99 -DHAVE_CONFIG_H
-DBRANCH_VERSION='"bdevelop-20150404_1116-43d961e"' -I. -I../src -I../src/gabc
-I../src/dump -I../src/gregoriotex -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2
-Wdeclaration-after-statement -fstack-protector-strong -fPIE -Wformat
-Werror=format-security -MT unicode.o -MD -MP -MF $depbase.Tpo -c -o unicode.o
unicode.c &&\
mv -f $depbase.Tpo $depbase.Po
In file included from /usr/include/stdio.h:27:0,
from unicode.c:21:
/usr/include/features.h:328:4: warning: #warning _FORTIFY_SOURCE requires
compiling with optimization (-O) [-Wcpp]
# warning _FORTIFY_SOURCE requires compiling with optimization (-O)
^
depbase=`echo dump/dump.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -std=gnu99 -DHAVE_CONFIG_H
-DBRANCH_VERSION='"bdevelop-20150404_1116-43d961e"' -I. -I../src -I../src/gabc
-I../src/dump -I../src/gregoriotex -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2
-Wdeclaration-after-statement -fstack-protector-strong -fPIE -Wformat
-Werror=format-security -MT dump/dump.o -MD -MP -MF $depbase.Tpo -c -o
dump/dump.o dump/dump.c &&\
mv -f $depbase.Tpo $depbase.Po
In file included from /usr/include/stdio.h:27:0,
from dump/dump.c:21:
/usr/include/features.h:328:4: warning: #warning _FORTIFY_SOURCE requires
compiling with optimization (-O) [-Wcpp]
# warning _FORTIFY_SOURCE requires compiling with optimization (-O)
^
depbase=`echo gregoriotex/gregoriotex-write.o | sed
's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -std=gnu99 -DHAVE_CONFIG_H
-DBRANCH_VERSION='"bdevelop-20150404_1116-43d961e"' -I. -I../src -I../src/gabc
-I../src/dump -I../src/gregoriotex -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2
-Wdeclaration-after-statement -fstack-protector-strong -fPIE -Wformat
-Werror=format-security -MT gregoriotex/gregoriotex-write.o -MD -MP -MF
$depbase.Tpo -c -o gregoriotex/gregoriotex-write.o
gregoriotex/gregoriotex-write.c &&\
mv -f $depbase.Tpo $depbase.Po
In file included from /usr/include/stdio.h:27:0,
from gregoriotex/gregoriotex-write.c:25:
/usr/include/features.h:328:4: warning: #warning _FORTIFY_SOURCE requires
compiling with optimization (-O) [-Wcpp]
# warning _FORTIFY_SOURCE requires compiling with optimization (-O)
^
depbase=`echo gabc/gabc-elements-determination.o | sed
's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -std=gnu99 -DHAVE_CONFIG_H
-DBRANCH_VERSION='"bdevelop-20150404_1116-43d961e"' -I. -I../src -I../src/gabc
-I../src/dump -I../src/gregoriotex -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2
-Wdeclaration-after-statement -fstack-protector-strong -fPIE -Wformat
-Werror=format-security -MT gabc/gabc-elements-determination.o -MD -MP -MF
$depbase.Tpo -c -o gabc/gabc-elements-determination.o
gabc/gabc-elements-determination.c &&\
mv -f $depbase.Tpo $depbase.Po
In file included from /usr/include/stdio.h:27:0,
from gabc/gabc-elements-determination.c:21:
/usr/include/features.h:328:4: warning: #warning _FORTIFY_SOURCE requires
compiling with optimization (-O) [-Wcpp]
# warning _FORTIFY_SOURCE requires compiling with optimization (-O)
^
depbase=`echo gabc/gabc-write.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -std=gnu99 -DHAVE_CONFIG_H
-DBRANCH_VERSION='"bdevelop-20150404_1116-43d961e"' -I. -I../src -I../src/gabc
-I../src/dump -I../src/gregoriotex -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2
-Wdeclaration-after-statement -fstack-protector-strong -fPIE -Wformat
-Werror=format-security -MT gabc/gabc-write.o -MD -MP -MF $depbase.Tpo -c -o
gabc/gabc-write.o gabc/gabc-write.c &&\
mv -f $depbase.Tpo $depbase.Po
In file included from /usr/include/ctype.h:25:0,
from gabc/gabc-write.c:24:
/usr/include/features.h:328:4: warning: #warning _FORTIFY_SOURCE requires
compiling with optimization (-O) [-Wcpp]
# warning _FORTIFY_SOURCE requires compiling with optimization (-O)
^
depbase=`echo gabc/gabc-glyphs-determination.o | sed
's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -std=gnu99 -DHAVE_CONFIG_H
-DBRANCH_VERSION='"bdevelop-20150404_1116-43d961e"' -I. -I../src -I../src/gabc
-I../src/dump -I../src/gregoriotex -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2
-Wdeclaration-after-statement -fstack-protector-strong -fPIE -Wformat
-Werror=format-security -MT gabc/gabc-glyphs-determination.o -MD -MP -MF
$depbase.Tpo -c -o gabc/gabc-glyphs-determination.o
gabc/gabc-glyphs-determination.c &&\
mv -f $depbase.Tpo $depbase.Po
In file included from /usr/include/stdio.h:27:0,
from gabc/gabc-glyphs-determination.c:21:
/usr/include/features.h:328:4: warning: #warning _FORTIFY_SOURCE requires
compiling with optimization (-O) [-Wcpp]
# warning _FORTIFY_SOURCE requires compiling with optimization (-O)
^
flex -o gabc/gabc-score-determination-l.c
--header-file=gabc/gabc-score-determination-l.h gabc/gabc-score-determination.l
bison -y -d -p "gabc_score_determination_" -o gabc/gabc-score-determination-y.c
gabc/gabc-score-determination.y
gabc/gabc-score-determination.y: warning: 3 shift/reduce conflicts
[-Wconflicts-sr]
depbase=`echo gabc/gabc-score-determination-l.o | sed
's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -std=gnu99 -DHAVE_CONFIG_H
-DBRANCH_VERSION='"bdevelop-20150404_1116-43d961e"' -I. -I../src -I../src/gabc
-I../src/dump -I../src/gregoriotex -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2
-Wdeclaration-after-statement -fstack-protector-strong -fPIE -Wformat
-Werror=format-security -MT gabc/gabc-score-determination-l.o -MD -MP -MF
$depbase.Tpo -c -o gabc/gabc-score-determination-l.o
gabc/gabc-score-determination-l.c &&\
mv -f $depbase.Tpo $depbase.Po
In file included from /usr/include/stdio.h:27:0,
from gabc/gabc-score-determination-l.c:39:
/usr/include/features.h:328:4: warning: #warning _FORTIFY_SOURCE requires
compiling with optimization (-O) [-Wcpp]
# warning _FORTIFY_SOURCE requires compiling with optimization (-O)
^
flex -o gabc/gabc-notes-determination-l.c gabc/gabc-notes-determination.l
depbase=`echo gabc/gabc-notes-determination-l.o | sed
's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -std=gnu99 -DHAVE_CONFIG_H
-DBRANCH_VERSION='"bdevelop-20150404_1116-43d961e"' -I. -I../src -I../src/gabc
-I../src/dump -I../src/gregoriotex -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2
-Wdeclaration-after-statement -fstack-protector-strong -fPIE -Wformat
-Werror=format-security -MT gabc/gabc-notes-determination-l.o -MD -MP -MF
$depbase.Tpo -c -o gabc/gabc-notes-determination-l.o
gabc/gabc-notes-determination-l.c &&\
mv -f $depbase.Tpo $depbase.Po
In file included from /usr/include/stdio.h:27:0,
from gabc/gabc-notes-determination-l.c:39:
/usr/include/features.h:328:4: warning: #warning _FORTIFY_SOURCE requires
compiling with optimization (-O) [-Wcpp]
# warning _FORTIFY_SOURCE requires compiling with optimization (-O)
^
depbase=`echo gabc/gabc-score-determination-y.o | sed
's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -std=gnu99 -DHAVE_CONFIG_H
-DBRANCH_VERSION='"bdevelop-20150404_1116-43d961e"' -I. -I../src -I../src/gabc
-I../src/dump -I../src/gregoriotex -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2
-Wdeclaration-after-statement -fstack-protector-strong -fPIE -Wformat
-Werror=format-security -MT gabc/gabc-score-determination-y.o -MD -MP -MF
$depbase.Tpo -c -o gabc/gabc-score-determination-y.o
gabc/gabc-score-determination-y.c &&\
mv -f $depbase.Tpo $depbase.Po
In file included from /usr/include/stdio.h:27:0,
from gabc/gabc-score-determination.y:28:
/usr/include/features.h:328:4: warning: #warning _FORTIFY_SOURCE requires
compiling with optimization (-O) [-Wcpp]
# warning _FORTIFY_SOURCE requires compiling with optimization (-O)
^
gcc -std=gnu99 -Wdeclaration-after-statement -fstack-protector-strong -fPIE
-Wformat -Werror=format-security -Wl,-z,relro -Wl,-z,now -fPIE -pie -o
gregorio characters.o gregorio-utils.o messages.o struct.o unicode.o
dump/dump.o gregoriotex/gregoriotex-write.o gabc/gabc-elements-determination.o
gabc/gabc-write.o gabc/gabc-glyphs-determination.o
gabc/gabc-score-determination-l.o gabc/gabc-notes-determination-l.o
gabc/gabc-score-determination-y.o -lfl
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.9.2/../../../../lib/libfl.so: undefined
reference to `yylex'
collect2: error: ld returned 1 exit status
Makefile:458: recipe for target 'gregorio' failed
make[2]: *** [gregorio] Error 1
make[2]: Leaving directory '/home/avb/downloads/gregorio/src'
Makefile:324: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/home/avb/downloads/gregorio/src'
Makefile:365: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1
Failed to build Gregorio.
_______________________________________________
Gregorio-users mailing list
[email protected]
https://mail.gna.org/listinfo/gregorio-users