You are not logged in.

#1 2012-10-07 11:09:40

utops
Member
Registered: 2012-09-24
Posts: 44

[Solved] Bug(?) regarding building glibc from abs.

/svc_auth.h sunrpc/rpcsvc/bootparam.h sysvipc/sys/ipc.h sysvipc/sys/msg.h sysvipc/sys/sem.h sysvipc/sys/shm.h termios/termios.h termios/sys/termios.h termios/sys/ttychars.h time/time.h time/sys/time.h time/sys/timeb.h wcsmbs/wchar.h wctype/wctype.h > /home/utops/arch/glibc/src/glibc-build/begin-end-check.out
make[1]: Obiekt `check' nie został wykonany z powodu błędów.
make[1]: Opuszczenie katalogu `/home/utops/arch/glibc/src/glibc-2.16.0'
make: *** [check] Błąd 2
==> BŁĄD: Wystąpił błąd w check().
    Przerywam...

First time i compiled it on initscript without problem,now this ^

CFLAGS="-march=native -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2"
CXXFLAGS="-march=native -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2"
#CFLAGS="-march=native -O3 -pipe"
#CXXFLAGS="-march=native -O3 -pipe"
LDFLAGS="-Wl,-O1,--sort-common,--as-needed,-z,relro"
#-- Make Flags: change this for DistCC/SMP systems
#MAKEFLAGS="-j3"

This is also happening on "-march=i686 -mtune=generic"

So,bug?

Last edited by utops (2012-10-09 21:16:42)

Offline

#2 2012-10-07 11:29:58

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

Re: [Solved] Bug(?) regarding building glibc from abs.

So....   my rough translation is something in "make check" failed.    But you do not give us any information on what that failure is...

Offline

#3 2012-10-07 11:52:49

utops
Member
Registered: 2012-09-24
Posts: 44

Re: [Solved] Bug(?) regarding building glibc from abs.

Oops,sorry for that language blooper.
I sniff up some google search and find this:

rpc/types.h sunrpc/rpc/svc_auth.h sunrpc/rpcsvc/bootparam.h sysvipc/sys/ipc.h \
   sysvipc/sys/msg.h sysvipc/sys/sem.h sysvipc/sys/shm.h termios/termios.h \
   termios/sys/termios.h termios/sys/ttychars.h time/time.h time/sys/time.h \
   time/sys/timeb.h wcsmbs/wchar.h wctype/wctype.h > \
        /sources/glibc-build/begin-end-check.out
make[1]: Target `check' not remade because of errors.
make[1]: Leaving directory `/sources/glibc-2.12.1'
make: *** [check] Error 2

This snippet came from LFS help desk,but error is identical to mine on arch.
Guy from help desk say to ignore it,but this error just brake the compiling process.

Edit:

g++ -W -Wall    -Werror -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -frandom-seed=ld-new -march=native -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2  -Wl,-O1,--sort-common,--as-needed,-z,relro -o ld-new main.o i386.o x86_64.o sparc.o powerpc.o arm.o arm-reloc-property.o libgold.a ../libiberty/libiberty.a   -lpthread -ldl -lz 
g++ -W -Wall    -Werror -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -frandom-seed=incremental-dump -march=native -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2  -Wl,-O1,--sort-common,--as-needed,-z,relro -o incremental-dump incremental-dump.o i386.o x86_64.o sparc.o powerpc.o arm.o arm-reloc-property.o libgold.a ../libiberty/libiberty.a  -lpthread -ldl -lz 
make[4]: (leaving directory) Opuszczenie katalogu `/home/utops/arch/binutils/src/gold'
make[3]: Opuszczenie katalogu `/home/utops/arch/binutils/src/gold'
make[2]: Opuszczenie katalogu `/home/utops/arch/binutils/src/gold'
make[1]: Opuszczenie katalogu `/home/utops/arch/binutils/src'
make: *** [all] Błąd 2 (Error 2)

Binutils ^

It's systemd problem?
Binutils build succefully on initscripts week ago IIRC.

Last edited by utops (2012-10-07 12:15:08)

Offline

#4 2012-10-07 12:14:01

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

Re: [Solved] Bug(?) regarding building glibc from abs.

That is still not the error message...

Offline

#5 2012-10-07 12:26:14

utops
Member
Registered: 2012-09-24
Posts: 44

Re: [Solved] Bug(?) regarding building glibc from abs.

What do you need then?

Offline

#6 2012-10-07 12:30:09

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

Re: [Solved] Bug(?) regarding building glibc from abs.

The actual error...   grep for "Error" in the check output.

And this is definitely not a systemd issue.

Offline

#7 2012-10-07 12:52:13

utops
Member
Registered: 2012-09-24
Posts: 44

Re: [Solved] Bug(?) regarding building glibc from abs.

Binutils

# cat config.log |grep error
gcc: error: unrecognized command line option '-V'
gcc: fatal error: no input files
gcc: error: unrecognized command line option '-qversion'
gcc: fatal error: no input files
g++: error: unrecognized command line option '-V'
g++: fatal error: no input files
g++: error: unrecognized command line option '-qversion'
g++: fatal error: no input files
collect2: error: ld returned 1 exit status
| /* Override any GCC internal prototype to avoid an error.
conftest.c:16:5: error: unknown type name 'choke'
stage2_werror_flag=''

Glibc

cat config.log|grep error
gcc: error: unrecognized command line option '-V'
gcc: fatal error: no input files
gcc: error: unrecognized command line option '-qversion'
gcc: fatal error: no input files
conftest.c:9:28: fatal error: ac_nonexistent.h: No such file or directory
conftest.c:9:28: fatal error: ac_nonexistent.h: No such file or directory
g++: error: unrecognized command line option '-V'
g++: fatal error: no input files
g++: error: unrecognized command line option '-qversion'
g++: fatal error: no input files

But this errors are in every config.log  despite of succesful build or not
In gtk2,gtk3,xfce4-panel and others.

Offline

#8 2012-10-07 12:53:41

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

Re: [Solved] Bug(?) regarding building glibc from abs.

Umm...   the "make check" output, not the configure output.

Offline

#9 2012-10-07 13:22:34

utops
Member
Registered: 2012-09-24
Posts: 44

Re: [Solved] Bug(?) regarding building glibc from abs.

make check |grep Error
/home/utops/arch/binutils/src/binutils/opcodes/i386-dis.c: In function ‘print_insn’:
/home/utops/arch/binutils/src/binutils/opcodes/i386-dis.c:11334:17: error: array subscript is above array bounds [-Werror=array-bounds]
cc1: all warnings being treated as errors
make[3]: *** [i386-dis.lo] Błąd 1
make[2]: *** [check-recursive] Błąd 1
make[1]: *** [check-opcodes] Błąd 2
make: *** [do-check] Błąd 2

"make chek |grep Error" on glibc spits nothing.
Edit:
tar:

tar-1.26 % make check |grep Error
In file included from argp.h:24:0,
                 from argp-eexst.c:27:
./stdio.h:479:1: error: ‘gets’ undeclared here (not in a function)
make[3]: *** [argp-eexst.o] Error 1
make[2]: *** [check-recursive] Error 1
make[1]: *** [check] Error 2
make: *** [check-recursive] Error 1

Last edited by utops (2012-10-07 13:35:17)

Offline

#10 2012-10-07 13:33:58

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

Re: [Solved] Bug(?) regarding building glibc from abs.

"Błąd" is Error, right?    That could be why glibc shows nothing...

That binutils error looks like it is from the combination of "-Wall -Werror" which is bad.  I can see from your output that you are not using the Arch PKGBUILD for building that, so you are on your own.

Offline

#11 2012-10-07 13:44:08

utops
Member
Registered: 2012-09-24
Posts: 44

Re: [Solved] Bug(?) regarding building glibc from abs.

cp -r /var/abs/core/glibc  /~$HOME/arch/ <- my build directory

same with binutils
I am using Arch PKGBUILD. Right?

Offline

#12 2012-10-07 13:53:41

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

Re: [Solved] Bug(?) regarding building glibc from abs.

utops wrote:
make[4]: (leaving directory) Opuszczenie katalogu `/home/utops/arch/binutils/src/gold'
make[3]: Opuszczenie katalogu `/home/utops/arch/binutils/src/gold'
make[2]: Opuszczenie katalogu `/home/utops/arch/binutils/src/gold'
make[1]: Opuszczenie katalogu `/home/utops/arch/binutils/src'
make: *** [all] Błąd 2 (Error 2)

If you were doing that, the build directory would be /home/utops/arch/binutils/src/binutils-build/....

Offline

#13 2012-10-07 14:03:51

utops
Member
Registered: 2012-09-24
Posts: 44

Re: [Solved] Bug(?) regarding building glibc from abs.

utops@tootzilla ~/arch/binutils/src/binutils-build % make check|grep Błąd
/home/utops/arch/binutils/src/binutils/opcodes/i386-dis.c: In function ‘print_insn’:
/home/utops/arch/binutils/src/binutils/opcodes/i386-dis.c:11334:17: error: array subscript is above array bounds [-Werror=array-bounds]
cc1: all warnings being treated as errors
make[3]: *** [i386-dis.lo] Błąd 1
make[2]: *** [check-recursive] Błąd 1
make[1]: *** [check-opcodes] Błąd 2
make: *** [do-check] Błąd 2

I must typed make check in src/binutils instead of right location.
Fix'd

But anyway i have no reason to lie to you, im rarely using unofficial PKGBUILDs -only themes,icons and fonts to be precise.

Offline

#14 2012-10-09 16:46:03

utops
Member
Registered: 2012-09-24
Posts: 44

Re: [Solved] Bug(?) regarding building glibc from abs.

Problem gone after updating to recent GCC pkg or changing LC_COLLATE from pl_PL.UTF-8 to C.
Not really sure. smile

Offline

Board footer

Powered by FluxBB