Compile error in Tiny, warnings in Huge

24 views
Skip to first unread message

Tony Mechelynck

unread,
Jun 4, 2013, 4:38:08 PM6/4/13
to Vim Developers, Bram Moolenaar
After about two weeks AFK, downloaded 7.3 patches 981 to 1115 (and
intervening runtime changes), tried to compile (full build, "make
reconfig").

Tiny build fails as follows:

gcc -c -I. -Iproto -DHAVE_CONFIG_H -I/usr/local/include -O2
-fno-strength-reduce -Wall -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1
-o objects/regexp.o regexp.c
In file included from regexp.c:7875:0:
regexp_nfa.c: In function ‘nfa_regmatch’:
regexp_nfa.c:4794:3: warning: implicit declaration of function
‘reg_match_visual’ [-Wimplicit-function-declaration]
[...]
link.sh: $LINK_AS_NEEDED set to 'yes': invoking linker directly.
gcc -L/usr/local/lib -Wl,--as-needed -o vi objects/buffer.o
objects/blowfish.o objects/charset.o objects/diff.o objects/digraph.o
objects/edit.o objects/eval.o objects/ex_cmds.o objects/ex_cmds2.o
objects/ex_docmd.o objects/ex_eval.o objects/ex_getln.o objects/fileio.o
objects/fold.o objects/getchar.o objects/hardcopy.o objects/hashtab.o
objects/if_cscope.o objects/if_xcmdsrv.o objects/mark.o
objects/memline.o objects/menu.o objects/message.o objects/misc1.o
objects/misc2.o objects/move.o objects/mbyte.o objects/normal.o
objects/ops.o objects/option.o objects/os_unix.o objects/pathdef.o
objects/popupmnu.o objects/quickfix.o objects/regexp.o objects/screen.o
objects/search.o objects/sha256.o objects/spell.o objects/syntax.o
objects/tag.o objects/term.o objects/ui.o objects/undo.o
objects/version.o objects/window.o objects/main.o
objects/memfile.o -lm -lncurses -ldl
objects/regexp.o: In function `nfa_regmatch':
regexp.c:(.text+0x3f2c): undefined reference to `reg_match_visual'
collect2: ld returned 1 exit status
link.sh: Linking failed
make: *** [vi] Error 1
exit status 2


Huge build (with among others +python -python3) links, but with warnings
in compile phase for if_py_both.h included in if_python.c:

gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_GTK -pthread
-I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include
-I/usr/include/atk-1.0 -I/usr/include/cairo
-I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0
-I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include
-I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12
-I/usr/include/libpng14 -pthread -DORBIT2=1 -D_REENTRANT
-I/usr/include/libgnomeui-2.0 -I/usr/include/libart-2.0
-I/usr/include/gconf/2 -I/usr/include/gnome-keyring-1
-I/usr/include/libgnome-2.0 -I/usr/include/libbonoboui-2.0
-I/usr/include/libgnomecanvas-2.0 -I/usr/include/gtk-2.0
-I/usr/include/gdk-pixbuf-2.0 -I/usr/include/gnome-vfs-2.0
-I/usr/lib64/gnome-vfs-2.0/include -I/usr/include/dbus-1.0
-I/usr/lib64/dbus-1.0/include -I/usr/include/glib-2.0
-I/usr/lib64/glib-2.0/include -I/usr/include/orbit-2.0
-I/usr/include/libbonobo-2.0 -I/usr/include/bonobo-activation-2.0
-I/usr/include/libxml2 -I/usr/include/pango-1.0 -I/usr/include/gail-1.0
-I/usr/include/freetype2 -I/usr/include/atk-1.0
-I/usr/lib64/gtk-2.0/include -I/usr/include/cairo
-I/usr/include/pixman-1 -I/usr/include/libpng12 -I/usr/include/libpng14
-I/usr/local/include -O2 -fno-strength-reduce -Wall
-U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -I/usr/include
-D_LARGEFILE64_SOURCE=1 -I/usr/include/python2.7
-DPYTHON_HOME=\"/usr\" -pthread -o objects/if_python.o if_python.c
In file included from if_python.c:761:0:
if_py_both.h: In function ‘_DictionaryItem’:
if_py_both.h:1114:2: warning: dereferencing type-punned pointer will
break strict-aliasing rules [-Wstrict-aliasing]
if_py_both.h: In function ‘DictionaryContains’:
if_py_both.h:1153:5: warning: dereferencing type-punned pointer will
break strict-aliasing rules [-Wstrict-aliasing]
if_py_both.h:1153:5: warning: dereferencing type-punned pointer will
break strict-aliasing rules [-Wstrict-aliasing]



Best regards,
Tony.
--
Warning: Listening to WXRT on April Fools' Day is not recommended for
those who are slightly disoriented the first few hours after waking
up.
-- Chicago Reader 4/22/83

Dominique Pellé

unread,
Jun 4, 2013, 5:05:39 PM6/4/13
to vim_dev
Attached patch should fix the 'tiny' build + a comment typo.

Regards
Dominique
fix-tiny-build-regexp_nfs.c-7.3.1115.patch

Tony Mechelynck

unread,
Jun 4, 2013, 5:46:29 PM6/4/13
to vim...@googlegroups.com
On 04/06/13 23:05, Dominique Pellé wrote:
> Tony Mechelynck wrote:
>
>> After about two weeks AFK, downloaded 7.3 patches 981 to 1115 (and
>> intervening runtime changes), tried to compile (full build, "make
>> reconfig").
>>
>> Tiny build fails as follows:
[...]
>
>
> Attached patch should fix the 'tiny' build + a comment typo.
>
> Regards
> Dominique
>

It does for me.


Best regards,
Tony.
--
... If forced to travel on an airplane, try and get in the cabin with
the Captain, so you can keep an eye on him and nudge him if he falls
asleep or point out any mountains looming up ahead ...
-- Mike Harding, "The Armchair Anarchist's Almanac"

Bram Moolenaar

unread,
Jun 5, 2013, 7:27:00 AM6/5/13
to Tony Mechelynck, Vim Developers
That's fixed in patch 1116.
Looks like this is in a macro provided by Python.

--
From "know your smileys":
:-)-O Smiling doctor with stethoscope

/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
Reply all
Reply to author
Forward
0 new messages