Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pa_stable_v190700_20210406 fails to compile on RPi4 #683

Closed
juanitotc opened this issue Dec 18, 2021 · 8 comments
Closed

pa_stable_v190700_20210406 fails to compile on RPi4 #683

juanitotc opened this issue Dec 18, 2021 · 8 comments
Assignees
Labels
bug Something isn't working build build-autoconf Autoconf build system P2 Priority: High
Milestone

Comments

@juanitotc
Copy link

Using gcc-10.2 to compile pa_stable_v190700_20210406 with:

CC="gcc -flto -march=armv8-a+crc -mtune=cortex-a72 -Os -pipe" CXX="g++ -flto -march=armv8-a+crc -mtune=cortex-a72 -Os -pipe" ./configure --prefix=/usr/local --disable-static --localstatedir=/var --enable-cxx

..the build fails with:

libtool: link: /usr/local/bin/nm -B  src/common/.libs/pa_allocation.o src/common/.libs/pa_converters.o src/common/.libs/pa_cpuload.o src/common/.libs/pa_dither.o src/common/.libs/pa_debugprint.o src/common/.libs/pa_front.o src/common/.libs/pa_process.o src/common/.libs/pa_stream.o src/common/.libs/pa_trace.o src/hostapi/skeleton/.libs/pa_hostapi_skeleton.o src/hostapi/alsa/.libs/pa_linux_alsa.o src/hostapi/oss/.libs/pa_unix_oss.o src/os/unix/.libs/pa_unix_hostapis.o src/os/unix/.libs/pa_unix_util.o   |  | /usr/local/bin/sed 's/.* //' | sort | uniq > lib/.libs/libportaudio.exp
./libtool: eval: line 1: syntax error: unexpected "|"
make: *** [Makefile:171: lib/libportaudio.la] Error 2

If I manually execute the command without the double "| | " it works.

cmake builds without error, but without library symlinks and without the cxx library.

@philburk
Copy link
Collaborator

philburk commented Dec 18, 2021

@juanitotc - thanks for reporting this.

..the build fails

We have several build mechanisms. What commands are you using to build PortAudio when it fails?
Are you using:

./configure && make

or the cmake commands here?

@juanitotc
Copy link
Author

I'm using configure (with flags as per the first post) && make when it fails.

cmake && make does not give the same error

@philburk
Copy link
Collaborator

Thanks. I did not see the .configure at the end of the command.

@philburk philburk assigned philburk and unassigned juanitotc Dec 18, 2021
@philburk philburk added build-autoconf Autoconf build system bug Something isn't working build labels Dec 18, 2021
@philburk philburk added this to the V19.8 milestone Dec 18, 2021
@philburk philburk added the P1 Priority: Highest label Jan 13, 2022
@philburk
Copy link
Collaborator

philburk commented Sep 4, 2023

I pulled the current PortAudio and it builds using:

./configure && make

bin/paex_sine make no sound from the default 3.5 mm jack.

When I connect a Scarlett 2i2 then a get about a 1/4 second of noise and a bunch of ALSA messages
about an underrun from pcm.c:8424

@philburk
Copy link
Collaborator

philburk commented Sep 4, 2023

I then tried the command from above:

CC="gcc -flto -march=armv8-a+crc -mtune=cortex-a72 -Os -pipe" CXX="g++ -flto -march=armv8-a+crc -mtune=cortex-a72 -Os -pipe" ./configure --prefix=/usr/local --disable-static --localstatedir=/var --enable-cxx

It compiled without error on an RPi4 running Raspbian.

@philburk
Copy link
Collaborator

philburk commented Sep 4, 2023

I then compiled pa_stable_v190700_20210406.tgz from https://files.portaudio.com/download.html

I compiled using the CC=... command from the previous comment and it compiled fine.

@philburk
Copy link
Collaborator

philburk commented Sep 4, 2023

On my RPi4, the line that breaks above is:

libtool: link: /usr/bin/nm -B  src/common/.libs/pa_allocation.o src/common/.libs/pa_converters.o \
src/common/.libs/pa_cpuload.o src/common/.libs/pa_dither.o src/common/.libs/pa_debugprint.o \
src/common/.libs/pa_front.o src/common/.libs/pa_process.o src/common/.libs/pa_stream.o \
src/common/.libs/pa_trace.o src/hostapi/skeleton/.libs/pa_hostapi_skeleton.o \
src/hostapi/alsa/.libs/pa_linux_alsa.o src/hostapi/oss/.libs/pa_unix_oss.o \
src/os/unix/.libs/pa_unix_hostapis.o src/os/unix/.libs/pa_unix_util.o  \
  | sed -n -e 's/^.*[	 ]\([ABCDGIRSTW][ABCDGIRSTW]*\)[	 ][	 ]*\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2 \2/p' \
  | sed '/ __gnu_lto/d' | /bin/sed 's/.* //' | sort | uniq > lib/.libs/libportaudio.exp

So the difference is that I have a bunch of sed commands in my line where you have "| |".

So the reason it is failing may be because of differences in our setup.

@juanitotc - What OS are you using? Have you recently updated?
When I use uname I get this.

$ uname -a
Linux neuhaus22 5.10.103-v7l+ #1529 SMP Tue Mar 8 12:24:00 GMT 2022 armv7l GNU/Linux

Are you still seeing the problem?

@philburk philburk assigned juanitotc and unassigned philburk Sep 4, 2023
@philburk philburk added P2 Priority: High and removed P1 Priority: Highest labels Sep 4, 2023
@juanitotc
Copy link
Author

I'm using piCore64:

uname -a
Linux boxrpi4 6.1.25-piCore-v8 #1 SMP PREEMPT Sat Apr 29 12:41:30 EDT 2023 aarch64 GNU/Linux

Using a more recent version (piCore64-14.x) with gcc-12.2, with the same configure and make string, things work without errors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working build build-autoconf Autoconf build system P2 Priority: High
Projects
None yet
Development

No branches or pull requests

2 participants