Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to build on ubuntu/ARM64 (branch gcc-4.6.4) #30

Open
miniupnp opened this issue Mar 25, 2018 · 7 comments
Open

Failed to build on ubuntu/ARM64 (branch gcc-4.6.4) #30

miniupnp opened this issue Mar 25, 2018 · 7 comments

Comments

@miniupnp
Copy link
Contributor

$ uname -a
Linux NanoPi-A64 3.10.65 #1 SMP PREEMPT Fri Jul 21 16:45:24 CST 2017 aarch64 aarch64 aarch64 GNU/Linux
$ git status
On branch gcc-4.6.4
Your branch is up-to-date with 'origin/gcc-4.6.4'.
nothing to commit, working directory clean

I guess I have to update the config.guess and config.sub script.

[...]
make install-gcc install-target-libgcc
checking build system type... ../m68k-atari-mint-gcc-gcc-4_6-mint/config.guess: unable to guess system type

This script, last modified 2010-04-03, has failed to recognize
the operating system you are using. It is advised that you
download the most up to date version of the config scripts from

  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
and
  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD

If the version you run (../m68k-atari-mint-gcc-gcc-4_6-mint/config.guess) is already up to date, please
send the following data and any information you think might be
pertinent to <[email protected]> in order to provide the needed
information to handle your system.

config.guess timestamp = 2010-04-03

uname -m = aarch64
uname -r = 3.10.65
uname -s = Linux
uname -v = #1 SMP PREEMPT Fri Jul 21 16:45:24 CST 2017

/usr/bin/uname -p =
/bin/uname -X     =

hostinfo               =
/bin/universe          =
/usr/bin/arch -k       =
/bin/arch              =
/usr/bin/oslevel       =
/usr/convex/getsysinfo =

UNAME_MACHINE = aarch64
UNAME_RELEASE = 3.10.65
UNAME_SYSTEM  = Linux
UNAME_VERSION = #1 SMP PREEMPT Fri Jul 21 16:45:24 CST 2017
configure: error: cannot guess build type; you must specify one
Makefile:235: recipe for target 'gcc-4.6.4-m68000-cross-preliminary.ok' failed
make[1]: *** [gcc-4.6.4-m68000-cross-preliminary.ok] Error 1
make[1]: Leaving directory '/home/nanard/mnt/code/m68k-atari-mint-build'
Makefile:82: recipe for target 'm68000-skip-native' failed
make: *** [m68000-skip-native] Error 1

@mikrosk
Copy link
Owner

mikrosk commented Mar 25, 2018

@miniupnp
Copy link
Contributor Author

@mikrosk
Copy link
Owner

mikrosk commented Mar 25, 2018

Sure, no problem. I just want to be sure it will help something. :-)

@miniupnp
Copy link
Contributor Author

it is failing later but I don't understand why

ranlib .libs/libgmp.a
rm -fr .libs/libgmp.lax
creating libgmp.la
(cd .libs && rm -f libgmp.la && ln -s ../libgmp.la libgmp.la)
make[5]: Leaving directory '/home/nanard/mnt/code/m68k-atari-mint-build/m68k-atari-mint-gcc-gcc-4_6-mint-m68000-cross-preliminary/gmp'
make[4]: Leaving directory '/home/nanard/mnt/code/m68k-atari-mint-build/m68k-atari-mint-gcc-gcc-4_6-mint-m68000-cross-preliminary/gmp'
make[3]: Leaving directory '/home/nanard/mnt/code/m68k-atari-mint-build/m68k-atari-mint-gcc-gcc-4_6-mint-m68000-cross-preliminary/gmp'
make[2]: Leaving directory '/home/nanard/mnt/code/m68k-atari-mint-build/m68k-atari-mint-gcc-gcc-4_6-mint-m68000-cross-preliminary'
Makefile:236: recipe for target 'gcc-4.6.4-m68000-cross-preliminary.ok' failed
make[1]: *** [gcc-4.6.4-m68000-cross-preliminary.ok] Error 2
make[1]: Leaving directory '/home/nanard/mnt/code/m68k-atari-mint-build'
Makefile:82: recipe for target 'm68000-skip-native' failed
make: *** [m68000-skip-native] Error 1

@mikrosk
Copy link
Owner

mikrosk commented Mar 25, 2018

Isn't this just messed up because of make -j ?

@miniupnp
Copy link
Contributor Author

I switched back to -j1 ;)

libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../m68k-atari-mint-gcc-gcc-4_6-mint/lto-plugin -I../../m68k-atari-mint-gcc-gcc-4_6-mint/lto-plugin/../include -DHAVE_CONFIG_H -Wall -g -O2 -c ../../m68k-atari-mint-gcc-gcc-4_6-mint/lto-plugin/lto-plugin.c  -fPIC -DPIC -o .libs/lto-plugin.o
/bin/bash ./libtool --tag=CC --tag=disable-static  --mode=link gcc -Wall -g -O2  -module -bindir /home/nanard/gnu-tools/m68000/libexec/gcc/m68k-atari-mint/4.6.4 -Wc,../libiberty/libiberty.a  -o liblto_plugin.la -rpath /home/nanard/gnu-tools/m68000/libexec/gcc/m68k-atari-mint/4.6.4 lto-plugin.lo  
libtool: link: gcc -shared  .libs/lto-plugin.o    ../libiberty/libiberty.a   -Wl,-soname -Wl,liblto_plugin.so.0 -o .libs/liblto_plugin.so.0.0.0
/usr/bin/ld: ../libiberty/libiberty.a(argv.o): relocation R_AARCH64_ADR_PREL_PG_HI21 against external symbol `__stack_chk_guard@@GLIBC_2.17' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: ../libiberty/libiberty.a(argv.o)(.text+0x12c): unresolvable R_AARCH64_ADR_PREL_PG_HI21 relocation against symbol `__stack_chk_guard@@GLIBC_2.17'
/usr/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status
Makefile:339: recipe for target 'liblto_plugin.la' failed
make[4]: *** [liblto_plugin.la] Error 1
make[4]: Leaving directory '/home/nanard/mnt/code/m68k-atari-mint-build/m68k-atari-mint-gcc-gcc-4_6-mint-m68000-cross-preliminary/lto-plugin'
Makefile:252: recipe for target 'all' failed
make[3]: *** [all] Error 2
make[3]: Leaving directory '/home/nanard/mnt/code/m68k-atari-mint-build/m68k-atari-mint-gcc-gcc-4_6-mint-m68000-cross-preliminary/lto-plugin'
Makefile:12450: recipe for target 'all-lto-plugin' failed
make[2]: *** [all-lto-plugin] Error 2
make[2]: Leaving directory '/home/nanard/mnt/code/m68k-atari-mint-build/m68k-atari-mint-gcc-gcc-4_6-mint-m68000-cross-preliminary'
Makefile:240: recipe for target 'gcc-4.6.4-m68000-cross-preliminary.ok' failed
make[1]: *** [gcc-4.6.4-m68000-cross-preliminary.ok] Error 2
make[1]: Leaving directory '/home/nanard/mnt/code/m68k-atari-mint-build'
Makefile:86: recipe for target 'm68000-skip-native' failed
make: *** [m68000-skip-native] Error 1

@mikrosk
Copy link
Owner

mikrosk commented Mar 30, 2018

Looks quite serious. I'll take a look sometime later (now I'm on my way from Tasmania ;))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants