Skip to contentSkip to conversation

New: alsa-lib headers problem that prevents to compile alsa dependent projects

Buildroot bugzilla at busybox.net 1 participant 15 messages Apr 22, 2015 – Jul 30, 2015

lore
Share & tools
lore
#0 lore raw

https://bugs.busybox.net/show_bug.cgi?id=8036

Summary: alsa-lib headers problem that prevents to compile alsa
dependent projects
Product: buildroot
Version: 2015.02
Platform: PC
OS/Version: Linux
Status: NEW
Severity: minor
Priority: P5
Component: Other
AssignedTo: unassigned at buildroot.uclibc.org
ReportedBy: jrmcorreo-linux at yahoo.es
CC: buildroot at uclibc.org
Estimated Hours: 0.0

Created attachment 6006
--> https://bugs.busybox.net/attachment.cgi?id=6006
alsa-utils compilation errors

Hello,

I've built with success a kernel 3.15.4 and busybox for ARM 920t (S3C24XX), that worked fine for my Micro2440 SDK board, and now I'm trying to build openjdk-jdk9-b36 into the 2015.02 buildroot version using the patches provided by Xerxes Ranby at his Rpi buildroot's version:
https://github.com/xranby/rpi-buildroot

I've found that there are several unknown types, related to alsa-lib dependencies, that appear in different source files from openjdk. But they are present on header files that aren't copied to the sysroot in the output of buildroot.

In order to determine if the problem is related only to openjdk compilation, I've tried to compile alsa-utils getting as a result the same kind of errors. Then I searched for alsa-lib previous bugs, without finding any related to this kind of error, before opening this one.

I attach the errors obtained during compilation of alsa-utils. Some words are in spanish, but I think is so clear for anybody to understand the error reasons.

I expect that fixing this problem with alsa headers it will be possible to compile alsa-lib dependent code without errors due to this library dependency.

Thank You and Best Regards

Juan

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#1 lore raw

[Buildroot] [Bug 8036] alsa-lib headers problem that prevents to compile alsa dependent projects

https://bugs.busybox.net/show_bug.cgi?id=8036

--- Comment #1 from Arnout Vandecappelle <[email protected]> 2015-04-22 20:07:24 UTC --- Can you post the defconfig you use, so we can try to reproduce it?

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#2 lore raw

[Buildroot] [Bug 8036] alsa-lib headers problem that prevents to compile alsa dependent projects

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=8036

--- Comment #2 from Juan <[email protected]> 2015-05-06 10:51:53 UTC --- I'm sorry for the delay as other matters nedded my attention. I'll attach defconfig file from kernel and alsa-lib.

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#3 lore raw

[Buildroot] [Bug 8036] alsa-lib headers problem that prevents to compile alsa dependent projects

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=8036

--- Comment #3 from Juan <[email protected]> 2015-05-06 10:57:24 UTC --- Created attachment 6026
--> https://bugs.busybox.net/attachment.cgi?id=6026
alsa-lib config log

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#4 lore raw

[Buildroot] [Bug 8036] alsa-lib headers problem that prevents to compile alsa dependent projects

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=8036

--- Comment #4 from Juan <[email protected]> 2015-05-06 10:59:22 UTC --- Created attachment 6031
--> https://bugs.busybox.net/attachment.cgi?id=6031
kernel config

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#5 lore raw

[Buildroot] [Bug 8036] alsa-lib headers problem that prevents to compile alsa dependent projects

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=8036

--- Comment #5 from Juan <[email protected]> 2015-05-06 14:54:33 UTC --- I attach buildroot config too.

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#6 lore raw

[Buildroot] [Bug 8036] alsa-lib headers problem that prevents to compile alsa dependent projects

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=8036

--- Comment #6 from Juan <[email protected]> 2015-05-06 14:58:26 UTC --- Created attachment 6036
--> https://bugs.busybox.net/attachment.cgi?id=6036
buildroot config

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#7 lore raw

[Buildroot] [Bug 8036] alsa-lib headers problem that prevents to compile alsa dependent projects

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=8036

--- Comment #7 from Thomas Petazzoni <[email protected]> 2015-06-03 15:18:08 UTC --- The Buildroot .config you provided does not have alsa-utils enabled, so it is
not possible that you got this error.

Also, can you confirm that you get the error after a full "make clean all" cycle?

I've just tried building the following defconfig, which includes the amidi alsa-utils, and it builds fine:

BR2_arm=y
BR2_TOOLCHAIN_EXTERNAL=y
BR2_TOOLCHAIN_EXTERNAL_CUSTOM=y
BR2_TOOLCHAIN_EXTERNAL_DOWNLOAD=y BR2_TOOLCHAIN_EXTERNAL_URL="http://autobuild.buildroot.org/toolchains/tarballs/br-arm-full-2015.02.tar.bz2" BR2_TOOLCHAIN_EXTERNAL_HEADERS_3_18=y
BR2_TOOLCHAIN_EXTERNAL_LOCALE=y
# BR2_TOOLCHAIN_EXTERNAL_HAS_THREADS_DEBUG is not set
BR2_TOOLCHAIN_EXTERNAL_INET_RPC=y
BR2_TOOLCHAIN_EXTERNAL_CXX=y
BR2_INIT_NONE=y
BR2_SYSTEM_BIN_SH_NONE=y
# BR2_PACKAGE_BUSYBOX is not set
BR2_PACKAGE_ALSA_UTILS=y
# BR2_PACKAGE_ALSA_UTILS_ALSACTL is not set
# BR2_PACKAGE_ALSA_UTILS_ALSAMIXER is not set
BR2_PACKAGE_ALSA_UTILS_AMIDI=y
# BR2_TARGET_ROOTFS_TAR is not set

Can you give more details?

Also, please reproduce with the official Buildroot, without any patches. We cannot debug modified versions of Buildroot for which we don't have the source code.

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#8 lore raw

[Buildroot] [Bug 8036] alsa-lib headers problem that prevents to compile alsa dependent projects

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=8036

--- Comment #8 from Juan <[email protected]> 2015-06-03 16:43:35 UTC --- Hi Thomas, First of all thank you for your help.

About the alsa-utils option, forgive me if it wasn't unchecked but I've copied the config several days after my post and I'm not able to remember now when it was modified for last time, I'll check and try to recompile again after a "make clean all".

About openjdk and patches, I've included the openjdk package following the usual way (and the manual) to the official buildroot distribution, and the patches are applied only if openjdk is compiled.

As I said, I'll try again and will post here the result as soon as possible.

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#9 lore raw

[Buildroot] [Bug 8036] alsa-lib headers problem that prevents to compile alsa dependent projects

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=8036

--- Comment #9 from Juan <[email protected]> 2015-06-05 07:52:54 UTC --- Hi Thomas,

Yesterday I've made a rebuild with success after a "make clean". First I built alsa-lib and alsa-utils, then openjdk with success too (but with an installation error after compiling that I'll try to solve shortly in time).

I attach the right buildrooot and kernel configs here. When the installation problem of openjdk could be solved, and the binaries tested, if possible in two different ARM SoC (ARM920t and Cortex A7), I'll send/post the patches and makefile to the contrib address/URL.

Thank you for your help

Juan

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#10 lore raw

[Buildroot] [Bug 8036] alsa-lib headers problem that prevents to compile alsa dependent projects

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=8036

Juan <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

   Attachment #6036|0                           |1

is obsolete| |

--- Comment #10 from Juan <[email protected]> 2015-06-05 07:59:01 UTC --- Created attachment 6051
--> https://bugs.busybox.net/attachment.cgi?id=6051
config for S3C2440 (ARM920t) with ALSA

Correct configuration.

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#11 lore raw

[Buildroot] [Bug 8036] alsa-lib headers problem that prevents to compile alsa dependent projects

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=8036

Juan <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

   Attachment #6031|0                           |1

is obsolete| |

--- Comment #11 from Juan <[email protected]> 2015-06-05 08:00:19 UTC --- Created attachment 6056
--> https://bugs.busybox.net/attachment.cgi?id=6056
kernel config for S3C2440 (ARM920t) with ALSA

Correct configuration.

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#12 lore raw

[Buildroot] [Bug 8036] alsa-lib headers problem that prevents to compile alsa dependent projects

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=8036

--- Comment #12 from Thomas Petazzoni <[email protected]> 2015-06-05 14:21:28 UTC --- The Buildroot configuration you provided builds just fine (I've only disabled
the kernel, but it's irrelevant to the alsa-utils problem). And you also say
that you managed to build alsa-utils successfully.

So: what is the bug ?

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#13 lore raw

[Buildroot] [Bug 8036] alsa-lib headers problem that prevents to compile alsa dependent projects

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=8036

--- Comment #13 from Juan <[email protected]> 2015-06-05 16:16:56 UTC --- As you said, at last it worked fine. I can only say that now it works and before not. I think the problem was related about make clean command, that didn't cleaned properly the compile environment.

The first time I compiled alsa was in order to compile openjdk, and I've applied both at once. This time I've compiled first buildroot with alsa, then I added openjdk after.

Sincerely, I thought that it was a bug because after applying a make clean command and try to compile only alsa didn't worked fine, but finally it worked... and worked without removing competely the buildroot environment I'm using since the begining.

If you can't reproduce it and don't consider it as a bug, then is not a bug and probably was caused after introducing a new package not in the official/mainstream release.

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#14 lore raw

[Buildroot] [Bug 8036] alsa-lib headers problem that prevents to compile alsa dependent projects

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=8036

Thomas Petazzoni <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|NEW                         |RESOLVED
         Resolution|                            |WORKSFORME

--- Comment #14 from Thomas Petazzoni <[email protected]> 2015-07-30 10:11:05 UTC --- Problem no longer reproducible. Might have been caused by a lack of a full
rebuild (i.e "make clean all").

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.