2011-01-28 18:40:13 Compilation problems!
Peter Hagauer (AUSTRIA)
Message: 97740
Hi.
i hope u can help me, i am new to all that stuff, but learnd a lot from the docs.
I am trying to run uClinux on a Bluetechnix CM-527.
In usage:
Toolchain: blackfin-toolchain-uclinux (2010R1-rc4)
blackfin-toolchain-linux-uclibc (2010R1-rc4)
located in opt/
Dist: blackfin-linux-dist-2010R1-RC
After xconfig and make i get the following:
donpedro@DonPedro:~/Desktop/blackfin-linux-dist$ make
make -C tools/sg-cksum
make[1]: Betrete Verzeichnis '/home/donpedro/Desktop/blackfin-linux-dist/tools/sg-cksum'
cc -Werror -Wall -DHAVE_MKSTEMP -o cksum cksum.c crc.c print.c sum1.c sum2.c crc32.c
make[1]: Verlasse Verzeichnis '/home/donpedro/Desktop/blackfin-linux-dist/tools/sg-cksum'
ln -sf /home/donpedro/Desktop/blackfin-linux-dist/tools/sg-cksum/cksum tools/cksum
make -f tools/autotools.mk autotools-cache
make[1]: Betrete Verzeichnis '/home/donpedro/Desktop/blackfin-linux-dist'
set -e; \
mkdir -p /home/donpedro/Desktop/blackfin-linux-dist/tools/autotools-cache/build//$$; \
cd /home/donpedro/Desktop/blackfin-linux-dist/tools/autotools-cache/build//$$; \
CONFIG_SITE="" ../../configure -C; \
mv config.cache /home/donpedro/Desktop/blackfin-linux-dist/tools/autotools-cache/build/config.cache
configure: creating cache config.cache
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking build system type... i686-pc-linux-gnu
checking for gawk... (cached) gawk
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for a sed that does not truncate output... /bin/sed
configure: updating cache config.cache
configure: creating ./config.status
config.status: creating Makefile
grep -v ^ac_cv_env_ /home/donpedro/Desktop/blackfin-linux-dist/tools/autotools-cache/build/config.cache > /home/donpedro/Desktop/blackfin-linux-dist/vendors/config/config.site.build.$$ && mv /home/donpedro/Desktop/blackfin-linux-dist/vendors/config/config.site.build.$$ /home/donpedro/Desktop/blackfin-linux-dist/vendors/config/config.site.build
set -e; \
mkdir -p /home/donpedro/Desktop/blackfin-linux-dist/tools/autotools-cache/build//$$; \
cd /home/donpedro/Desktop/blackfin-linux-dist/tools/autotools-cache/build//$$; \
gt=`../../create-target-cache.sh bfin-uclinux`; \
cp $gt /home/donpedro/Desktop/blackfin-linux-dist/vendors/config/$gt; \
touch /home/donpedro/Desktop/blackfin-linux-dist/tools/autotools-cache/build/bfin-uclinux
bfin-uclinux-gcc: error trying to exec 'cc1': execvp: No such file or directory
bfin-uclinux-gcc: error trying to exec 'cc1': execvp: No such file or directory
Using inc dir for bfin-uclinux (bfin-unknown-uclinux):
make[1]: Verlasse Verzeichnis '/home/donpedro/Desktop/blackfin-linux-dist'
ln -sf staging-compiler tools/bfin-uclinux-gcc
ln -sf staging-compiler tools/bfin-uclinux-g++
ln -sf staging-compiler tools/bfin-uclinux-cpp
ln -sf staging-compiler tools/bfin-uclinux-ld
ln -sf cross-pkg-config tools/bfin-uclinux-pkg-config
chmod +x tools/romfs-inst.sh tools/modules-alias.sh tools/build-udev-perms.sh
. linux-2.6.x/.config; if [ "$CONFIG_INITRAMFS_SOURCE" != "" ]; then \
mkdir -p `dirname $CONFIG_INITRAMFS_SOURCE`; \
touch $CONFIG_INITRAMFS_SOURCE || exit 1; \
fi
rm -f linux-2.6.x/usr/initramfs_data.cpio
make ARCH=blackfin CROSS_COMPILE=bfin-uclinux- -j4 -C linux-2.6.x || exit 1
make[1]: Betrete Verzeichnis '/home/donpedro/Desktop/blackfin-linux-dist/linux-2.6.x'
scripts/kconfig/conf -s arch/blackfin/Kconfig
make[1]: Verlasse Verzeichnis '/home/donpedro/Desktop/blackfin-linux-dist/linux-2.6.x'
make[1]: Betrete Verzeichnis '/home/donpedro/Desktop/blackfin-linux-dist/linux-2.6.x'
CHK include/linux/version.h
UPD include/linux/version.h
CHK include/generated/utsrelease.h
UPD include/generated/utsrelease.h
HOSTCC scripts/kallsyms
HOSTCC scripts/bin2c
CC scripts/mod/empty.o
HOSTCC scripts/mod/mk_elfconfig
bfin-uclinux-gcc: error trying to exec 'cc1': execvp: No such file or directory
make[3]: *** [scripts/mod/empty.o] Fehler 1
make[3]: *** Warte auf noch nicht beendete Prozesse...
scripts/kallsyms.c: In function ‘read_symbol’:
scripts/kallsyms.c:112: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result
make[2]: *** [scripts/mod] Fehler 2
make[2]: *** Warte auf noch nicht beendete Prozesse...
make[1]: *** [scripts] Fehler 2
make[1]: Verlasse Verzeichnis '/home/donpedro/Desktop/blackfin-linux-dist/linux-2.6.x'
make: *** [linux] Fehler 1
Thanks for your help
QuoteReplyEditDelete
2011-01-29 00:46:44 Re: Compilation problems!
Mike Frysinger (UNITED STATES)
Message: 97743
you need to install a native/host gcc too. simply installing the Blackfin compiler is not enough.
please read the documentation:
docs.blackfin.uclinux.org/doku.php?id=installing_linux
QuoteReplyEditDelete
2011-01-29 23:26:42 Re: Compilation problems!
Peter Hagauer (AUSTRIA)
Message: 97767
Hi Mike,
thanks for fast reply.
I think i have a host gcc:
donpedro@DonPedro:~$ bfin-uclinux-gcc --version
bfin-uclinux-gcc (ADI-2010R1-RC4) 4.3.5
Copyright (C) 2008 Free Software Foundation, Inc.
Dies ist freie Software; die Kopierbedingungen stehen in den Quellen. Es
gibt KEINE Garantie; auch nicht für MARKTGÄNGIGKEIT oder FÜR SPEZIELLE ZWECKE.
donpedro@DonPedro:~$ gcc --version
gcc (Ubuntu 4.4.3-4ubuntu5) 4.4.3
Copyright (C) 2009 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
QuoteReplyEditDelete
2011-01-30 21:38:24 Re: Compilation problems!
Aaron Wu (CHINA)
Message: 97798
Following this document to install the toolchain, docs.blackfin.uclinux.org/doku.php?id=toolchain:installing
and this to configure your Linux host: docs.blackfin.uclinux.org/doku.php?id=installing_linux
The latest distribution version is 2010R1-RC5
QuoteReplyEditDelete
2011-01-31 18:48:27 Re: Compilation problems!
Peter Hagauer (AUSTRIA)
Message: 97817
I have installed the toolchain in opt/
donpedro@DonPedro:~$ which bfin-linux-uclibc-gcc
/opt/uClinux/bfin-linux-uclibc/bin/bfin-linux-uclibc-gcc
donpedro@DonPedro:~$ which bfin-uclinux-gcc
/opt/uClinux/bfin-uclinux/bin/bfin-uclinux-gcc
I don't know, what i am doing wrong. Thanks for help.
QuoteReplyEditDelete
2011-01-31 19:34:52 Re: Compilation problems!
Gilles Ganault (FRANCE)
Message: 97818
It would help if you installed the whole thing on a *nix host using English locale, so that the error messages would be displayed in that language instead of German.
QuoteReplyEditDelete
2011-01-31 19:38:10 Re: Compilation problems!
Mike Frysinger (UNITED STATES)
Message: 97819
try to build a simple app yourself:
$ echo 'main(){}' > test.c
$ bfin-uclinux-gcc test.c
if that doesnt work, then run gcc with -v and post the output:
$ bfin-uclinux-gcc -v test.c
and run it through strace:
$ strace -o log bfin-uclinux-gcc test.c
QuoteReplyEditDelete
2011-01-31 19:38:48 Re: Compilation problems!
Mike Frysinger (UNITED STATES)
Message: 97820
locales are trivially to change (export LC_ALL=C). but in this case, german isnt an issue for us to handle.
QuoteReplyEditDelete
2011-01-31 19:58:06 Re: Compilation problems!
Peter Hagauer (AUSTRIA)
Message: 97821
donpedro@DonPedro:~/Desktop$ echo 'main(){}' > test.c
donpedro@DonPedro:~/Desktop$ bfin-uclinux-gcc test.c
bfin-uclinux-gcc: error trying to exec 'cc1': execvp: No such file or directory
donpedro@DonPedro:~/Desktop$ bfin-uclinux-gcc -v test.c
Es werden eingebaute Spezifikationen verwendet.
Ziel: bfin-uclinux
Konfiguriert mit: /usr/src/packages/BUILD/blackfin-toolchain-2010R1/gcc-4.3/configure --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --target=bfin-uclinux --prefix=/opt/uClinux/bfin-uclinux --enable-threads=posix --with-sysroot=/opt/uClinux/bfin-uclinux/bfin-uclinux/runtime --disable-libstdcxx-pch --disable-symvers --disable-libssp --disable-libffi --enable-clocale=generic --enable-version-specific-runtime-libs --enable-__cxa_atexit --with-bugurl=URL: blackfin.uclinux.org/gf/project/toolchain/tracker --with-pkgversion=ADI-2010R1-RC4
Thread-Modell: posix
gcc-Version 4.3.5 (ADI-2010R1-RC4)
COLLECT_GCC_OPTIONS='-v' '-mlinux'
cc1 -quiet -v test.c -quiet -dumpbase test.c -mlinux -auxbase test -version -o /tmp/cctuJhFD.s
bfin-uclinux-gcc: error trying to exec 'cc1': execvp: No such file or directory
donpedro@DonPedro:~/Desktop$ strace -o log bfin-uclinux-gcc test.c
bfin-uclinux-gcc: error trying to exec 'cc1': execvp: No such file or directory
If the german phrases are going to be an issue, please let me know.
QuoteReplyEditDelete
2011-01-31 20:06:56 Re: Compilation problems!
Mike Frysinger (UNITED STATES)
Message: 97822
you forgot to attach the "log" file from `strace` for me to read ...
QuoteReplyEditDelete
2011-01-31 20:11:43 Re: Compilation problems!
Peter Hagauer (AUSTRIA)
Message: 97823
Hi,
sorry for that, but thank u for opening a new chapter in linux for me :-)
will do my best to make my stuff readable for u.
QuoteReplyEditDelete
2011-01-31 20:12:55 Re: Compilation problems!
Peter Hagauer (AUSTRIA)
Message: 97824
ups,
donpedro@DonPedro:~/Desktop$ strace -o log bfin-uclinux-gcc test.c
bfin-uclinux-gcc: error trying to exec 'cc1': execvp: No such file or directory
QuoteReplyEditDelete
2011-01-31 20:18:20 Re: Compilation problems!
Peter Hagauer (AUSTRIA)
Message: 97825
sorry but now
log
QuoteReplyEditDelete
2011-01-31 20:45:55 Re: Compilation problems!
Mike Frysinger (UNITED STATES)
Message: 97826
your toolchain install appears to be broken. from the log:
access("/opt/uClinux/bfin-uclinux/lib/gcc/bfin-uclinux/4.3.5/", X_OK) = -1 EACCES (Permission denied)
access("/opt/uClinux/bfin-uclinux/lib/gcc/bfin-uclinux/4.3.5/", X_OK) = -1 EACCES (Permission denied)
access("/opt/uClinux/bfin-uclinux/lib/gcc/bfin-uclinux/4.3.5/specs", R_OK) = -1 EACCES (Permission denied)
stat64("/opt/uClinux/bfin-uclinux/libexec/gcc/bfin-uclinux/4.3.5/cc1", 0xbfda5bcc) = -1 EACCES (Permission denied)
i dont know how you installed the toolchain, but this shouldnt have happened. you can force fix the issue with something like:
sudo find /opt/uClinux/ -type f -exec chmod a+r {} +
sudo find /opt/uClinux/ -type d -exec chmod 755 {} +
QuoteReplyEditDelete
2011-01-31 21:10:03 Re: Compilation problems!
Peter Hagauer (AUSTRIA)
Message: 97827
Thank you so much.
If you would be female, i'd merry you ;-)
Greetings from Graz