Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
(solved) Help a noob with wifi/wpa_supplicant (please)?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
mrbassie
Apprentice
Apprentice


Joined: 31 May 2013
Posts: 184

PostPosted: Fri Jun 14, 2013 12:00 pm    Post subject: (solved) Help a noob with wifi/wpa_supplicant (please)? Reply with quote

#Disclaimer: ok I have read the documentation and I have been googling for the better part of a week for a solution, haven't found anything that worked. I'm currently going through setting up gentoo partly as a learning experience but eventually I want to make the switch over permanently from debian as I've fallen in love with portage.

Hope I've put this in the correct subforum, if not please pardon my ignorance.

Ok, as I say I'm a Gentoo noob, got it installed first time, eventually got wired internet working (tracked that down to a typo :oops: ), got a static ip setup working, now I finally need help.

OK relevant info:

Code:
07:00.0 Network controller: Atheros Communications Inc. AR928X Wireless Network Adapter (PCI-Express) (rev 01)


/etc/conf.d/net: (edited for privacy)

Code:
dns_domain_lo="(my ssid)"
config_eth0=( "192.168.0.9 netmask 255.255.255.0" )
routes_eth0=( "default gw 192.168.0.1" )
config_wlan0=( "192.168.0.9 netmask 255.255.255.0" )
routes_wlan0=( "default gw 192.168.0.1" )
dns_servers_eth0=( "208.67.222.222 208.67.220.220" )
dns_servers_wlan0=( "208.67.222.222 208.67.220.220" )

#wpa_supplicant
modules_wlan0=( "wpa_supplicant" )
wpa_supplicant_wlan0="-Dwext"


/etc/wpa_supplicant/spa_suppliacnt.conf (edited out ssid and passkey)

Code:
#allow users in the wheel group to control wpa_supplicant
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=wheel
#allow user made changes to be saved (e.g add networks)
update_config=1
ap_scan=1
fast_reauth=1
network={
        ssid="(my ssid)"
        scan_ssid=1
        proto=WPA2
        key_mgmt=WPA-PSK
        psk="(my pass)"
        priority=5
}


I've also got the wpa_gui under kde which doesn't pick up the adaptor at all and won't let me add networks.

use flags in /etc/portage/make.conf:

Code:
USE="readline ssl dbus consolekit alsa dvd qt4 kde firefox vlc yakuake -gnome gtk"


The drivers are built into the kernel, that part should be fine as I based the config on my working debian custom kernel on my other laptop with the relevant hardware change (ath9k rather than ath5k)

Hope somebody can help and many thanks in advance.


Last edited by mrbassie on Sat Jun 15, 2013 11:42 am; edited 1 time in total
Back to top
View user's profile Send private message
chithanh
Developer
Developer


Joined: 05 Aug 2006
Posts: 1656
Location: Berlin, Germany

PostPosted: Fri Jun 14, 2013 12:07 pm    Post subject: Reply with quote

Code:
wpa_supplicant_wlan0="-Dwext"
You have configured wpa_supplicant to use the legacy wireless extensions which are not supported by modern drivers. These use -Dnl80211 instead of -Dwext.
There exists wext emulation for backwards compatibility (e.g. wicd needs this), which is controlled by CONFIG_CFG80211_WEXT.
Back to top
View user's profile Send private message
mrbassie
Apprentice
Apprentice


Joined: 31 May 2013
Posts: 184

PostPosted: Fri Jun 14, 2013 12:46 pm    Post subject: Reply with quote

Danke schön.

I've changed that in config and I'll have to recompile the kernel then. Does everything else look ok?
Back to top
View user's profile Send private message
mrbassie
Apprentice
Apprentice


Joined: 31 May 2013
Posts: 184

PostPosted: Fri Jun 14, 2013 2:37 pm    Post subject: Reply with quote

ok that got me along a step. now
Code:
wpa_supplicant -iwlan0 -Dnl80211 -c/etc/wpa_supplicant/wpa_supplicant.conf

gives me an output and doesn't exit with an error.

However,
Code:
/etc/init.d/net.wlan0 start

gives me
Code:
*bringing up interface wlan0
*    starting wpa_supplicant on wlan 0 ...
*    starting wpa_cli on wlan0 ...
Failed to connect to wpa_supplicant - wpa_ctrl_open: No such file or directory
*    start-stop-daemon: failed to start '/usr/bin/wpa_cli'
*ERROR: net.wlan0 failed to start


??? :?
Back to top
View user's profile Send private message
chithanh
Developer
Developer


Joined: 05 Aug 2006
Posts: 1656
Location: Berlin, Germany

PostPosted: Fri Jun 14, 2013 2:52 pm    Post subject: Reply with quote

The space in "wlan 0" is strange, it should not be there. Maybe check your configuration where this might come from.
Back to top
View user's profile Send private message
mrbassie
Apprentice
Apprentice


Joined: 31 May 2013
Posts: 184

PostPosted: Fri Jun 14, 2013 2:55 pm    Post subject: Reply with quote

sorry, I typed that by hand. that was my error, I didn't notice. the space isn't in the output
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 6420
Location: Goose Creek SC

PostPosted: Fri Jun 14, 2013 3:16 pm    Post subject: Reply with quote

suggest change /etc/conf.d/net:
Quote:
config_eth0="192.168.0.9 netmask 255.255.255.0"
routes_eth0="default gw 192.168.0.1"
config_wlan0="192.168.0.9 netmask 255.255.255.0"
routes_wlan0="default gw 192.168.0.1"
dns_servers="208.67.222.222 208.67.220.220"

#wpa_supplicant
modules_wlan0="wpa_supplicant"
#wpa_supplicant_wlan0="-Dwext"
wpa_supplicant_wlan0="-Dnl80211"
the ( "xxxx" ) format was deprecated, replaced, stopped working, a couple of years ago a couple. surprised it works again. dns_domain_lo causes an overwrite of /etc/resolv.conf and fails to do anything useful unless you host a dns server for the specified domain on your lan. specifying the same ip for two interfaces which can be active at the same time can cause problems. using different ip's or ifplugd or bonding ( http://www.gentoo.org/doc/en/handbook/handbook-amd64.xml?style=printable&full=1#book_part4_chap3 ) are possible solutions.

have you installed firmware? suggest
Code:
emerge linux-firmware


Code:
ifconfig -a
should show the names of all interfaces that the kernel can see, the kernel names may get changed by udev
Code:
ifconfig
should show the names of all interfaces that have drivers and firmware and that have been brought up

have you emerged wireless-tools or iw ? use
Code:
 iwlist scan
or
Code:
iw dev wlan0 (or the name found by ifconfig) scan
to look at your access point parameters and match them in wpa_supplicant.conf nertwork

recommend /etc/wpa_supplicant/wpa_supplicant.conf global lines be:
Quote:
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
update_config=1
last week the lines you use from the examples failed for me.

no need to recompile kernel to remove wext support. it is harmless.
_________________
Defund the FCC.
Back to top
View user's profile Send private message
mrbassie
Apprentice
Apprentice


Joined: 31 May 2013
Posts: 184

PostPosted: Fri Jun 14, 2013 3:51 pm    Post subject: Reply with quote

ok, I've edited /etc/conf.d/net and ettc/wpa_supplicant/wpa_supplicant.conf like you posted and yes I do have linux-firmware and iw

/etc/init.d/net.wlan0 start now returns:

Code:
* Caching service dependencies ...                                                                                                                                                       [ ok ]
 * Bringing up interface wlan0
 *   Starting wpa_supplicant on wlan0 ...                                                                                                                                                 [ ok ]
 *   Starting wpa_cli on wlan0 ...                                                                                                                                                        [ ok ]
 *   Backgrounding ... ...
 * WARNING: net.wlan0 has started, but is inactive


ifconfig -a returns:

Code:
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.0.9  netmask 255.255.255.0  broadcast 192.168.0.255
        inet6 fe80::ca0a:a9ff:fe2c:5dc  prefixlen 64  scopeid 0x20<link>
        ether c8:0a:a9:2c:05:dc  txqueuelen 1000  (Ethernet)
        RX packets 814  bytes 372450 (363.7 KiB)
        RX errors 0  dropped 1  overruns 0  frame 0
        TX packets 805  bytes 118004 (115.2 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 1  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 0  (Local Loopback)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

sit0: flags=128<NOARP>  mtu 1480
        sit  txqueuelen 0  (IPv6-in-IPv4)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

wlan0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        ether f0:7b:cb:3f:ff:2b  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0


ifconfig returns:

Code:
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.0.9  netmask 255.255.255.0  broadcast 192.168.0.255
        inet6 fe80::ca0a:a9ff:fe2c:5dc  prefixlen 64  scopeid 0x20<link>
        ether c8:0a:a9:2c:05:dc  txqueuelen 1000  (Ethernet)
        RX packets 857  bytes 375030 (366.2 KiB)
        RX errors 0  dropped 1  overruns 0  frame 0
        TX packets 805  bytes 118004 (115.2 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 1  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 0  (Local Loopback)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

wlan0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        ether f0:7b:cb:3f:ff:2b  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0


iwlist scan returns:

Code:
wlan0     Scan completed :
          Cell 01 - Address: 00:8E:F2:DA:8F:4E
                    Channel:1
                    Frequency:2.412 GHz (Channel 1)
                    Quality=44/70  Signal level=-66 dBm 
                    Encryption key:on
                    ESSID:"virginmedia6353168"
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 18 Mb/s
                              24 Mb/s; 36 Mb/s; 54 Mb/s
                    Bit Rates:6 Mb/s; 9 Mb/s; 12 Mb/s; 48 Mb/s
                    Mode:Master
                    Extra:tsf=00000144bcfc479c
                    Extra: Last beacon: 20ms ago
                    IE: Unknown: 001276697267696E6D6564696136333533313638
                    IE: Unknown: 010882848B962430486C
                    IE: Unknown: 030101
                    IE: Unknown: 2A0104
                    IE: Unknown: 2F0104
                    IE: IEEE 802.11i/WPA2 Version 1
                        Group Cipher : TKIP
                        Pairwise Ciphers (2) : CCMP TKIP
                        Authentication Suites (1) : PSK
                    IE: Unknown: 32040C121860
                    IE: Unknown: 2D1AFC181BFFFF000000000000000000000000000000000000000000
                    IE: Unknown: 3D1601001700000000000000000000000000000000000000
                    IE: Unknown: DD7E0050F204104A0001101044000102103B00010310470010874C6F742C815DC70E57BF38DF641D5D102100074E657467656172102300074E6574676561721024000631323334353610420007303030303030311054000800060050F204000110110007564D4447343835100800022008103C0001011049000600372A000120
                    IE: Unknown: DD090010180203F02C0000
                    IE: WPA Version 1
                        Group Cipher : TKIP
                        Pairwise Ciphers (2) : CCMP TKIP
                        Authentication Suites (1) : PSK
                    IE: Unknown: DD180050F2020101800003A4000027A4000042435E0062322F00
          Cell 02 - Address: 00:14:6C:9D:58:54
                    Channel:6
                    Frequency:2.437 GHz (Channel 6)
                    Quality=70/70  Signal level=-37 dBm 
                    Encryption key:on
                    ESSID:"n0w1r3s"
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s
                              12 Mb/s; 24 Mb/s; 36 Mb/s
                    Bit Rates:9 Mb/s; 18 Mb/s; 48 Mb/s; 54 Mb/s
                    Mode:Master
                    Extra:tsf=0000001122514f21
                    Extra: Last beacon: 20ms ago
                    IE: Unknown: 00076E307731723373
                    IE: Unknown: 010882848B960C183048
                    IE: Unknown: 030106
                    IE: Unknown: 2A0100
                    IE: Unknown: 32041224606C
                    IE: IEEE 802.11i/WPA2 Version 1
                        Group Cipher : TKIP
                        Pairwise Ciphers (2) : TKIP CCMP
                        Authentication Suites (1) : PSK
                       Preauthentication Supported
                    IE: WPA Version 1
                        Group Cipher : TKIP
                        Pairwise Ciphers (2) : TKIP CCMP
                        Authentication Suites (1) : PSK
                    IE: Unknown: DD0900037F0101001FFF7F
                    IE: Unknown: DD1A00037F030100000000146C9D585402146C9D585464002C011F08
          Cell 03 - Address: 00:1B:2F:A7:49:58
                    Channel:1
                    Frequency:2.412 GHz (Channel 1)
                    Quality=32/70  Signal level=-78 dBm 
                    Encryption key:on
                    ESSID:"SKY42294"
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 22 Mb/s
                    Bit Rates:6 Mb/s; 9 Mb/s; 12 Mb/s; 18 Mb/s; 24 Mb/s
                              36 Mb/s; 48 Mb/s; 54 Mb/s
                    Mode:Master
                    Extra:tsf=0000006691e131b7
                    Extra: Last beacon: 1016ms ago
                    IE: Unknown: 0008534B593432323934
                    IE: Unknown: 010582848B962C
                    IE: Unknown: 030101
                    IE: Unknown: 050400030000
                    IE: Unknown: 2A0100
                    IE: Unknown: 32080C1218243048606C
                    IE: WPA Version 1
                        Group Cipher : TKIP
                        Pairwise Ciphers (1) : TKIP
                        Authentication Suites (1) : PSK
                    IE: Unknown: DD070050F202000100
          Cell 04 - Address: 14:D6:4D:AC:1D:AB
                    Channel:2
                    Frequency:2.417 GHz (Channel 2)
                    Quality=25/70  Signal level=-85 dBm 
                    Encryption key:on
                    ESSID:"Bhogal"
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 9 Mb/s
                              18 Mb/s; 36 Mb/s; 54 Mb/s
                    Bit Rates:6 Mb/s; 12 Mb/s; 24 Mb/s; 48 Mb/s
                    Mode:Master
                    Extra:tsf=000002fd55620698
                    Extra: Last beacon: 20ms ago
                    IE: Unknown: 000642686F67616C
                    IE: Unknown: 010882848B961224486C
                    IE: Unknown: 030102
                    IE: Unknown: 2A0104
                    IE: Unknown: 32040C183060
                    IE: Unknown: 2D1A0C0117FF000000000000000000000000000000000C0000000000
                    IE: Unknown: 3D1602000700000000000000000000000000000000000000
                    IE: Unknown: 3E0100
                    IE: WPA Version 1
                        Group Cipher : TKIP
                        Pairwise Ciphers (2) : TKIP CCMP
                        Authentication Suites (1) : PSK
                    IE: IEEE 802.11i/WPA2 Version 1
                        Group Cipher : TKIP
                        Pairwise Ciphers (2) : TKIP CCMP
                        Authentication Suites (1) : PSK
                    IE: Unknown: DD180050F2020101000003A4000027A4000042435E0062322F00
                    IE: Unknown: 0B050004097A12
                    IE: Unknown: 7F0101
                    IE: Unknown: DD07000C4304000000
                    IE: Unknown: 0706474220010B10
                    IE: Unknown: DD1E00904C330C0117FF000000000000000000000000000000000C0000000000
                    IE: Unknown: DD1A00904C3402000700000000000000000000000000000000000000
                    IE: Unknown: DD970050F204104A0001101044000102103B00010310470010BC329E001DD811B2860114D64DAC1DAB10210013442D4C696E6B20436F72706F726174696F6E2E1023001C442D4C696E6B20576972656C6573732041636365737320506F696E74102400065254323836301042000831323334353637381054000800060050F204000110110008442D4C696E6B4150100800020084103C000100
          Cell 05 - Address: 00:26:44:23:17:8F
                    Channel:11
                    Frequency:2.462 GHz (Channel 11)
                    Quality=23/70  Signal level=-87 dBm 
                    Encryption key:on
                    ESSID:"Bebox805649"
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 18 Mb/s
                              24 Mb/s; 36 Mb/s; 54 Mb/s
                    Bit Rates:6 Mb/s; 9 Mb/s; 12 Mb/s; 48 Mb/s
                    Mode:Master
                    Extra:tsf=000000000c5da186
                    Extra: Last beacon: 299ms ago
                    IE: Unknown: 000B4265626F78383035363439
                    IE: Unknown: 010882848B962430486C
                    IE: Unknown: 03010B
                    IE: Unknown: 050400030000
                    IE: Unknown: 2A0100
                    IE: Unknown: 2F0100
                    IE: IEEE 802.11i/WPA2 Version 1
                        Group Cipher : TKIP
                        Pairwise Ciphers (2) : CCMP TKIP
                        Authentication Suites (1) : PSK
                    IE: Unknown: 32040C121860
                    IE: Unknown: DD060010180201F0
                    IE: WPA Version 1
                        Group Cipher : TKIP
                        Pairwise Ciphers (2) : CCMP TKIP
                        Authentication Suites (1) : PSK

sit0      Interface doesn't support scanning.

lo        Interface doesn't support scanning.

eth0      Interface doesn't support scanning.


that sll suggests to me that it is now working but I'm not connecting to my router (Cell 02 in the scan), is that right?

Sorry for widening the page :(
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 6420
Location: Goose Creek SC

PostPosted: Fri Jun 14, 2013 4:16 pm    Post subject: Reply with quote

note that wlan0 did not receive an ip
try
Code:
/etc/init.d/net.eth0 stop
/etc/init.d/net.wlan0 restart
ifconfig
does wlan0 now have an ip?
no? use the wpa_supplicant gui to scan and configure your network
no luck?
Code:
 dmesg | grep -i ath9k
 dmesg | grep -i wlan0
anything interesting?
_________________
Defund the FCC.
Back to top
View user's profile Send private message
mrbassie
Apprentice
Apprentice


Joined: 31 May 2013
Posts: 184

PostPosted: Fri Jun 14, 2013 4:47 pm    Post subject: Reply with quote

that did the trick mate. thanks a million. I owe you a beer.
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 6420
Location: Goose Creek SC

PostPosted: Fri Jun 14, 2013 4:52 pm    Post subject: Reply with quote

if
Code:
/etc/init.d/net.eth0 stop
/etc/init.d/net.wlan0 restart
ifconfig
did it consider emerging ifplugd or netplug, control goes to eth0 when plugged in, wlan0 when not
_________________
Defund the FCC.
Back to top
View user's profile Send private message
mrbassie
Apprentice
Apprentice


Joined: 31 May 2013
Posts: 184

PostPosted: Sat Jun 15, 2013 10:20 am    Post subject: Reply with quote

did it consider? sorry I don't understand.
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 6420
Location: Goose Creek SC

PostPosted: Sat Jun 15, 2013 2:48 pm    Post subject: Reply with quote

Sorry, 'did it' was an excessively colloquial way of saying 'solved the problem." It took me several minutes to decipher my meaning when I saw your question.

if stopping etho and restarting wlan0 solved the problem, I suggest you consider emerging ifplugd or netplug. Either program will shift control to eth0 when it is plugged in and shift control to wlan0 when eth0 is unplugged.
_________________
Defund the FCC.
Back to top
View user's profile Send private message
mrbassie
Apprentice
Apprentice


Joined: 31 May 2013
Posts: 184

PostPosted: Sat Jun 15, 2013 9:00 pm    Post subject: Reply with quote

Ah, my bad. I'm a bit of a punctuation nazi (both of my parents were English teachers, it's ingrained and automatic), so I just read it as "did it consider..." and I thought you were going over my head.
In answer to your questions though it did and I did emerge ifplugd. It's working like a charm now.
Thanks again for the help. Now I just need to get synaptics working and I'm more or less set :D.
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 6420
Location: Goose Creek SC

PostPosted: Sat Jun 15, 2013 10:28 pm    Post subject: Reply with quote

in the kernel CONFIG:
Quote:
Device Drivers --->
<*> Event interface
[*] Mice --->
<*> PS/2 mouse
<*> Synaptics I2C Touchpad support
<*> Synaptics USB device support


Code:
emerge x11-drivers/xf86-input-synaptics x11-drivers/xf86-input-evdev

_________________
Defund the FCC.
Back to top
View user's profile Send private message
mrbassie
Apprentice
Apprentice


Joined: 31 May 2013
Posts: 184

PostPosted: Sun Jun 16, 2013 1:12 pm    Post subject: Reply with quote

I tried to check but I'm getting this error from menuconfig(I've tried as user and as root):

Code:
scripts/kconfig/zconf.tab.o: file not recognized: File truncated
collect2: ld returned 1 exit status
make[1]: *** [scripts/kconfig/mconf] Error 1
make: *** [menuconfig] Error 2


I've no idea where that came from. I've tried re-emerging ncurses,gcc and make to no avail.
Back to top
View user's profile Send private message
mv
Advocate
Advocate


Joined: 20 Apr 2005
Posts: 4000

PostPosted: Sun Jun 16, 2013 4:20 pm    Post subject: Reply with quote

mrbassie wrote:
Code:
scripts/kconfig/zconf.tab.o: file not recognized: File truncated

Probably, you are either running out of disk space or inodes, or ccache has crashed in a bad situation. To solve the latter, execute first
Code:
export CCACHE_RECACHE=1
Back to top
View user's profile Send private message
mrbassie
Apprentice
Apprentice


Joined: 31 May 2013
Posts: 184

PostPosted: Sun Jun 16, 2013 6:00 pm    Post subject: Reply with quote

mv wrote:
mrbassie wrote:
Code:
scripts/kconfig/zconf.tab.o: file not recognized: File truncated

Probably, you are either running out of disk space or inodes, or ccache has crashed in a bad situation. To solve the latter, execute first
Code:
export CCACHE_RECACHE=1


Does Gentoo store all the source for emerged programs? I've got a 160g hdd, / has 10g and only 2g is currently free. I didn't check until I read your post. swap is a 4g partition and the rest of the disk is /home which is empty. Each is a primary partition. All I have installed apart from what would othewise be a clean install is kdebase-startkde, firefox, thunar and vlc. I have the kernel source (3.8.13) is in /usr/src.
gcc.4.6.3

I get "export: command not found".

I may just reinstall from scratch since there's nothing important on the disk. I'm really just doing a dry-run with an irrelevant disk before I wipe Debian from my ssd.
Back to top
View user's profile Send private message
mv
Advocate
Advocate


Joined: 20 Apr 2005
Posts: 4000

PostPosted: Sun Jun 16, 2013 6:23 pm    Post subject: Reply with quote

mrbassie wrote:
/ has 10g and only 2g is currently free.

If you have nothing on different partitions, 10G is very few for a Gentoo system - you will almost certainly want to increase it sooner or later.
However, if 2G is free this should not be related with the current error (unless you are running out of inodes).
Quote:
Does Gentoo store all the source for emerged programs?

The tarballs with the sources are kept until you remove them manually (in $DISTDIR, by default probably /usr/portage/distfiles).
Quote:
I get "export: command not found".

Every POSIX shell should understand "export". Are you using a non-POSIX shell like tcsh with root?
Back to top
View user's profile Send private message
mrbassie
Apprentice
Apprentice


Joined: 31 May 2013
Posts: 184

PostPosted: Sun Jun 16, 2013 6:26 pm    Post subject: Reply with quote

bash.
The only thing I can think of that might have caused this is I ran:
Code:
 sudo emerge --update --newuse --deep --with-bdeps=y @world


last night and
Code:
emerge --depclean
Back to top
View user's profile Send private message
mv
Advocate
Advocate


Joined: 20 Apr 2005
Posts: 4000

PostPosted: Sun Jun 16, 2013 6:35 pm    Post subject: Reply with quote

mrbassie wrote:
bash.

Then the export command should work.

Anyway, just to be sure, did you already try the obvious, i.e. remove the offending file /usr/src/linux/scripts/kconfig/zconf.tab.o (or wherever you have you KBUILD_OUTPUT set to)?
Back to top
View user's profile Send private message
mrbassie
Apprentice
Apprentice


Joined: 31 May 2013
Posts: 184

PostPosted: Sun Jun 16, 2013 6:46 pm    Post subject: Reply with quote

:) that isn't so obvious to me. This is my first go at a (comparatively) non-hand-holding distro.
p.s. That worked! Sorry guys this is genuinely a little over my head but I prefer to learn by tinkering and making tols of nistakes'. I would have assumed deleting such files would have messed everything up completely.

EDIT: menuconfig works with make and with genkernel, I am getting:
Code:
ERROR: Failed to compile the "prepare" target...
*
* -- Grepping log... --
*
*COMMAND: make -j2 CC="gcc" LD="ld" AS="as" ARCH="x86" 
*  HOSTCC  scripts/kconfig/zconf.tab.o
*  HOSTLD  scripts/kconfig/conf
*scripts/kconfig/conf.o: file not recognized: File truncated
*collect2: ld returned 1 exit status
*make[1]: *** [scripts/kconfig/conf] Error 1
*make: *** [oldconfig] Error 2
*--
* Running with options: all
* Using genkernel.conf from /etc/genkernel.conf
* Sourcing arch-specific config.sh from /usr/share/genkernel/arch/x86/config.sh ..
* Sourcing arch-specific modules_load from /usr/share/genkernel/arch/x86/modules_load ..
*
* ERROR: Failed to compile the "oldconfig" target...
*--
* Report any genkernel bugs to bugs.gentoo.org and
* assign your bug to genkernel@gentoo.org. Please include
* as much information as you can in your bug report; attaching
* /var/log/genkernel.log so that your issue can be dealt with effectively.
*
* Please do *not* report compilation failures as genkernel bugs!
*--
*COMMAND: make -j2 CC="gcc" LD="ld" AS="as" ARCH="x86" 
*  HOSTCC  scripts/kconfig/zconf.tab.o
*  HOSTLD  scripts/kconfig/conf
*scripts/kconfig/conf.o: file not recognized: File truncated
*collect2: ld returned 1 exit status
*make[2]: *** [scripts/kconfig/conf] Error 1
*make[1]: *** [silentoldconfig] Error 2
*--
* Running with options: all
* Using genkernel.conf from /etc/genkernel.conf
* Sourcing arch-specific config.sh from /usr/share/genkernel/arch/x86/config.sh ..
* Sourcing arch-specific modules_load from /usr/share/genkernel/arch/x86/modules_load ..
*
* ERROR: Failed to compile the "prepare" target...
*
* -- End log... --
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum