drinkcat / chroagh

Chromium OS Archlinux Chroot Environment
BSD 3-Clause "New" or "Revised" License
241 stars 27 forks source link

master: gcc CRAS compiling error #56

Closed tonyxue closed 9 years ago

tonyxue commented 9 years ago
warning: alsa-utils-1.0.28-1 is up to date -- skipping
warning: alsa-lib-1.0.28-1 is up to date -- skipping
warning: speex-1.2rc1-4 is up to date -- skipping
 there is nothing to do
warning: gcc-4.9.1-2 is up to date -- skipping
resolving dependencies...
looking for inter-conflicts...

Packages (1): pkg-config-0.28-2

Total Download Size:    0.03 MiB
Total Installed Size:   0.11 MiB

:: Proceed with installation? [Y/n] 
:: Retrieving packages ...
 pkg-config-0.28-2-x...    31.0 KiB  17.5K/s 00:02 [#####################] 100%
(1/1) checking keys in keyring                     [#####################] 100%
(1/1) checking package integrity                   [#####################] 100%
(1/1) loading package files                        [#####################] 100%
(1/1) checking for file conflicts                  [#####################] 100%
(1/1) checking available disk space                [#####################] 100%
(1/1) installing pkg-config                        [#####################] 100%
warning: sbc-1.2-1 is up to date -- skipping
 there is nothing to do
warning: patch-2.7.1-3 is up to date -- skipping
 there is nothing to do
Compiling CRAS (native)...
tests/cras_test_client.c:21:26: fatal error: cras_version.h: No such file or directory
 #include "cras_version.h"
                          ^
compilation terminated.
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.9.1/../../../../lib/crt1.o: In function `_start':
(.text+0x20): undefined reference to `main'
collect2: error: ld returned 1 exit status
Failed to complete chroot setup.
Unmounting /var/crouton/chroots/arch...

Hi, while updating archlinux using installer/main.sh , it returned the above error.

crouton: version git
release: arch
architecture: x86_64
targets: extension,keyboard,audio,gnome
host: version 6310.14.0 (Official Build) dev-channel peppy 

It seems like the downloaded files where deleted? where is the source code it is compiling?

drinkcat commented 9 years ago

Thanks for reporting. I just rebased chroagh against the latest crouton, so downloading the lastest installer should fix the problem.

The rebase is untested so please report issues if any.

tonyxue commented 9 years ago

Everything seems to be fine. Thanks.

chukleberryfinn commented 9 years ago

Still encountering "cras_version.h: no such file or directory" error

Edit: I am using Ubuntu Trusty rather than archlinux, however.

tonyxue commented 9 years ago

@chukleberryfinn Have you downloaded the latest chroagh?

chukleberryfinn commented 9 years ago

I have not. If you will see my edit, I am not on archlinux. I didn't see what os you were using until after I had posted. I was just looking for a quick fix.

On Wed, Oct 22, 2014 at 10:26 PM, Tony Xue notifications@github.com wrote:

@chukleberryfinn https://github.com/chukleberryfinn Have you downloaded the latest chroagh?

— Reply to this email directly or view it on GitHub https://github.com/drinkcat/chroagh/issues/56#issuecomment-60184663.