Openwall GNU/*/Linux - a small security-enhanced Linux distro for servers
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Sat, 07 May 2011 09:09:30 +0300
From: Georgi Geshev <root@...k-labs.exploits-bg.com>
To: owl-dev@...ts.openwall.com
Subject: Re: gcc update

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

On 5/6/2011 9:26 PM, Solar Designer wrote:
> Hi Georgi,
> 
> On Fri, May 06, 2011 at 03:32:14AM +0300, Georgi Geshev wrote:
>> I've built the GCC 4.6.0 (no patches applied), GMP 4.3.2 (appropriate
>> Fedora patches applied), MPFR 3.0.1 (no patches applied) and MPC 0.9 (no
>> patches applied) packages, though I still need to clean up and improve
>> the spec files.
> 
> Great.  Please post your spec files in here - as they are, before you
> spend any more time on them.  I'd like to take a look, and others might
> provide helpful comments as well.
> 
>> Here's the list of packages that initially failed to build with the new
>> compiler toolchain -
>>
>> cpio
>> elfutils-libelf
>> flex
>> glibc
>> kernel
>> libtool
>> mdadm
>> perl
>> shadow-utils
>> util-linux
>> vim
>>
>> I'll do my best to further resolve the build issues.
> 
> Before you do, please post excerpts from build logs showing just how
> these packages failed to build.

I'm herewith attaching the aforementioned excerpts.

> 
> For others in here - Georgi only did this test on i686 so far (not
> x86_64 yet).  (That's fine, I merely want it mentioned.)
> 
> Thanks,
> 
> Alexander
> 

Regards,
Georgi
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (MingW32)

iQEcBAEBAgAGBQJNxOIZAAoJECp4GRJNSNT5Ao8H/1Cs4qR+gH6KhqtJE6jgY/ST
Dgtbx81xy+r0eBnzLHQXRFXap/3Md29RfacvUia5r1Hu2I/n4wvsyrC9pBVYoGBn
MVfNjfmnakZOtThMXFDUD+ZmhranrlW7ePBIjrF+KzI9lyvXNM5B2x858g6qa36e
o+4FzQoxFzpub+hEVSu5zSJ4iMeBKnhm85NCAFXOJSyytSVsMWQpjASIRZZV5ZQY
mozap3kmhcBFm8tqSYzyamW0M9MRUsB/WtQGrysOUCoS0ZPba8/g3cGBLVVR/6rF
SmtITVklXOdS43dWLq36HTCYih1Hv1l5MfOTdJ6KYi1eduk4p5OBCQ8LJSd5Fn4=
=/wO+
-----END PGP SIGNATURE-----

copyout.o: In function `stat64':
copyout.c:(.text+0x260): multiple definition of `stat64'
copyin.o:copyin.c:(.text+0x6b0): first defined here
copyout.o: In function `lstat64':
copyout.c:(.text+0x290): multiple definition of `lstat64'
copyin.o:copyin.c:(.text+0x6e0): first defined here
copypass.o: In function `stat64':
copypass.c:(.text+0x0): multiple definition of `stat64'
copyin.o:copyin.c:(.text+0x6b0): first defined here
copypass.o: In function `lstat64':
copypass.c:(.text+0x30): multiple definition of `lstat64'
copyin.o:copyin.c:(.text+0x6e0): first defined here
main.o: In function `stat64':
main.c:(.text+0x0): multiple definition of `stat64'
copyin.o:copyin.c:(.text+0x6b0): first defined here
main.o: In function `lstat64':
main.c:(.text+0x30): multiple definition of `lstat64'
copyin.o:copyin.c:(.text+0x6e0): first defined here
tar.o: In function `stat64':
tar.c:(.text+0x130): multiple definition of `stat64'
copyin.o:copyin.c:(.text+0x6b0): first defined here
tar.o: In function `lstat64':
tar.c:(.text+0x160): multiple definition of `lstat64'
copyin.o:copyin.c:(.text+0x6e0): first defined here
util.o: In function `stat64':
util.c:(.text+0xb0): multiple definition of `stat64'
copyin.o:copyin.c:(.text+0x6b0): first defined here
util.o: In function `lstat64':
util.c:(.text+0xe0): multiple definition of `lstat64'
copyin.o:copyin.c:(.text+0x6e0): first defined here
collect2: ld returned 1 exit status
make[3]: *** [cpio] Error 1
make[3]: Leaving directory `/usr/src/world/rpm-work-1/BUILD/cpio-2.10.90/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/src/world/rpm-work-1/BUILD/cpio-2.10.90'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/src/world/rpm-work-1/BUILD/cpio-2.10.90'
error: Bad exit status from /usr/src/world/tmp-work/rpm-tmp.50197 (%build)

common.h:115:1: error: 'libelf_acquire_all' defined but not used [-Werror=unused-function]
common.h:134:1: error: 'libelf_release_all' defined but not used [-Werror=unused-function]
cc1: all warnings being treated as errors

make[1]: *** [elf_begin.o] Error 1
make[1]: Leaving directory `/usr/src/world/rpm-work-1/BUILD/elfutils-0.131/libelf'
error: Bad exit status from /usr/src/world/tmp-work/rpm-tmp.59392 (%build)

Results:
Tests succeeded: 44
Tests FAILED: 2
make[5]: *** [check-local] Error 1
make[5]: Leaving directory `/usr/src/world/rpm-work-1/BUILD/flex-2.5.35/tests'
make[4]: *** [check-am] Error 2
make[4]: Leaving directory `/usr/src/world/rpm-work-1/BUILD/flex-2.5.35/tests'
make[3]: *** [check-recursive] Error 1
make[3]: Leaving directory `/usr/src/world/rpm-work-1/BUILD/flex-2.5.35/tests'
make[2]: *** [check-recursive] Error 1
make[2]: Leaving directory `/usr/src/world/rpm-work-1/BUILD/flex-2.5.35'
make[1]: *** [check] Error 2
make[1]: Leaving directory `/usr/src/world/rpm-work-1/BUILD/flex-2.5.35'
error: Bad exit status from /usr/src/world/tmp-work/rpm-tmp.18837 (%check)

gmon-start.c: In function '__gmon_start__':
gmon-start.c:74:26: warning: taking address of expression of type 'void' [enabled by default]
gmon-start.c:74:47: warning: taking address of expression of type 'void' [enabled by default]
gcc: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
gcc: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
../sysdeps/generic/initfini.c: Assembler messages:
../sysdeps/generic/initfini.c:123: Error: open CFI at the end of file; missing .cfi_endproc directive
../sysdeps/generic/initfini.c:123: Error: open CFI at the end of file; missing .cfi_endproc directive
make[3]: *** [/usr/src/world/rpm-work-1/BUILD/glibc-2.3.6/build-i686-linux/csu/crti.o] Error 1
make[3]: Leaving directory `/usr/src/world/rpm-work-1/BUILD/glibc-2.3.6/csu'
make[2]: *** [csu/subdir_lib] Error 2
make[2]: Leaving directory `/usr/src/world/rpm-work-1/BUILD/glibc-2.3.6'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/src/world/rpm-work-1/BUILD/glibc-2.3.6/build-i686-linux'
error: Bad exit status from /usr/src/world/tmp-work/rpm-tmp.38153 (%build)

  LDS     arch/i386/kernel/vsyscall.lds
  AS      arch/i386/kernel/vsyscall-int80.o
  AS      arch/i386/kernel/vsyscall-note.o
  SYSCALL arch/i386/kernel/vsyscall-int80.so
gcc: error: elf_i386: No such file or directory
make[2]: *** [arch/i386/kernel/vsyscall-int80.so] Error 1
make[1]: *** [arch/i386/kernel] Error 2
make[1]: Leaving directory `/usr/src/world/rpm-work-1/BUILD/linux-2.6.18'
error: Bad exit status from /usr/src/world/tmp-work/rpm-tmp.69075 (%build)

====================================
3 of 100 tests failed
(3 tests were not run)
Please report to bug-libtool@....org
====================================
make[3]: *** [check-TESTS] Error 1
make[3]: Leaving directory `/usr/src/world/rpm-work-1/BUILD/libtool-1.5.22/tests'
make[2]: *** [check-am] Error 2
make[2]: Leaving directory `/usr/src/world/rpm-work-1/BUILD/libtool-1.5.22/tests'
make[1]: *** [check-recursive] Error 1
make[1]: Leaving directory `/usr/src/world/rpm-work-1/BUILD/libtool-1.5.22'
error: Bad exit status from /usr/src/world/tmp-work/rpm-tmp.20733 (%check)

Query.c: In function 'Query':
Query.c:43:16: error: variable 'superrno' set but not used [-Werror=unused-but-set-variable]
cc1: all warnings being treated as errors

make[1]: *** [Query.o] Error 1
make[1]: Leaving directory `/usr/src/world/rpm-work-1/BUILD/mdadm-2.6.3'
error: Bad exit status from /usr/src/world/tmp-work/rpm-tmp.30773 (%build)

Now you must run 'make'.

If you compile perl5 on a different machine or from a different object
directory, copy the Policy.sh file from this object directory to the
new one before you run Configure -- this will help you with most of
the policy defaults.

+ /usr/bin/make
make[1]: Entering directory `/usr/src/world/rpm-work-1/BUILD/perl-5.8.8'
make[1]: *** No rule to make target `<command-line>', needed by `miniperlmain.o'.  Stop.
make[1]: Leaving directory `/usr/src/world/rpm-work-1/BUILD/perl-5.8.8'
error: Bad exit status from /usr/src/world/tmp-work/rpm-tmp.45897 (%build)

useradd.c: In function 'new_grent':
useradd.c:1620:34: error: lvalue required as left operand of assignment
useradd.c: In function 'new_sgent':
useradd.c:1639:33: error: lvalue required as left operand of assignment
useradd.c: At top level:
useradd.c:33:1: warning: 'rcsid' defined but not used [-Wunused-function]
make[3]: *** [useradd.o] Error 1
make[3]: Leaving directory `/usr/src/world/rpm-work-1/BUILD/shadow-4.0.4.1/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/src/world/rpm-work-1/BUILD/shadow-4.0.4.1'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/src/world/rpm-work-1/BUILD/shadow-4.0.4.1'
error: Bad exit status from /usr/src/world/tmp-work/rpm-tmp.59556 (%build)

mkfs.minix.c: In function 'alarm_intr':
mkfs.minix.c:556:27: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
mkfs.minix.c:556:27: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
mkfs.minix.c: In function 'check_blocks':
mkfs.minix.c:574:29: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
mkfs.minix.c:574:29: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
mkfs.minix.c:579:33: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
mkfs.minix.c:579:33: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
mkfs.minix.c:580:10: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
mkfs.minix.c:580:10: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
mkfs.minix.c:585:27: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
mkfs.minix.c:587:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
mkfs.minix.c: In function 'get_list_blocks':
mkfs.minix.c:608:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
make[2]: *** [mkfs.minix.o] Error 1
make[2]: Leaving directory `/usr/src/world/rpm-work-1/BUILD/util-linux-2.11z/disk-utils'
make[1]: *** [all] Error 1
make[1]: Leaving directory `/usr/src/world/rpm-work-1/BUILD/util-linux-2.11z'
error: Bad exit status from /usr/src/world/tmp-work/rpm-tmp.35637 (%build)

objects/term.o: In function `clear_termcodes':
term.c:(.text+0x161e): undefined reference to `PC'
term.c:(.text+0x1624): undefined reference to `BC'
term.c:(.text+0x1629): undefined reference to `UP'
term.c:(.text+0x162f): undefined reference to `ospeed'
objects/term.o: In function `set_termname':
term.c:(.text+0x21b2): undefined reference to `BC'
term.c:(.text+0x21c8): undefined reference to `UP'
term.c:(.text+0x21de): undefined reference to `PC'
term.c:(.text+0x271f): undefined reference to `tgetnum'
term.c:(.text+0x2734): undefined reference to `tgetnum'
term.c:(.text+0x2762): undefined reference to `tgetflag'
term.c:(.text+0x2785): undefined reference to `tgetflag'
term.c:(.text+0x27a8): undefined reference to `tgetflag'
term.c:(.text+0x27cb): undefined reference to `tgetnum'
term.c:(.text+0x27e1): undefined reference to `tgetflag'
term.c:(.text+0x2804): undefined reference to `tgetflag'
collect2: ld returned 1 exit status
link.sh: Linking failed
make[1]: *** [vim] Error 1
make[1]: Leaving directory `/usr/src/world/rpm-work-1/BUILD/vim73/src'
error: Bad exit status from /usr/src/world/tmp-work/rpm-tmp.6283 (%build)

Powered by blists - more mailing lists

Your e-mail address:

Powered by Openwall GNU/*/Linux - Powered by OpenVZ