Results 1 to 10 of 10

Thread: GCC Problem

  1. #1
    Senior Member registered user
    Join Date
    Jul 2004
    Location
    Southern Maine, US
    Posts
    274

    GCC Problem

    Okay, I was trying to compile a modem driver from source, and I got this error message once I got to the make command:
    Code:
    $ make
    gcc   kernel-ver.o   -o kernel-ver
    /usr/lib/gcc-lib/i486-linux/3.3.3/../../../crt1.o: file not recognized: File truncated
    collect2: ld returned 1 exit status
    make: *** [kernel-ver] Error 1
    I updated my GCC to the latest edition, and it still gives me that message. I did a file search and crt1.o doesn't exist. I looked through the makefile and there's nothing about crt1.o. What's wrong here?

  2. #2
    Senior Member registered user
    Join Date
    Feb 2003
    Posts
    929
    My guess is that you need the kernel headers.

  3. #3
    Senior Member registered user
    Join Date
    Jul 2004
    Location
    Southern Maine, US
    Posts
    274
    Where do I get the kernel headers? As a Debian package? And would it work better with 2.4.26 kernel or the 2.6.6?

  4. #4
    Senior Member registered user
    Join Date
    Feb 2003
    Posts
    929
    The headers should match the kernel you're running. You can download them as a deb. Use Synaptic -- it's probably the easiest way.

  5. #5
    Senior Member registered user
    Join Date
    Jul 2004
    Location
    Southern Maine, US
    Posts
    274
    I can't use Synaptic or apt-get....If I could...I wouldn't be compiling a modem driver, now would I? Anyway...I found a buttload of debs at this site http://linux.org.by/debian/pool/ mai...ge-2.6.6-i386/ and downloaded some of them, but had no idea what i was doing and ended up finding myself in a long string of dependecies. Which ones do I need and which do I install first?

  6. #6
    Senior Member registered user
    Join Date
    Feb 2003
    Posts
    929
    Ah, so that's what you're doing.

    just do

    uname -a

    output on my box is:

    Linux niglo 2.6.7 #2 SMP Wed Jul 28 04:25:36 CEST 2004 i686 GNU/Linux

    but the 2.6.7 (or whatever) is the kernel you want the headers to match. You want the headers. For example (they match architectures) kernel-headers-2.4.27-2-686 if you were running 2.4.27 on a Pentium Pro/Celeron/Pentium II/Pentium III/Pentium 4.

  7. #7
    Senior Member registered user
    Join Date
    Jul 2004
    Location
    Southern Maine, US
    Posts
    274
    I'm running 2.6.6 on an i686. I already knew that. But all those files are for 386 or 686...And I can't figure out which one to download.

  8. #8
    Senior Member registered user
    Join Date
    Feb 2003
    Posts
    929
    686 is i686. The 386 will (probably) do if you've no better choice.

  9. #9
    Senior Member registered user
    Join Date
    Jul 2004
    Location
    Southern Maine, US
    Posts
    274
    Did you look at the website? They're all 686 or 386...I know about architectures...But I have no idea which file to download first...That's the problem I'm having

  10. #10
    Senior Member registered user
    Join Date
    Feb 2003
    Posts
    929
    kernel-headers-2.6.6-1-686-smp_2.6.6-1_i386.deb

    should do it.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Dell 6P85J 4TB ST4000NM0063 7.2k 6Gb/s 3.5” SAS SED Hard Drive with Tray picture

Dell 6P85J 4TB ST4000NM0063 7.2k 6Gb/s 3.5” SAS SED Hard Drive with Tray

$39.99



Western Digital HUS726T4TAL5204 4TB 7.2K SAS 12Gb/s 3.5

Western Digital HUS726T4TAL5204 4TB 7.2K SAS 12Gb/s 3.5" 512e HDD NetApp X375A

$64.00



Seagate ST8000DM004 8TB 3.5

Seagate ST8000DM004 8TB 3.5" 6Gb/s 256MB SATA HDD P/N: 2CX188-300 Tested

$149.99



DELL 2TB Enterprise HDD (7200RPM, 3.5

DELL 2TB Enterprise HDD (7200RPM, 3.5", SATA III, 128MB Cache) HUS722T2TALA600

$49.95



Seagate ST500DM009 BarraCuda 500 GB 3.5

Seagate ST500DM009 BarraCuda 500 GB 3.5" SATA III Desktop Hard Drive

$14.99



HGST HUA723030ALA640 3TB SATA 7200 RPM 3.5 in Enterprise HDD | 0F14044 (100%) picture

HGST HUA723030ALA640 3TB SATA 7200 RPM 3.5 in Enterprise HDD | 0F14044 (100%)

$45.00



HGST Ultrastar 7K4000 3TB 7200RPM SATA III 3.5

HGST Ultrastar 7K4000 3TB 7200RPM SATA III 3.5" Hard Drive HDD HUS724030ALA640

$39.99



Dell ST6000NM0034 1HT27Z-150 NWCCG 6TB SAS 3.5 7.2K ENTERPRISE SERVER DRIVE picture

Dell ST6000NM0034 1HT27Z-150 NWCCG 6TB SAS 3.5 7.2K ENTERPRISE SERVER DRIVE

$68.99



(ST8000NM0045) SEAGATE ENTERPRISE 8TB 7200RPM 4Kn SATA 6Gb/s 3.5

(ST8000NM0045) SEAGATE ENTERPRISE 8TB 7200RPM 4Kn SATA 6Gb/s 3.5" HARD DRIVE

$199.99



Tested WD Ultrastar DC HC520 12TB 7.2K RPM SATA 6Gb/s 3.5

Tested WD Ultrastar DC HC520 12TB 7.2K RPM SATA 6Gb/s 3.5" HDD HUH721212ALN600

$239.99