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

faild building (newlib) the first time, succeedes only in second attempt #51

Closed
githubaf opened this issue Oct 23, 2018 · 4 comments
Closed

Comments

@githubaf
Copy link
Contributor

githubaf commented Oct 23, 2018

I cannot build any more.
Ubuntu 16.04
This is what I do: (today, 23.Oct)

Everything is clean/none existing at the beginning.

git clone https://github.com/bebbo/amiga-gcc.git
cd amiga-gcc
make update
make all PREFIX=/home/developer/opt/m68k-amigaos_aaaaa

It fails in here:
make[7]: Entering directory '/home/developer/amiga-gcc/build-Linux/newlib/libm020/newlib/libc'
rm -f libc.a
rm -rf tmp
mkdir tmp
cd tmp;
for i in argz/lib.a stdlib/lib.a ctype/lib.a search/lib.a stdio/lib.a string/lib.a signal/lib.a time/lib.a locale/lib.a reent/lib.a errno/lib.a misc/lib.a ssp/lib.a machine/lib.a sys/lib.a; do
m68k-amigaos-ar x ../$i;
done;
m68k-amigaos-ar rc ../libc.a *.o
m68k-amigaos-ar: ../stdlib/lib.a: No such file or directory
m68k-amigaos-ar: ../sys/lib.a: No such file or directory
m68k-amigaos-ranlib libc.a
rm -rf tmp
rm -f crt0.o
ln sys/crt0.o crt0.o >/dev/null 2>/dev/null || cp sys/crt0.o crt0.o
cp: cannot stat 'sys/crt0.o': No such file or directory
Makefile:1045: recipe for target 'crt0.o' failed
make[7]: *** [crt0.o] Error 1

If I do
make all PREFIX=/home/developer/opt/m68k-amigaos_aaaaa
again a second time, then everything is fine.

@bebbo
Copy link
Owner

bebbo commented Oct 23, 2018

maybe you can find the true reason. I can't test on all platforms and

  • ubuntu18
  • centos7.5
  • mint 17 32 bit
  • Windows/Cygwin
  • Windows/Msys2
  • macOs

are working.

@bebbo
Copy link
Owner

bebbo commented Oct 24, 2018

NDK is unpacked again during update -> fixes your issue.

@githubaf
Copy link
Contributor Author

I will try, thanks for your effort!

This morning a collegue of mine tried compiling (with exact my commands as stated above) on an Ubuntu 18 machine. He failed with the same error as I did, so it was not Ubuntu-16 specific.

Then he tried with -j 1 and that worked for him, so maybe it was a timing problem of the parrallel build?

I will check you new commit and report back later.

@githubaf
Copy link
Contributor Author

Yep, now its fine again. Thanks!

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