Cross GCC etc..
Daniel O'Connor
darius at dons.net.au
Mon Oct 10 15:40:30 PDT 2011
On 11/10/2011, at 24:38, Andrea D'Amore wrote:
> On Mon, Oct 10, 2011 at 15:03, Daniel O'Connor <darius at dons.net.au> wrote:
>> I am trying to modify the arm-none-eabi port so that it builds newlib with --disable-newlib-supplied-syscalls.
>> How would I go about passing that flag to newlib's configure?
>
> I see that's in both gcc and newlib's configure script, have you tried
> adding it to configure.args-append keyword in arm-none-eabi-gcc's
> portfile?
Hmm now the build fails :(
At the bottom of the log file I see..
<snip>
:info:build < /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_arm-none-eabi-gcc/arm-none-eabi-gcc/work/gcc-4.6.1/libstdc++-v3/../gcc/gthr-tpf.h > arm-none-eabi/bits/gthr-tpf.h
:info:build sed -e 's/\(UNUSED\)/_GLIBCXX_\1/g' \
:info:build -e 's/\(GCC[ABCDEFGHIJKLMNOPQRSTUVWXYZ_]*_H\)/_GLIBCXX_\1/g' \
:info:build -e 's/SUPPORTS_WEAK/__GXX_WEAK__/g' \
:info:build -e 's/\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]*USE_WEAK\)/_GLIBCXX_\1/g' \
:info:build -e 's,^#include "\(.*\)",#include <bits/\1>,g' \
:info:build < /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_arm-none-eabi-gcc/arm-none-eabi-gcc/work/gcc-4.6.1/libstdc++-v3/../gcc/gthr-single.h > arm-none-eabi/bits/gthr-default.h
:info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_arm-none-eabi-gcc/arm-none-eabi-gcc/work/build'
:info:build make: *** [all] Error 2
:info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_arm-none-eabi-gcc/arm-none-eabi-gcc/work/build'
The only error I can see that isn't also marked ignored is..
:info:build checking for sched.h... yes
:info:build checking for unistd.h... (cached) yes
:info:build checking for thread model used by GCC... single
:info:build checking whether the target supports thread-local storage... configure: error: Link tests are not allowed after GCC_NO_EXECUTABLES.
:info:build checking fcntl.h usability... yes
:info:build checking for dlfcn.h... yes
:info:build checking fcntl.h presence... failed
:info:build checking for dlfcn.h... yes
:info:build checking for fcntl.h... yes
:info:build make[1]: *** [configure-target-libobjc] Error 1
:info:build make[1]: *** Waiting for unfinished jobs....
:info:build no
:info:build checking for objdir... .libs
:info:build checking stdio.h usability… no
Is there a way to prevent it using -j 4 in the build to make the problem clearer?
Thanks.
--
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
"The nice thing about standards is that there
are so many of them to choose from."
-- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C
More information about the macports-dev
mailing list