Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#21893 - can't compile gcc-core-4.5.1-2

Attached to Project: Arch Linux
Opened by John (graysky) - Sunday, 28 November 2010, 11:57 GMT
Last edited by Allan McRae (Allan) - Sunday, 28 November 2010, 12:38 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To Allan McRae (Allan)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description: Pkg doesn't build.

Additional info:
* package version(s)
* config and/or log files etc.

Steps to reproduce: Try to build it.

This was an epic to try to build (about 4 gigs in size). Here are the last 50'ish lines...

for file in rts/*.ali; do \
cp -p $file /dev/shm/abs/gcc/pkg/gcc/usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/adalib; \
done
/bin/install -c -m 644 rts/g-trasym.o /dev/shm/abs/gcc/pkg/gcc/usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/adalib
cd rts; for file in *.a;do \
/bin/install -c -m 644 $file /dev/shm/abs/gcc/pkg/gcc/usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/adalib; \
ranlib /dev/shm/abs/gcc/pkg/gcc/usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/adalib/$file; \
done
true
for file in gnat gnarl; do \
if [ -f rts/lib${file}-4.5.so ]; then \
/bin/install -c rts/lib${file}-4.5.so \
/dev/shm/abs/gcc/pkg/gcc/usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/adalib; \
fi; \
if [ -f rts/lib${file}.so ]; then \
ln -s lib${file}-4.5.so \
/dev/shm/abs/gcc/pkg/gcc/usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/adalib/lib${file}.so; \
fi; \
if [ -d rts/lib${file}-4.5.so.dSYM ]; then \
cp -p -r rts/lib${file}-4.5.so.dSYM \
/dev/shm/abs/gcc/pkg/gcc/usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/adalib; \
fi; \
done
for file in rts/*.ad?; do \
cp -p $file /dev/shm/abs/gcc/pkg/gcc/usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/adainclude; \
done
cd /dev/shm/abs/gcc/pkg/gcc/usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/adainclude; chmod a-wx *.adb
cd /dev/shm/abs/gcc/pkg/gcc/usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/adainclude; chmod a-wx *.ads
make[3]: Leaving directory `/dev/shm/abs/gcc/src/gcc-build/gcc/ada'
true DO=install multi-do # make
make[2]: Leaving directory `/dev/shm/abs/gcc/src/gcc-build/x86_64-unknown-linux-gnu/libada'
make[2]: Entering directory `/dev/shm/abs/gcc/src/gcc-build/x86_64-unknown-linux-gnu/libgomp'
Making install in testsuite
make[3]: Entering directory `/dev/shm/abs/gcc/src/gcc-build/x86_64-unknown-linux-gnu/libgomp/testsuite'
make[4]: Entering directory `/dev/shm/abs/gcc/src/gcc-build/x86_64-unknown-linux-gnu/libgomp/testsuite'
make[4]: Nothing to be done for `install-exec-am'.
make[4]: Nothing to be done for `install-data-am'.
make[4]: Leaving directory `/dev/shm/abs/gcc/src/gcc-build/x86_64-unknown-linux-gnu/libgomp/testsuite'
make[3]: Leaving directory `/dev/shm/abs/gcc/src/gcc-build/x86_64-unknown-linux-gnu/libgomp/testsuite'
make[3]: Entering directory `/dev/shm/abs/gcc/src/gcc-build/x86_64-unknown-linux-gnu/libgomp'
true DO=all multi-do # make
:
make[4]: Entering directory `/dev/shm/abs/gcc/src/gcc-build/x86_64-unknown-linux-gnu/libgomp'
true DO=install multi-do # make
test -z "/usr/lib/../lib" || /bin/mkdir -p "/dev/shm/abs/gcc/pkg/gcc/usr/lib/../lib"
/bin/install -c -m 644 libgomp.spec '/dev/shm/abs/gcc/pkg/gcc/usr/lib/../lib'
test -z "/usr/lib/../lib" || /bin/mkdir -p "/dev/shm/abs/gcc/pkg/gcc/usr/lib/../lib"
/bin/sh ./libtool --mode=install /bin/install -c libgomp.la '/dev/shm/abs/gcc/pkg/gcc/usr/lib/../lib'
libtool: install: /bin/install -c .libs/libgomp.so.1.0.0 /dev/shm/abs/gcc/pkg/gcc/usr/lib/../lib/libgomp.so.1.0.0
libtool: install: (cd /dev/shm/abs/gcc/pkg/gcc/usr/lib/../lib && { ln -s -f libgomp.so.1.0.0 libgomp.so.1 || { rm -f libgomp.so.1 && ln -s libgomp.so.1.0.0 libgomp.so.1; }; })
libtool: install: (cd /dev/shm/abs/gcc/pkg/gcc/usr/lib/../lib && { ln -s -f libgomp.so.1.0.0 libgomp.so || { rm -f libgomp.so && ln -s libgomp.so.1.0.0 libgomp.so; }; })
libtool: install: /bin/install -c .libs/libgomp.lai /dev/shm/abs/gcc/pkg/gcc/usr/lib/../lib/libgomp.la
libtool: install: /bin/install -c .libs/libgomp.a /dev/shm/abs/gcc/pkg/gcc/usr/lib/../lib/libgomp.a
libtool: install: chmod 644 /dev/shm/abs/gcc/pkg/gcc/usr/lib/../lib/libgomp.a
libtool: install: ranlib /dev/shm/abs/gcc/pkg/gcc/usr/lib/../lib/libgomp.a
libtool: install: warning: remember to run `libtool --finish /usr/lib/../lib'
test -z "/usr/share/info" || /bin/mkdir -p "/dev/shm/abs/gcc/pkg/gcc/usr/share/info"
/bin/install -c -m 644 ./libgomp.info '/dev/shm/abs/gcc/pkg/gcc/usr/share/info'
install-info --info-dir='/dev/shm/abs/gcc/pkg/gcc/usr/share/info' '/dev/shm/abs/gcc/pkg/gcc/usr/share/info/libgomp.info'
:
test -z "/usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/finclude" || /bin/mkdir -p "/dev/shm/abs/gcc/pkg/gcc/usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/finclude"
/bin/install -c -m 644 omp_lib.h omp_lib.f90 omp_lib.mod omp_lib_kinds.mod '/dev/shm/abs/gcc/pkg/gcc/usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/finclude'
test -z "/usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/include" || /bin/mkdir -p "/dev/shm/abs/gcc/pkg/gcc/usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/include"
/bin/install -c -m 644 omp.h '/dev/shm/abs/gcc/pkg/gcc/usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/include'
make[4]: Leaving directory `/dev/shm/abs/gcc/src/gcc-build/x86_64-unknown-linux-gnu/libgomp'
make[3]: Leaving directory `/dev/shm/abs/gcc/src/gcc-build/x86_64-unknown-linux-gnu/libgomp'
make[2]: Leaving directory `/dev/shm/abs/gcc/src/gcc-build/x86_64-unknown-linux-gnu/libgomp'
make[1]: Leaving directory `/dev/shm/abs/gcc/src/gcc-build'
rm: cannot remove `/dev/shm/abs/gcc/pkg/gcc/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.1/adainclude/*': No such file or directory
rm: cannot remove `/dev/shm/abs/gcc/pkg/gcc/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.1/adalib/*': No such file or directory
rm: cannot remove `/dev/shm/abs/gcc/pkg/gcc/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.1/finclude/*': No such file or directory
rm: cannot remove `/dev/shm/abs/gcc/pkg/gcc/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.1/include/objc/*': No such file or directory
Aborting...
This task depends upon

Closed by  Allan McRae (Allan)
Sunday, 28 November 2010, 12:38 GMT
Reason for closing:  Not a bug
Comment by Allan McRae (Allan) - Sunday, 28 November 2010, 12:04 GMT
I know this definitely builds as I have built it at least 20 times for both i686 and x86_64 in the last two days!

It looks to me like you have adjusted the PKGBUILD to not build ada, fortran and objc...
Comment by John (graysky) - Sunday, 28 November 2010, 12:06 GMT
Hi Allan - I didn't touch it actually. Just copied from abs. I can try it again and report back.
Comment by Allan McRae (Allan) - Sunday, 28 November 2010, 12:13 GMT
Ah, I see this issue... You played with your $CHOST without knowing that it would break stuff...

rm: cannot remove `/dev/shm/abs/gcc/pkg/gcc/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.1/adainclude/*': No such file or directory

Arch does not use x86_64-pc-linux-gnu.
Comment by John (graysky) - Sunday, 28 November 2010, 12:32 GMT
@Allan - CRAP! You have a keen eye, my friend.

That section in my /etc/makepkg.conf:

CARCH="x86_64"
CHOST="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -mtune=generic -O2 -pipe"
CXXFLAGS="${CFLAGS}"
MAKEFLAGS="-j4"

So I should change it to: x86_64-unknown-linux-gnu as it is in pacman's PKGBUILD? How does this affect all my other packages? I have been rebuilding all installed packages from source using the above info in my /etc/makepkg.conf

https://bbs.archlinux.org/viewtopic.php?id=109178
Comment by Allan McRae (Allan) - Sunday, 28 November 2010, 12:38 GMT
The Arch Linux target triplet is "x86_64-unknown-linux-gnu" so change it back if you do not want to go through the process of bootstrapping your own toolchain from scratch.

I would not like to use mix glibc, binutils and gcc packages (and maybe some other related packages) built with different values, but most other software should be fine.

Loading...