Author Topic: When compiling Code::Blocks on Solaris I get cc1plus: error: invalid option `t'  (Read 5424 times)

Offline AWG

  • Single posting newcomer
  • *
  • Posts: 4
Hello all,

I got codeblocks source, build 4064. When I do a "gmake && gmake install" like it is written in the wiki for Solaris 10, I get the following error:

Making all in tinyxml
gmake[3]: Entering directory `/prog/codeblocks/trunk/src/base/tinyxml'
source='tinystr.cpp' object='tinystr.lo' libtool=yes \
depfile='.deps/tinystr.Plo' tmpdepfile='.deps/tinystr.TPlo' \
depmode=none /bin/bash ../../../depcomp \
/bin/bash ../../../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I../../../src/include -I/opt/csw/lib/wx/include/gtk2-ansi-release-2.8 -I/opt/csw/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -mt -D_REENTRANT -I../../../src/include/wxscintilla/include -I../../../src/include -I../../../src/include/tinyxml  -Ulinux -Uunix  -g -DDEBUG -g -O2 -DCB_PRECOMP -Winvalid-pch -fPIC -DPIC -fexceptions -c -o tinystr.lo tinystr.cpp
 g++ -DHAVE_CONFIG_H -I. -I. -I../../../src/include -I/opt/csw/lib/wx/include/gtk2-ansi-release-2.8 -I/opt/csw/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -mt -D_REENTRANT -I../../../src/include/wxscintilla/include -I../../../src/include -I../../../src/include/tinyxml -Ulinux -Uunix -g -DDEBUG -g -O2 -DCB_PRECOMP -Winvalid-pch -fPIC -DPIC -fexceptions -c tinystr.cpp  -fPIC -DPIC -o .libs/tinystr.o
cc1plus: error: invalid option `t'
gmake[3]: *** [tinystr.lo] Error 1
gmake[3]: Leaving directory `/prog/codeblocks/trunk/src/base/tinyxml'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory `/prog/codeblocks/trunk/src/base'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/prog/codeblocks/trunk/src'
gmake: *** [all-recursive] Error 1


Can anybody help me, how to hunt/fix this bug? :(

Offline AWG

  • Single posting newcomer
  • *
  • Posts: 4
Ok, thanks for your answer!

I did it, now I have another error message:

gmake[3]: Entering directory `/prog/codeblocks/trunk/src/base/tinyxml'
source='tinywxuni.cpp' object='tinywxuni.lo' libtool=yes \
DEPDIR=.deps depmode=none /bin/bash ../../../depcomp \
/bin/bash ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I../../../src/include -I/opt/csw/lib/wx/include/gtk2-ansi-release-2.8 -I/opt/csw/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__  -D_REENTRANT -I../../../src/include/wxscintilla/include -I../../../src/include -I../../../src/include/tinyxml  -Uunix  -g -DDEBUG -g -O2 -DCB_PRECOMP -Winvalid-pch -fPIC -DPIC -fexceptions -c -o tinywxuni.lo tinywxuni.cpp
 g++ -DHAVE_CONFIG_H -I. -I. -I../../../src/include -I/opt/csw/lib/wx/include/gtk2-ansi-release-2.8 -I/opt/csw/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -D_REENTRANT -I../../../src/include/wxscintilla/include -I../../../src/include -I../../../src/include/tinyxml -Uunix -g -DDEBUG -g -O2 -DCB_PRECOMP -Winvalid-pch -fPIC -DPIC -fexceptions -c tinywxuni.cpp  -fPIC -DPIC -o .libs/tinywxuni.o
In file included from ../../../src/include/sdk_common.h:129,
                 from ../../../src/include/sdk_precomp.h:8,
                 from tinywxuni.cpp:1:
../../../src/include/macrosmanager.h:40: Fehler: »wxRegEx« bezeichnet keinen Typ
../../../src/include/macrosmanager.h:41: Fehler: »wxRegEx« bezeichnet keinen Typ
../../../src/include/macrosmanager.h:42: Fehler: »wxRegEx« bezeichnet keinen Typ
../../../src/include/macrosmanager.h:43: Fehler: »wxRegEx« bezeichnet keinen Typ
../../../src/include/macrosmanager.h:44: Fehler: »wxRegEx« bezeichnet keinen Typ
gmake[3]: *** [tinywxuni.lo] Error 1
gmake[3]: Leaving directory `/prog/codeblocks/trunk/src/base/tinyxml'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory `/prog/codeblocks/trunk/src/base'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/prog/codeblocks/trunk/src'
gmake: *** [all-recursive] Error 1

I think "Fehler: »wxRegEx« bezeichnet keinen Typ" stands for "Error: »wxRegEx« is no type", but above you can see, that I already gave the right path to "wx/regex.h", which is included in "macrosmanager.h". Above you can see "-I/opt/csw/include/wx-2.8".
Why does it still doesn't know "wxRegEx"?

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
../../../src/include/macrosmanager.h:40: Fehler: »wxRegEx« bezeichnet keinen Typ
...maybe wxWidgets was compiled without wxRegEx support (wxUSE_REGEX not set)?! Did you compile it yourself? If not - try to do so.
With regards, Morten.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline AWG

  • Single posting newcomer
  • *
  • Posts: 4
@Morten:

Now I have compiled the current version of wxWidgets myself. I ran "./configure" with the parameters in the wiki and with "--with-regex", so I think this should be enough?

But unfortunately it wasn't! I still get the wxRegEx-error  :(

What do you mean with "wxUSE_REGEX"? Where do I have to set this? I couldn't find a document telling me, what you mean with "wxUSE_REGEX".
Do you have an example for me?
« Last Edit: June 06, 2007, 11:29:03 pm by AWG »

Offline AWG

  • Single posting newcomer
  • *
  • Posts: 4
OK 20-40, now I did, what you told me. But only the part for shared wxWidgets libs.

One line isn't possible, this is the one with "make -C contrib/src/mmedia", it isn't possible, because there is no directory "contrib/src/mmedia" in the directory "build_gtk2_shared_unicode"!

So I did it without "mmedia". Is it important to have this directory?

When I did the "make" in my trunk directory of code::blocks, which is actually a "gmake" here at Solaris 10, I got the following output in my terminal:

# gmake MAKE=gmake
Making all in src
gmake[1]: Entering directory `/prog/codeblocks/trunk/src'
Making all in base
gmake[2]: Entering directory `/prog/codeblocks/trunk/src/base'
Making all in tinyxml
gmake[3]: Entering directory `/prog/codeblocks/trunk/src/base/tinyxml'
if /bin/bash ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I../../../src/include -I/opt/wxGTKu-2.8.4/lib/wx/include/gtk2-unicode-release-2.8 -I/opt/wxGTKu-2.8.4/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -pthreads -D_REENTRANT -I../../../src/include/wxscintilla/include -I../../../src/include -I../../../src/include/tinyxml  -Uunix  -O2 -ffast-math -g -O2  -fPIC -DPIC -fexceptions -MT tinystr.lo -MD -MP -MF ".deps/tinystr.Tpo" -c -o tinystr.lo tinystr.cpp; \
then mv -f ".deps/tinystr.Tpo" ".deps/tinystr.Plo"; else rm -f ".deps/tinystr.Tpo"; exit 1; fi
mkdir .libs
 g++ -DHAVE_CONFIG_H -I. -I. -I../../../src/include -I/opt/wxGTKu-2.8.4/lib/wx/include/gtk2-unicode-release-2.8 -I/opt/wxGTKu-2.8.4/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -pthreads -D_REENTRANT -I../../../src/include/wxscintilla/include -I../../../src/include -I../../../src/include/tinyxml -Uunix -O2 -ffast-math -g -O2 -fPIC -DPIC -fexceptions -MT tinystr.lo -MD -MP -MF .deps/tinystr.Tpo -c tinystr.cpp  -fPIC -DPIC -o .libs/tinystr.o
if /bin/bash ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I../../../src/include -I/opt/wxGTKu-2.8.4/lib/wx/include/gtk2-unicode-release-2.8 -I/opt/wxGTKu-2.8.4/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -pthreads -D_REENTRANT -I../../../src/include/wxscintilla/include -I../../../src/include -I../../../src/include/tinyxml  -Uunix  -O2 -ffast-math -g -O2  -fPIC -DPIC -fexceptions -MT tinyxml.lo -MD -MP -MF ".deps/tinyxml.Tpo" -c -o tinyxml.lo tinyxml.cpp; \
then mv -f ".deps/tinyxml.Tpo" ".deps/tinyxml.Plo"; else rm -f ".deps/tinyxml.Tpo"; exit 1; fi
 g++ -DHAVE_CONFIG_H -I. -I. -I../../../src/include -I/opt/wxGTKu-2.8.4/lib/wx/include/gtk2-unicode-release-2.8 -I/opt/wxGTKu-2.8.4/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -pthreads -D_REENTRANT -I../../../src/include/wxscintilla/include -I../../../src/include -I../../../src/include/tinyxml -Uunix -O2 -ffast-math -g -O2 -fPIC -DPIC -fexceptions -MT tinyxml.lo -MD -MP -MF .deps/tinyxml.Tpo -c tinyxml.cpp  -fPIC -DPIC -o .libs/tinyxml.o
if /bin/bash ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I../../../src/include -I/opt/wxGTKu-2.8.4/lib/wx/include/gtk2-unicode-release-2.8 -I/opt/wxGTKu-2.8.4/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -pthreads -D_REENTRANT -I../../../src/include/wxscintilla/include -I../../../src/include -I../../../src/include/tinyxml  -Uunix  -O2 -ffast-math -g -O2  -fPIC -DPIC -fexceptions -MT tinyxmlerror.lo -MD -MP -MF ".deps/tinyxmlerror.Tpo" -c -o tinyxmlerror.lo tinyxmlerror.cpp; \
then mv -f ".deps/tinyxmlerror.Tpo" ".deps/tinyxmlerror.Plo"; else rm -f ".deps/tinyxmlerror.Tpo"; exit 1; fi
 g++ -DHAVE_CONFIG_H -I. -I. -I../../../src/include -I/opt/wxGTKu-2.8.4/lib/wx/include/gtk2-unicode-release-2.8 -I/opt/wxGTKu-2.8.4/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -pthreads -D_REENTRANT -I../../../src/include/wxscintilla/include -I../../../src/include -I../../../src/include/tinyxml -Uunix -O2 -ffast-math -g -O2 -fPIC -DPIC -fexceptions -MT tinyxmlerror.lo -MD -MP -MF .deps/tinyxmlerror.Tpo -c tinyxmlerror.cpp  -fPIC -DPIC -o .libs/tinyxmlerror.o
if /bin/bash ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I../../../src/include -I/opt/wxGTKu-2.8.4/lib/wx/include/gtk2-unicode-release-2.8 -I/opt/wxGTKu-2.8.4/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -pthreads -D_REENTRANT -I../../../src/include/wxscintilla/include -I../../../src/include -I../../../src/include/tinyxml  -Uunix  -O2 -ffast-math -g -O2  -fPIC -DPIC -fexceptions -MT tinyxmlparser.lo -MD -MP -MF ".deps/tinyxmlparser.Tpo" -c -o tinyxmlparser.lo tinyxmlparser.cpp; \
then mv -f ".deps/tinyxmlparser.Tpo" ".deps/tinyxmlparser.Plo"; else rm -f ".deps/tinyxmlparser.Tpo"; exit 1; fi
 g++ -DHAVE_CONFIG_H -I. -I. -I../../../src/include -I/opt/wxGTKu-2.8.4/lib/wx/include/gtk2-unicode-release-2.8 -I/opt/wxGTKu-2.8.4/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -pthreads -D_REENTRANT -I../../../src/include/wxscintilla/include -I../../../src/include -I../../../src/include/tinyxml -Uunix -O2 -ffast-math -g -O2 -fPIC -DPIC -fexceptions -MT tinyxmlparser.lo -MD -MP -MF .deps/tinyxmlparser.Tpo -c tinyxmlparser.cpp  -fPIC -DPIC -o .libs/tinyxmlparser.o
if /bin/bash ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I../../../src/include -I/opt/wxGTKu-2.8.4/lib/wx/include/gtk2-unicode-release-2.8 -I/opt/wxGTKu-2.8.4/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -pthreads -D_REENTRANT -I../../../src/include/wxscintilla/include -I../../../src/include -I../../../src/include/tinyxml  -Uunix  -O2 -ffast-math -g -O2  -fPIC -DPIC -fexceptions -MT tinywxuni.lo -MD -MP -MF ".deps/tinywxuni.Tpo" -c -o tinywxuni.lo tinywxuni.cpp; \
then mv -f ".deps/tinywxuni.Tpo" ".deps/tinywxuni.Plo"; else rm -f ".deps/tinywxuni.Tpo"; exit 1; fi
 g++ -DHAVE_CONFIG_H -I. -I. -I../../../src/include -I/opt/wxGTKu-2.8.4/lib/wx/include/gtk2-unicode-release-2.8 -I/opt/wxGTKu-2.8.4/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -pthreads -D_REENTRANT -I../../../src/include/wxscintilla/include -I../../../src/include -I../../../src/include/tinyxml -Uunix -O2 -ffast-math -g -O2 -fPIC -DPIC -fexceptions -MT tinywxuni.lo -MD -MP -MF .deps/tinywxuni.Tpo -c tinywxuni.cpp  -fPIC -DPIC -o .libs/tinywxuni.o
/bin/bash ../../../libtool --tag=CXX --mode=link g++  -O2 -ffast-math -g -O2  -fPIC -DPIC -fexceptions   -o libtinyxml.la   tinystr.lo tinyxml.lo tinyxmlerror.lo tinyxmlparser.lo tinywxuni.lo  -lpthread -ldl
false cru .libs/libtinyxml.a .libs/tinystr.o .libs/tinyxml.o .libs/tinyxmlerror.o .libs/tinyxmlparser.o .libs/tinywxuni.o
gmake[3]: *** [libtinyxml.la] Error 1
gmake[3]: Leaving directory `/prog/codeblocks/trunk/src/base/tinyxml'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory `/prog/codeblocks/trunk/src/base'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/prog/codeblocks/trunk/src'
gmake: *** [all-recursive] Error 1
#


Anybody has a tip, what to do now? :(