Author Topic: Can't build C::B when wxWidgets v3.1.2 is manually built.  (Read 3578 times)

Offline tomay3000

  • Multiple posting newcomer
  • *
  • Posts: 61
Can't build C::B when wxWidgets v3.1.2 is manually built.
« on: July 16, 2018, 10:47:06 pm »
Hello,
I have cloned the latest wxWidgets, built it, and install it successfully.
then the part of building C::B fails.

These are the logs:
Code
./configure --with-contrib-plugins=all
Code
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
checking whether configure should try to set CFLAGS/CXXFLAGS/CPPFLAGS/LDFLAGS... yes
checking whether to enable debugging... no
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking how to print strings... printf
checking for style of include used by make... GNU
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 dependency style of gcc... gcc3
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/x86_64-linux-gnu-ld
checking if the linker (/usr/bin/x86_64-linux-gnu-ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/x86_64-linux-gnu-ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /bin/dd
checking how to truncate binary pipes... /bin/dd bs=4096 count=1
checking for mt... mt
checking if mt is a manifest tool... no
checking how to run the C preprocessor... gcc -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 dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/x86_64-linux-gnu-ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking whether make supports nested variables... (cached) yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for ld used by g++... /usr/bin/x86_64-linux-gnu-ld -m elf_x86_64
checking if the linker (/usr/bin/x86_64-linux-gnu-ld -m elf_x86_64) is GNU ld... yes
checking whether the g++ linker (/usr/bin/x86_64-linux-gnu-ld -m elf_x86_64) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC -DPIC
checking if g++ PIC flag -fPIC -DPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/usr/bin/x86_64-linux-gnu-ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... (cached) GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking how to run the C preprocessor... gcc -E
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking whether gcc understands -c and -o together... (cached) yes
checking dependency style of gcc... (cached) gcc3
checking whether ln -s works... yes
checking whether make sets $(MAKE)... (cached) yes
checking for gawk... (cached) gawk
checking whether the linker accepts -Wl,--no-undefined... yes
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking for ANSI C header files... (cached) yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking for unistd.h... (cached) yes
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking sys/malloc.h usability... no
checking sys/malloc.h presence... no
checking for sys/malloc.h... no
checking malloc/malloc.h usability... no
checking malloc/malloc.h presence... no
checking for malloc/malloc.h... no
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for size_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking for working volatile... yes
checking whether closedir returns void... no
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for working memcmp... yes
checking whether lstat correctly handles trailing slash... yes
checking whether stat accepts an empty string... no
checking for vprintf... yes
checking for _doprnt... no
checking for atexit... yes
checking for getcwd... yes
checking for isascii... yes
checking for memchr... yes
checking for memmove... yes
checking for memset... yes
checking for strcasecmp... yes
checking for strchr... yes
checking for strcspn... yes
checking for strdup... yes
checking for strrchr... yes
checking for strstr... yes
checking for dlopen in -ldl... yes
checking for pthread_create in -lpthread... yes
checking for snprintf... yes
checking for vsnprintf... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for zlib... yes
checking for library containing BZ2_bzopen... no
checking astyle.h usability... no
checking astyle.h presence... no
checking for astyle.h... no
checking for pkg-config... yes
checking for pkg-config... (cached) /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for SQUIRREL... no
checking for TINYXML... no
checking whether to build the source formatter plugin... yes
checking whether to build the autosave plugin... yes
checking whether to build the class wizard plugin... yes
checking whether to build the code completion plugin... yes
checking whether to build the compiler plugin... yes
checking whether to build the debugger plugin... yes
checking whether to build the default MIME handler plugin... yes
checking whether to build the open files list plugin... yes
checking whether to build the occurrences highlighting plugin... yes
checking whether to build the foreign projects importer plugin... yes
checking whether to build the scripted wizard plugin... yes
checking whether to build the to-do plugin... yes
checking whether to build the abbreviations plugin... yes
checking whether to keep prebuild windows dll's in dist-tarball... yes
checking whether to integrate fortran-plugin in dist-tarball... yes
checking whether to use gtk-notebook as default notebook... yes
checking which (if any) contrib plugins to build... all
checking if the compiler supports precompiled headers... yes
checking for wxWidgets platform... ./configure: line 21423: --basename: command not found
other
checking gcc version... 7
checking for wxWidgets >= 2.9.0... ./configure: line 23691: test: too many arguments
no
configure: setting additional flags for gcc 7: -Wno-unused-local-typedefs
checking for PIC flags... "-fPIC -DPIC"
checking whether g++ supports C++11 features by default... yes
configure: Configuring Code::Blocks...
configure: SVN revision 17.12svn11428 (2018-06-30 19:37:20)
checking that generated files are newer than configure... done
configure: creating ./config.status

.
.
.

config.status: executing libtool commands


*************************************************
* Code::Blocks source tree has been configured. *
*************************************************

You can now build Code::Blocks by issuing 'make'.
When the build is complete, become root and install
it by issuing 'make install'.

   CFLAGS:     -O2 -ffast-math  -fPIC -std=c90
   CXXFLAGS:   -Wno-unused-local-typedefs -O2 -ffast-math  -Winvalid-pch -fPIC -fexceptions
   CPPFLAGS:   -DCB_AUTOCONF  -DCB_PRECOMP -DPIC -I$(top_srcdir)/src/include/tinyxml -DTIXML_USE_STL=YES
   LDFLAGS:    -Wl,--no-undefined
   CXX:        g++
   CC:         gcc

----------------------------
Code
make
Code
Making all in src
make[1]: Entering directory '/home/tomay/devel/CodeBlocks/trunk/src'
Making all in include
make[2]: Entering directory '/home/tomay/devel/CodeBlocks/trunk/src/include'
make  all-recursive
make[3]: Entering directory '/home/tomay/devel/CodeBlocks/trunk/src/include'
Making all in scripting
make[4]: Entering directory '/home/tomay/devel/CodeBlocks/trunk/src/include/scripting'
Making all in sqplus
make[5]: Entering directory '/home/tomay/devel/CodeBlocks/trunk/src/include/scripting/sqplus'
make[5]: Nothing to be done for 'all'.
make[5]: Leaving directory '/home/tomay/devel/CodeBlocks/trunk/src/include/scripting/sqplus'
Making all in bindings
make[5]: Entering directory '/home/tomay/devel/CodeBlocks/trunk/src/include/scripting/bindings'
make[5]: Nothing to be done for 'all'.
make[5]: Leaving directory '/home/tomay/devel/CodeBlocks/trunk/src/include/scripting/bindings'
Making all in squirrel
make[5]: Entering directory '/home/tomay/devel/CodeBlocks/trunk/src/include/scripting/squirrel'
make[5]: Nothing to be done for 'all'.
make[5]: Leaving directory '/home/tomay/devel/CodeBlocks/trunk/src/include/scripting/squirrel'
Making all in sqstdlib
make[5]: Entering directory '/home/tomay/devel/CodeBlocks/trunk/src/include/scripting/sqstdlib'
make[5]: Nothing to be done for 'all'.
make[5]: Leaving directory '/home/tomay/devel/CodeBlocks/trunk/src/include/scripting/sqstdlib'
Making all in include
make[5]: Entering directory '/home/tomay/devel/CodeBlocks/trunk/src/include/scripting/include'
make[5]: Nothing to be done for 'all'.
make[5]: Leaving directory '/home/tomay/devel/CodeBlocks/trunk/src/include/scripting/include'
make[5]: Entering directory '/home/tomay/devel/CodeBlocks/trunk/src/include/scripting'
make[5]: Nothing to be done for 'all-am'.
make[5]: Leaving directory '/home/tomay/devel/CodeBlocks/trunk/src/include/scripting'
make[4]: Leaving directory '/home/tomay/devel/CodeBlocks/trunk/src/include/scripting'
Making all in tinyxml
make[4]: Entering directory '/home/tomay/devel/CodeBlocks/trunk/src/include/tinyxml'
make[4]: Nothing to be done for 'all'.
make[4]: Leaving directory '/home/tomay/devel/CodeBlocks/trunk/src/include/tinyxml'
make[4]: Entering directory '/home/tomay/devel/CodeBlocks/trunk/src/include'
make[4]: Leaving directory '/home/tomay/devel/CodeBlocks/trunk/src/include'
make[3]: Leaving directory '/home/tomay/devel/CodeBlocks/trunk/src/include'
make[2]: Leaving directory '/home/tomay/devel/CodeBlocks/trunk/src/include'
Making all in base
make[2]: Entering directory '/home/tomay/devel/CodeBlocks/trunk/src/base'
Making all in tinyxml
make[3]: Entering directory '/home/tomay/devel/CodeBlocks/trunk/src/base/tinyxml'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/home/tomay/devel/CodeBlocks/trunk/src/base/tinyxml'
make[3]: Entering directory '/home/tomay/devel/CodeBlocks/trunk/src/base'
make[3]: Nothing to be done for 'all-am'.
make[3]: Leaving directory '/home/tomay/devel/CodeBlocks/trunk/src/base'
make[2]: Leaving directory '/home/tomay/devel/CodeBlocks/trunk/src/base'
Making all in build_tools
make[2]: Entering directory '/home/tomay/devel/CodeBlocks/trunk/src/build_tools'
Making all in autorevision
make[3]: Entering directory '/home/tomay/devel/CodeBlocks/trunk/src/build_tools/autorevision'
./auto_revision +int +wx +t ../../.. ../../../src/include/autorevision.h
make[3]: Leaving directory '/home/tomay/devel/CodeBlocks/trunk/src/build_tools/autorevision'
make[3]: Entering directory '/home/tomay/devel/CodeBlocks/trunk/src/build_tools'
make[3]: Nothing to be done for 'all-am'.
make[3]: Leaving directory '/home/tomay/devel/CodeBlocks/trunk/src/build_tools'
make[2]: Leaving directory '/home/tomay/devel/CodeBlocks/trunk/src/build_tools'
Making all in mime
make[2]: Entering directory '/home/tomay/devel/CodeBlocks/trunk/src/mime'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/tomay/devel/CodeBlocks/trunk/src/mime'
Making all in sdk
make[2]: Entering directory '/home/tomay/devel/CodeBlocks/trunk/src/sdk'
Making all in scripting
make[3]: Entering directory '/home/tomay/devel/CodeBlocks/trunk/src/sdk/scripting'
Making all in sqplus
make[4]: Entering directory '/home/tomay/devel/CodeBlocks/trunk/src/sdk/scripting/sqplus'
make[4]: Nothing to be done for 'all'.
make[4]: Leaving directory '/home/tomay/devel/CodeBlocks/trunk/src/sdk/scripting/sqplus'
Making all in bindings
make[4]: Entering directory '/home/tomay/devel/CodeBlocks/trunk/src/sdk/scripting/bindings'
depbase=`echo scriptbindings.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
/bin/bash ../../../../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../../../src/include   -I../../../../src/include/scripting/include -I../../../../src/include -I../../../../src/sdk/wxscintilla/include -I../../../../src/include/scripting/bindings -I../../../../src/include/scripting/sqplus -DCB_AUTOCONF  -DCB_PRECOMP -DPIC -I../../../../src/include/tinyxml -DTIXML_USE_STL=YES  -Wno-unused-local-typedefs -O2 -ffast-math  -Winvalid-pch -fPIC -fexceptions -MT scriptbindings.lo -MD -MP -MF $depbase.Tpo -c -o scriptbindings.lo scriptbindings.cpp &&\
mv -f $depbase.Tpo $depbase.Plo
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../../../../src/include -I../../../../src/include/scripting/include -I../../../../src/include -I../../../../src/sdk/wxscintilla/include -I../../../../src/include/scripting/bindings -I../../../../src/include/scripting/sqplus -DCB_AUTOCONF -DCB_PRECOMP -DPIC -I../../../../src/include/tinyxml -DTIXML_USE_STL=YES -Wno-unused-local-typedefs -O2 -ffast-math -Winvalid-pch -fPIC -fexceptions -MT scriptbindings.lo -MD -MP -MF .deps/scriptbindings.Tpo -c scriptbindings.cpp  -fPIC -DPIC -o .libs/scriptbindings.o
scriptbindings.cpp:10:25: warning: ../../../../src/include/sdk_precomp.h.gch: not used because `_REENTRANT' not defined [-Winvalid-pch]
 #include <sdk_precomp.h>
                         ^
In file included from ../../../../src/include/sdk_precomp.h:13:0,
                 from scriptbindings.cpp:10:
../../../../src/include/sdk_common.h:37:10: fatal error: wx/wxprec.h: No such file or directory
 #include <wx/wxprec.h>
          ^~~~~~~~~~~~~
compilation terminated.
Makefile:512: recipe for target 'scriptbindings.lo' failed
make[4]: *** [scriptbindings.lo] Error 1
make[4]: Leaving directory '/home/tomay/devel/CodeBlocks/trunk/src/sdk/scripting/bindings'
Makefile:471: recipe for target 'all-recursive' failed
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory '/home/tomay/devel/CodeBlocks/trunk/src/sdk/scripting'
Makefile:999: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory '/home/tomay/devel/CodeBlocks/trunk/src/sdk'
Makefile:529: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/tomay/devel/CodeBlocks/trunk/src'
Makefile:662: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1
-----------------------------
Code
wx-config --list
Code
    Default config is gtk3-unicode-3.1

  Default config will be used for output

  Alternate matches:
    gtk2-unicode-3.1

---------------------------------
Code
wx-config --basename
Code
wx_gtk3u
---------------------------------

as you can see wxWidgets is installed.
What could be the problem ?

Thank you.

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3353
Re: Can't build C::B when wxWidgets v3.1.2 is manually built.
« Reply #1 on: July 16, 2018, 11:05:05 pm »
first i would make a "make clean" if you change wx version...

Offline tomay3000

  • Multiple posting newcomer
  • *
  • Posts: 61
Re: Can't build C::B when wxWidgets v3.1.2 is manually built.
« Reply #2 on: July 17, 2018, 01:00:13 am »
I found out that the problem origin comes from
Code
./bootstrap
Code
Using 'svn --xml info' to get the revision
Found revision: '11428' '2018-06-30 19:37:20'
libtoolize: putting auxiliary files in '.'.
libtoolize: copying file './ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
libtoolize: copying file 'm4/libtool.m4'
libtoolize: copying file 'm4/ltoptions.m4'
libtoolize: copying file 'm4/ltsugar.m4'
libtoolize: copying file 'm4/ltversion.m4'
libtoolize: copying file 'm4/lt~obsolete.m4'
configure.ac:141: warning: macro 'AM_OPTIONS_WXCONFIG' not found in library
configure.ac:142: warning: macro 'AM_PATH_WXCONFIG' not found in library
configure.ac:26: installing './compile'
configure.ac:7: installing './config.guess'
configure.ac:7: installing './config.sub'
configure.ac:22: installing './install-sh'
configure.ac:22: installing './missing'
src/base/tinyxml/Makefile.am: installing './depcomp'
configure.ac:141: error: possibly undefined macro: AM_OPTIONS_WXCONFIG
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
configure.ac:142: error: possibly undefined macro: AM_PATH_WXCONFIG

AM_OPTIONS_WXCONFIG and AM_PATH_WXCONFIG are not defined!!!

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Can't build C::B when wxWidgets v3.1.2 is manually built.
« Reply #3 on: July 17, 2018, 01:17:00 am »
Do you have the wx.m4 file somewhere on your file system?
Also keep in mind that using the gtk3 version of wx is not really well tested configuration at the moment.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline tomay3000

  • Multiple posting newcomer
  • *
  • Posts: 61
Re: Can't build C::B when wxWidgets v3.1.2 is manually built.
« Reply #4 on: July 17, 2018, 02:02:14 am »
Do you have the wx.m4 file somewhere on your file system?
Code
locate wxwin.m4
Code
/usr/local/share/aclocal/wxwin.m4

Also keep in mind that using the gtk3 version of wx is not really well tested configuration at the moment.
hmmmmmm!

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Can't build C::B when wxWidgets v3.1.2 is manually built.
« Reply #5 on: July 17, 2018, 10:30:03 am »
Copy it in the m4 folder or tell the boostrap or configure script where to find it.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline tomay3000

  • Multiple posting newcomer
  • *
  • Posts: 61
Re: Can't build C::B when wxWidgets v3.1.2 is manually built.
« Reply #6 on: July 17, 2018, 12:57:58 pm »
Copy it in the m4 folder or tell the boostrap or configure script where to find it.

Copying it in the m4 folder solved the problem.

Just for knowledge how to tell the boostrap or configure script where to find it?

Thank you.