google-code-export / jslibs

Automatically exported from code.google.com/p/jslibs
0 stars 0 forks source link

Make and WAF failed on Ubuntu 64-bit #115

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. make all
2. or: ./waf configure
3. and then: ./waf

What is the expected output? What do you see instead?
expected output: compiled successfully
what i see:

make -C libs/js all BUILD=opt BITS=32 
DEST_DIR=/home/kyz/Repository/jslibs/Linux_32_opt/
make[1]: Entering directory `/home/kyz/Repository/jslibs/libs/js'
diff -q ./jsversion.h ./src/jsversion.h || cp ./jsversion.h ./src/
patch -N src/jsutil.h jsutil.h.patch
patching file src/jsutil.h
Reversed (or previously applied) patch detected!  Skipping patch.
2 out of 2 hunks ignored -- saving rejects to file src/jsutil.h.rej
make[1]: [Linux_opt_32/Makefile] Error 1 (ignored)
patch -N src/jsutil.cpp jsutil.cpp.patch
patching file src/jsutil.cpp
Reversed (or previously applied) patch detected!  Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file src/jsutil.cpp.rej
make[1]: [Linux_opt_32/Makefile] Error 1 (ignored)
mkdir -p Linux_opt_32/
cd Linux_opt_32/ && CXXFLAGS="-m32" ../src/configure --enable-optimize 
--enable-strip --with-windows-version=501 --disable-static 
--disable-profile-guided-optimization --disable-vista-sdk-requirements 
--disable-tests
loading cache ./config.cache
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking build system type... x86_64-unknown-linux-gnu
checking for mawk... (cached) mawk
checking for gcc... (cached) colorgcc
checking whether the C compiler (colorgcc  ) works... yes
checking whether the C compiler (colorgcc  ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether colorgcc accepts -g... (cached) yes
checking for c++... (cached) c++
checking whether the C++ compiler (c++ -m32 ) works... no
configure: error: installation or configuration problem: C++ compiler cannot 
create executables.
make[1]: *** [Linux_opt_32/Makefile] Error 1
make[1]: Leaving directory `/home/kyz/Repository/jslibs/libs/js'
make: *** [libs/js] Error 2

What version of the product are you using? On what operating system?
latest today SVN, Ubuntu 10.04 64-bit..

Please provide any additional information below.

Original issue reported on code.google.com by kiswono on 8 Aug 2010 at 6:01

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by sou...@gmail.com on 2 Jun 2011 at 10:46

GoogleCodeExporter commented 9 years ago
sudo apt-get install g++-multilib

should fix this. (Ubuntu 11.04 64-bit here)

Original comment by carl.ad...@gmail.com on 24 Jun 2011 at 9:04

GoogleCodeExporter commented 9 years ago
g++-multilib installed now, different error occurs when doing "./waf build"
still on ubuntu 64-bit:

configure: error: Invalid value for --with-windows-version (501), must 
be 502, 600 or 601

===================================================
./waf configure
Checking for program gcc or cc           : /usr/bin/gcc
Checking for program cpp                 : /usr/bin/cpp
Checking for program ar                  : /usr/bin/ar
Checking for program ranlib              : /usr/bin/ranlib
Checking for program g++ or c++          : /usr/bin/g++
Checking for xulrunner-nspr >= 4.8.2     : yes
Checking for sqlite3 >= 3.6.20           : yes
Checking for zlib >= 1.2.3               : yes
Checking for library iconv               : yes
Checking for iconvlist function          : not found
Checking for iconv const proto           : no
Checking for libtomcrypt >= 1.17         : yes
Checking for library fastcgi             : yes
Checking for libpng >= 1.2.40            : yes
Checking for library jpeg >= 6b          : yes
Checking for freetype2 >= 2.3.11         : yes
Checking for program autoconf2.13        : /usr/bin/autoconf2.13
Checking for program diff                : /usr/bin/diff
Checking for program patch               : /usr/bin/patch
Checking for program make                : /usr/bin/make
Checking for program cp                  : /bin/cp
Checking for program autoconf2.13        : /usr/bin/autoconf2.13
Checking for program diff                : /usr/bin/diff
Checking for program patch               : /usr/bin/patch
Checking for program make                : /usr/bin/make
Checking for program cp                  : /bin/cp
Checking for program autoconf2.13        : /usr/bin/autoconf2.13
Checking for program diff                : /usr/bin/diff
Checking for program patch               : /usr/bin/patch
Checking for program make                : /usr/bin/make
Checking for program cp                  : /bin/cp
Checking for fortran...just kidding!

Configuration summary:
======================
Warnings:  no
Debug:  no
Optimize:  no
CCFLAGS:  -Wall -fPIC -g0 -O2
CXXFLAGS:  -Wall -Wno-invalid-offsetof -fPIC -g0 -O2
JL_ENABLED_MODULE:  jsstd jsprotex jstrimesh jsio jssqlite jsz jsiconv 
jscrypt jsfastcgi jsimage jsfont
JL_DISABLED_MODULE:
'configure' finished successfully (2.038s)

===================================================
./waf build
Waf: Entering directory `/media/b2/zCode/jslibs/waf-build'
[  5/105] task-js-configure: waf-build/default/libs/js/src/configure -> 
waf-build/default/libs/js/src/Makefile
loading cache ./config.cache 

checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking build system type... x86_64-unknown-linux-gnu
checking for mawk... mawk
checking for perl5... no
checking for perl... /usr/bin/perl
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for c++... c++
checking whether the C++ compiler (c++  ) works... yes
checking whether the C++ compiler (c++  ) is a cross-compiler... no
checking whether we are using GNU C++... yes
checking whether c++ accepts -g... yes
checking for ranlib... ranlib
checking for as... /usr/bin/as
checking for ar... ar
checking for ld... ld
checking for strip... strip
checking for windres... no
configure: error: Invalid value for --with-windows-version (501), must 
be 502, 600 or 601
Waf: Leaving directory `/media/b2/zCode/jslibs/waf-build'
Build failed:  -> task failed (err #1):
         {task: task-js-configure configure -> Makefile}

Original comment by kiswono on 24 Jun 2011 at 12:59

GoogleCodeExporter commented 9 years ago

Original comment by sou...@gmail.com on 24 Jun 2011 at 10:47