Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

"as" is corrupted

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
12 posts • Page 1 of 1
Author
Message
Stern
n00b
n00b
Posts: 12
Joined: Sun Sep 03, 2006 3:24 pm

"as" is corrupted

  • Quote

Post by Stern » Sat Mar 03, 2007 9:50 pm

Linux was working great for a while, and I wasn't having any problems with it. I stopped using it for a few months (had no need, wasn't programming much anymore). I decided to start it up the other day to try to install something through Wine. When I went to compile wine, I got an error that said that my compiler couldn't create executables. After doing some testing, I came to the conclusion that "as", the assembler, was corrupted. Because of this, I am unable to compile a new one.

I'm running the latest stable version of binutils (2.16.1-r3 is the latest stable one for amd64) on an Athlon 64 FX-53 with gcc 4.1.1 (as far as I remember). Would it be possible that someone who has configured portage with -march=k8 could either compile binutils for me and send me "as", or just send me their copy (if it's the same one)?

I'd really rather not re-install linux...

Thanks in advance.
Top
PaulBredbury
Watchman
Watchman
User avatar
Posts: 7310
Joined: Thu Jul 14, 2005 3:47 pm

Re: "as" is corrupted

  • Quote

Post by PaulBredbury » Sat Mar 03, 2007 11:48 pm

Stern wrote:my compiler couldn't create executables.
See FAQ.
Top
Assgier
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 127
Joined: Wed May 28, 2003 12:37 am
Location: Europe -> Netherlands -> Utrecht -> Amersfoort

  • Quote

Post by Assgier » Sat Mar 03, 2007 11:49 pm

What exact error are you getting when 'as' is executed from within wine's configure script?

You might want to check your CFLAGS (in /etc/make.conf) with the safe cflags list and eventually edit it according.
Afterwards, try to remerge libtool and binutils.

Should the problem persist, then please post your 'emerge --info'-output here, as wel as outputs from faulty emerge-tries, config.log files etc :)
8)
Top
Stern
n00b
n00b
Posts: 12
Joined: Sun Sep 03, 2006 3:24 pm

  • Quote

Post by Stern » Sun Mar 04, 2007 1:01 am

The error's not just with wine, whenever I try to compile something (even a basic hello world program) gcc segfaults in program as (pretty much what it says). If I use the gcc argument to compile and not assemble or link, it completes successfully. If I use the gcc argument to compile and assemble but not link, I get the segfault in as. If I just compile it then separately run as on the output, it segfaults. Nothing's changed since it was last working.

As I had said, I can't re-emerge libtool or binutils (or anything) because as just doesn't work. It segfaults every time.
Top
Assgier
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 127
Joined: Wed May 28, 2003 12:37 am
Location: Europe -> Netherlands -> Utrecht -> Amersfoort

  • Quote

Post by Assgier » Sun Mar 04, 2007 1:28 am

I have compiled an 'as'-binary for you, using -march=k8. It should be in your mailbox :)

If that binary also segfaults, the problem is not in the 'as'-binary itself. You should then use ldd and/or gdb to (back)trace the segfault to the file (probably a library file, used by 'as') and replace it with a working version.
8)
Top
Stern
n00b
n00b
Posts: 12
Joined: Sun Sep 03, 2006 3:24 pm

  • Quote

Post by Stern » Sun Mar 04, 2007 3:42 am

Some new problems were encountered when trying to run your binary, I sent you an email about it.

To everyone else, here's the errors:

localhost Desktop # gcc hello.c
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../x86_64-pc-linux-gnu/bin/as: line 87: cd: /var/tmp/portage/sys-devel/binutils-2.16.1-r3/work/build/gas: No such file or directory
gcc: app.o: No such file or directory
gcc: as.o: No such file or directory
gcc: atof-generic.o: No such file or directory
gcc: bignum-copy.o: No such file or directory
gcc: cond.o: No such file or directory
gcc: depend.o: No such file or directory
gcc: dwarf2dbg.o: No such file or directory
gcc: dw2gencfi.o: No such file or directory
gcc: ecoff.o: No such file or directory
gcc: ehopt.o: No such file or directory
gcc: expr.o: No such file or directory
gcc: flonum-copy.o: No such file or directory
gcc: flonum-konst.o: No such file or directory
gcc: flonum-mult.o: No such file or directory
gcc: frags.o: No such file or directory
gcc: hash.o: No such file or directory
gcc: input-file.o: No such file or directory
gcc: input-scrub.o: No such file or directory
gcc: listing.o: No such file or directory
gcc: literal.o: No such file or directory
gcc: macro.o: No such file or directory
gcc: messages.o: No such file or directory
gcc: output-file.o: No such file or directory
gcc: read.o: No such file or directory
gcc: sb.o: No such file or directory
gcc: stabs.o: No such file or directory
gcc: subsegs.o: No such file or directory
gcc: symbols.o: No such file or directory
gcc: write.o: No such file or directory
gcc: tc-i386.o: No such file or directory
gcc: obj-elf.o: No such file or directory
gcc: atof-ieee.o: No such file or directory
gcc: ../bfd/.libs/libbfd.so: No such file or directory
gcc: ../libiberty/libiberty.a: No such file or directory


Seems to me like a partly-compiled binary, but I don't really know.
Top
Assgier
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 127
Joined: Wed May 28, 2003 12:37 am
Location: Europe -> Netherlands -> Utrecht -> Amersfoort

  • Quote

Post by Assgier » Sun Mar 04, 2007 4:15 am

I didn't expect the created 'as'-binary to be linking to the temp directory in /var/tmp/portage :?

I indeed interrupted the compiling process after the 'as' binary was done compiling, it would be all you need...
As a next trial, i created a full binary package for you, sent to your mailbox.

Here's how to use it, in case you don't already know:

1) put the file in /usr/portage/packages/All/ (create directories if necessary, you probably have to if you haven't used binary packages before)
2) run emerge -K binutils

It should emerge the binary package over your current binutils installation. After that it should work and i suggest the first thing to do afterwards is to re-merge binutils to compile your own binutils version against your own CFLAGS, USE-list etc :)

There may be one problem tough; the binary package i created is using /usr/i686-pc-linux-gnu/ (i have a singlecore P4 CPU) to install it's binaries while yours is /usr/x86_64-pc-linux-gnu/. As a consequence you may be required to do some moving afterwards. You could try to create a symlink from /usr/i686-pc-linux-gnu/ to /usr/x86_64-pc-linux-gnu/ before emerging the binary package.
8)
Top
Stern
n00b
n00b
Posts: 12
Joined: Sun Sep 03, 2006 3:24 pm

  • Quote

Post by Stern » Mon Mar 05, 2007 1:30 am

Well, it worked if I tried to compile something using gcc32, but not the 64-bit version of gcc.

Could someone with a K8 processor create a binary package of binutils-2.16.1-r3 for me?

Thanks in advance.
Top
Stern
n00b
n00b
Posts: 12
Joined: Sun Sep 03, 2006 3:24 pm

  • Quote

Post by Stern » Wed Mar 21, 2007 12:41 am

bump.
Top
Stern
n00b
n00b
Posts: 12
Joined: Sun Sep 03, 2006 3:24 pm

  • Quote

Post by Stern » Fri Mar 23, 2007 7:30 pm

bump.

Look, all you have to do is run "emerge -B binutils" on your amd64 machine that uses -march=k8 and send me the package that it creates.
Top
loki_val
Retired Dev
Retired Dev
Posts: 418
Joined: Mon Nov 13, 2006 11:03 am
Location: Denmark

  • Quote

Post by loki_val » Fri Mar 23, 2007 8:51 pm

Tinderbox rockz.
I think you'll find most of your needs are met by this link
Top
Stern
n00b
n00b
Posts: 12
Joined: Sun Sep 03, 2006 3:24 pm

  • Quote

Post by Stern » Sat Mar 24, 2007 6:20 pm

Wow thanks! I never knew that something like that existed for gentoo.

I searched for ages and never found a binary package mirror...

Thanks again!
Top
Post Reply

12 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic