This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug build/24581] New: Unable to build tip or 2.29 glibc with default options


https://sourceware.org/bugzilla/show_bug.cgi?id=24581

            Bug ID: 24581
           Summary: Unable to build tip or 2.29 glibc with default options
           Product: glibc
           Version: 2.29
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: build
          Assignee: unassigned at sourceware dot org
          Reporter: scott.franco42 at gmail dot com
                CC: carlos at redhat dot com
  Target Milestone: ---

Hi, I have been unable to build from either the tip version or the 2.29 version
obtained by the page:

https://www.gnu.org/software/libc/sources.html

It builds for quite a while but fails:

gcc -static -static-libgcc -static-libstdc++  -shared -static-libgcc 
-Wl,-dynamic-linker=/home/samiam/projects/petit_ami/glibc_local/lib/ld-linux-x86-64.so.2
-Wl,-z,defs -B/home/samiam/projects/petit_ami/glibc_build/csu/ 
-Wl,-z,combreloc -Wl,-z,relro -Wl,--hash-style=both 
-L/home/samiam/projects/petit_ami/glibc_build
-L/home/samiam/projects/petit_ami/glibc_build/math
-L/home/samiam/projects/petit_ami/glibc_build/elf
-L/home/samiam/projects/petit_ami/glibc_build/dlfcn
-L/home/samiam/projects/petit_ami/glibc_build/nss
-L/home/samiam/projects/petit_ami/glibc_build/nis
-L/home/samiam/projects/petit_ami/glibc_build/rt
-L/home/samiam/projects/petit_ami/glibc_build/resolv
-L/home/samiam/projects/petit_ami/glibc_build/mathvec
-L/home/samiam/projects/petit_ami/glibc_build/support
-L/home/samiam/projects/petit_ami/glibc_build/crypt
-L/home/samiam/projects/petit_ami/glibc_build/nptl
-Wl,-rpath-link=/home/samiam/projects/petit_ami/glibc_build:/home/samiam/projects/petit_ami/glibc_build/math:/home/samiam/projects/petit_ami/glibc_build/elf:/home/samiam/projects/petit_ami/glibc_build/dlfcn:/home/samiam/projects/petit_ami/glibc_build/nss:/home/samiam/projects/petit_ami/glibc_build/nis:/home/samiam/projects/petit_ami/glibc_build/rt:/home/samiam/projects/petit_ami/glibc_build/resolv:/home/samiam/projects/petit_ami/glibc_build/mathvec:/home/samiam/projects/petit_ami/glibc_build/support:/home/samiam/projects/petit_ami/glibc_build/crypt:/home/samiam/projects/petit_ami/glibc_build/nptl
-o /home/samiam/projects/petit_ami/glibc_build/elf/sotruss-lib.so -T
/home/samiam/projects/petit_ami/glibc_build/shlib.lds
/home/samiam/projects/petit_ami/glibc_build/csu/abi-note.o -Wl,--as-needed
/home/samiam/projects/petit_ami/glibc_build/elf/sotruss-lib.os 
-Wl,--no-as-needed -Wl,--start-group
/home/samiam/projects/petit_ami/glibc_build/libc.so
/home/samiam/projects/petit_ami/glibc_build/libc_nonshared.a -Wl,--as-needed
/home/samiam/projects/petit_ami/glibc_build/elf/ld.so -Wl,--no-as-needed
-Wl,--end-group
   9112 /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/7/crtbeginT.o: relocation
R_X86_64_32 against hidden symbol `__TMC_END__' can not be used when making a
shared object
   9113 /usr/bin/ld: final link failed: Nonrepresentable section on output
   9114 collect2: error: ld returned 1 exit status
   9115 Makefile:129: recipe for target
'/home/samiam/projects/petit_ami/glibc_build/elf/sotruss-lib.so' failed
   9116 make[2]: ***
[/home/samiam/projects/petit_ami/glibc_build/elf/sotruss-lib.so] Error 1
   9117 make[2]: Leaving directory '/home/samiam/projects/petit_ami/glibc/elf'
   9118 Makefile:258: recipe for target 'elf/subdir_lib' failed
   9119 make[1]: *** [elf/subdir_lib] Error 2
   9120 make[1]: Leaving directory '/home/samiam/projects/petit_ami/glibc'
   9121 Makefile:9: recipe for target 'all' failed
   9122 make: *** [all] Error 2

My configure line is:

../glibc/configure --prefix=/home/samiam/projects/petit_ami/glibc_local
CC="gcc" CFLAGS="-O2"

I note that in the error, there are both "-static" and "-shared" options in the
same compiler line. If I take the above and use it as a compile line alone from
the make, and then remove the first "-static" option, it compiles without
error. I have also tried configuring with:

../glibc/configure --prefix=/home/samiam/projects/petit_ami/glibc_local

IE, default options, same error. I have also tried both the tip and the 2.29
version as the page says.

My gcc is:

samiam@samiam-linux-pc:~/projects/petit_ami/glibc_build$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/7/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu
7.4.0-1ubuntu1~18.04' --with-bugurl=file:///usr/share/doc/gcc-7/README.Bugs
--enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++ --prefix=/usr
--with-gcc-major-version-only --program-suffix=-7
--program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id
--libexecdir=/usr/lib --without-included-gettext --enable-threads=posix
--libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu
--enable-libstdcxx-debug --enable-libstdcxx-time=yes
--with-default-libstdcxx-abi=new --enable-gnu-unique-object
--disable-vtable-verify --enable-libmpx --enable-plugin --enable-default-pie
--with-system-zlib --with-target-system-zlib --enable-objc-gc=auto
--enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64
--with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic
--enable-offload-targets=nvptx-none --without-cuda-driver
--enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu
--target=x86_64-linux-gnu
Thread model: posix
gcc version 7.4.0 (Ubuntu 7.4.0-1ubuntu1~18.04) 

I believe it is getting conflicting options. I don't know the glibc make system
sufficiently to fix this, but am working on it.

Thank you,

Scott Franco

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]