Opened 18 years ago

Closed 18 years ago

#956 closed bug (fixed)

Building on linux fails during configuring

Reported by: elmo Owned by: bonefish
Priority: normal Milestone: R1
Component: Build System Version: R1/pre-alpha1
Keywords: Cc:
Blocked By: Blocking:
Platform: x86

Description

I'm trying to build buildtools and Haiku on Linux, Pentium-M, GCC 4.1.1, glibc 2.4-hrev3.

I followed the instructions here: http://haiku-os.org/wiki/index.php?title=Getting_Linux_Developer_Tools but ran into problems. Then I discovered that a README is supplied with the sources, but it gave the same errors. Here's the log:

~/haiku $ ./configure --build-cross-tools-gcc4 x86 ../beos/buildtools creating cache ./config.cache checking host system type... i686-pc-linux-gnu checking target system type... config.sub: invalid option --targeti586-pc-haiku Try `config.sub --help' for more information. checking build system type... i686-pc-linux-gnu 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 -O2 ) works... yes checking whether the C compiler (gcc -O2 ) 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... yes checking for MPFR... yes checking for bison... bison checking for bison... bison -y checking for gm4... no checking for gnum4... no checking for m4... m4 checking for flex... flex checking for flex... flex checking for makeinfo... makeinfo checking for i686-pc-linux-gnu-ar... i686-pc-linux-gnu-ar checking for i686-pc-linux-gnu-as... i686-pc-linux-gnu-as checking for i686-pc-linux-gnu-dlltool... no checking for dlltool... dlltool checking for i686-pc-linux-gnu-ld... /usr/lib/gcc/i686-pc-linux-gnu/4.1.1/../../../../i686-pc-linux-gnu/bin/ld checking for i686-pc-linux-gnu-nm... i686-pc-linux-gnu-nm checking for i686-pc-linux-gnu-ranlib... i686-pc-linux-gnu-ranlib checking for i686-pc-linux-gnu-windres... no checking for windres... windres checking for i686-pc-linux-gnu-objcopy... i686-pc-linux-gnu-objcopy checking for i686-pc-linux-gnu-objdump... i686-pc-linux-gnu-objdump checking for --targeti586-pc-haiku-ar... no /home/elmo/beos/buildtools/binutils/configure: line 4289: test: too many arguments checking for --targeti586-pc-haiku-as... no /home/elmo/beos/buildtools/binutils/configure: line 4361: test: too many arguments checking for --targeti586-pc-haiku-dlltool... no /home/elmo/beos/buildtools/binutils/configure: line 4433: test: too many arguments checking for --targeti586-pc-haiku-ld... no /home/elmo/beos/buildtools/binutils/configure: line 4505: test: too many arguments checking for --targeti586-pc-haiku-nm... no /home/elmo/beos/buildtools/binutils/configure: line 4577: test: too many arguments checking for --targeti586-pc-haiku-ranlib... no /home/elmo/beos/buildtools/binutils/configure: line 4649: test: too many arguments checking for --targeti586-pc-haiku-windres... no /home/elmo/beos/buildtools/binutils/configure: line 4721: test: too many arguments 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 sed: file conftest.s1 line 68: unterminated `s' command make: * No targets. Stop.

Change History (6)

comment:1 by bonefish, 18 years ago

I works find here. I'm using OpenSUSE 10.2 with gcc 4.1.2, glibc 2.5 (don't think those two matter in this case), bash 3.1.17(1)-release, sed 4.1.5. It also worked before without problems under SuSE 9.2.

The first error "config.sub: invalid option --targeti586-pc-haiku" probably causes the later errors. My best guess is that you don't use bash. So try running "bash" before invoking configure.

comment:2 by bonefish, 18 years ago

Resolution: fixed
Status: newclosed

The shebang in build/scripts/build_cross_tools_gcc4 was missing. I added it in hrev20062. The problem should be fixed now.

in reply to:  description comment:3 by elmo, 18 years ago

Resolution: fixed
Status: closedreopened

Replying to elmo: The bug is back in revision 20688. By the way, I didn't try it earlier, so I don't know if it's been ever fixed. Breaks in the same place, checking target system type... config.sub: invalid option --targeti586-pc-haiku

comment:4 by bonefish, 18 years ago

Sorry, I can't help you, if you don't provide further infos. The build_cross_tools_gcc4 script passes "--target=..." to the binutils configure (cf. line 83). If the "=" gets lost, I'd blame your configuration. The shebang of our script, that of binutils' configure and config.sub is "#!/bin/sh", which should cause something UNIX shell compatible to be chosen as interpreter. If not, then your configuration is broken.

comment:5 by elmo, 18 years ago

Oh. Running it with LC_ALL= LANG= fixes the problem. I wonder... Anyway, close the bug. I've had problems with localization during configure scripts in other programs too.

comment:6 by bonefish, 18 years ago

Resolution: fixed
Status: reopenedclosed

OK, that's weird indeed.

Note: See TracTickets for help on using tickets.