Re: [coreboot] Coreboot is failing to build

2016-08-18 Thread Ali H. Fardan

I actually worked around it, it was some MITM proxy that
decompresses the gzipped tarball, for some reason,  that
didn't happen why I tried fetching  libelf  tarball from
https://www.mirrorservice.org/sites/libreboot.org/release/20150518/crossgcc/libelf-0.8.13.tar.gz
but anyway, I was able to build coreboot and I flashed it
but it seems that I bricked the board, it showed multiple
flash chips and I had to choose, so I picked the first one
and everything went alright until I rebooted. I am going
to flash it externally now, any tips so I don't screw up
this time?

Raiz

--
coreboot mailing list: coreboot@coreboot.org
https://www.coreboot.org/mailman/listinfo/coreboot


Re: [coreboot] Coreboot is failing to build

2016-08-17 Thread Zoran Stojsavljevic
> I'm with Zoran; see if you can decompress manually.  It looks like he 
> suggested a
> different option style, too.

Exactly what I did. Decompressed it manually with tar -xf, to see what
will happen (works seamlessly). Could be done with -xvf (v in the
middle: verbose, for debug traces).

I would warmly suggest to everyone to use the latest distros, with
most recent upgrades. Since these are tested, mostly, and they have
latest and greatest features enhanced, and added.

Here is what I have after last upgrade of my Fedora 24 VM on my HP
UltraBook WIN10 laptop half an hour ago (following Martin's Roth
advice):

[zoran@localhost libelf]$ uname -r
4.6.6-300.fc24.x86_64
[zoran@localhost libelf]$ tar --version
tar (GNU tar) 1.28
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later .
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by John Gilmore and Jay Fenlason.
[zoran@localhost libelf]$ /bin/sh --version
GNU bash, version 4.3.42(1)-release (x86_64-redhat-linux-gnu)
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later 

This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
[zoran@localhost libelf]$

Regards,
Zoran

-- 
coreboot mailing list: coreboot@coreboot.org
https://www.coreboot.org/mailman/listinfo/coreboot


Re: [coreboot] Coreboot is failing to build

2016-08-17 Thread Marshall Dawson
Hi Ali,

My builds are also OK (Ubuntu and W7).

I would double-check the sha1sum of your libelf package and make sure it
matches util/crossgcc/sum/libelf-0.8.13.tar.gz.cksum.  To be honest,
though, I suspect it may be correct since you've probably tried multiple
times.

The other thought that comes to mind is there was a patch that went in near
the end of March that added the capability of using multithreaded
decompressors.  You might try modifying the flags in crossgcc/buildgcc.
This also seems unlikely, as it looks like "tar zxf
tarballs/libelf-0.8.13.tar.gz" is used.  I'm with Zoran; see if you can
decompress manually.  It looks like he suggested a different option style,
too.

When was the last time you built the tools successfully?

Thanks,
Marshall


On Mon, Aug 15, 2016 at 12:47 AM, Ali H. Fardan  wrote:

> Here is what you asked for,
>
> Raiz
>
> Tar version: tar (GNU tar) 1.29
> Shell (/bin/sh): GNU bash, version 4.3.46(1)-release
> (x86_64-unknown-linux-gnu)
> Distro: Manjaro-OpenRC (rolling) (Linux manjaro 4.4.16-1-MANJARO #1 SMP
> PREEMPT Wed Jul 27 21:09:47 UTC 2016 x86_64 GNU/Linux)
>
> + for P in '$PACKAGES'
> + unpack_and_patch LIBELF
> + package=LIBELF
> ++ eval echo '$LIBELF_ARCHIVE'
> +++ echo http://www.mr511.de/software/libelf-0.8.13.tar.gz
> + archive=http://www.mr511.de/software/libelf-0.8.13.tar.gz
> ++ eval echo '$LIBELF_DIR'
> +++ echo libelf-0.8.13
> + dir=libelf-0.8.13
> + test -d libelf-0.8.13
> ++ basename http://www.mr511.de/software/libelf-0.8.13.tar.gz
> + printf ' * libelf-0.8.13.tar.gz\n'
>  * libelf-0.8.13.tar.gz
> + FLAGS=zxf
> ++ echo http://www.mr511.de/software/libelf-0.8.13.tar.gz
> ++ sed 's,.*\.,,'
> + suffix=gz
> + '[' gz = gz ']'
> + '[' -n '' ']'
> + '[' gz = gz ']'
> + FLAGS=zxf
> ++ basename http://www.mr511.de/software/libelf-0.8.13.tar.gz
> + tar zxf tarballs/libelf-0.8.13.tar.gz
>
> gzip: stdin: not in gzip format
> tar: Child returned status 1
> tar: Error is not recoverable: exiting now
> + for patch in 'patches/${dir}_*.patch'
> + test -r 'patches/libelf-0.8.13_*.patch'
> + continue
> + touch libelf-0.8.13/.unpack_success
> touch: cannot touch 'libelf-0.8.13/.unpack_success': No such file or
> directory
> + exit 1
>
>
> downloading it manually and putting it in the tarballs folder.
>>
>> If that's not what's happening, it's probably something in your
>> environment:
>> - What shell is being used? ls -al /bin/sh; /bin/sh --version
>> - What version of tar is getting run? tar --version
>> - If you're running a less widely used OS or Distro, what are you running?
>>
>> Try running the buildgcc command directly with -x enabled and see
>> what's actually getting run for the tar command:
>> /bin/sh -x util/crossgcc/buildgcc
>>
>> Martin
>>
>
> --
> coreboot mailing list: coreboot@coreboot.org
> https://www.coreboot.org/mailman/listinfo/coreboot
>
-- 
coreboot mailing list: coreboot@coreboot.org
https://www.coreboot.org/mailman/listinfo/coreboot

Re: [coreboot] Coreboot is failing to build

2016-08-17 Thread Zoran Stojsavljevic
> + tar zxf tarballs/libelf-0.8.13.tar.gz

What about the following command: *$ tar -xf libelf-0.8.13.tar.gz *?
($ uname -a -> Linux localhost.localdomain *4.6.5-300.fc24.x86_64*)

Zoran

On Sun, Aug 14, 2016 at 10:12 AM, Ali H. Fardan <r...@firemail.cc> wrote:

> Greetings,
>
> Coreboot is failing to build after running 'make crossgcc'
> this error occured when building libreboot too, could any-
> one figure it out? Might be that the mirror of libelf is
> outdated.
>
> Raiz
>
> user@user-ThinkPad-X200:~/Downloads/coreboot$ make crossgcc V=1
> rm -rf doxygen
> make -C payloads/coreinfo clean;   make -C payloads/nvramcui clean;   make
> -C payloads/libpayload clean;   make -C payloads/external/depthcharge
> clean;   make -C payloads/external/SeaBIOS clean;   make -C
> payloads/external/U-Boot clean;   make -C payloads/external/Memtest86Plus
> clean;   make -C payloads/external/iPXE clean;   make -C
> payloads/external/tint clean;
> rm -rf build/*.elf build/*.o .xcompile
> rm -f nvramcui.elf
> rm -rf doxygen
> rm -f  build/libpayload.a
> rm -f  .xcompile
> rm -f
> rmdir -p  2>/dev/null >/dev/null || true
> rm -f .ccwrap junit_config junit_config.old
> test -d 
> /home/user/Downloads/coreboot/payloads/external/depthcharge/depthcharge/build
> && rm -rf 
> /home/user/Downloads/coreboot/payloads/external/depthcharge/depthcharge/build
> || exit 0
> test -d seabios/out && rm -rf seabios/out || exit 0
> test -d u-boot && make -C u-boot clean || exit 0
> test -d 
> /home/user/Downloads/coreboot/payloads/external/Memtest86Plus/memtest86plus
> && make -C 
> /home/user/Downloads/coreboot/payloads/external/Memtest86Plus/memtest86plus
> clean || exit 0
> test -d ipxe && make -C ipxe/src veryclean || exit 0
> rm -f ipxe/ipxe.rom
> test -d tint && make -C tint clean || exit 0
> rm -f build/ramstage?* build/coreboot.romstage build/coreboot.pre*
> build/coreboot.bootblock build/coreboot.a
> rm -rf build/bootblock?* build/romstage?* build/location.*
> rm -f build/option_table.* build/crt0.S build/ldscript
> rm -f build/mainboard//static.c build/mainboard//config.py
> build/mainboard//static.dot
> rm -f build/mainboard//crt0.s build/mainboard//crt0.disasm
> rm -f build/mainboard//romstage.inc
> rm -f build/mainboard//bootblock.* build/dsdt.*
> rm -f build/cpu/x86/smm/smm_bin.c build/cpu/x86/smm/smm.*
> build/cpu/x86/smm/smm
> rm -rf build .xcompile
> make -C util/crossgcc all_without_gdb SKIP_CLANG=1
> make SKIP_GDB=1 build-i386 build-x64 build-arm build-mips \
> build-riscv build-aarch64 build-power8 build-nds32le \
> build_clang build_iasl build_make
> bash ./buildgcc -p i386-elf\
>  -d /home/user/Downloads/coreboot/
> util/crossgcc/xgcc
> Welcome to the coreboot cross toolchain builder v1.42 (August 11th, 2016)
>
> Target architecture is now i386-elf
> Downloading tarballs ...
>  * gmp-6.1.0.tar.xz (cached)
>  * mpfr-3.1.4.tar.xz (cached)
>  * mpc-1.0.3.tar.gz (cached)
>  * libelf-0.8.13.tar.gz (downloading from http://www.mr511.de/software/l
> ibelf-0.8.13.tar.gz) ..100%
>  * binutils-2.26.1.tar.bz2 (cached)
>  * gcc-5.3.0.tar.bz2 (cached)
> Downloaded tarballs ... ok
> Unpacking and patching ...
>  * libelf-0.8.13.tar.gz
>
> gzip: stdin: not in gzip format
> tar: Child returned status 1
> tar: Error is not recoverable: exiting now
> touch: cannot touch 'libelf-0.8.13/.unpack_success': No such file or
> directory
> make[3]: *** [build_gcc] Error 1
> make[2]: *** [build-i386] Error 2
> make[1]: *** [all_without_gdb] Error 2
> make: *** [crossgcc] Error 2
>
>
> --
> coreboot mailing list: coreboot@coreboot.org
> https://www.coreboot.org/mailman/listinfo/coreboot
>
-- 
coreboot mailing list: coreboot@coreboot.org
https://www.coreboot.org/mailman/listinfo/coreboot

Re: [coreboot] Coreboot is failing to build

2016-08-17 Thread Ali H. Fardan

Here is what you asked for,

Raiz

Tar version: tar (GNU tar) 1.29
Shell (/bin/sh): GNU bash, version 4.3.46(1)-release 
(x86_64-unknown-linux-gnu)
Distro: Manjaro-OpenRC (rolling) (Linux manjaro 4.4.16-1-MANJARO #1 SMP 
PREEMPT Wed Jul 27 21:09:47 UTC 2016 x86_64 GNU/Linux)


+ for P in '$PACKAGES'
+ unpack_and_patch LIBELF
+ package=LIBELF
++ eval echo '$LIBELF_ARCHIVE'
+++ echo http://www.mr511.de/software/libelf-0.8.13.tar.gz
+ archive=http://www.mr511.de/software/libelf-0.8.13.tar.gz
++ eval echo '$LIBELF_DIR'
+++ echo libelf-0.8.13
+ dir=libelf-0.8.13
+ test -d libelf-0.8.13
++ basename http://www.mr511.de/software/libelf-0.8.13.tar.gz
+ printf ' * libelf-0.8.13.tar.gz\n'
 * libelf-0.8.13.tar.gz
+ FLAGS=zxf
++ echo http://www.mr511.de/software/libelf-0.8.13.tar.gz
++ sed 's,.*\.,,'
+ suffix=gz
+ '[' gz = gz ']'
+ '[' -n '' ']'
+ '[' gz = gz ']'
+ FLAGS=zxf
++ basename http://www.mr511.de/software/libelf-0.8.13.tar.gz
+ tar zxf tarballs/libelf-0.8.13.tar.gz

gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now
+ for patch in 'patches/${dir}_*.patch'
+ test -r 'patches/libelf-0.8.13_*.patch'
+ continue
+ touch libelf-0.8.13/.unpack_success
touch: cannot touch 'libelf-0.8.13/.unpack_success': No such file or 
directory

+ exit 1



downloading it manually and putting it in the tarballs folder.

If that's not what's happening, it's probably something in your 
environment:

- What shell is being used? ls -al /bin/sh; /bin/sh --version
- What version of tar is getting run? tar --version
- If you're running a less widely used OS or Distro, what are you 
running?


Try running the buildgcc command directly with -x enabled and see
what's actually getting run for the tar command:
/bin/sh -x util/crossgcc/buildgcc

Martin


--
coreboot mailing list: coreboot@coreboot.org
https://www.coreboot.org/mailman/listinfo/coreboot


Re: [coreboot] Coreboot is failing to build

2016-08-14 Thread Martin Roth
Hi Ali,
  The build script seems to be working for me, so it might be your
network connection or your environment.  Currently we don't run the
checksum routine again after downloading the file.  We probably need
to do that.

My first thought is that it didn't download correctly for some reason.
If you try to build again, does it try to download the libelf tarball
again?  If so, it didn't get properly downloaded.  You might try
downloading it manually and putting it in the tarballs folder.

If that's not what's happening, it's probably something in your environment:
- What shell is being used? ls -al /bin/sh; /bin/sh --version
- What version of tar is getting run? tar --version
- If you're running a less widely used OS or Distro, what are you running?

Try running the buildgcc command directly with -x enabled and see
what's actually getting run for the tar command:
/bin/sh -x util/crossgcc/buildgcc

Martin


On Sun, Aug 14, 2016 at 2:12 AM, Ali H. Fardan <r...@firemail.cc> wrote:
> Greetings,
>
> Coreboot is failing to build after running 'make crossgcc'
> this error occured when building libreboot too, could any-
> one figure it out? Might be that the mirror of libelf is
> outdated.
>
> Raiz
>
> user@user-ThinkPad-X200:~/Downloads/coreboot$ make crossgcc V=1
> rm -rf doxygen
> make -C payloads/coreinfo clean;   make -C payloads/nvramcui clean;   make
> -C payloads/libpayload clean;   make -C payloads/external/depthcharge clean;
> make -C payloads/external/SeaBIOS clean;   make -C payloads/external/U-Boot
> clean;   make -C payloads/external/Memtest86Plus clean;   make -C
> payloads/external/iPXE clean;   make -C payloads/external/tint clean;
> rm -rf build/*.elf build/*.o .xcompile
> rm -f nvramcui.elf
> rm -rf doxygen
> rm -f  build/libpayload.a
> rm -f  .xcompile
> rm -f
> rmdir -p  2>/dev/null >/dev/null || true
> rm -f .ccwrap junit_config junit_config.old
> test -d
> /home/user/Downloads/coreboot/payloads/external/depthcharge/depthcharge/build
> && rm -rf
> /home/user/Downloads/coreboot/payloads/external/depthcharge/depthcharge/build
> || exit 0
> test -d seabios/out && rm -rf seabios/out || exit 0
> test -d u-boot && make -C u-boot clean || exit 0
> test -d
> /home/user/Downloads/coreboot/payloads/external/Memtest86Plus/memtest86plus
> && make -C
> /home/user/Downloads/coreboot/payloads/external/Memtest86Plus/memtest86plus
> clean || exit 0
> test -d ipxe && make -C ipxe/src veryclean || exit 0
> rm -f ipxe/ipxe.rom
> test -d tint && make -C tint clean || exit 0
> rm -f build/ramstage?* build/coreboot.romstage build/coreboot.pre*
> build/coreboot.bootblock build/coreboot.a
> rm -rf build/bootblock?* build/romstage?* build/location.*
> rm -f build/option_table.* build/crt0.S build/ldscript
> rm -f build/mainboard//static.c build/mainboard//config.py
> build/mainboard//static.dot
> rm -f build/mainboard//crt0.s build/mainboard//crt0.disasm
> rm -f build/mainboard//romstage.inc
> rm -f build/mainboard//bootblock.* build/dsdt.*
> rm -f build/cpu/x86/smm/smm_bin.c build/cpu/x86/smm/smm.*
> build/cpu/x86/smm/smm
> rm -rf build .xcompile
> make -C util/crossgcc all_without_gdb SKIP_CLANG=1
> make SKIP_GDB=1 build-i386 build-x64 build-arm build-mips \
> build-riscv build-aarch64 build-power8 build-nds32le \
> build_clang build_iasl build_make
> bash ./buildgcc -p i386-elf\
>  -d /home/user/Downloads/coreboot/util/crossgcc/xgcc
> Welcome to the coreboot cross toolchain builder v1.42 (August 11th, 2016)
>
> Target architecture is now i386-elf
> Downloading tarballs ...
>  * gmp-6.1.0.tar.xz (cached)
>  * mpfr-3.1.4.tar.xz (cached)
>  * mpc-1.0.3.tar.gz (cached)
>  * libelf-0.8.13.tar.gz (downloading from
> http://www.mr511.de/software/libelf-0.8.13.tar.gz) ..100%
>  * binutils-2.26.1.tar.bz2 (cached)
>  * gcc-5.3.0.tar.bz2 (cached)
> Downloaded tarballs ... ok
> Unpacking and patching ...
>  * libelf-0.8.13.tar.gz
>
> gzip: stdin: not in gzip format
> tar: Child returned status 1
> tar: Error is not recoverable: exiting now
> touch: cannot touch 'libelf-0.8.13/.unpack_success': No such file or
> directory
> make[3]: *** [build_gcc] Error 1
> make[2]: *** [build-i386] Error 2
> make[1]: *** [all_without_gdb] Error 2
> make: *** [crossgcc] Error 2
>
>
> --
> coreboot mailing list: coreboot@coreboot.org
> https://www.coreboot.org/mailman/listinfo/coreboot

-- 
coreboot mailing list: coreboot@coreboot.org
https://www.coreboot.org/mailman/listinfo/coreboot


[coreboot] Coreboot is failing to build

2016-08-14 Thread Ali H. Fardan

Greetings,

Coreboot is failing to build after running 'make crossgcc'
this error occured when building libreboot too, could any-
one figure it out? Might be that the mirror of libelf is
outdated.

Raiz

user@user-ThinkPad-X200:~/Downloads/coreboot$ make crossgcc V=1
rm -rf doxygen
make -C payloads/coreinfo clean;   make -C payloads/nvramcui clean;   
make -C payloads/libpayload clean;   make -C 
payloads/external/depthcharge clean;   make -C payloads/external/SeaBIOS 
clean;   make -C payloads/external/U-Boot clean;   make -C 
payloads/external/Memtest86Plus clean;   make -C payloads/external/iPXE 
clean;   make -C payloads/external/tint clean;

rm -rf build/*.elf build/*.o .xcompile
rm -f nvramcui.elf
rm -rf doxygen
rm -f  build/libpayload.a
rm -f  .xcompile
rm -f
rmdir -p  2>/dev/null >/dev/null || true
rm -f .ccwrap junit_config junit_config.old
test -d 
/home/user/Downloads/coreboot/payloads/external/depthcharge/depthcharge/build 
&& rm -rf 
/home/user/Downloads/coreboot/payloads/external/depthcharge/depthcharge/build 
|| exit 0

test -d seabios/out && rm -rf seabios/out || exit 0
test -d u-boot && make -C u-boot clean || exit 0
test -d 
/home/user/Downloads/coreboot/payloads/external/Memtest86Plus/memtest86plus 
&& make -C 
/home/user/Downloads/coreboot/payloads/external/Memtest86Plus/memtest86plus 
clean || exit 0

test -d ipxe && make -C ipxe/src veryclean || exit 0
rm -f ipxe/ipxe.rom
test -d tint && make -C tint clean || exit 0
rm -f build/ramstage?* build/coreboot.romstage build/coreboot.pre* 
build/coreboot.bootblock build/coreboot.a

rm -rf build/bootblock?* build/romstage?* build/location.*
rm -f build/option_table.* build/crt0.S build/ldscript
rm -f build/mainboard//static.c build/mainboard//config.py 
build/mainboard//static.dot

rm -f build/mainboard//crt0.s build/mainboard//crt0.disasm
rm -f build/mainboard//romstage.inc
rm -f build/mainboard//bootblock.* build/dsdt.*
rm -f build/cpu/x86/smm/smm_bin.c build/cpu/x86/smm/smm.* 
build/cpu/x86/smm/smm

rm -rf build .xcompile
make -C util/crossgcc all_without_gdb SKIP_CLANG=1
make SKIP_GDB=1 build-i386 build-x64 build-arm build-mips \
build-riscv build-aarch64 build-power8 build-nds32le \
build_clang build_iasl build_make
bash ./buildgcc -p i386-elf\
 -d /home/user/Downloads/coreboot/util/crossgcc/xgcc
Welcome to the coreboot cross toolchain builder v1.42 (August 11th, 
2016)


Target architecture is now i386-elf
Downloading tarballs ...
 * gmp-6.1.0.tar.xz (cached)
 * mpfr-3.1.4.tar.xz (cached)
 * mpc-1.0.3.tar.gz (cached)
 * libelf-0.8.13.tar.gz (downloading from 
http://www.mr511.de/software/libelf-0.8.13.tar.gz) ..100%

 * binutils-2.26.1.tar.bz2 (cached)
 * gcc-5.3.0.tar.bz2 (cached)
Downloaded tarballs ... ok
Unpacking and patching ...
 * libelf-0.8.13.tar.gz

gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now
touch: cannot touch 'libelf-0.8.13/.unpack_success': No such file or 
directory

make[3]: *** [build_gcc] Error 1
make[2]: *** [build-i386] Error 2
make[1]: *** [all_without_gdb] Error 2
make: *** [crossgcc] Error 2


--
coreboot mailing list: coreboot@coreboot.org
https://www.coreboot.org/mailman/listinfo/coreboot