-
Hello,
It looks like that Knoppix 6.7.1 is missing the header files in the /usr/include/[bits,gnu,sys] folders.
Copying these folders from Knoppix 6.7.0 fixes it. Gcc/ld may also be missing something in order to
compile 64 bits binaries (the pi benchmark as an example: http://h2np.net/pi/pi_record_e.html)
First the 64 bits libraries need to be installed: "sudo apt-get -y --reinstall install amd64-libs-dev"
and downgrade gcc from 4.6 to 4.4: "pushd /usr/bin; sudo mv gcc gcc.old; sudo ln -s gcc-4.4 gcc; popd".
FYI, trying to use gcc 4.6 (the default) instead of gcc 4.4 (downgrade) provides the following error:
gcc -O2 -pedantic -m64 conftest.c
/usr/bin/ld: skipping incompatible /usr/lib/gcc/i486-linux-gnu/4.6.1/libgcc.a when searching for -lgcc
/usr/bin/ld: cannot find -lgcc
/usr/bin/ld: skipping incompatible /usr/lib/gcc/i486-linux-gnu/4.6.1/libgcc_s.so when searching for -lgcc_s
/usr/bin/ld: cannot find -lgcc_s
collect2: ld returned 1 exit status
What is the best way to fix gcc/ld 4.6 ?
Best Regards,
Gilles
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules

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" 512e HDD NetApp X375A
$64.00

HGST Ultrastar HUS726040AL5210 4TB 7200RPM SAS 12Gb/s Enterprise HDD
$41.00

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

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

Seagate Barracuda ST1000DM003 1 TB SATA III 3.5 in Desktop Hard Drive
$23.99

Seagate ST3000NM0005 HDD 3TB SATA 6Gb/s 7.2K 3.5" 512 b/s
$59.00

Toshiba 14TB MG07 MG07ACA14TEY 7.2K RPM SATA 6Gb/s 512e 3.5" Enterprise HDD
$339.00

Seagate ST8000NM0075 Enterprise Capacity 3.5 HDD 8TB SAS Hard Drive 8TB EXOS
$184.99

Lot of 3 1TB Samsung WD Toshiba SATA 2.5" HDD Hard Drives - Wiped and Tested
$79.99