libopenmpt Error 1

15 views
Skip to first unread message

JanQ

unread,
Jul 3, 2016, 7:54:04 AM7/3/16
to OpenBricks Development List
CXX libopenmpt123/libopenmpt123.cpp
CROSS_COMPILE Badness: /usr/include in INCLUDEPATH: /usr/include/SDL
cc1plus: internal compile error: in add_path, at inpath.c.462

Makefile:909: recipe for target openmpt123.o failed

Rudi

unread,
Jul 4, 2016, 2:11:02 AM7/4/16
to openbric...@googlegroups.com
Please try the attached patch. It disables building the openmpt123
executable, which we do not need anyway (we only want the shared libs).
> --
> You received this message because you are subscribed to the Google
> Groups "OpenBricks Development List" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to openbricks-dev...@googlegroups.com
> <mailto:openbricks-dev...@googlegroups.com>.
> For more options, visit https://groups.google.com/d/optout.


--

Ruediger "Rudi" Ihle


0001-no-executable.diff

toml...@gmail.com

unread,
Jul 4, 2016, 2:13:18 AM7/4/16
to openbric...@googlegroups.com
Indeed, but we need to know why sdl config is bad


can you post too the logs when you build adding this patch (verbose build)

iff --git a/packages/multimedia/libopenmpt/build
b/packages/multimedia/libopenmpt/build
index 4e5843d..333bd00 100755
--- a/packages/multimedia/libopenmpt/build
+++ b/packages/multimedia/libopenmpt/build
@@ -5,7 +5,7 @@
get_meta $1
cd $PKG_BUILD_DIR

-make CC=$TARGET_CC CXX=$TARGET_CXX PREFIX=.install/usr EXAMPLES=0
TEST=0 install
+make VERBOSE=2 CC=$TARGET_CC CXX=$TARGET_CXX PREFIX=.install/usr
EXAMPLES=0 TEST=0 install

strip_bins .install/usr/bin
strip_libs .install/usr/lib


--
www.geexbox.org
mailto:toml...@openbricks.org

Rudi

unread,
Jul 4, 2016, 3:00:30 AM7/4/16
to openbric...@googlegroups.com

> Indeed, but we need to know why sdl config is bad

Well, SDL is not specified as dependency for libopenmpt. So if the target platform does
not use SDL at all (Raspberry, Cubox-i, Utilite) or the SDL devpackage has not (yet)
been installed, it might pick a host instance...


--

Ruediger "Rudi" Ihle


Raivo Janisk

unread,
Jul 4, 2016, 3:22:20 AM7/4/16
to openbric...@googlegroups.com

OK...I test more.... IMHO.. before libopenmpt need compile flac, libsound.
It work's.

--
You received this message because you are subscribed to the Google Groups "OpenBricks Development List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openbricks-dev...@googlegroups.com.

Thomas Genty

unread,
Jul 4, 2016, 5:27:02 AM7/4/16
to openbric...@googlegroups.com
Yes, but the problem is that SDL is not installed here but it works.
I 'll check is the host is installed or not ...

B.R
> --
> You received this message because you are subscribed to the Google Groups "OpenBricks Development List" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to openbricks-dev...@googlegroups.com.

Rudi

unread,
Jul 4, 2016, 8:16:16 AM7/4/16
to openbric...@googlegroups.com
> Yes, but the problem is that SDL is not installed here but it works.
> I 'll check is the host is installed or not ...

Could it be that our pkg-config is searching /usr/lib/pkgconfig in case a *.pc file was
not found in $PKG_CONFIG_PATH ?

Especially, since 'get_meta' (config/functions line 115) unsets $PKG_CONFIG_LIBDIR...



> B.R
>
> 2016-07-04 8:58 GMT+02:00 Rudi <r.i...@s-t.de>:
>>
>>> Indeed, but we need to know why sdl config is bad
>>
>> Well, SDL is not specified as dependency for libopenmpt. So if the target platform does
>> not use SDL at all (Raspberry, Cubox-i, Utilite) or the SDL devpackage has not (yet)
>> been installed, it might pick a host instance...
>>
>>
>> --
>>
>> Ruediger "Rudi" Ihle
>>
>>
>> --
>> You received this message because you are subscribed to the Google Groups "OpenBricks Development List" group.
>> To unsubscribe from this group and stop receiving emails from it, send an email to openbricks-dev...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>

--

Ruediger "Rudi" Ihle


Rudi

unread,
Jul 4, 2016, 9:20:29 AM7/4/16
to openbric...@googlegroups.com
Replying to myself:

> Could it be that our pkg-config is searching /usr/lib/pkgconfig in case a *.pc file was
> not found in $PKG_CONFIG_PATH ?

Yes, it does :(


> Especially, since 'get_meta' (config/functions line 115) unsets $PKG_CONFIG_LIBDIR...

This appears to be a bug: PKG_CONFIG_LIBDIR should be preserved as well. In line 33 we
set it to "" to avoid the problem above, but shoot ourselves in the foot by killing the
variable here.


So the reason for the "CROSS_COMPILE Badness" error is that on this build machine there
must be an "sdl.pc" in /usr/lib/pgkconfig or maybe in /usr/local/lib/pkgconfig and our
pkg-config is finding it when it should not.


The missing dependencies are another story. The openmpt123 executable may use
SDL2/SDL/PortAudio, FLAC and libsndfile. However, we do not need this executable.
Currently we are building it, but it doesn't get installed/packaged since all we want is
libopenmpt.so.*. So we won't loose much if we disable openmpt123 as suggested earlier.



--

Ruediger "Rudi" Ihle


Reply all
Reply to author
Forward
0 new messages