You are not logged in.

#1 2014-07-08 02:13:53

jbrickman0000
Member
Registered: 2014-03-16
Posts: 9

How to recompile glibc -march=native

So far I have tried:

yaourt -b glibc

after setting yaourtrc and makepkg.conf for -march=native and -mtune=native, but this fails with the tail below.  Any thoughts as to what simplest to do?

a - elf/dl-iteratephdr.os
a - elf/dl-addr.os
a - elf/dl-profstub.os
a - elf/dl-libc.os
a - elf/dl-sym.os
a - elf/dl-tsd.os
a - elf/dl-vdso.os
gcc -Wl,-O1,--sort-common,--as-needed,-z,relro  -nostdlib -nostartfiles -r -o /MAKEPKG-TMP/glibc/src/glibc-build/libc_pic.os \
 -Wl,-d -Wl,--whole-archive /MAKEPKG-TMP/glibc/src/glibc-build/libc_pic.a -o /MAKEPKG-TMP/glibc/src/glibc-build/libc_pic.os
gcc -Wl,-O1,--sort-common,--as-needed,-z,relro  -nostdlib -nostartfiles -r -o /MAKEPKG-TMP/glibc/src/glibc-build/elf/librtld.map.o '-Wl,-(' /MAKEPKG-TMP/glibc/src/glibc-build/elf/dl-allobjs.os /MAKEPKG-TMP/glibc/src/glibc-build/libc_pic.a -lgcc '-Wl,-)' -Wl,-Map,/MAKEPKG-TMP/glibc/src/glibc-build/elf/librtld.mapT
/MAKEPKG-TMP/glibc/src/glibc-build/libc_pic.a(init-first.os):(.data+0x0): multiple definition of `__libc_multiple_libcs'
/MAKEPKG-TMP/glibc/src/glibc-build/elf/dl-allobjs.os:(.bss+0xf8): first defined here
/MAKEPKG-TMP/glibc/src/glibc-build/libc_pic.a(dl-addr.os): In function `_dl_addr_inside_object':
dl-addr.c:(.text+0x2e8): multiple definition of `_dl_addr_inside_object'
/MAKEPKG-TMP/glibc/src/glibc-build/elf/dl-allobjs.os:(.text+0x15730): first defined here
collect2: error: ld returned 1 exit status
Makefile:286: recipe for target '/MAKEPKG-TMP/glibc/src/glibc-build/elf/librtld.map' failed
make[2]: *** [/MAKEPKG-TMP/glibc/src/glibc-build/elf/librtld.map] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory '/MAKEPKG-TMP/glibc/src/glibc-2.19/elf'
Makefile:213: recipe for target 'elf/subdir_lib' failed
make[1]: *** [elf/subdir_lib] Error 2
make[1]: Leaving directory '/MAKEPKG-TMP/glibc/src/glibc-2.19'
Makefile:9: recipe for target 'all' failed
make: *** [all] Error 2

Last edited by jbrickman0000 (2014-07-08 02:14:54)

Offline

#2 2014-07-08 07:25:38

Runiq
Member
From: Germany
Registered: 2008-10-29
Posts: 1,053

Re: How to recompile glibc -march=native

a) -march=native and -mtune=native make no sense together, -march overrides -mtune.
b) This is probably not worth it speed-wise.
c) Reading make jobs with -j > 1 kinda-sorta makes my eyes bleed…

Offline

#3 2014-07-08 09:59:08

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,659
Website

Re: How to recompile glibc -march=native

I build it in a clean chroot using devtool helper scripts.  I do not support anything else.

Offline

Board footer

Powered by FluxBB