Project

General

Profile

Bug #3293

Updated by jeremyevans0 (Jeremy Evans) about 5 years ago

=begin 
  
  Hi, 
 
  Ruby 1.9.1 fails to build with GCC 4.4.3: 
  ./miniruby -I./lib -I.ext/common -I./- -r./ext/purelib.rb    ./enc/make_encmake.rb --builtin-encs="ascii.o us_ascii.o unicode.o utf_8.o" --builtin-transes="newline.o" enc.mk  
  gcc -fno-strict-aliasing -g -g -O2 -O2 -g -Wall -Wno-parentheses    -fPIC    -I. -I.ext/include/i486-linux -I./include -I.    -DRUBY_EXPORT     -o encoding.o -c encoding.c 
  ./miniruby -I./lib -I.ext/common -I./- -r./ext/purelib.rb    -I. -rrbconfig ./tool/compile_prelude.rb ./prelude.rb ./enc/prelude.rb ./gem_prelude.rb prelude.c 
  gcc -fno-strict-aliasing -g -g -O2 -O2 -g -Wall -Wno-parentheses    -fPIC    -I. -I.ext/include/i486-linux -I./include -I.    -DRUBY_EXPORT     -o prelude.o -c prelude.c 
  ar rcu libruby-1.9.1-static.a dln.o encoding.o array.o bignum.o class.o compar.o complex.o dir.o enum.o enumerator.o error.o eval.o load.o proc.o file.o gc.o hash.o inits.o io.o marshal.o math.o numeric.o object.o pack.o parse.o process.o random.o range.o rational.o re.o regcomp.o regenc.o regerror.o regexec.o regparse.o regsyntax.o ruby.o safe.o signal.o sprintf.o st.o strftime.o string.o struct.o time.o transcode.o util.o variable.o version.o compile.o debug.o iseq.o vm.o vm_dump.o thread.o cont.o ascii.o us_ascii.o unicode.o utf_8.o newline.o strlcpy.o strlcat.o    prelude.o dmyext.o 
  gcc -shared -Wl,-soname,libruby-1.9.1.so.1.9     dln.o encoding.o array.o bignum.o class.o compar.o complex.o dir.o enum.o enumerator.o error.o eval.o load.o proc.o file.o gc.o hash.o inits.o io.o marshal.o math.o numeric.o object.o pack.o parse.o process.o random.o range.o rational.o re.o regcomp.o regenc.o regerror.o regexec.o regparse.o regsyntax.o ruby.o safe.o signal.o sprintf.o st.o strftime.o string.o struct.o time.o transcode.o util.o variable.o version.o compile.o debug.o iseq.o vm.o vm_dump.o thread.o cont.o ascii.o us_ascii.o unicode.o utf_8.o newline.o strlcpy.o strlcat.o    prelude.o dmyext.o -lpthread -lrt -ldl -lcrypt -lm     -o libruby-1.9.1.so.1.9.1 
  objcopy -w -L 'Init_*' libruby-1.9.1.so.1.9.1 
  ./miniruby -I./lib -I.ext/common -I./- -r./ext/purelib.rb    ./tool/generic_erb.rb -c -o encdb.h ./template/encdb.h.tmpl ./enc enc 
  <main>: unexpected throw 
  make[1]: *** [encdb.h] Error 1 
 
  This can be reproduced on Debian unstable or Ubuntu lucid. 
 
  Example log: 
  https://buildd.debian.org/fetch.cgi?pkg=ruby1.9.1&arch=i386&ver=1.9.1.378-3&stamp=1273378507&file=log&as=raw 
 
  With GCC 4.5, it also fails, but differently: https://launchpad.net/ubuntu/+source/ruby1.9.1/1.9.1.378-3/+build/1730898 
 
  This is tracked in Debian at http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=580852 
 
 =end 
 

Back