This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: mips toolchain on macos


The find fix worked, but now it stops at gdb :

[INFO ]  Installing cross-gdb
[ERROR]    /Volumes/Crosstools/crosstool-ng/.build/src/gdb-6.8/sim/mips/../..//bfd/sysdep.h:135:
error: expected declaration specifiers or '...' before numeric
constant
[ERROR]    /Volumes/Crosstools/crosstool-ng/.build/src/gdb-6.8/sim/mips/../..//bfd/sysdep.h:135:
error: expected ')' before '!=' token
[ERROR]    /Volumes/Crosstools/crosstool-ng/.build/src/gdb-6.8/sim/mips/../..//bfd/sysdep.h:135:
error: expected ')' before '?' token
[ERROR]    make[4]: *** [interp.o] Error 1
[ERROR]    make[3]: *** [all] Error 1
[ERROR]    make[2]: *** [all-sim] Error 2
[ERROR]    make[1]: *** [all] Error 2
[ERROR]
[ERROR]    >>  Build failed in step 'Installing cross-gdb'
[ERROR]    >>
[ERROR]    >>  Error happened in: CT_DoExecLog[scripts/functions]
[ERROR]    >>        called from:
do_debug_gdb_build[scripts/build/debug/300-gdb.sh@148]
[ERROR]    >>        called from: do_debug[scripts/build/debug.sh@35]
[ERROR]    >>        called from: main[scripts/crosstool-NG.sh@584]
[ERROR]    >>
[ERROR]    >>  For more info on this error, look at the file: 'build.log'
[ERROR]    >>  There is a list of known issues, some with workarounds, in:
[ERROR]    >>      'share/doc/ct-ng-hg_unknown@20110816.164443/B -
Known issues.txt'
[ERROR]
[ERROR]    Build failed in step 'Installing cross-gdb'

In build.log :

[ALL  ]    x86_64-build_apple-darwin10.8.0-gcc -c -DHAVE_CONFIG_H
-DPROFILE=1 -DWITH_PROFILE=-1   -DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT
-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=31
-DWITH_DEFAULT_TARGET_BYTE_ORDER=BIG_ENDIAN
-DWITH_FLOATING_POINT=HARD_FLOATING_POINT
-DWITH_TARGET_FLOATING_POINT_BITSIZE=32 -DWITH_HW=0
-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN    -DWITH_RESERVED_BITS=1
-DWITH_SMP=0  -Wimplicit -Wreturn-type -Wcomment -Wtrigraphs -Wformat
-Wparentheses -Wpointer-arith -Wuninitialized
-DMIPS_MACH_DEFAULT=bfd_mach_mips8000   -I.
-I/Volumes/Crosstools/crosstool-ng/.build/src/gdb-6.8/sim/mips
-I../common -I/Volumes/Crosstools/crosstool-ng/.build/src/gdb-6.8/sim/mips/../common
-I../../include
-I/Volumes/Crosstools/crosstool-ng/.build/src/gdb-6.8/sim/mips/../..//include
-I../../bfd -I/Volumes/Crosstools/crosstool-ng/.build/src/gdb-6.8/sim/mips/../..//bfd
-I../../opcodes
-I/Volumes/Crosstools/crosstool-ng/.build/src/gdb-6.8/sim/mips/../..//opcodes
-I../../intl -g -O2
/Volumes/Crosstools/crosstool-ng/.build/src/gdb-6.8/sim/mips/interp.c
[ALL  ]    In file included from
/Volumes/Crosstools/crosstool-ng/.build/src/gdb-6.8/sim/mips/interp.c:67:
[ERROR]    /Volumes/Crosstools/crosstool-ng/.build/src/gdb-6.8/sim/mips/../..//bfd/sysdep.h:135:
error: expected declaration specifiers or '...' before numeric
constant
[ERROR]    /Volumes/Crosstools/crosstool-ng/.build/src/gdb-6.8/sim/mips/../..//bfd/sysdep.h:135:
error: expected ')' before '!=' token
[ERROR]    /Volumes/Crosstools/crosstool-ng/.build/src/gdb-6.8/sim/mips/../..//bfd/sysdep.h:135:
error: expected ')' before '?' token
[ERROR]    make[4]: *** [interp.o] Error 1

The line is :
#if !HAVE_DECL_STPCPY
extern char *stpcpy (char *__dest, const char *__src);
#endif

I noticed a report on
http://sourceware.org/ml/crossgcc/2011-03/msg00120.html but I can't
select anything besides version 6.8, so I just commented that out
since it looks like a define problem somewhere above and I'll mostly
do C, not C++.

Anyway, I'll call it a day and try again tomorrow to create a mips
toolchain on OSX! That sure ain't an easy 1-day job.

-- 
vCard: http://guylhem.tel

--
For unsubscribe information see http://sourceware.org/lists.html#faq


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]