Re: [android-building] Build of aosp full-eng fails with compile errors (for 3 weeks now)

1,151 views
Skip to first unread message

Magnus Bäck

unread,
May 6, 2013, 11:04:40 AM5/6/13
to android-...@googlegroups.com
On Sunday, May 05, 2013 at 09:06 EDT,
Robert Key <robertg...@gmail.com> wrote:

> Hi I have been trying to build aosp full-eng for a while now and
> having no luck.

[...]

> The build continues fine for a while and then fails with
> The output:
> cc1plus: all warnings being treated as errors
>
> make: ***
> [/home/robert/out/master/target/product/generic/obj/STATIC_LIBRARIES/libbccExecutionEngine_intermediates/BCCRuntimeSymbolResolver.o]
> Error 1

We need more context. The lines you're quoting are just the tools
reporting that there was a problem. You've excluded the message about
the actual compile error. Running make without the -j option will
probably make it easier to see which part of the log message that
contains the interesting information. You might also want to add
'showcommnads' to you make command to have it echo the exact commands
run for each rule.

[...]

--
Magnus Bäck
ba...@google.com

Ying Wang

unread,
May 7, 2013, 1:40:56 PM5/7/13
to Android Building
Are you in aosp-master branch?
We should use prebuilt gcc in prebuilts/tools/gcc-sdk (which is just a wrapper around some gcc in prebuilts/gcc/linux-86/host) now, 
while your error arose from pthread.h on your host machine /usr/include/pthread.h.
That shouldn't happen unless you don't have prebuilts/tools/gcc-sdk or  prebuilts/gcc/linux-86/host in your source tree.


On Tue, May 7, 2013 at 4:36 AM, Robert Key <robertg...@gmail.com> wrote:
Hi I tried to build aosp and aokp. Both fail with compile errors.
Here are the outputs:
aokp build: http://pastebin.com/WVkrmJBt

aosp build: http://pastebin.com/jPS0NNGm

If someone could tell me what I am doing wrong, I would be most grateful.
I did follow all instructions and did a lot of reading.
Thanks,
  Rob


--
--
You received this message because you are subscribed to the "Android Building" mailing list.
To post to this group, send email to android-...@googlegroups.com
To unsubscribe from this group, send email to
android-buildi...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-building?hl=en
 
---
You received this message because you are subscribed to the Google Groups "Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-buildi...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Ying Wang

unread,
May 8, 2013, 4:44:22 PM5/8/13
to Android Building
Add "showcommands" to your make command line, so we can look at the gcc command line for the broken file.
Also make sure you have prebuilts/tools/gcc-sdk and  prebuilts/gcc/linux-86/host in your source tree.


On Tue, May 7, 2013 at 10:24 PM, Robert Key <robertg...@gmail.com> wrote:

Hi yes I am in the master branch I initialised like this
repo sync
I mirrored the code and then setup a master like this

repo init -u /home/robert/aosp/mirror/platform/manifest.git
repo sync

I have even tried installing ubuntu 10.04 but the build fails under that as well.
I have now tried ubuntu 13.04 12.10 12.04 10.04. Build fails under all of them.
Rob

Ying Wang

unread,
May 9, 2013, 5:37:44 PM5/9/13
to Android Building
For the error message:
  1. /usr/include/../include/pthread.h: At global scope:
  2. /usr/include/../include/pthread.h:672:6: error: '__regparm__' attribute directive ignored [-Werror=attributes]
  3. /usr/include/../include/pthread.h:684:3: error: '__regparm__' attribute directive ignored [-Werror=attributes]
  4. /usr/include/../include/pthread.h:707:6: error: '__regparm__' attribute directive ignored [-Werror=attributes]
  5. /usr/include/../include/pthread.h:720:3: error: '__regparm__' attribute directive ignored [-Werror=attributes]
  6. /usr/include/../include/pthread.h:727:31: error: '__regparm__' attribute directive ignored [-Werror=attributes]
  1. cc1plus: all warnings being treated as errors
  1. make: *** [/home/robert/out/master/target/product/generic/obj/STATIC_LIBRARIES/libbccAndroidBitcode_intermediates/ABCCompiler.o] 


How could a target device source file end up including pthread.h on your host machine?
I double-checked there is no problem with the gcc command in your build log.
You can run the same gcc command with "-v" added to see the detailed header search path.

Most likely you have some environment variables set that affect the header file search path.
"man cpp" shows that "CPATH", "C_INCLUDE_PATH", "CPLUS_INCLUDE_PATH" etc are such variables.
Indeed, when I set "CPATH=/usr/include" I got the same error as yours.
Make sure to unset these variables before building Android.

On Thu, May 9, 2013 at 1:27 AM, Robert Key <robertg...@gmail.com> wrote:
Hi Sorry for providing too little output. I realized showcommands is a modifier.
I checked prebuilts/tools/gcc-sdk and prebuilts/gcc/linux-x86/host
both are there in the source build.

robert@tatty:/mnt/hdint/aosp/master/prebuilts/tools/gcc-sdk$ ls
addr2line  c++      elfedit  gcov   nm       ranlib   strings
ar         c++filt  g++      gprof  objcopy  readelf  strip
as         cpp      gcc      ld     objdump  size

(all are links to gcc)

robert@tatty:/mnt/hdint/aosp/master/prebuilts/gcc/linux-x86/host$ ls
i686-linux-glibc2.7-4.4.3  i686-linux-glibc2.7-4.6  x86_64-linux-glibc2.7-4.6

The output from the build for 'full-eng'  with showcommands
http://pastebin.com/czYkDbkR

I hope all relevant information is in the output.
I downloaded the source a second time for testing but the build errors remain the same.
Thanks for your replies and patience.
Rob
Reply all
Reply to author
Forward
0 new messages