Thanks! Mohamed's suggestion worked fine, but now I'm getting a not enough memory error while linking. How do I get it to link dynamically instead? Presumably, linking dynamically would require less memory.
- HR [error I'm getting..] flock /home/hassan/devel/chromium/src/sconsbuild/Debug/linker.lock g++ -o /home/hassan/devel/chromium/src/sconsbuild/Debug/chrome -m32 -pthread /home/hassan/devel/chromium/src/sconsbuild/Debug/obj/chrome/app/chrome_dll_main.o /home/hassan/devel/chromium/src/sconsbuild/Debug/obj/chrome/app/chrome_exe_main_gtk.o -L/home/hassan/devel/chromium/src/sconsbuild/Debug/lib -Wl,--start-group -lX11 -lXrender -lXext -lrt -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 -lnss3 -lnssutil3 -lsmime3 -lssl3 -lplds4 -lplc4 -lnspr4 -lpthread -ldl -lgdk-x11-2.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 -lfontconfig -lfreetype -lz -lrt -lcommon -lbrowser -lrenderer -lprinting -lviews -lbase -licui18n -licuuc -licudata -levent -lbase_gfx -lskia -lharfbuzz -lharfbuzz_interface -ljpeg -lpng -lz -lgoogleurl -lnet -lv8 -lv8_base -lsdch -lbz2 -lmodp_b64 -lxml2 -lglue -lwebcore -lpcre -lwtf -lxslt -lsqlite3 -lwebkit -lmedia -lhunspell -Wl,--end-group /lib/ld-linux.so.2: could not read symbols: Memory exhausted collect2: ld returned 1 exit status On Mon, Apr 20, 2009 at 7:25 AM, Craig Schlenter <[email protected]>wrote: > Hi > > AFAIK the build system runs 'pkg-config --cflags nss' or something to > figure out the correct paths. I'd poke at that to see if it yields any > clues if Mohamed's suggestions don't help. > > See build/linux/system.gyp btw. > > --Craig > > On Mon, Apr 20, 2009 at 6:47 AM, Mohamed Mansour > <[email protected]> wrote: > > Hi, can you try running, gclient runhooks --force, gclient sync --force, > > clobber (delete build directory), and build again. > > > > On Sun, Apr 19, 2009 at 5:59 PM, Hassan <[email protected]> wrote: > >> > >> Hello, > >> > >> I can't seem to compile chrome on my linux machine. It's complaining > >> that it couldn't find cryptoht.h (see below). After some digging, I > >> noticed g++ is possibly missing a -I/usr/include/nss flag since it > >> seems that cryptoht.h lives in /usr/include/nss/: > >> > >> has...@hassan-desktop:~/devel/chromium/src/build$ locate cryptoht.h > >> /usr/include/nss/cryptoht.h > >> > >> Could this be the reason? If so, what is the correct way of including > >> that flag to g++? > >> > >> Thanks, > >> - HR > >> > >> Here is the error message that I'm getting when compiling: > >> has...@hassan-desktop:~/devel/chromium/src/build$ ../../depot_tools/ > >> hammer app --verbose > >> scons: Reading SConscript files ... > >> scons: done reading SConscript files. > >> scons: Building targets ... > >> cd /home/hassan/devel/chromium/src/base && ../chrome/tools/build/linux/ > >> version.sh file_version_info_linux.h.version /home/hassan/devel/ > >> chromium/src/sconsbuild/Debug/obj/global_intermediate/base/ > >> file_version_info_linux.h > >> g++ -o /home/hassan/devel/chromium/src/sconsbuild/Debug/obj/base/ > >> crypto/signature_verifier_nss.o -c -m32 -pthread -march=pentium4 -fno- > >> exceptions -msse2 -mfpmath=sse -Wall -Wno-write-strings -I/usr/include/ > >> gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/ > >> include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/ > >> lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12 - > >> I/usr/include/pixman-1 -O0 -g -DCHROMIUM_BUILD -DTOOLKIT_GTK=1 - > >> DU_STATIC_IMPLEMENTATION -D_DEBUG -I/home/hassan/devel/chromium/src/ > >> sconsbuild/Debug/obj/third_party/icu38/public/common -I/home/hassan/ > >> devel/chromium/src/third_party/icu38/public/common -I/home/hassan/ > >> devel/chromium/src/sconsbuild/Debug/obj/third_party/icu38/public/i18n - > >> I/home/hassan/devel/chromium/src/third_party/icu38/public/i18n -I/home/ > >> hassan/devel/chromium/src/sconsbuild/Debug/obj -I/home/hassan/devel/ > >> chromium/src -I/home/hassan/devel/chromium/src/sconsbuild/Debug/obj/ > >> global_intermediate -I/home/hassan/devel/chromium/src/ > >> global_intermediate /home/hassan/devel/chromium/src/base/crypto/ > >> signature_verifier_nss.cc > >> g++ -o /home/hassan/devel/chromium/src/sconsbuild/Debug/obj/base/ > >> file_util_posix.o -c -m32 -pthread -march=pentium4 -fno-exceptions - > >> msse2 -mfpmath=sse -Wall -Wno-write-strings -I/usr/include/gtk-2.0 -I/ > >> usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/ > >> usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/ > >> include -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/ > >> include/pixman-1 -O0 -g -DCHROMIUM_BUILD -DTOOLKIT_GTK=1 - > >> DU_STATIC_IMPLEMENTATION -D_DEBUG -I/home/hassan/devel/chromium/src/ > >> sconsbuild/Debug/obj/third_party/icu38/public/common -I/home/hassan/ > >> devel/chromium/src/third_party/icu38/public/common -I/home/hassan/ > >> devel/chromium/src/sconsbuild/Debug/obj/third_party/icu38/public/i18n - > >> I/home/hassan/devel/chromium/src/third_party/icu38/public/i18n -I/home/ > >> hassan/devel/chromium/src/sconsbuild/Debug/obj -I/home/hassan/devel/ > >> chromium/src -I/home/hassan/devel/chromium/src/sconsbuild/Debug/obj/ > >> global_intermediate -I/home/hassan/devel/chromium/src/ > >> global_intermediate /home/hassan/devel/chromium/src/base/ > >> file_util_posix.cc > >> In file included from /home/hassan/devel/chromium/src/base/crypto/ > >> signature_verifier_nss.cc:5: > >> /home/hassan/devel/chromium/src/base/crypto/signature_verifier.h: > >> 11:22: error: cryptoht.h: No such file or directory > >> /home/hassan/devel/chromium/src/base/crypto/signature_verifier_nss.cc: > >> 7:22: error: cryptohi.h: No such file or directory > >> /home/hassan/devel/chromium/src/base/crypto/signature_verifier_nss.cc: > >> 8:19: error: keyhi.h: No such file or directory > >> ... > >> > >> And the version of Ubuntu and kernal I am running: > >> has...@hassan-desktop:~/devel/chromium/src/build$ lsb_release -a > >> No LSB modules are available. > >> Distributor ID: Ubuntu > >> Description: Ubuntu 8.04.2 > >> Release: 8.04 > >> Codename: hardy > >> has...@hassan-desktop:~/devel/chromium/src/build$ uname -a > >> Linux hassan-desktop 2.6.24-23-generic #1 SMP Wed Apr 1 21:47:28 UTC > >> 2009 i686 GNU/Linux > >> > >> > > > > > > > -- Hassan Rom --~--~---------~--~----~------------~-------~--~----~ Chromium Developers mailing list: [email protected] View archives, change email options, or unsubscribe: http://groups.google.com/group/chromium-dev -~----------~----~----~----~------~----~------~--~---
