Hi,
1. I have tried today
crossdev --target powerpc-unknown-linux-gnu
and got the error message:
configure:2114: checking for powerpc-unknown-linux-gnu-gcc
configure:2141: result: x86_64-pc-linux-gnu-gcc
checking whether x86_64-pc-linux-gnu-gcc -pipe -freorder-blocks -O2
-fno-strict-aliasing supports -mabi=ibmlongdouble... no
configure: error: this configuration requires -mlong-double-128 IBM
extended format support
* ERROR: cross-powerpc-unknown-linux-gnu/glibc-2.13-r2 failed (compile
phase):
* failed to configure glibc
2. After looking at
/tmp/portage/cross-powerpc-unknown-linux-gnu/glibc-2.13-r2/work/glibc-2.13/configure
I found out that the environment variable CC is wrong.
This command worked:
crossdev --lenv "CC=powerpc-unknown-linux-gnu-gcc" --target
powerpc-unknown-linux-gnu
3. Is this a correct behavior that I need to set CC on the commandline?
4. I have a question about the loading of /usr/share/config.site
in glibc-2.13/configure
crossdev --lenv "CC=powerpc-unknown-linux-gnu-gcc" --target
powerpc-unknown-linux-gnu
>>> Compiling source in
/tmp/portage/cross-powerpc-unknown-linux-gnu/glibc-2.13-r2/work/glibc-2.13
...
* ABI: default
* CBUILD: x86_64-pc-linux-gnu
* CHOST: x86_64-pc-linux-gnu
* CTARGET: powerpc-unknown-linux-gnu
* CBUILD_OPT:
* CTARGET_OPT:
* CC: powerpc-unknown-linux-gnu-gcc
* CFLAGS: -pipe -freorder-blocks -O2 -fno-strict-aliasing
* Manual CC: powerpc-unknown-linux-gnu-gcc
configure: loading site script /usr/share/config.site
When the script /usr/share/config.site is executed, the above value
CHOST=x86_64-pc-linux-gnu
is used to find the site script files in /usr/share/crossdev/include/site.
Is this correct?
Is it looking for the definitions of the build system or the target system?
I am using sys-devel/crossdev-20110310
Best regards
Jan
1. I have tried today
crossdev --target powerpc-unknown-linux-gnu
and got the error message:
configure:2114: checking for powerpc-unknown-linux-gnu-gcc
configure:2141: result: x86_64-pc-linux-gnu-gcc
checking whether x86_64-pc-linux-gnu-gcc -pipe -freorder-blocks -O2
-fno-strict-aliasing supports -mabi=ibmlongdouble... no
configure: error: this configuration requires -mlong-double-128 IBM
extended format support
* ERROR: cross-powerpc-unknown-linux-gnu/glibc-2.13-r2 failed (compile
phase):
* failed to configure glibc
2. After looking at
/tmp/portage/cross-powerpc-unknown-linux-gnu/glibc-2.13-r2/work/glibc-2.13/configure
I found out that the environment variable CC is wrong.
This command worked:
crossdev --lenv "CC=powerpc-unknown-linux-gnu-gcc" --target
powerpc-unknown-linux-gnu
3. Is this a correct behavior that I need to set CC on the commandline?
4. I have a question about the loading of /usr/share/config.site
in glibc-2.13/configure
crossdev --lenv "CC=powerpc-unknown-linux-gnu-gcc" --target
powerpc-unknown-linux-gnu
>>> Compiling source in
/tmp/portage/cross-powerpc-unknown-linux-gnu/glibc-2.13-r2/work/glibc-2.13
...
* ABI: default
* CBUILD: x86_64-pc-linux-gnu
* CHOST: x86_64-pc-linux-gnu
* CTARGET: powerpc-unknown-linux-gnu
* CBUILD_OPT:
* CTARGET_OPT:
* CC: powerpc-unknown-linux-gnu-gcc
* CFLAGS: -pipe -freorder-blocks -O2 -fno-strict-aliasing
* Manual CC: powerpc-unknown-linux-gnu-gcc
configure: loading site script /usr/share/config.site
When the script /usr/share/config.site is executed, the above value
CHOST=x86_64-pc-linux-gnu
is used to find the site script files in /usr/share/crossdev/include/site.
Is this correct?
Is it looking for the definitions of the build system or the target system?
I am using sys-devel/crossdev-20110310
Best regards
Jan