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


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

Cross-compiler for msp430 on Mac OS X


I'm trying to set up a cross-compiler for msp430, on Mac OS X 10.4.6. I get compile errors.

I have downloaded binutils-2.16.1 and I'm using gcc 4.0. Errors that I'm not able to resolve crop up. What is the state of binutils on Mac OS X? I know that it's not supposed to handle mach-o files, but that's not what I'm trying to do. Also I think this is supposed to work, as I have seen tutorials suggest so.

Below I have inserted output of

- configure in root directory
- make in root directory
- make in bfd directory
- changed to gcc 3.3, make in bfd directory


Any advice appreciated!



Best, Joakim Arfvidsson





> ./configure --target=msp430 --prefix=/usr/local/msp430 --disable-nls


creating cache ./config.cache
checking host system type... powerpc-apple-darwin8.5.0
checking target system type... msp430-unknown-none
checking build system type... powerpc-apple-darwin8.5.0
checking for a BSD compatible install... /usr/bin/install -c
checking whether ln works... yes
checking whether ln -s works... yes
checking for gcc... gcc
checking whether the C compiler (gcc -traditional-cpp ) works... yes
checking whether the C compiler (gcc -traditional-cpp ) is a cross- compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for gnatbind... no
checking whether compiler driver understands Ada... no
checking how to compare bootstrapped objects... cmp --ignore- initial=16 $$f1 $$f2
checking for correct version of gmp.h... no
checking for bison... bison
checking for bison... bison -y
checking for gm4... gm4
checking for flex... flex
checking for flex... flex
checking for makeinfo... makeinfo
checking for powerpc-apple-darwin8.5.0-ar... no
checking for ar... ar
checking for powerpc-apple-darwin8.5.0-as... no
checking for as... as
checking for powerpc-apple-darwin8.5.0-dlltool... no
checking for dlltool... dlltool
checking for powerpc-apple-darwin8.5.0-ld... no
checking for ld... ld
checking for powerpc-apple-darwin8.5.0-nm... no
checking for nm... nm
checking for powerpc-apple-darwin8.5.0-ranlib... no
checking for ranlib... ranlib
checking for powerpc-apple-darwin8.5.0-windres... no
checking for windres... windres
checking for powerpc-apple-darwin8.5.0-objcopy... no
checking for objcopy... objcopy
checking for powerpc-apple-darwin8.5.0-objdump... no
checking for objdump... objdump
checking for msp430-ar... no
checking for msp430-as... no
checking for msp430-dlltool... no
checking for msp430-ld... no
checking for msp430-nm... no
checking for msp430-ranlib... no
checking for msp430-windres... no
checking whether to enable maintainer-specific portions of Makefiles... no
checking if symbolic links between directories work... yes
updating cache ./config.cache
creating ./config.status
creating Makefile



> make



Configuring in libiberty
configure: creating cache ./config.cache
checking whether to enable maintainer-specific portions of Makefiles... no
checking for makeinfo... makeinfo
checking for perl... perl
checking build system type... powerpc-apple-darwin8.5.0
checking host system type... powerpc-apple-darwin8.5.0
checking for powerpc-apple-darwin8.5.0-ar... ar
checking for powerpc-apple-darwin8.5.0-ranlib... ranlib
checking for powerpc-apple-darwin8.5.0-gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking how to run the C preprocessor... gcc -E
checking whether gcc and cc understand -c and -o together... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking whether byte ordering is bigendian... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking for sys/file.h... yes
checking for sys/param.h... yes
checking for limits.h... yes
checking for stdlib.h... yes
checking for malloc.h... no
checking for string.h... yes
checking for unistd.h... yes
checking for strings.h... yes
checking for sys/time.h... yes
checking for time.h... yes
checking for sys/resource.h... yes
checking for sys/stat.h... yes
checking for sys/mman.h... yes
checking for fcntl.h... yes
checking for alloca.h... yes
checking for sys/pstat.h... no
checking for sys/sysmp.h... no
checking for sys/sysinfo.h... no
checking for machine/hal_sysinfo.h... no
checking for sys/table.h... no
checking for sys/sysctl.h... yes
checking for sys/systemcfg.h... no
checking for stdint.h... yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking whether time.h and sys/time.h may both be included... yes
checking whether errno must be declared... no
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for memory.h... yes
checking for strings.h... (cached) yes
checking for inttypes.h... yes
checking for stdint.h... (cached) yes
checking for unistd.h... (cached) yes
checking for int... yes
checking size of int... 4
checking for uintptr_t... yes
checking for a 64-bit type... uint64_t
checking for pid_t... yes
checking for library containing strerror... none required
checking for asprintf... yes
checking for atexit... yes
checking for basename... yes
checking for bcmp... yes
checking for bcopy... yes
checking for bsearch... yes
checking for bzero... yes
checking for calloc... yes
checking for clock... yes
checking for ffs... yes
checking for getcwd... yes
checking for getpagesize... yes
checking for index... yes
checking for insque... yes
checking for memchr... yes
checking for memcmp... yes
checking for memcpy... yes
checking for memmove... yes
checking for mempcpy... no
checking for memset... yes
checking for mkstemps... yes
checking for putenv... yes
checking for random... yes
checking for rename... yes
checking for rindex... yes
checking for setenv... yes
checking for snprintf... yes
checking for sigsetmask... yes
checking for stpcpy... yes
checking for stpncpy... no
checking for strcasecmp... yes
checking for strchr... yes
checking for strdup... yes
checking for strncasecmp... yes
checking for strrchr... yes
checking for strstr... yes
checking for strtod... yes
checking for strtol... yes
checking for strtoul... yes
checking for tmpnam... yes
checking for vasprintf... yes
checking for vfprintf... yes
checking for vprintf... yes
checking for vsnprintf... yes
checking for vsprintf... yes
checking for waitpid... yes
checking whether alloca needs Cray hooks... no
checking stack direction for C alloca... -1
checking for unistd.h... (cached) yes
checking for vfork.h... no
checking for fork... yes
checking for vfork... yes
checking for working fork... no
checking for working vfork... (cached) yes
checking for _doprnt... no
checking for sys_errlist... yes
checking for sys_nerr... yes
checking for sys_siglist... yes
checking for external symbol _system_configuration... no
checking for getrusage... yes
checking for on_exit... no
checking for psignal... yes
checking for strerror... yes
checking for strsignal... yes
checking for sysconf... yes
checking for times... yes
checking for sbrk... yes
checking for gettimeofday... yes
checking for realpath... yes
checking for canonicalize_file_name... no
checking for pstat_getstatic... no
checking for pstat_getdynamic... no
checking for sysmp... no
checking for getsysinfo... no
checking for table... yes
checking for sysctl... yes
checking whether canonicalize_file_name must be declared... yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for getpagesize... (cached) yes
checking for working mmap... yes
checking for working strncmp... yes
updating cache ./config.cache
configure: creating ./config.status
config.status: creating Makefile
config.status: creating testsuite/Makefile
config.status: creating config.h
config.status: executing default commands
Configuring in bfd
configure: creating cache ./config.cache
checking build system type... powerpc-apple-darwin8.5.0
checking host system type... powerpc-apple-darwin8.5.0
checking target system type... msp430-unknown-none
checking for powerpc-apple-darwin8.5.0-gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for library containing strerror... none required
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking dependency style of gcc... none
checking for powerpc-apple-darwin8.5.0-ar... ar
checking for powerpc-apple-darwin8.5.0-ranlib... ranlib
checking for ld used by GCC... ld
checking if the linker (ld) is GNU ld... no
checking for ld option to reload object files... -r
checking for BSD-compatible nm... nm
checking whether ln -s works... yes
checking how to recognise dependant libraries... file_magic Mach-O dynamically linked shared library
checking for powerpc-apple-darwin8.5.0-ranlib... (cached) ranlib
checking for powerpc-apple-darwin8.5.0-strip... no
checking for strip... strip
updating cache ./config.cache
loading cache ./config.cache within ltconfig
checking for objdir... .libs
checking for gcc option to produce PIC... -DPIC
checking if gcc PIC flag -DPIC works... yes
checking if gcc static flag -static works... no
finding the maximum length of command line arguments... 98305
checking if gcc supports -c -o file.o... yes
checking if gcc supports -fno-rtti -fno-exceptions ... no
checking whether the linker (ld) supports shared libraries... no
checking how to hardcode library paths into programs... unsupported
checking whether stripping libraries is possible... no
checking dynamic linker characteristics... darwin8.5.0 dyld
checking command to parse nm output... ok
checking if libtool supports shared libraries... no
checking whether to build shared libraries... no
checking whether to build static libraries... yes
creating libtool
updating cache ./config.cache
configure: loading cache ./config.cache
checking whether to enable maintainer-specific portions of Makefiles... no
checking whether to install libbfd... no
checking for powerpc-apple-darwin8.5.0-gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ANSI C... (cached) none needed
checking for powerpc-apple-darwin8.5.0-ranlib... (cached) ranlib
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for off_t... yes
checking for size_t... yes
checking for working alloca.h... yes
checking for alloca... yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for getpagesize... yes
checking for working mmap... yes
checking argz.h usability... no
checking argz.h presence... no
checking for argz.h... no
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking nl_types.h usability... yes
checking nl_types.h presence... yes
checking for nl_types.h... yes
checking malloc.h usability... no
checking malloc.h presence... no
checking for malloc.h... no
checking for string.h... (cached) yes
checking for unistd.h... (cached) yes
checking values.h usability... no
checking values.h presence... no
checking for values.h... no
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking for getcwd... yes
checking for munmap... yes
checking for putenv... yes
checking for setenv... yes
checking for setlocale... yes
checking for strchr... yes
checking for strcasecmp... yes
checking for __argz_count... no
checking for __argz_stringify... no
checking for __argz_next... no
checking for stpcpy... yes
checking for LC_MESSAGES... yes
checking whether NLS is requested... no
checking for a BSD-compatible install... /usr/bin/install -c
checking for long long... yes
checking size of long long... 8
checking size of long... 4
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking for string.h... (cached) yes
checking for strings.h... (cached) yes
checking for stdlib.h... (cached) yes
checking time.h usability... yes
checking time.h presence... yes
checking for time.h... yes
checking for unistd.h... (cached) yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking sys/file.h usability... yes
checking sys/file.h presence... yes
checking for sys/file.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking whether time.h and sys/time.h may both be included... yes
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking for fcntl... yes
checking for getpagesize... (cached) yes
checking for setitimer... yes
checking for sysconf... yes
checking for fdopen... yes
checking for getuid... yes
checking for getgid... yes
checking for strtoull... yes
checking whether strstr must be declared... no
checking whether malloc must be declared... no
checking whether realloc must be declared... no
checking whether free must be declared... no
checking whether getenv must be declared... no
checking for ftello... yes
checking for ftello64... no
checking for fseeko... yes
checking for fseeko64... no
checking size of off_t... 8
checking file_ptr type... BFD_HOST_64_BIT
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for getpagesize... (cached) yes
checking for working mmap... (cached) yes
checking for madvise... yes
checking for mprotect... yes
updating cache ./config.cache
configure: creating ./config.status
config.status: creating Makefile
config.status: creating doc/Makefile
config.status: creating bfd-in3.h
config.status: creating po/Makefile.in
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing default commands
if [ x"" != x ] && [ ! -d pic ]; then \
mkdir pic; \
else true; fi
touch stamp-picdir
if [ x"" != x ]; then \
gcc -c -DHAVE_CONFIG_H -traditional-cpp -I. -I.././libiberty/../ include -W -Wall -Wtraditional -pedantic .././libiberty/regex.c -o pic/regex.o; \
else true; fi
gcc -c -DHAVE_CONFIG_H -traditional-cpp -I. -I.././libiberty/../ include -W -Wall -Wtraditional -pedantic .././libiberty/regex.c -o regex.o
In file included from .././libiberty/regex.c:655:
.././libiberty/regex.c: In function ‘byte_compile_range’:
.././libiberty/regex.c:4552: warning: signed and unsigned type in conditional expression
.././libiberty/regex.c:4562: warning: signed and unsigned type in conditional expression
.././libiberty/regex.c:4562: warning: signed and unsigned type in conditional expression
if [ x"" != x ]; then \
gcc -c -DHAVE_CONFIG_H -traditional-cpp -I. -I.././libiberty/../ include -W -Wall -Wtraditional -pedantic .././libiberty/cplus-dem.c -o pic/cplus-dem.o; \
else true; fi
gcc -c -DHAVE_CONFIG_H -traditional-cpp -I. -I.././libiberty/../ include -W -Wall -Wtraditional -pedantic .././libiberty/cplus-dem.c - o cplus-dem.o
In file included from .././libiberty/../include/demangle.h:26,
from .././libiberty/cplus-dem.c:61:
.././libiberty/../include/libiberty.h:96: warning: ‘__sentinel__’ attribute requires prototypes with named arguments
.././libiberty/../include/libiberty.h:105: warning: ‘__sentinel__’ attribute requires prototypes with named arguments
.././libiberty/../include/libiberty.h:111: warning: ‘__sentinel__’ attribute requires prototypes with named arguments
.././libiberty/../include/libiberty.h:118: warning: ‘__sentinel__’ attribute requires prototypes with named arguments
.././libiberty/../include/libiberty.h:125: warning: ‘__sentinel__’ attribute requires prototypes with named arguments
.././libiberty/../include/libiberty.h:320: error: conflicting types for ‘asprintf’
.././libiberty/../include/libiberty.h:320: note: a parameter list with an ellipsis can’t match an empty parameter name list declaration
/usr/include/stdio.h:296: error: previous declaration of ‘asprintf’ was here
make[1]: *** [cplus-dem.o] Error 1
make: *** [all-libiberty] Error 2







> cd bfd; make




make all-recursive
Making all in doc
make[2]: Nothing to be done for `all'.
Making all in po
( if test 'x../.././bfd/po' != 'x.'; then \
posrcprefix='../.././bfd/'; \
else \
posrcprefix="../"; \
fi; \
rm -f SRC-POTFILES-t SRC-POTFILES \
&& (sed -e '/^#/d' \
-e '/^[ ]*$/d' \
-e "s@.*@ $posrcprefix& \\\\@" < ../.././bfd/po/SRC- POTFILES.in \
| sed -e '$s/\\$//') > SRC-POTFILES-t \
&& chmod a-w SRC-POTFILES-t \
&& mv SRC-POTFILES-t SRC-POTFILES )
( rm -f BLD-POTFILES-t BLD-POTFILES \
&& (sed -e '/^#/d' \
-e '/^[ ]*$/d' \
-e "s@.*@ ../& \\\\@" < ../.././bfd/po/BLD-POTFILES.in \
| sed -e '$s/\\$//') > BLD-POTFILES-t \
&& chmod a-w BLD-POTFILES-t \
&& mv BLD-POTFILES-t BLD-POTFILES )
cd .. \
&& CONFIG_FILES=po/Makefile.in:po/Make-in \
CONFIG_HEADERS= /bin/sh ./config.status
config.status: creating po/Makefile.in
config.status: executing depfiles commands
config.status: executing default commands
make[2]: Nothing to be done for `all'.
rm -f bfd-tmp.h
cp bfd-in3.h bfd-tmp.h
/bin/sh .././bfd/../move-if-change bfd-tmp.h bfd.h
rm -f bfd-tmp.h
touch stmp-bfd-h
/bin/sh ./libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I.././bfd - I. -D_GNU_SOURCE -I. -I.././bfd -I.././bfd/../include -I.././ bfd/../intl -I../intl -W -Wall -Wstrict-prototypes -Wmissing- prototypes -traditional-cpp -c -o archive.lo archive.c
gcc -DHAVE_CONFIG_H -I. -I.././bfd -I. -D_GNU_SOURCE -I. -I.././bfd - I.././bfd/../include -I.././bfd/../intl -I../intl -W -Wall -Wstrict- prototypes -Wmissing-prototypes -traditional-cpp -c archive.c -o archive.o
In file included from archive.c:132:
bfd.h:589: warning: 'struct bfd_link_info' declared inside parameter list
bfd.h:589: warning: its scope is only this definition or declaration, which is probably not what you want
bfd.h:589: warning: 'struct ecoff_debug_swap' declared inside parameter list
bfd.h:589: warning: 'struct ecoff_debug_info' declared inside parameter list
bfd.h:592: warning: 'struct bfd_link_info' declared inside parameter list
bfd.h:592: warning: 'struct ecoff_debug_swap' declared inside parameter list
bfd.h:592: warning: 'struct ecoff_debug_info' declared inside parameter list
bfd.h:597: warning: 'struct bfd_link_info' declared inside parameter list
bfd.h:597: warning: 'struct ecoff_debug_swap' declared inside parameter list
bfd.h:597: warning: 'struct ecoff_debug_info' declared inside parameter list
bfd.h:601: warning: 'struct bfd_link_info' declared inside parameter list
bfd.h:601: warning: 'struct ecoff_debug_swap' declared inside parameter list
bfd.h:601: warning: 'struct ecoff_debug_info' declared inside parameter list
bfd.h:605: warning: 'struct ecoff_extr' declared inside parameter list
bfd.h:606: warning: 'struct ecoff_debug_swap' declared inside parameter list
bfd.h:606: warning: 'struct ecoff_debug_info' declared inside parameter list
bfd.h:610: warning: 'struct ecoff_extr' declared inside parameter list
bfd.h:610: warning: 'struct ecoff_debug_swap' declared inside parameter list
bfd.h:610: warning: 'struct ecoff_debug_info' declared inside parameter list
bfd.h:613: warning: 'struct ecoff_debug_swap' declared inside parameter list
bfd.h:613: warning: 'struct ecoff_debug_info' declared inside parameter list
bfd.h:616: warning: 'struct ecoff_debug_swap' declared inside parameter list
bfd.h:616: warning: 'struct ecoff_debug_info' declared inside parameter list
bfd.h:620: warning: 'struct bfd_link_info' declared inside parameter list
bfd.h:620: warning: 'struct ecoff_debug_swap' declared inside parameter list
bfd.h:620: warning: 'struct ecoff_debug_info' declared inside parameter list
bfd.h:640: warning: 'struct bfd_link_info' declared inside parameter list
bfd.h:642: warning: 'struct bfd_link_info' declared inside parameter list
bfd.h:647: warning: 'struct bfd_elf_version_tree' declared inside parameter list
bfd.h:647: warning: 'struct bfd_link_info' declared inside parameter list
bfd.h:657: warning: 'struct bfd_link_info' declared inside parameter list
bfd.h:659: warning: 'struct bfd_link_info' declared inside parameter list
bfd.h:702: warning: 'struct bfd_link_info' declared inside parameter list
bfd.h:705: warning: 'struct bfd_link_info' declared inside parameter list
bfd.h:710: warning: 'struct bfd_link_info' declared inside parameter list
bfd.h:712: warning: 'struct bfd_link_info' declared inside parameter list
bfd.h:714: warning: 'struct bfd_link_info' declared inside parameter list
bfd.h:719: warning: 'struct bfd_link_info' declared inside parameter list
bfd.h:721: warning: 'struct bfd_link_info' declared inside parameter list
bfd.h:723: warning: 'struct bfd_link_info' declared inside parameter list
bfd.h:755: warning: 'struct bfd_link_hash_entry' declared inside parameter list
bfd.h:755: warning: 'struct bfd_link_info' declared inside parameter list
bfd.h:758: warning: 'struct bfd_link_hash_entry' declared inside parameter list
bfd.h:758: warning: 'struct bfd_link_info' declared inside parameter list
bfd.h:760: warning: 'struct bfd_link_hash_entry' declared inside parameter list
bfd.h:760: warning: 'struct bfd_link_info' declared inside parameter list
bfd.h:762: warning: 'struct bfd_link_info' declared inside parameter list
bfd.h:764: warning: 'struct bfd_link_info' declared inside parameter list
bfd.h:768: warning: 'struct bfd_link_info' declared inside parameter list
bfd.h:784: warning: 'struct internal_syment' declared inside parameter list
bfd.h:787: warning: 'union internal_auxent' declared inside parameter list
bfd.h:793: warning: 'struct bfd_link_info' declared inside parameter list
bfd.h:797: warning: 'struct bfd_link_info' declared inside parameter list
bfd.h:800: warning: 'struct bfd_link_info' declared inside parameter list
bfd.h:803: warning: 'struct bfd_link_info' declared inside parameter list
bfd.h:807: warning: 'struct bfd_link_info' declared inside parameter list
bfd.h:810: warning: 'struct bfd_link_info' declared inside parameter list
bfd.h:813: warning: 'struct bfd_link_info' declared inside parameter list
bfd.h:817: warning: 'struct bfd_link_info' declared inside parameter list
bfd.h:820: warning: 'struct bfd_link_info' declared inside parameter list
bfd.h:823: warning: 'struct bfd_link_info' declared inside parameter list
bfd.h:826: warning: 'struct bfd_link_info' declared inside parameter list
bfd.h:829: warning: 'struct bfd_link_info' declared inside parameter list
bfd.h:1508: warning: 'struct bfd_link_info' declared inside parameter list
bfd.h:4260: warning: 'struct bfd_link_info' declared inside parameter list
In file included from archive.c:134:
libbfd.h:648: warning: 'struct ecoff_find_line' declared inside parameter list
libbfd.h:648: warning: 'struct ecoff_debug_swap' declared inside parameter list
libbfd.h:648: warning: 'struct ecoff_debug_info' declared inside parameter list
archive.c: In function 'do_slurp_coff_armap':
archive.c:766: warning: assignment from incompatible pointer type
archive.c:782: warning: assignment from incompatible pointer type
archive.c: In function '_bfd_write_archive_contents':
archive.c:1640: warning: passing argument 4 of 'arch->xvec- >_bfd_construct_extended_name_table' from incompatible pointer type
/bin/sh ./libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I.././bfd - I. -D_GNU_SOURCE -I. -I.././bfd -I.././bfd/../include -I.././ bfd/../intl -I../intl -W -Wall -Wstrict-prototypes -Wmissing- prototypes -traditional-cpp -c -DDEFAULT_VECTOR=bfd_elf32_msp430_vec - DSELECT_VECS='&bfd_elf32_msp430_vec,&bfd_elf32_little_generic_vec,&bfd_e lf32_big_generic_vec' -DSELECT_ARCHITECTURES='&bfd_msp430_arch' - DHAVE_bfd_elf32_msp430_vec -DHAVE_bfd_elf32_little_generic_vec - DHAVE_bfd_elf32_big_generic_vec .././bfd/archures.c
gcc -DHAVE_CONFIG_H -I. -I.././bfd -I. -D_GNU_SOURCE -I. -I.././bfd - I.././bfd/../include -I.././bfd/../intl -I../intl -W -Wall -Wstrict- prototypes -Wmissing-prototypes -traditional-cpp -c - DDEFAULT_VECTOR=bfd_elf32_msp430_vec "- DSELECT_VECS=&bfd_elf32_msp430_vec,&bfd_elf32_little_generic_vec,&bfd_el f32_big_generic_vec" "-DSELECT_ARCHITECTURES=&bfd_msp430_arch" - DHAVE_bfd_elf32_msp430_vec -DHAVE_bfd_elf32_little_generic_vec - DHAVE_bfd_elf32_big_generic_vec .././bfd/archures.c -o archures.o
In file included from .././bfd/archures.c:25:
.././bfd/bfd.h:589: warning: 'struct bfd_link_info' declared inside parameter list
.././bfd/bfd.h:589: warning: its scope is only this definition or declaration, which is probably not what you want
.././bfd/bfd.h:589: warning: 'struct ecoff_debug_swap' declared inside parameter list
.././bfd/bfd.h:589: warning: 'struct ecoff_debug_info' declared inside parameter list
.././bfd/bfd.h:592: warning: 'struct bfd_link_info' declared inside parameter list
.././bfd/bfd.h:592: warning: 'struct ecoff_debug_swap' declared inside parameter list
.././bfd/bfd.h:592: warning: 'struct ecoff_debug_info' declared inside parameter list
.././bfd/bfd.h:597: warning: 'struct bfd_link_info' declared inside parameter list
.././bfd/bfd.h:597: warning: 'struct ecoff_debug_swap' declared inside parameter list
.././bfd/bfd.h:597: warning: 'struct ecoff_debug_info' declared inside parameter list
.././bfd/bfd.h:601: warning: 'struct bfd_link_info' declared inside parameter list
.././bfd/bfd.h:601: warning: 'struct ecoff_debug_swap' declared inside parameter list
.././bfd/bfd.h:601: warning: 'struct ecoff_debug_info' declared inside parameter list
.././bfd/bfd.h:605: warning: 'struct ecoff_extr' declared inside parameter list
.././bfd/bfd.h:606: warning: 'struct ecoff_debug_swap' declared inside parameter list
.././bfd/bfd.h:606: warning: 'struct ecoff_debug_info' declared inside parameter list
.././bfd/bfd.h:610: warning: 'struct ecoff_extr' declared inside parameter list
.././bfd/bfd.h:610: warning: 'struct ecoff_debug_swap' declared inside parameter list
.././bfd/bfd.h:610: warning: 'struct ecoff_debug_info' declared inside parameter list
.././bfd/bfd.h:613: warning: 'struct ecoff_debug_swap' declared inside parameter list
.././bfd/bfd.h:613: warning: 'struct ecoff_debug_info' declared inside parameter list
.././bfd/bfd.h:616: warning: 'struct ecoff_debug_swap' declared inside parameter list
.././bfd/bfd.h:616: warning: 'struct ecoff_debug_info' declared inside parameter list
.././bfd/bfd.h:620: warning: 'struct bfd_link_info' declared inside parameter list
.././bfd/bfd.h:620: warning: 'struct ecoff_debug_swap' declared inside parameter list
.././bfd/bfd.h:620: warning: 'struct ecoff_debug_info' declared inside parameter list
.././bfd/bfd.h:640: warning: 'struct bfd_link_info' declared inside parameter list
.././bfd/bfd.h:642: warning: 'struct bfd_link_info' declared inside parameter list
.././bfd/bfd.h:647: warning: 'struct bfd_elf_version_tree' declared inside parameter list
.././bfd/bfd.h:647: warning: 'struct bfd_link_info' declared inside parameter list
.././bfd/bfd.h:657: warning: 'struct bfd_link_info' declared inside parameter list
.././bfd/bfd.h:659: warning: 'struct bfd_link_info' declared inside parameter list
.././bfd/bfd.h:702: warning: 'struct bfd_link_info' declared inside parameter list
.././bfd/bfd.h:705: warning: 'struct bfd_link_info' declared inside parameter list
.././bfd/bfd.h:710: warning: 'struct bfd_link_info' declared inside parameter list
.././bfd/bfd.h:712: warning: 'struct bfd_link_info' declared inside parameter list
.././bfd/bfd.h:714: warning: 'struct bfd_link_info' declared inside parameter list
.././bfd/bfd.h:719: warning: 'struct bfd_link_info' declared inside parameter list
.././bfd/bfd.h:721: warning: 'struct bfd_link_info' declared inside parameter list
.././bfd/bfd.h:723: warning: 'struct bfd_link_info' declared inside parameter list
.././bfd/bfd.h:755: warning: 'struct bfd_link_hash_entry' declared inside parameter list
.././bfd/bfd.h:755: warning: 'struct bfd_link_info' declared inside parameter list
.././bfd/bfd.h:758: warning: 'struct bfd_link_hash_entry' declared inside parameter list
.././bfd/bfd.h:758: warning: 'struct bfd_link_info' declared inside parameter list
.././bfd/bfd.h:760: warning: 'struct bfd_link_hash_entry' declared inside parameter list
.././bfd/bfd.h:760: warning: 'struct bfd_link_info' declared inside parameter list
.././bfd/bfd.h:762: warning: 'struct bfd_link_info' declared inside parameter list
.././bfd/bfd.h:764: warning: 'struct bfd_link_info' declared inside parameter list
.././bfd/bfd.h:768: warning: 'struct bfd_link_info' declared inside parameter list
.././bfd/bfd.h:784: warning: 'struct internal_syment' declared inside parameter list
.././bfd/bfd.h:787: warning: 'union internal_auxent' declared inside parameter list
.././bfd/bfd.h:793: warning: 'struct bfd_link_info' declared inside parameter list
.././bfd/bfd.h:797: warning: 'struct bfd_link_info' declared inside parameter list
.././bfd/bfd.h:800: warning: 'struct bfd_link_info' declared inside parameter list
.././bfd/bfd.h:803: warning: 'struct bfd_link_info' declared inside parameter list
.././bfd/bfd.h:807: warning: 'struct bfd_link_info' declared inside parameter list
.././bfd/bfd.h:810: warning: 'struct bfd_link_info' declared inside parameter list
.././bfd/bfd.h:813: warning: 'struct bfd_link_info' declared inside parameter list
.././bfd/bfd.h:817: warning: 'struct bfd_link_info' declared inside parameter list
.././bfd/bfd.h:820: warning: 'struct bfd_link_info' declared inside parameter list
.././bfd/bfd.h:823: warning: 'struct bfd_link_info' declared inside parameter list
.././bfd/bfd.h:826: warning: 'struct bfd_link_info' declared inside parameter list
.././bfd/bfd.h:829: warning: 'struct bfd_link_info' declared inside parameter list
.././bfd/bfd.h:1508: warning: 'struct bfd_link_info' declared inside parameter list
.././bfd/bfd.h:4260: warning: 'struct bfd_link_info' declared inside parameter list
In file included from .././bfd/archures.c:27:
.././bfd/libbfd.h:648: warning: 'struct ecoff_find_line' declared inside parameter list
.././bfd/libbfd.h:648: warning: 'struct ecoff_debug_swap' declared inside parameter list
.././bfd/libbfd.h:648: warning: 'struct ecoff_debug_info' declared inside parameter list
.././bfd/archures.c:536: error: conflicting types for 'bfd_printable_name'
.././bfd/bfd.h:1832: error: previous declaration of 'bfd_printable_name' was here
.././bfd/archures.c:555: error: conflicting types for 'bfd_scan_arch'
.././bfd/bfd.h:1834: error: previous declaration of 'bfd_scan_arch' was here
.././bfd/archures.c: In function 'bfd_scan_arch':
.././bfd/archures.c:563: warning: passing argument 1 of 'ap->scan' discards qualifiers from pointer target type
.././bfd/archures.c:563: warning: passing argument 2 of 'ap->scan' discards qualifiers from pointer target type
.././bfd/archures.c: At top level:
.././bfd/archures.c:585: error: conflicting types for 'bfd_arch_list'
.././bfd/bfd.h:1836: error: previous declaration of 'bfd_arch_list' was here
.././bfd/archures.c:644: error: conflicting types for 'bfd_arch_get_compatible'
.././bfd/bfd.h:1839: error: previous declaration of 'bfd_arch_get_compatible' was here
.././bfd/archures.c:682: warning: initialization from incompatible pointer type
.././bfd/archures.c:683: warning: initialization from incompatible pointer type
.././bfd/archures.c:700: error: conflicting types for 'bfd_set_arch_info'
.././bfd/bfd.h:1841: error: previous declaration of 'bfd_set_arch_info' was here
.././bfd/archures.c: In function 'bfd_set_arch_info':
.././bfd/archures.c:701: warning: assignment discards qualifiers from pointer target type
.././bfd/archures.c: In function 'bfd_default_set_arch_mach':
.././bfd/archures.c:728: warning: assignment discards qualifiers from pointer target type
.././bfd/archures.c: At top level:
.././bfd/archures.c:1071: error: conflicting types for 'bfd_get_arch_info'
.././bfd/bfd.h:1851: error: previous declaration of 'bfd_get_arch_info' was here
.././bfd/archures.c:1092: error: conflicting types for 'bfd_lookup_arch'
.././bfd/bfd.h:1854: error: previous declaration of 'bfd_lookup_arch' was here
.././bfd/archures.c:1126: error: conflicting types for 'bfd_printable_arch_mach'
.././bfd/bfd.h:1857: error: previous declaration of 'bfd_printable_arch_mach' was here
make[2]: *** [archures.lo] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2





> sudo gcc_select 3.3; make



make all-recursive
Making all in doc
make[2]: Nothing to be done for `all'.
Making all in po
make[2]: Nothing to be done for `all'.
/bin/sh ./libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I.././bfd - I. -D_GNU_SOURCE -I. -I.././bfd -I.././bfd/../include -I.././ bfd/../intl -I../intl -W -Wall -Wstrict-prototypes -Wmissing- prototypes -traditional-cpp -c -DDEFAULT_VECTOR=bfd_elf32_msp430_vec - DSELECT_VECS='&bfd_elf32_msp430_vec,&bfd_elf32_little_generic_vec,&bfd_e lf32_big_generic_vec' -DSELECT_ARCHITECTURES='&bfd_msp430_arch' - DHAVE_bfd_elf32_msp430_vec -DHAVE_bfd_elf32_little_generic_vec - DHAVE_bfd_elf32_big_generic_vec .././bfd/archures.c
gcc -DHAVE_CONFIG_H -I. -I.././bfd -I. -D_GNU_SOURCE -I. -I.././bfd - I.././bfd/../include -I.././bfd/../intl -I../intl -W -Wall -Wstrict- prototypes -Wmissing-prototypes -traditional-cpp -c - DDEFAULT_VECTOR=bfd_elf32_msp430_vec "- DSELECT_VECS=&bfd_elf32_msp430_vec,&bfd_elf32_little_generic_vec,&bfd_el f32_big_generic_vec" "-DSELECT_ARCHITECTURES=&bfd_msp430_arch" - DHAVE_bfd_elf32_msp430_vec -DHAVE_bfd_elf32_little_generic_vec - DHAVE_bfd_elf32_big_generic_vec .././bfd/archures.c -o archures.o
../bfd/archures.c:536: error: conflicting types for `bfd_printable_name'
../bfd/bfd.h:1832: error: previous declaration of `bfd_printable_name'
../bfd/archures.c:555: error: conflicting types for `bfd_scan_arch'
../bfd/bfd.h:1834: error: previous declaration of `bfd_scan_arch'
../bfd/archures.c: In function `bfd_scan_arch':
../bfd/archures.c:563: warning: passing arg 1 of pointer to function discards qualifiers from pointer target type
../bfd/archures.c:563: warning: passing arg 2 of pointer to function discards qualifiers from pointer target type
../bfd/archures.c: At top level:
../bfd/archures.c:585: error: conflicting types for `bfd_arch_list'
../bfd/bfd.h:1836: error: previous declaration of `bfd_arch_list'
../bfd/archures.c:644: error: conflicting types for `bfd_arch_get_compatible'
../bfd/bfd.h:1839: error: previous declaration of `bfd_arch_get_compatible'
../bfd/archures.c:682: warning: initialization from incompatible pointer type
../bfd/archures.c:683: warning: initialization from incompatible pointer type
../bfd/archures.c:700: error: conflicting types for `bfd_set_arch_info'
../bfd/bfd.h:1841: error: previous declaration of `bfd_set_arch_info'
../bfd/archures.c: In function `bfd_set_arch_info':
../bfd/archures.c:701: warning: assignment discards qualifiers from pointer target type
../bfd/archures.c: In function `bfd_default_set_arch_mach':
../bfd/archures.c:728: warning: assignment discards qualifiers from pointer target type
../bfd/archures.c: At top level:
../bfd/archures.c:1071: error: conflicting types for `bfd_get_arch_info'
../bfd/bfd.h:1851: error: previous declaration of `bfd_get_arch_info'
../bfd/archures.c:1092: error: conflicting types for `bfd_lookup_arch'
../bfd/bfd.h:1854: error: previous declaration of `bfd_lookup_arch'
../bfd/archures.c:1126: error: conflicting types for `bfd_printable_arch_mach'
../bfd/bfd.h:1857: error: previous declaration of `bfd_printable_arch_mach'
make[2]: *** [archures.lo] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2



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