Opened 16 years ago

Last modified 6 years ago

#18161 assigned defect

i386-elf-binutils 2.18.50.0.9_0 fails to build on Tiger

Reported by: horst@… Owned by:
Priority: Normal Milestone:
Component: ports Version: 1.7.0
Keywords: tiger Cc: robbie@…, danfuzz@…, skylargivens+macports@…
Port: i386-elf-binutils

Description

I have the following i386-elf-binutils build problem for months now. I'm still using OS X 10.4.11. Please ask for details if you need more.

# port outdated
The following installed ports are outdated:
i386-elf-binutils              2.17_0 < 2.18.50.0.9_0             
# port upgrade i386-elf-binutils
--->  Fetching i386-elf-binutils
--->  Verifying checksum(s) for i386-elf-binutils
--->  Extracting i386-elf-binutils
--->  Configuring i386-elf-binutils
--->  Building i386-elf-binutils
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-elf-binutils/work/build" && make all " returned error 2
Command output: libtool: compile:  cc -no-cpp-precomp -I/opt/local/include -DHAVE_CONFIG_H -I. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-elf-binutils/work/binutils-2.18.50.0.9/bfd -I. -I. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-elf-binutils/work/binutils-2.18.50.0.9/bfd -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-elf-binutils/work/binutils-2.18.50.0.9/bfd/../include -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -O2 -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-elf-binutils/work/binutils-2.18.50.0.9/bfd/stab-syms.c -o stab-syms.o
/bin/sh ./libtool --tag=CC --mode=compile cc -no-cpp-precomp -I/opt/local/include -DHAVE_CONFIG_H -I. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-elf-binutils/work/binutils-2.18.50.0.9/bfd -I. -I. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-elf-binutils/work/binutils-2.18.50.0.9/bfd -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-elf-binutils/work/binutils-2.18.50.0.9/bfd/../include     -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -O2 -c -o merge.lo /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-elf-binutils/work/binutils-2.18.50.0.9/bfd/merge.c
libtool: compile:  cc -no-cpp-precomp -I/opt/local/include -DHAVE_CONFIG_H -I. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-elf-binutils/work/binutils-2.18.50.0.9/bfd -I. -I. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-elf-binutils/work/binutils-2.18.50.0.9/bfd -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-elf-binutils/work/binutils-2.18.50.0.9/bfd/../include -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -O2 -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-elf-binutils/work/binutils-2.18.50.0.9/bfd/merge.c -o merge.o
/bin/sh ./libtool --mode=compile cc -no-cpp-precomp -I/opt/local/include -DHAVE_CONFIG_H -I. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-elf-binutils/work/binutils-2.18.50.0.9/bfd -I. -I. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-elf-binutils/work/binutils-2.18.50.0.9/bfd -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-elf-binutils/work/binutils-2.18.50.0.9/bfd/../include     -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -O2 -c -DDEBUGDIR=\"/opt/local/lib/debug\" /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-elf-binutils/work/binutils-2.18.50.0.9/bfd/dwarf2.c
libtool: compile:  cc -no-cpp-precomp -I/opt/local/include -DHAVE_CONFIG_H -I. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-elf-binutils/work/binutils-2.18.50.0.9/bfd -I. -I. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-elf-binutils/work/binutils-2.18.50.0.9/bfd -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-elf-binutils/work/binutils-2.18.50.0.9/bfd/../include -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -O2 -c -DDEBUGDIR=\"/opt/local/lib/debug\" /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-elf-binutils/work/binutils-2.18.50.0.9/bfd/dwarf2.c -o dwarf2.o
/bin/sh ./libtool --tag=CC --mode=compile cc -no-cpp-precomp -I/opt/local/include -DHAVE_CONFIG_H -I. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-elf-binutils/work/binutils-2.18.50.0.9/bfd -I. -I. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-elf-binutils/work/binutils-2.18.50.0.9/bfd -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-elf-binutils/work/binutils-2.18.50.0.9/bfd/../include     -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -O2 -c -o simple.lo /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-elf-binutils/work/binutils-2.18.50.0.9/bfd/simple.c
libtool: compile:  cc -no-cpp-precomp -I/opt/local/include -DHAVE_CONFIG_H -I. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-elf-binutils/work/binutils-2.18.50.0.9/bfd -I. -I. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-elf-binutils/work/binutils-2.18.50.0.9/bfd -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-elf-binutils/work/binutils-2.18.50.0.9/bfd/../include -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -O2 -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-elf-binutils/work/binutils-2.18.50.0.9/bfd/simple.c -o simple.o
/bin/sh ./libtool --tag=CC --mode=compile cc -no-cpp-precomp -I/opt/local/include -DHAVE_CONFIG_H -I. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-elf-binutils/work/binutils-2.18.50.0.9/bfd -I. -I. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-elf-binutils/work/binutils-2.18.50.0.9/bfd -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-elf-binutils/work/binutils-2.18.50.0.9/bfd/../include     -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -O2 -c -o compress.lo /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-elf-binutils/work/binutils-2.18.50.0.9/bfd/compress.c
libtool: compile:  cc -no-cpp-precomp -I/opt/local/include -DHAVE_CONFIG_H -I. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-elf-binutils/work/binutils-2.18.50.0.9/bfd -I. -I. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-elf-binutils/work/binutils-2.18.50.0.9/bfd -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-elf-binutils/work/binutils-2.18.50.0.9/bfd/../include -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -O2 -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-elf-binutils/work/binutils-2.18.50.0.9/bfd/compress.c -o compress.o
rm -f elf32-target.h
sed -e s/NN/32/g < /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-elf-binutils/work/binutils-2.18.50.0.9/bfd/elfxx-target.h > elf32-target.new
mv -f elf32-target.new elf32-target.h
/bin/sh ./libtool --tag=CC --mode=compile cc -no-cpp-precomp -I/opt/local/include -DHAVE_CONFIG_H -I. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-elf-binutils/work/binutils-2.18.50.0.9/bfd -I. -I. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-elf-binutils/work/binutils-2.18.50.0.9/bfd -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-elf-binutils/work/binutils-2.18.50.0.9/bfd/../include     -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -O2 -c -o elf32-i386.lo /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-elf-binutils/work/binutils-2.18.50.0.9/bfd/elf32-i386.c
libtool: compile:  cc -no-cpp-precomp -I/opt/local/include -DHAVE_CONFIG_H -I. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-elf-binutils/work/binutils-2.18.50.0.9/bfd -I. -I. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-elf-binutils/work/binutils-2.18.50.0.9/bfd -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-elf-binutils/work/binutils-2.18.50.0.9/bfd/../include -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -O2 -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-elf-binutils/work/binutils-2.18.50.0.9/bfd/elf32-i386.c -o elf32-i386.o
/bin/sh ./libtool --tag=CC --mode=compile cc -no-cpp-precomp -I/opt/local/include -DHAVE_CONFIG_H -I. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-elf-binutils/work/binutils-2.18.50.0.9/bfd -I. -I. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-elf-binutils/work/binutils-2.18.50.0.9/bfd -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-elf-binutils/work/binutils-2.18.50.0.9/bfd/../include     -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -O2 -c -o elf-vxworks.lo /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-elf-binutils/work/binutils-2.18.50.0.9/bfd/elf-vxworks.c
libtool: compile:  cc -no-cpp-precomp -I/opt/local/include -DHAVE_CONFIG_H -I. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-elf-binutils/work/binutils-2.18.50.0.9/bfd -I. -I. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-elf-binutils/work/binutils-2.18.50.0.9/bfd -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-elf-binutils/work/binutils-2.18.50.0.9/bfd/../include -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -O2 -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-elf-binutils/work/binutils-2.18.50.0.9/bfd/elf-vxworks.c -o elf-vxworks.o
/bin/sh ./libtool --tag=CC --mode=compile cc -no-cpp-precomp -I/opt/local/include -DHAVE_CONFIG_H -I. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-elf-binutils/work/binutils-2.18.50.0.9/bfd -I. -I. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-elf-binutils/work/binutils-2.18.50.0.9/bfd -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-elf-binutils/work/binutils-2.18.50.0.9/bfd/../include     -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -O2 -c -o elf32.lo /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-elf-binutils/work/binutils-2.18.50.0.9/bfd/elf32.c

libtool: compile:  cc -no-cpp-precomp -I/opt/local/include -DHAVE_CONFIG_H -I. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-elf-binutils/work/binutils-2.18.50.0.9/bfd -I. -I. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-elf-binutils/work/binutils-2.18.50.0.9/bfd -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-elf-binutils/work/binutils-2.18.50.0.9/bfd/../include -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -O2 -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-elf-binutils/work/binutils-2.18.50.0.9/bfd/elf32.c -o elf32.o
cc1: warnings being treated as errors
In file included from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-elf-binutils/work/binutils-2.18.50.0.9/bfd/elf32.c:23:
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-elf-binutils/work/binutils-2.18.50.0.9/bfd/elfcode.h: In function 'bfd_elf32_swap_symbol_in':
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-elf-binutils/work/binutils-2.18.50.0.9/bfd/elfcode.h:198: warning: implicit declaration of function 'bfd_has_gap_in_elf_shndx'
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-elf-binutils/work/binutils-2.18.50.0.9/bfd/elfcode.h: In function 'bfd_elf32_object_p':
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-elf-binutils/work/binutils-2.18.50.0.9/bfd/elfcode.h:780: error: invalid lvalue in assignment
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-elf-binutils/work/binutils-2.18.50.0.9/bfd/elfcode.h:792: error: invalid lvalue in assignment
make[4]: *** [elf32.lo] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-bfd] Error 2
make: *** [all] Error 2

Error: Unable to upgrade port: 1

Change History (19)

comment:1 Changed 16 years ago by jmroot (Joshua Root)

Cc: pguyot@… added
Owner: changed from macports-tickets@… to stepan@…
Port: i386-elf-binutils added

comment:2 Changed 16 years ago by robbie@…

Cc: robbie@… added

Cc Me!

comment:3 Changed 16 years ago by robbie@…

I have the same problem on Leopard 10.5.6. Exactly the same failure message:

libtool: compile:  cc -no-cpp-precomp -I/opt/local/include -DHAVE_CONFIG_H -I. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-elf-binutils/work/binutils-2.18.50.0.9/bfd -I. -I. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-elf-binutils/work/binutils-2.18.50.0.9/bfd -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-elf-binutils/work/binutils-2.18.50.0.9/bfd/../include -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -O2 -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-elf-binutils/work/binutils-2.18.50.0.9/bfd/elf32.c -o elf32.o
cc1: warnings being treated as errors
In file included from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-elf-binutils/work/binutils-2.18.50.0.9/bfd/elf32.c:23:
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-elf-binutils/work/binutils-2.18.50.0.9/bfd/elfcode.h: In function 'bfd_elf32_swap_symbol_in':
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-elf-binutils/work/binutils-2.18.50.0.9/bfd/elfcode.h:198: warning: implicit declaration of function 'bfd_has_gap_in_elf_shndx'
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-elf-binutils/work/binutils-2.18.50.0.9/bfd/elfcode.h: In function 'bfd_elf32_object_p':
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-elf-binutils/work/binutils-2.18.50.0.9/bfd/elfcode.h:780: error: invalid lvalue in assignment
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-elf-binutils/work/binutils-2.18.50.0.9/bfd/elfcode.h:792: error: invalid lvalue in assignment
make[4]: *** [elf32.lo] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-bfd] Error 2
make: *** [all] Error 2

Error: The following dependencies failed to build: i386-elf-binutils mpfr lzmautils
Error: Status 1 encountered during processing.

comment:4 Changed 16 years ago by robbie@…

Again, but with a code block!

libtool: compile:  cc -no-cpp-precomp -I/opt/local/include -DHAVE_CONFIG_H -I. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-elf-binutils/work/binutils-2.18.50.0.9/bfd -I. -I. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-elf-binutils/work/binutils-2.18.50.0.9/bfd -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-elf-binutils/work/binutils-2.18.50.0.9/bfd/../include -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -O2 -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-elf-binutils/work/binutils-2.18.50.0.9/bfd/elf32.c -o elf32.o
cc1: warnings being treated as errors
In file included from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-elf-binutils/work/binutils-2.18.50.0.9/bfd/elf32.c:23:
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-elf-binutils/work/binutils-2.18.50.0.9/bfd/elfcode.h: In function 'bfd_elf32_swap_symbol_in':
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-elf-binutils/work/binutils-2.18.50.0.9/bfd/elfcode.h:198: warning: implicit declaration of function 'bfd_has_gap_in_elf_shndx'
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-elf-binutils/work/binutils-2.18.50.0.9/bfd/elfcode.h: In function 'bfd_elf32_object_p':
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-elf-binutils/work/binutils-2.18.50.0.9/bfd/elfcode.h:780: error: invalid lvalue in assignment
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-elf-binutils/work/binutils-2.18.50.0.9/bfd/elfcode.h:792: error: invalid lvalue in assignment
make[4]: *** [elf32.lo] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-bfd] Error 2
make: *** [all] Error 2

Error: The following dependencies failed to build: i386-elf-binutils mpfr lzmautils
Error: Status 1 encountered during processing.

comment:5 Changed 16 years ago by mf2k (Frank Schima)

What version of Xcode are you running? It builds fine for me on Mac OS X 10.5.6 Intel with Xcode 3.1.2.

comment:6 Changed 16 years ago by robbie@…

It looks like bfd.h is getting generated in build, but is needed by headers in binutils-2.18.50.0.9/bfd (sepcifically elfcode.h). It also seems to be not finding include/bfdlink.h.

I'm not sure why these missing headers aren't generating their own warnings, but symlinking these in binutils-2.18.50.0.9/bfd seems to fix some of the problems.

comment:7 Changed 16 years ago by robbie@…

I'm also running Xcode 3.1.2

riannucci@meeptop:/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-elf-binutils/work/binutils-2.18.50.0.9/bfd
Fri Feb 20 - 13:08:16 $ which gcc
/usr/bin/gcc
riannucci@meeptop:/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-elf-binutils/work/binutils-2.18.50.0.9/bfd
Fri Feb 20 - 13:10:38 $ gcc --version
i686-apple-darwin9-gcc-4.0.1 (GCC) 4.0.1 (Apple Inc. build 5490)
Copyright (C) 2005 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.

comment:8 Changed 16 years ago by robbie@…

I think that the include paths are somehow broken... any ideas?

I have to symlink bfd.h and bfdlink.h in the ld subdirectory as well, and also in the build/ld subdirectory.

comment:9 Changed 16 years ago by sramsesiv@…

I was also able to get past the problems with the following:

sudo ln -s ../../build/bfd/bfd.h /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_arm-elf-binutils/work/binutils-2.18.50.0.9/bfd
sudo ln -s ../include/bfdlink.h /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_arm-elf-binutils/work/binutils-2.18.50.0.9/bfd
sudo ln -s ../include/bfdlink.h /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_arm-elf-binutils/work/binutils-2.18.50.0.9/ld

comment:10 Changed 16 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

comment:11 in reply to:  10 ; Changed 15 years ago by jovo@…

Replying to None:

Milestone Port Bugs deleted

Trying to compile this port with the here suggested symlinks applied, leaves me with the following error:

 sudo port install i386-elf-binutils
--->  Building i386-elf-binutils
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-elf-binutils/work/build" && make all " returned error 2
Command output: make[3]: Nothing to be done for `all'.
make[2]: Nothing to be done for `all'.
Making info in doc
make[3]: Nothing to be done for `info'.
Making info in po
make[3]: Nothing to be done for `info'.
make[3]: Nothing to be done for `info-am'.
make  all-recursive
Making all in doc
make[4]: Nothing to be done for `all'.
Making all in po
make[4]: Nothing to be done for `all'.
/bin/sh ./libtool --tag=CC --mode=compile cc -no-cpp-precomp -I/opt/local/include -DHAVE_CONFIG_H -I. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-elf-binutils/work/binutils-2.18.50.0.9/bfd -I. -I. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-elf-binutils/work/binutils-2.18.50.0.9/bfd -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-elf-binutils/work/binutils-2.18.50.0.9/bfd/../include     -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -O2 -c -o elflink.lo /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-elf-binutils/work/binutils-2.18.50.0.9/bfd/elflink.c
libtool: compile:  cc -no-cpp-precomp -I/opt/local/include -DHAVE_CONFIG_H -I. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-elf-binutils/work/binutils-2.18.50.0.9/bfd -I. -I. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-elf-binutils/work/binutils-2.18.50.0.9/bfd -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-elf-binutils/work/binutils-2.18.50.0.9/bfd/../include -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -O2 -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-elf-binutils/work/binutils-2.18.50.0.9/bfd/elflink.c -o elflink.o
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-elf-binutils/work/binutils-2.18.50.0.9/bfd/elflink.c: In function '_bfd_elf_create_dynamic_sections':
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-elf-binutils/work/binutils-2.18.50.0.9/bfd/elflink.c:357: error: 'struct bfd_link_info' has no member named 'sharable_sections'
make[4]: *** [elflink.lo] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-bfd] Error 2
make: *** [all] Error 2

Error: Status 1 encountered during processing.
$ 

These are the symlinks applied (with explicit paths for clarity)

sudo ln -s /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-elf-binutils/work/build/bfd/bfd.h /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-elf-binutils/work/binutils-2.18.50.0.9/bfd

sudo ln -s /opt/local/include/bfdlink.h /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-elf-binutils/work/binutils-2.18.50.0.9/bfd

sudo ln -s /opt/local/include/bfdlink.h /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-elf-binutils/work/binutils-2.18.50.0.9/ld

Is there a workaround for this?

Regards, Johan

comment:12 in reply to:  11 Changed 15 years ago by danfuzz@…

Replying to jovo@…:

Trying to compile this port with the here suggested symlinks applied, leaves me with the following error:

/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-elf-binutils/work/binutils-2.18.50.0.9/bfd/elflink.c: In function '_bfd_elf_create_dynamic_sections':
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-elf-binutils/work/binutils-2.18.50.0.9/bfd/elflink.c:357: error: 'struct bfd_link_info' has no member named 'sharable_sections'

I am seeing the same thing.

comment:13 Changed 15 years ago by danfuzz@…

Cc: danfuzz@… added

Cc Me!

comment:14 Changed 15 years ago by skylargivens+macports@…

Cc: skylargivens+macports@… added

Cc Me!

comment:15 Changed 15 years ago by jmroot (Joshua Root)

Keywords: tiger added

comment:16 Changed 15 years ago by jmroot (Joshua Root)

Cc: pguyot@… removed
Owner: changed from stepan@… to jinksys@…

comment:17 Changed 14 years ago by jmroot (Joshua Root)

Summary: i386-elf-binutils 2.18.50.0.9_0 fails to buildi386-elf-binutils 2.18.50.0.9_0 fails to build on Tiger

comment:18 Changed 13 years ago by jmroot (Joshua Root)

Does this still happen with 2.20?

comment:19 Changed 6 years ago by mf2k (Frank Schima)

Owner: jinksys@… deleted
Status: newassigned

See #58020.

Note: See TracTickets for help on using tickets.