bmaia / cross-utils

Cross compiling Utils (ARMEB, ARMEL, MIPS, MIPSEL)
MIT License
79 stars 24 forks source link

installation failed on ubuntu windows #1

Open kbron opened 6 years ago

kbron commented 6 years ago

Hello Bernardo, I know you tested only on kali, but I tried to install on ubuntu windows and something is not right.

` asf@asdf:/opt/armeb-linux/puma5_toolchain/src$ ./build-toolchain.sh TI Puma5 Toolchain generation script Written by Hai Shalom, hai@ti.com

-e Wed Nov 15 14:08:12 UTC 2017: TI Puma5 Toolchain - Toolchain will be installed in: -e /opt/armeb-linux

-e If another location is required, please press Ctrl-C now and define TI_PUMA5_TOOLCHAIN_INSTALL_DIR ...-e Wed Nov 15 14:08:15 UTC 2017: TI Puma5 Toolchain - Extract and patch buildroot

patching file buildroot-2009.02/Makefile patching file buildroot-2009.02/toolchain/kernel-headers/Config.in patching file buildroot-2009.02/target/device/Config.in.toolchain patching file buildroot-2009.02/toolchain/gcc/Config.in -e Wed Nov 15 14:08:47 UTC 2017: TI Puma5 Toolchain - Applying patches

-e Wed Nov 15 14:08:50 UTC 2017: TI Puma5 Toolchain - Extract TI addins

-e Wed Nov 15 14:08:51 UTC 2017: TI Puma5 Toolchain - Configuring buildroot

*

package/games/xboard/xboard.mk:13: *** missing separator. Stop. -e Wed Nov 15 14:11:01 UTC 2017: TI Puma5 Toolchain - Stripping output

Usage: strip <option(s)> in-file(s) Removes symbols and sections from files The options are: -I --input-target= Assume input file is in format -O --output-target= Create an output file in format -F --target= Set both input and output format to -p --preserve-dates Copy modified/access timestamps to the output -D --enable-deterministic-archives Produce deterministic output when stripping archives (default) -U --disable-deterministic-archives Disable -D behavior -R --remove-section= Also remove section from the output -s --strip-all Remove all symbol and relocation information -g -S -d --strip-debug Remove all debugging symbols & sections --strip-dwo Remove all DWO sections --strip-unneeded Remove all symbols not needed by relocations --only-keep-debug Strip everything but the debug information -N --strip-symbol= Do not copy symbol -K --keep-symbol= Do not strip symbol --keep-file-symbols Do not strip file symbol(s) -w --wildcard Permit wildcard in symbol comparison -x --discard-all Remove all non-global symbols -X --discard-locals Remove any compiler-generated symbols -v --verbose List all object files modified -V --version Display this program's version number -h --help Display this output --info List object formats & architectures supported -o Place stripped output into strip: supported targets: elf64-x86-64 elf32-i386 elf32-iamcu elf32-x86-64 a.out-i386-linux pei-i386 pei-x86-64 elf64-l1om elf64-k1om elf64-little elf64-big elf32-little elf32-big pe-x86-64 pe-bigobj-x86-64 pe-i386 plugin srec symbolsrec verilog tekhex binary ihex xargs: /opt/armeb-linux/ti-puma5/usr/bin/armeb-linux-uclibceabi-strip: No such file or directory -e Wed Nov 15 14:11:01 UTC 2017: TI Puma5 Toolchain - Done`

this directory "bin" it's not being created xargs: /opt/armeb-linux/ti-puma5/usr/bin/armeb-linux-uclibceabi-strip: No such file or directory

John-Wierzchowski commented 5 years ago

I have the same issue in Ubuntu 18.04.2 LTS **package/games/xboard/xboard.mk:13: * missing separator. Stop.

John-Wierzchowski commented 5 years ago

found this thread which helped me get past this error http://lists.linux-xtensa.org/pipermail/linux-xtensa/Week-of-Mon-20110117/000329.html however now get different error:

In file included from zconf.tab.c:158:0:
zconf.hash.c:161:43: warning: 'kconf_id_strings_contents' is static but used in inline function 'kconf_id_lookup' which is not static
 #define kconf_id_strings ((const char *) &kconf_id_strings_contents)
                                           ^
zconf.hash.c:233:44: note: in expansion of macro 'kconf_id_strings'
               register const char *s = o + kconf_id_strings;
                                            ^~~~~~~~~~~~~~~~
zconf.hash.c:226:26: warning: 'kconf_id_hash' is static but used in inline function 'kconf_id_lookup' which is not static
       register int key = kconf_id_hash (str, len);
                          ^~~~~~~~~~~~~
zconf.hash.c:177:26: warning: 'wordlist' is static but declared in inline function 'kconf_id_lookup' which is not static
   static struct kconf_id wordlist[] =
                          ^~~~~~~~
/usr/bin/gcc -DCURSES_LOC="<ncurses.h>" -DLOCALE   -lncurses conf.o  zconf.tab.o -o conf
zconf.tab.o: In function `zconfparse':
zconf.tab.c:(.text+0xc36): undefined reference to `kconf_id_lookup'
zconf.tab.o: In function `zconflex':
zconf.tab.c:(.text+0x28c0): undefined reference to `kconf_id_lookup'
zconf.tab.c:(.text+0x2a12): undefined reference to `kconf_id_lookup'
collect2: error: ld returned 1 exit status
Makefile:24: recipe for target 'conf' failed
make[2]: *** [conf] Error 1
Makefile.in:328: recipe for target 'extra/config/conf' failed
make[1]: *** [extra/config/conf] Error 2
make[1]: Leaving directory '/home/jw/Downloads/puma5_toolchain/src/buildroot-2009.02/toolchain_build_armeb/uClibc-0.9.29'
toolchain/uClibc/uclibc.mk:425: recipe for target '/home/jw/Downloads/puma5_toolchain/src/buildroot-2009.02/toolchain_build_armeb/uClibc-0.9.29/.config' failed
make: *** [/home/jw/Downloads/puma5_toolchain/src/buildroot-2009.02/toolchain_build_armeb/uClibc-0.9.29/.config] Error 2