public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] Don't bootstrap libcc1
@ 2014-11-01  9:23 Dominique Dhumieres
  2014-11-01  9:43 ` Jakub Jelinek
  0 siblings, 1 reply; 13+ messages in thread
From: Dominique Dhumieres @ 2014-11-01  9:23 UTC (permalink / raw)
  To: gcc-patches; +Cc: bonzini, pmuldoon, jakub

> Seems removing that makes the configure.ac change unneeded.
> Bootstrapped/regtested on x86_64-linux and i686-linux (libcc1
> is built after compare, by stage3 compiler), and built
> with --disable-bootstrap on i686-linux (libcc1 is built by
> the system compiler in that case).  Ok for trunk?
>
> 2014-10-31  Jakub Jelinek  <jakub@redhat.com>
> ...

This (r216964) breaks bootstrap at stage3

libtool: link: sed -e 's,^,_,' < ../../work/libcc1/libcc1.sym > .libs/libcc1-symbols.expsym
libtool: link:  /opt/gcc/build_w/./gcc/xg++ -B/opt/gcc/build_w/./gcc/ -nostdinc++ -nostdinc++ -I/opt/gcc/build_w/x86_64-apple-darwin14.0.0/libstdc++-v3/include/x86_64-apple-darwin14.0.0 -I/opt/gcc/build_w/x86_64-apple-darwin14.0.0/libstdc++-v3/include -I/opt/gcc/work/libstdc++-v3/libsupc++ -I/opt/gcc/work/libstdc++-v3/include/backward -I/opt/gcc/work/libstdc++-v3/testsuite/util -L/opt/gcc/build_w/x86_64-apple-darwin14.0.0/libstdc++-v3/src -L/opt/gcc/build_w/x86_64-apple-darwin14.0.0/libstdc++-v3/src/.libs -L/opt/gcc/build_w/x86_64-apple-darwin14.0.0/libstdc++-v3/libsupc++/.libs -B/opt/gcc/gcc4.10w/x86_64-apple-darwin14.0.0/bin/ -B/opt/gcc/gcc4.10w/x86_64-apple-darwin14.0.0/lib/ -isystem /opt/gcc/gcc4.10w/x86_64-apple-darwin14.0.0/include -isystem /opt/gcc/gcc4.10w/x86_64-apple-darwin14.0.0/sys-include    -Wl,-undefined -Wl,dynamic_lookup -o .libs/libcc1.0.so -bundle  .libs/findcomp.o .libs/libcc1.o .libs/names.o .libs/callbacks.o .libs/connection.o .libs/marshall.o   -L/opt/gcc/build_w/x86_64-apple-darwin14.0.0/libstdc++-v3/src -L/opt/gcc/build_w/x86_64-apple-darwin14.0.0/libstdc++-v3/src/.libs -L/opt/gcc/build_w/x86_64-apple-darwin14.0.0/libstdc++-v3/libsupc++/.libs  -static-libstdc++ -static-libgcc -Wl,-no_pie ../libiberty/pic/libiberty.a   -Wl,-exported_symbols_list,.libs/libcc1-symbols.expsym
ld: file not found: libstdc++.a
collect2: error: ld returned 1 exit status
make[3]: *** [libcc1.la] Error 1
make[3]: Leaving directory `/opt/gcc/build_w/libcc1'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/opt/gcc/build_w/libcc1'
make[1]: *** [all-libcc1] Error 2
make[1]: Leaving directory `/opt/gcc/build_w'
make: *** [all] Error 2

Reverting r216964 allowed me to boostrap r216988 on x86_64-apple-darwin14.

Dominique

^ permalink raw reply	[flat|nested] 13+ messages in thread
* libcc1
@ 2014-10-29 10:35 Jakub Jelinek
  2014-10-29 10:37 ` libcc1 Paolo Bonzini
  0 siblings, 1 reply; 13+ messages in thread
From: Jakub Jelinek @ 2014-10-29 10:35 UTC (permalink / raw)
  To: Phil Muldoon, Paolo Bonzini, DJ Delorie, Alexandre Oliva,
	Ralf Wildenhues
  Cc: gcc-patches

It would be nice to have libcc1 built just once, not bootstrap it, but
it is a build module, is that possible?
In toplevel configure.ac I'm seeing:   
host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1"
shouldn't libcc1 be in build_tools instead?
I mean, it is a library meant to be dlopened by gdb and gcc
plugin that uses that library, so in canadian-cross should be
for the build target, where the resulting compiler will be run
and where gdb will be run.

Could something like following work?  Phil, can you try that?
Perhaps some toplevel Makefile* changes would be needed too.

--- configure.ac	2014-10-28 14:39:53.018852391 +0100
+++ configure.ac	2014-10-29 11:27:39.866152791 +0100
@@ -129,7 +129,7 @@ extra_host_args=
 build_libs="build-libiberty build-libcpp"
 
 # these tools are built for the build environment
-build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
+build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes build-libcc1"
 
 # these libraries are used by various programs built for the host environment
 #f
@@ -141,7 +141,7 @@ host_libs="intl libiberty opcodes bfd re
 # binutils, gas and ld appear in that order because it makes sense to run
 # "make check" in that particular order.
 # If --enable-gold is used, "gold" may replace "ld".
-host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1"
+host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools"
 
 # libgcj represents the runtime libraries only used by gcj.
 libgcj="target-libffi \
@@ -2659,11 +2659,18 @@ for module in ${build_configdirs} ; do
     echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
     rm -f ${build_subdir}/${module}/Makefile
   fi
+
+  # Don't bootstrap libcc1
+  case $module in
+    libcc1) build_bootstrap_suffix=no-bootstrap ;;
+    *) build_bootstrap_suffix=$bootstrap_suffix ;;
+  esac
+
   extrasub_build="$extrasub_build
 /^@if build-$module\$/d
 /^@endif build-$module\$/d
-/^@if build-$module-$bootstrap_suffix\$/d
-/^@endif build-$module-$bootstrap_suffix\$/d"
+/^@if build-$module-$build-bootstrap_suffix\$/d
+/^@endif build-$module-$build-bootstrap_suffix\$/d"
 done
 extrasub_host=
 for module in ${configdirs} ; do


	Jakub

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2014-11-09 12:58 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-11-01  9:23 [PATCH] Don't bootstrap libcc1 Dominique Dhumieres
2014-11-01  9:43 ` Jakub Jelinek
2014-11-01 18:13   ` Dominique d'Humières
2014-11-08 15:31     ` Dominique d'Humières
2014-11-08 15:41       ` Jakub Jelinek
2014-11-08 21:03         ` Iain Sandoe
2014-11-08 21:55           ` Jack Howarth
2014-11-08 21:59             ` Dominique d'Humières
2014-11-08 22:08               ` Jack Howarth
2014-11-09 12:58                 ` Iain Sandoe
2014-11-08 16:20       ` Jack Howarth
  -- strict thread matches above, loose matches on Subject: below --
2014-10-29 10:35 libcc1 Jakub Jelinek
2014-10-29 10:37 ` libcc1 Paolo Bonzini
2014-10-29 10:48   ` libcc1 Jakub Jelinek
2014-10-29 20:43     ` libcc1 Jakub Jelinek
2014-10-30  8:51       ` libcc1 Paolo Bonzini
2014-10-31 11:03         ` [PATCH] Don't bootstrap libcc1 Jakub Jelinek
2014-10-31 11:16           ` Richard Biener

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).