Bug #2530

Fails to compile on CssParser.o

Added by Bud T almost 8 years ago. Updated about 7 years ago.

Target version:
Start date:
Due date:
% Done:


Estimated time:


Installing 3.3.1 on Fedora 17 failed. I have previously installed 3.2.1 on same (yum updated) image of Fedora 17 without errors, using same installation commands, except with boost 1.54 previously. Using boost 1.55 now.

[ 65%] Building CXX object src/CMakeFiles/wt.dir/Wt/Render/CssData_p.o
[ 65%] Building CXX object src/CMakeFiles/wt.dir/Wt/Render/CssParser.o
c++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <> for instructions.
make[2]: *** [src/CMakeFiles/wt.dir/Wt/Render/CssParser.o] Error 4
make[1]: *** [src/CMakeFiles/wt.dir/all] Error 2
make: *** [all] Error 2

Updated by Bud T almost 8 years ago

Ran make again using

make -B -i

Other errors were generated and ignored, including:

[ 78%] Building CXX object src/CMakeFiles/wt.dir/Wt/FontSupportPango.o
Linking CXX shared library
c++: error: CMakeFiles/wt.dir/Wt/Render/CssParser.o: No such file or directory
[ 78%] Built target wt
Scanning dependencies of target wttest
[ 78%] Building CXX object src/CMakeFiles/wttest.dir/Wt/Test/WTestEnvironment.o
make[2]: *** No rule to make target `src/', needed by `src/'.  Stop.
[ 78%] Built target wttest
Scanning dependencies of target test
[ 86%] Building CXX object test/CMakeFiles/test.dir/paintdevice/WRasterTest.o
make[2]: *** No rule to make target `src/', needed by `test/test'.  Stop.
[ 86%] Built target test
Scanning dependencies of target wtdbo
[ 86%] Building CXX object src/Wt/Dbo/CMakeFiles/wtdbo.dir/ptr.o
[ 89%] Building CXX object src/Wt/Dbo/CMakeFiles/wtdbo.dir/WtSqlTraits.o
Linking CXX shared library
[ 89%] Built target wtdbo
Scanning dependencies of target wtdbopostgres
[ 90%] Building CXX object src/Wt/Dbo/backend/CMakeFiles/wtdbopostgres.dir/Postgres.o
Linking CXX shared library
[ 90%] Built target wtdbopostgres
Scanning dependencies of target test.postgres
[ 90%] Building CXX object test/CMakeFiles/test.postgres.dir/test.o
[ 92%] Building CXX object test/CMakeFiles/test.postgres.dir/private/DboImplTest.o
make[2]: *** No rule to make target `src/', needed by `test/test.postgres'.  Stop.
[ 92%] Built target test.postgres
Scanning dependencies of target wtdbosqlite3
[ 92%] Building CXX object src/Wt/Dbo/backend/CMakeFiles/wtdbosqlite3.dir/Sqlite3.o
[ 92%] Building C object src/Wt/Dbo/backend/CMakeFiles/wtdbosqlite3.dir/amalgamation/sqlite3.o
Linking CXX shared library
[ 92%] Built target wtdbosqlite3
Scanning dependencies of target test.sqlite3
[ 92%] Building CXX object test/CMakeFiles/test.sqlite3.dir/test.o
[ 93%] Building CXX object test/CMakeFiles/test.sqlite3.dir/private/DboImplTest.o
make[2]: *** No rule to make target `src/', needed by `test/test.sqlite3'.  Stop.
[ 93%] Built target test.sqlite3
Scanning dependencies of target wtfcgi
[ 93%] Building CXX object src/fcgi/CMakeFiles/wtfcgi.dir/FCGIRecord.o
[ 95%] Building CXX object src/fcgi/CMakeFiles/wtfcgi.dir/WServer.o
make[2]: *** No rule to make target `src/', needed by `src/fcgi/'.  Stop.
[ 95%] Built target wtfcgi
Scanning dependencies of target wthttp
[ 95%] Building CXX object src/http/CMakeFiles/wthttp.dir/Android.o
[100%] Building CXX object src/http/CMakeFiles/wthttp.dir/WtReply.o
make[2]: *** No rule to make target `src/', needed by `src/http/'.  Stop.
[100%] Built target wthttp
[root@st build]#

Updated by Bud T almost 8 years ago

I was able to compile Wt-3.3.0 without these errors on the same machine without any other changes. Something seems to be wrong with 3.3.1.


Updated by Koen Deforche almost 8 years ago

  • Status changed from New to Feedback


That must be a compiler bug, you should report it redhat or upstream to GCC (and/or boost). What compiler version is this?

If you really must build Wt with this compiler+boost version, then you can disable the boost::spirit code responsible for this, you can add WT_NO_SPIRIT to the CXXFLAGS.

(You'll lose CSS parsing and JSON parsing functionality)




Updated by Stefan Ruppert almost 8 years ago


I also ran into that problem. Compiling CssParser of Wt-3.3.1 needs more memory compared to wt-3.3.0 and earlier versions. I increased the memory of our build VMs up to 5GB for 64-bit and 3GB for 32-bit and it compiles fine!




Updated by Koen Deforche about 7 years ago

  • Status changed from Feedback to Resolved
  • Assignee set to Koen Deforche

Newer gcc/CLang versions no longer have this memory issue, but nevertheless it's not a good idea to build on memory-constrained platforms (use cross-compilation if necessary).


Updated by Koen Deforche about 7 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF