Menu

Build failed

Help
Innot
2015-02-06
2015-02-15
  • Innot

    Innot - 2015-02-06

    Hi. Here is what I get after running make:

    /bin/sh ./configure
    rm --force VERSION
    echo "VERSION='1.7.3'" > VERSION || { rm --force VERSION; exit 1; }
    make all-local-64
    ELF_CLASS=64 && mkdir --parents $ELF_CLASS && make ELF_CLASS=$ELF_CLASS all-local-internal
    gcc -m64 -Icpus/x86_64 -Wall -O2 -g elf_class.c -o 64/elf_class
    gcc -m64 -Icpus/x86_64 -Wall -O2 -g elf_data.c -o 64/elf_data
    gcc -m64 -Icpus/x86_64 -Wall -O2 -g elf_soname.c -o 64/elf_soname
    gcc -m64 -Icpus/x86_64 -Wall -O2 -g elf_symbols.c -o 64/elf_symbols
    gcc -m64 -Icpus/x86_64 -Wall -O2 -g fep.c -o 64/fep
    gcc -m64 -Icpus/x86_64 -Wall -O2 -g inject_starter.c -o 64/inject_starter
    gcc -m64 -Icpus/x86_64 -Wall -O2 -g non_pt_load.c -o 64/non_pt_load
    gcc -m64 -Icpus/x86_64 -Wall -O2 -g pt_load_1.c -o 64/pt_load_1
    gcc -m64 -Icpus/x86_64 -Wall -O2 -g strtoul.c -o 64/strtoul
    gcc -m64 -Icpus/x86_64 -Wall -O2 -g unsigned_long_sum.c -o 64/unsigned_long_sum
    gcc -m64 -Icpus/x86_64 -Wall -O2 -g elf_find_pattern.c -o 64/elf_find_pattern
    gcc -m64 -Icpus/x86_64 -Wall -O2 -g find_dl_argc.c -o 64/find_dl_argc
    gcc -m64 -Icpus/x86_64 -Wall -O2 -g find_dl_argv.c -o 64/find_dl_argv
    gcc -m64 -Icpus/x86_64 -Wall -O2 -g find_dl_auxv.c -o 64/find_dl_auxv
    gcc -m64 -Icpus/x86_64 -Wall -O2 -g find_dl_platform.c -o 64/find_dl_platform
    gcc -m64 -Icpus/x86_64 -Wall -O2 -g find_environ.c -o 64/find_environ
    gcc -m64 -Wall -O2 -S dl-var.c -o 64/dl-var.s.s
    /bin/sh asm.make.sh < 64/dl-var.s.s > 64/dl-var.s || { rm --force 64/dl-var.s; exit 1; }
    gcc -m64 -c -o 64/dl-var.o -nostdinc -I/home/innot/Downloads/statifier/statifier-1.7.3/src -I/home/innot/Downloads/statifier/statifier-1.7.3/src/64 -include cpus/x86_64/processor.h -include ./start.S -include cpus/x86_64/dl-var.S ./end.S
    gcc -m64 -o 64/dl-var 64/dl-var.o -Wl,--oformat,binary,--entry=0x0 -nostdlib
    64/dl-var.o: In function do_work': dl-var.c:(.text+0x102): undefined reference to__stack_chk_fail'
    collect2: error: ld returned 1 exit status
    Makefile:213: recipe for target '64/dl-var' failed
    make[4]: [64/dl-var] Error 1
    Makefile:159: recipe for target 'all-local-64' failed
    make[3]:
    [all-local-64] Error 2
    Makefile:155: recipe for target 'all-local' failed
    make[2]: [all-local] Error 2
    ../Makefile.include:88: recipe for target 'all-recursive' failed
    make[1]:
    [all-recursive] Error 2
    Makefile.include:88: recipe for target 'all-recursive' failed
    make: *** [all-recursive] Error 2

    Distro is gentoo. Also tried on arch linux, and there build succeeded.
    Kernel has been built with grsecurity patches, though it had no impact on building anything before. I tried compiling with patched and vanilla versions of gcc, no changes though. Didn't try the unpatched kernel yet, and actually it would be nice to build on the booted one.
    Any ideas?

     
  • Innot

    Innot - 2015-02-06

    Switched to yet another compiler - the problem solved :)

     
  • Valery Reznic

    Valery Reznic - 2015-02-15

    Sorry for the long delay, I was on vacation.

    Glad that you solved the problem. With either compiler build doesn't work and with either works?

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.