Bug 18142 - "Unknown pseudo-op: .machine" compiling darwin-crt2.c
Summary: "Unknown pseudo-op: .machine" compiling darwin-crt2.c
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: bootstrap (show other bugs)
Version: 4.0.0
: P2 minor
Target Milestone: 4.0.0
Assignee: Not yet assigned to anyone
URL:
Keywords: diagnostic
: 18627 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-10-25 12:05 UTC by Per Bothner
Modified: 2004-12-01 00:40 UTC (History)
2 users (show)

See Also:
Host: powerpc-apple-darwin7.5.0
Target: powerpc-apple-darwin7.5.0
Build: powerpc-apple-darwin7.5.0
Known to work:
Known to fail:
Last reconfirmed: 2004-11-20 18:45:17


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Per Bothner 2004-10-25 12:05:26 UTC
Gcc head has been failing to bootstrap for me for weeks now.
I'm astounded to find this going on, and not finding a match in bugzilla;
I don't think I have anything special in my set-up.  This is a vanilla Mac G$
running OS X 10.3.5 "Panther".  Is nobody else seeing this?

No options to configure except a --prefix.

The bootstrap ends with:

./xgcc -B./ -B/Users/bothner/GNU/install-gcc/powerpc-apple-darwin7.5.0/bin/ -isy
stem /Users/bothner/GNU/install-gcc/powerpc-apple-darwin7.5.0/include -isystem /
Users/bothner/GNU/install-gcc/powerpc-apple-darwin7.5.0/sys-include -L/Users/bot
hner/GNU/build-gcc.head/gcc/../ld -DIN_GCC    -W -Wall -Wwrite-strings -Wstrict-
prototypes -Wmissing-prototypes -Wold-style-definition  -isystem ./include  -I. 
-I. -I/Users/bothner/GNU/gcc.head/gcc -I/Users/bothner/GNU/gcc.head/gcc/. -I/Use
rs/bothner/GNU/gcc.head/gcc/../include -I./../intl -I/Users/bothner/GNU/gcc.head
/gcc/../libcpp/include   \
  -c /Users/bothner/GNU/gcc.head/gcc/config/darwin-crt2.c -o crt2.o
/var/tmp//ccLVOez4.s:1:Unknown pseudo-op: .machine
/var/tmp//ccLVOez4.s:1:Rest of line ignored. 1st junk character valued 112 (p).
/var/tmp//ccLVOez4.s:319:Unknown pseudo-op: .subsections_via_symbols
make[2]: *** [crt2.o] Error 1
Comment 1 Andrew Pinski 2004-10-25 12:41:08 UTC
You need a new cctools see:
http://gcc.gnu.org/ml/gcc-patches/2004-10/msg01222.html
for details.
Comment 2 Per Bothner 2004-10-25 13:18:05 UTC
I think this should remain open as long as we don't have a configure-time check
to warn about an invalid assembler.  Otherwise the support burden will be
intolerable.  Kelley's configure patch to check the assembler was reverted on
Oct 20 (I missed why); we clearly need *something*.
Comment 3 Andrew Pinski 2004-10-25 13:21:29 UTC
It was reverted because it made a cross compiler to powerpc-darwin imposiable if you only wantted a 
cc1 and not a full fledge compiler (which is useful when debuging bugs).
Comment 4 Andrew Pinski 2004-11-20 18:45:17 UTC
Confirmed, this is minor as the problem is that you need a new binutils as reported before.
Comment 5 Per Bothner 2004-11-20 19:30:26 UTC
It's minor if we accept that people who run Darwin without the
updated binutils and try to build from source will get an error message
without any clue about what to do.  Perhaps we can hope there aren't very many
such people, or all/most of them will have read the release notes.
But it seems to me obvious that re-applying Kelley's patch (imperfect
though it might be) is an improvement over the current situation.
Comment 6 Andrew Pinski 2004-11-23 14:57:43 UTC
*** Bug 18627 has been marked as a duplicate of this bug. ***
Comment 7 Andrew Pinski 2004-11-27 03:12:11 UTC
*** Bug 18627 has been marked as a duplicate of this bug. ***
Comment 8 GCC Commits 2004-11-28 06:06:41 UTC
Subject: Bug 18142

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	bothner@gcc.gnu.org	2004-11-28 06:06:29

Modified files:
	gcc            : configure.ac configure ChangeLog 

Log message:
	PR bootstrap/18142
	Re-applied following, with two modifications: add a URL for the
	fixed cctools; only exit if $build = $target.
	
	2004-10-18  Kelley Cook  <kcook@gcc.gnu.org>
	* configure.ac (powerpc-*-darwin*): Require assembler to support
	.machine directive.
	* configure: Regenerate.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/configure.ac.diff?cvsroot=gcc&r1=2.85&r2=2.86
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/configure.diff?cvsroot=gcc&r1=1.876&r2=1.877
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.6594&r2=2.6595

Comment 9 Per Bothner 2004-11-28 06:33:10 UTC
I consider the bug fixed now that configure gives a useful error
message telling people to get a fixed cctools.

Though with one reservation: 18627 comment #2 reports problems
with installing the new cctools.