gcc 4.7.4 lto build failure

2014-09-19 Thread Rogelio Serrano
/home/rogelio/gcc-build/./prev-gcc/g++
-B/home/rogelio/gcc-build/./prev-gcc/ -B/x86_64-unknown-linux-gnu/bin/
-nostdinc++ 
-B/home/rogelio/gcc-build/prev-x86_64-unknown-linux-gnu/libstdc++-v3/src/.libs
-B/home/rogelio/gcc-build/prev-x86_64-unknown-linux-gnu/libstdc++-v3/libsupc++/.libs
-I/home/rogelio/gcc-build/prev-x86_64-unknown-linux-gnu/libstdc++-v3/include/x86_64-unknown-linux-gnu
-I/home/rogelio/gcc-build/prev-x86_64-unknown-linux-gnu/libstdc++-v3/include
-I/home/rogelio/gcc-4.7.4/libstdc++-v3/libsupc++
-L/home/rogelio/gcc-build/prev-x86_64-unknown-linux-gnu/libstdc++-v3/src/.libs
-L/home/rogelio/gcc-build/prev-x86_64-unknown-linux-gnu/libstdc++-v3/libsupc++/.libs
  -g -O2 -flto=jobserver -frandom-seed=1 -fprofile-use -DIN_GCC
-fno-exceptions -fno-rtti -W -Wall -Wno-narrowing -Wwrite-strings
-Wcast-qual -Wmissing-format-attribute -pedantic -Wno-long-long
-Wno-variadic-macros -Wno-overlength-strings   -DHAVE_CONFIG_H
-static-libstdc++ -static-libgcc  -o cc1 c-lang.o c-family/stub-objc.o
attribs.o c-errors.o c-decl.o c-typeck.o c-convert.o c-aux-info.o
c-objc-common.o c-parser.o tree-mudflap.o c-family/c-common.o
c-family/c-cppbuiltin.o c-family/c-dump.o c-family/c-format.o
c-family/c-gimplify.o c-family/c-lex.o c-family/c-omp.o
c-family/c-opts.o c-family/c-pch.o c-family/c-ppoutput.o
c-family/c-pragma.o c-family/c-pretty-print.o c-family/c-semantics.o
c-family/c-ada-spec.o i386-c.o default-c.o \
  cc1-checksum.o main.o  libbackend.a libcommon-target.a libcommon.a
../libcpp/libcpp.a ../libdecnumber/libdecnumber.a libcommon.a
../libcpp/libcpp.a   ../libiberty/libiberty.a
../libdecnumber/libdecnumber.a-lmpc -lmpfr -lgmp -rdynamic -ldl
-lz
c-family/c-format.o (symbol from plugin): warning: memset used with
constant zero length parameter; this could be due to transposed
parameters
collect2: error: ld returned 1 exit status


Any pointers how to debug this?

I configured with:

../gcc-4.7.4/configure --prefix= --libexecdir=/lib --enable-shared
--enable-threads=posix --enable-__cxa_atexit --enable-clocale
--enable-languages=c,lto --disable-multilib --with-system-zlib
--enable-lto --with-build-config=bootstrap-lto

then did a profiledbootstrap make

Thanks in advance


Re: gcc 4.7.4 lto build failure

2014-09-19 Thread Rogelio Serrano
On Fri, Sep 19, 2014 at 2:03 PM, Markus Trippelsdorf
 wrote:

>>
>> When using profiledbootstrap you should add --disable-werror to the
>> configuration flags.
>
> Hmm, I think this is actually a linker bug. Could you try gold? See:
> https://sourceware.org/bugzilla/show_bug.cgi?id=16746
>
> --
> Markus

Hi

Its the ld bug. I backported the fix to my binutils (2.21.1)and it
seems fine. Im rebuilding my system. Lets see how it goes.

Thanks Markus!


profiledbootstrap build error

2014-10-28 Thread Rogelio Serrano
any hint debugging this?

/home/rogelio/gcc-build/./prev-gcc/g++
-B/home/rogelio/gcc-build/./prev-gcc/ -B/x86_64-unknown-linux-gnu/bin/
-nostdinc++ 
-B/home/rogelio/gcc-build/prev-x86_64-unknown-linux-gnu/libstdc++-v3/src/.libs
-B/home/rogelio/gcc-build/prev-x86_64-unknown-linux-gnu/libstdc++-v3/libsupc++/.libs
-I/home/rogelio/gcc-build/prev-x86_64-unknown-linux-gnu/libstdc++-v3/include/x86_64-unknown-linux-gnu
-I/home/rogelio/gcc-build/prev-x86_64-unknown-linux-gnu/libstdc++-v3/include
-I/home/rogelio/gcc-4.7.4/libstdc++-v3/libsupc++
-L/home/rogelio/gcc-build/prev-x86_64-unknown-linux-gnu/libstdc++-v3/src/.libs
-L/home/rogelio/gcc-build/prev-x86_64-unknown-linux-gnu/libstdc++-v3/libsupc++/.libs
  -g -O2 -flto=jobserver -frandom-seed=1 -fprofile-use -DIN_GCC
-fno-exceptions -fno-rtti -W -Wall -Wno-narrowing -Wwrite-strings
-Wcast-qual -Wmissing-format-attribute -pedantic -Wno-long-long
-Wno-variadic-macros -Wno-overlength-strings   -DHAVE_CONFIG_H
-static-libstdc++ -static-libgcc  -o cc1 c-lang.o c-family/stub-objc.o
attribs.o c-errors.o c-decl.o c-typeck.o c-convert.o c-aux-info.o
c-objc-common.o c-parser.o tree-mudflap.o c-family/c-common.o
c-family/c-cppbuiltin.o c-family/c-dump.o c-family/c-format.o
c-family/c-gimplify.o c-family/c-lex.o c-family/c-omp.o
c-family/c-opts.o c-family/c-pch.o c-family/c-ppoutput.o
c-family/c-pragma.o c-family/c-pretty-print.o c-family/c-semantics.o
c-family/c-ada-spec.o i386-c.o default-c.o \
  cc1-checksum.o main.o  libbackend.a libcommon-target.a libcommon.a
../libcpp/libcpp.a ../libdecnumber/libdecnumber.a libcommon.a
../libcpp/libcpp.a   ../libiberty/libiberty.a
../libdecnumber/libdecnumber.a-lmpc -lmpfr -lgmp -rdynamic -ldl
-lz
lto-wrapper: /home/rogelio/gcc-build/./prev-gcc/g++ returned 1 exit status
/bin/ld: lto-wrapper failed
collect2: error: ld returned 1 exit status
make[3]: *** [cc1] Error 1
make[3]: Leaving directory `/home/rogelio/gcc-build/gcc'
make[2]: *** [all-stagefeedback-gcc] Error 2
make[2]: Leaving directory `/home/rogelio/gcc-build'
make[1]: *** [stagefeedback-bubble] Error 2
make[1]: Leaving directory `/home/rogelio/gcc-build'
make: *** [profiledbootstrap] Error 2


Re: profiledbootstrap build error

2014-10-28 Thread Rogelio Serrano
On Tue, Oct 28, 2014 at 3:45 PM, Rogelio Serrano
 wrote:
> any hint debugging this?
>
> /home/rogelio/gcc-build/./prev-gcc/g++
> -B/home/rogelio/gcc-build/./prev-gcc/ -B/x86_64-unknown-linux-gnu/bin/
> -nostdinc++ 
> -B/home/rogelio/gcc-build/prev-x86_64-unknown-linux-gnu/libstdc++-v3/src/.libs
> -B/home/rogelio/gcc-build/prev-x86_64-unknown-linux-gnu/libstdc++-v3/libsupc++/.libs
> -I/home/rogelio/gcc-build/prev-x86_64-unknown-linux-gnu/libstdc++-v3/include/x86_64-unknown-linux-gnu
> -I/home/rogelio/gcc-build/prev-x86_64-unknown-linux-gnu/libstdc++-v3/include
> -I/home/rogelio/gcc-4.7.4/libstdc++-v3/libsupc++
> -L/home/rogelio/gcc-build/prev-x86_64-unknown-linux-gnu/libstdc++-v3/src/.libs
> -L/home/rogelio/gcc-build/prev-x86_64-unknown-linux-gnu/libstdc++-v3/libsupc++/.libs
>   -g -O2 -flto=jobserver -frandom-seed=1 -fprofile-use -DIN_GCC
> -fno-exceptions -fno-rtti -W -Wall -Wno-narrowing -Wwrite-strings
> -Wcast-qual -Wmissing-format-attribute -pedantic -Wno-long-long
> -Wno-variadic-macros -Wno-overlength-strings   -DHAVE_CONFIG_H
> -static-libstdc++ -static-libgcc  -o cc1 c-lang.o c-family/stub-objc.o
> attribs.o c-errors.o c-decl.o c-typeck.o c-convert.o c-aux-info.o
> c-objc-common.o c-parser.o tree-mudflap.o c-family/c-common.o
> c-family/c-cppbuiltin.o c-family/c-dump.o c-family/c-format.o
> c-family/c-gimplify.o c-family/c-lex.o c-family/c-omp.o
> c-family/c-opts.o c-family/c-pch.o c-family/c-ppoutput.o
> c-family/c-pragma.o c-family/c-pretty-print.o c-family/c-semantics.o
> c-family/c-ada-spec.o i386-c.o default-c.o \
>   cc1-checksum.o main.o  libbackend.a libcommon-target.a libcommon.a
> ../libcpp/libcpp.a ../libdecnumber/libdecnumber.a libcommon.a
> ../libcpp/libcpp.a   ../libiberty/libiberty.a
> ../libdecnumber/libdecnumber.a-lmpc -lmpfr -lgmp -rdynamic -ldl
> -lz
> lto-wrapper: /home/rogelio/gcc-build/./prev-gcc/g++ returned 1 exit status
> /bin/ld: lto-wrapper failed
> collect2: error: ld returned 1 exit status
> make[3]: *** [cc1] Error 1
> make[3]: Leaving directory `/home/rogelio/gcc-build/gcc'
> make[2]: *** [all-stagefeedback-gcc] Error 2
> make[2]: Leaving directory `/home/rogelio/gcc-build'
> make[1]: *** [stagefeedback-bubble] Error 2
> make[1]: Leaving directory `/home/rogelio/gcc-build'
> make: *** [profiledbootstrap] Error 2

my 512 MB zram on /tmp ran out of space. sorry for the noise...


Fwd: profiledbootstrap failing at all-target-libssp

2014-10-29 Thread Rogelio Serrano
-- Forwarded message --
From: Rogelio Serrano 
Date: Wed, Oct 29, 2014 at 10:51 AM
Subject: profiledbootstrap failing at all-target-libssp
To: Hardened LFS Development List 


after the waiting the whole night i get this:

libtool: link: /home/rogelio/gcc-build/./gcc/xgcc
-B/home/rogelio/gcc-build/./gcc/ -B/x86_64-unknown-linux-gnu/bin/
-B/x86_64-unknown-linux-gnu/lib/ -isystem
/x86_64-unknown-linux-gnu/include -isystem
/x86_64-unknown-linux-gnu/sys-include-shared  .libs/ssp.o
.libs/gets-chk.o .libs/memcpy-chk.o .libs/memmove-chk.o
.libs/mempcpy-chk.o .libs/memset-chk.o .libs/snprintf-chk.o
.libs/sprintf-chk.o .libs/stpcpy-chk.o .libs/strcat-chk.o
.libs/strcpy-chk.o .libs/strncat-chk.o .libs/strncpy-chk.o
.libs/vsnprintf-chk.o .libs/vsprintf-chk.o
-Wl,--version-script=../../../gcc-4.7.4/libssp/ssp.map   -Wl,-soname
-Wl,libssp.so.0 -o .libs/libssp.so.0.0.0
.libs/gets-chk.o: In function `gets':
/usr/include/bits/stdio2.h:237: warning: the `gets' function is
dangerous and should not be used.
collect2: error: ld returned 1 exit status
make[3]: *** [libssp.la] Error 1
make[3]: Leaving directory
`/home/rogelio/gcc-build/x86_64-unknown-linux-gnu/libssp'
make[2]: *** [all] Error 2
make[2]: Leaving directory
`/home/rogelio/gcc-build/x86_64-unknown-linux-gnu/libssp'
make[1]: *** [all-target-libssp] Error 2
make[1]: Leaving directory `/home/rogelio/gcc-build'
make: *** [profiledbootstrap] Error 2


i could just disable libssp in the config but that means i have to
bootstrap again!

is there a clean way to fix this?


undefined BITS_PER_UNIT

2006-03-05 Thread Rogelio Serrano
When building gcc-4.1.0 with uclibc im getting and undefined
BITS_PER_UNIT error when building libgcc at the muldi3.

Where should this be defined? I added this definition in tm.h just to
be able to finish the build.

--
www.smsglobal.net SMS Global Ltd Short Message Service For Seafarers