* [Buildroot] Adding a ModemManager package
@ 2013-02-17 17:07 Shawn J. Goff
2013-02-17 17:31 ` Thomas Petazzoni
2013-02-17 21:29 ` Arnout Vandecappelle
0 siblings, 2 replies; 7+ messages in thread
From: Shawn J. Goff @ 2013-02-17 17:07 UTC (permalink / raw)
To: buildroot
I'm trying to add a ModemManager package. While building, I'm getting
this error during the installation step: "/usr/lib/libgcc_s.so: file not
recognized: File format not recognized". This looks like it's looking at
my host's libgcc_s.so instead of the target's version. If that's the
case I'm not sure why or how to fix it. I did have to use autogen.sh to
create the configure script and lots of other stuff; I did this on my
host system, so I'm not sure if that is affecting it.
Below is a larger part of the output for context.
CCLD libmm-glib.la
make[4]: Entering directory
`/home/shawn/projects/all-projects/fx/buildroot-modemmanager/output/build/modem-manager-0.7.990/libmm-glib'
/usr/bin/mkdir -p
'/home/shawn/projects/fx/buildroot-modemmanager/output/target/usr/lib'
/usr/bin/mkdir -p
'/home/shawn/projects/fx/buildroot-modemmanager/output/target/usr/include/libmm-glib'
/bin/sh ../libtool --mode=install /usr/bin/install -c libmm-glib.la
'/home/shawn/projects/fx/buildroot-modemmanager/output/target/usr/lib'
/usr/bin/install -c -m 644 libmm-glib.h mm-manager.h mm-object.h
mm-modem.h mm-modem-3gpp.h mm-modem-3gpp-ussd.h mm-modem-cdma.h
mm-modem-messaging.h mm-modem-location.h mm-modem-time.h
mm-modem-firmware.h mm-modem-simple.h mm-sim.h mm-sms.h mm-bearer.h
mm-simple-status.h mm-simple-connect-properties.h mm-bearer-properties.h
mm-sms-properties.h mm-bearer-ip-config.h mm-location-common.h
mm-location-3gpp.h mm-location-gps-nmea.h mm-location-gps-raw.h
mm-location-cdma-bs.h mm-unlock-retries.h mm-network-timezone.h
mm-firmware-properties.h
'/home/shawn/projects/fx/buildroot-modemmanager/output/target/usr/include/libmm-glib'
libtool: install: warning: relinking `libmm-glib.la'
libtool: install: (cd
/home/shawn/projects/all-projects/fx/buildroot-modemmanager/output/build/modem-manager-0.7.990/libmm-glib;
/bin/sh
/home/shawn/projects/all-projects/fx/buildroot-modemmanager/output/build/modem-manager-0.7.990/libtool
--silent --tag CC --mode=relink
/home/shawn/projects/fx/buildroot-modemmanager/output/host/usr/bin/arm-unknown-linux-gnueabi-gcc
-Wall -Werror -std=gnu89 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
-D_FILE_OFFSET_BITS=64 -pipe -ggdb -Os -Wmissing-declarations
-Wmissing-prototypes -Wdeclaration-after-statement -Wno-unused-parameter
-Wno-sign-compare -fno-strict-aliasing -Wno-deprecated-declarations
-Wno-unused-but-set-variable -o libmm-glib.la -rpath /usr/lib
libmm_glib_la-mm-manager.lo libmm_glib_la-mm-object.lo
libmm_glib_la-mm-modem.lo libmm_glib_la-mm-modem-3gpp.lo
libmm_glib_la-mm-modem-3gpp-ussd.lo libmm_glib_la-mm-modem-cdma.lo
libmm_glib_la-mm-modem-simple.lo libmm_glib_la-mm-modem-location.lo
libmm_glib_la-mm-modem-time.lo libmm_glib_la-mm-modem-firmware.lo
libmm_glib_la-mm-sim.lo libmm_glib_la-mm-sms.lo
libmm_glib_la-mm-modem-messaging.lo libmm_glib_la-mm-bearer.lo
libmm_glib_la-mm-common-helpers.lo libmm_glib_la-mm-simple-status.lo
libmm_glib_la-mm-simple-connect-properties.lo
libmm_glib_la-mm-bearer-properties.lo libmm_glib_la-mm-sms-properties.lo
libmm_glib_la-mm-bearer-ip-config.lo libmm_glib_la-mm-location-3gpp.lo
libmm_glib_la-mm-location-gps-raw.lo
libmm_glib_la-mm-location-gps-nmea.lo
libmm_glib_la-mm-location-cdma-bs.lo libmm_glib_la-mm-unlock-retries.lo
libmm_glib_la-mm-network-timezone.lo
libmm_glib_la-mm-firmware-properties.lo
../libmm-glib/generated/libmm-generated.la -lgio-2.0 -lgobject-2.0
-L/home/shawn/projects/fx/buildroot-modemmanager/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib
-lglib-2.0 -inst-prefix-dir
/home/shawn/projects/fx/buildroot-modemmanager/output/target)
/usr/lib/libgcc_s.so: file not recognized: File format not recognized
collect2: ld returned 1 exit status
libtool: install: error: relink `libmm-glib.la' with the above command
before installing it
make[4]: *** [install-libLTLIBRARIES] Error 1
make[4]: Leaving directory
`/home/shawn/projects/all-projects/fx/buildroot-modemmanager/output/build/modem-manager-0.7.990/libmm-glib'
make[3]: *** [install-am] Error 2
make[3]: Leaving directory
`/home/shawn/projects/all-projects/fx/buildroot-modemmanager/output/build/modem-manager-0.7.990/libmm-glib'
make[2]: *** [install-recursive] Error 1
make[2]: Leaving directory
`/home/shawn/projects/all-projects/fx/buildroot-modemmanager/output/build/modem-manager-0.7.990/libmm-glib'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory
`/home/shawn/projects/all-projects/fx/buildroot-modemmanager/output/build/modem-manager-0.7.990'
make: ***
[/home/shawn/projects/fx/buildroot-modemmanager/output/build/modem-manager-0.7.990/.stamp_target_installed]
Error 2
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Buildroot] Adding a ModemManager package
2013-02-17 17:07 [Buildroot] Adding a ModemManager package Shawn J. Goff
@ 2013-02-17 17:31 ` Thomas Petazzoni
2013-02-17 17:56 ` Shawn J. Goff
2013-02-17 21:29 ` Arnout Vandecappelle
1 sibling, 1 reply; 7+ messages in thread
From: Thomas Petazzoni @ 2013-02-17 17:31 UTC (permalink / raw)
To: buildroot
Dear Shawn J. Goff,
On Sun, 17 Feb 2013 12:07:59 -0500, Shawn J. Goff wrote:
> I'm trying to add a ModemManager package. While building, I'm getting
> this error during the installation step: "/usr/lib/libgcc_s.so: file not
> recognized: File format not recognized". This looks like it's looking at
> my host's libgcc_s.so instead of the target's version. If that's the
> case I'm not sure why or how to fix it. I did have to use autogen.sh to
> create the configure script and lots of other stuff; I did this on my
> host system, so I'm not sure if that is affecting it.
Could you post the in-progress patch you have to add the modem-manager
package? This would allow us to check for potential suspicious things
in the .mk file, and if nothing suspicious shows up, to try and
reproduce the issue.
Thanks!
Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Buildroot] Adding a ModemManager package
2013-02-17 17:31 ` Thomas Petazzoni
@ 2013-02-17 17:56 ` Shawn J. Goff
2013-02-17 18:17 ` Thomas Petazzoni
0 siblings, 1 reply; 7+ messages in thread
From: Shawn J. Goff @ 2013-02-17 17:56 UTC (permalink / raw)
To: buildroot
On 02/17/2013 12:31 PM, Thomas Petazzoni wrote:
> Dear Shawn J. Goff,
>
> On Sun, 17 Feb 2013 12:07:59 -0500, Shawn J. Goff wrote:
>> I'm trying to add a ModemManager package. While building, I'm getting
>> this error during the installation step: "/usr/lib/libgcc_s.so: file not
>> recognized: File format not recognized". This looks like it's looking at
>> my host's libgcc_s.so instead of the target's version. If that's the
>> case I'm not sure why or how to fix it. I did have to use autogen.sh to
>> create the configure script and lots of other stuff; I did this on my
>> host system, so I'm not sure if that is affecting it.
> Could you post the in-progress patch you have to add the modem-manager
> package? This would allow us to check for potential suspicious things
> in the .mk file, and if nothing suspicious shows up, to try and
> reproduce the issue.
>
> Thanks!
>
> Thomas
Sure, here's a patch. udev was disabling gudev; for now, I had to remove
that part because the default configuration of ModemManager seems to
require it. I don't have a patch for the autogen-created files yet. I
run make, then go to the build directory and run "NOCONFIGURE=yes
./autogen.sh", then go back and continue running make.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-ModemManager-initial-package-addition.patch
Type: text/x-patch
Size: 3149 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20130217/066dc0c9/attachment.bin>
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Buildroot] Adding a ModemManager package
2013-02-17 17:56 ` Shawn J. Goff
@ 2013-02-17 18:17 ` Thomas Petazzoni
0 siblings, 0 replies; 7+ messages in thread
From: Thomas Petazzoni @ 2013-02-17 18:17 UTC (permalink / raw)
To: buildroot
Dear Shawn J. Goff,
On Sun, 17 Feb 2013 12:56:11 -0500, Shawn J. Goff wrote:
> Sure, here's a patch. udev was disabling gudev; for now, I had to remove
If you read the udev.mk, you see that gudev is disabled unless
BR2_PACKAGE_UDEV_ALL_EXTRAS is enabled. And your package selects it, so
it should "just" work.
> that part because the default configuration of ModemManager seems to
> require it. I don't have a patch for the autogen-created files yet. I
> run make, then go to the build directory and run "NOCONFIGURE=yes
> ./autogen.sh", then go back and continue running make.
Use MODEM_MANAGER_AUTORECONF = YES instead.
I don't have the time to try and reproduce the problem right now, but
hopefully someone else will have a look.
Best regards,
Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Buildroot] Adding a ModemManager package
2013-02-17 17:07 [Buildroot] Adding a ModemManager package Shawn J. Goff
2013-02-17 17:31 ` Thomas Petazzoni
@ 2013-02-17 21:29 ` Arnout Vandecappelle
2013-02-17 21:35 ` [Buildroot] [PATCH] gettext: add host-gettext Arnout Vandecappelle
2013-02-17 23:22 ` [Buildroot] Adding a ModemManager package Shawn J. Goff
1 sibling, 2 replies; 7+ messages in thread
From: Arnout Vandecappelle @ 2013-02-17 21:29 UTC (permalink / raw)
To: buildroot
On 17/02/13 18:07, Shawn J. Goff wrote:
> I'm trying to add a ModemManager package. While building, I'm getting
> this error during the installation step: "/usr/lib/libgcc_s.so: file not
> recognized: File format not recognized". This looks like it's looking at
> my host's libgcc_s.so instead of the target's version. If that's the case
> I'm not sure why or how to fix it. I did have to use autogen.sh to create
> the configure script and lots of other stuff; I did this on my host
> system, so I'm not sure if that is affecting it.
Hi Shawn,
I haven't been able to reproduce your issue because your patch didn't
include the libqmi package. However, it is very well possible that the
issue is caused by running 'autogen.sh'. Is it possible that the libtool
patch doesn't get applied? I see that libtool adds "-rpath /usr/lib" to
the link command, and I believe the libtool patch removes exactly that.
To create configure properly, you need to set _AUTORECONF to YES, as
mentioned by Thomas. Unfortunately, that is not so easy...
- modem-manager uses gettext macros provided by the gettext package, so
you need to add host-gettext to the dependencies. But host-gettext
doesn't exist yet - I'll send a patch to add it.
- modem-manager requires gtkdocize to be run. We certainly don't want to
add gtkdocize to buildroot. But since it just generates two files for a
total of 350 lines, it's easy to add that with a package patch.
Hopefully this will help you to solve the problem.
Regards,
Arnout
--
Arnout Vandecappelle arnout at mind be
Senior Embedded Software Architect +32-16-286500
Essensium/Mind http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint: 7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Buildroot] [PATCH] gettext: add host-gettext
2013-02-17 21:29 ` Arnout Vandecappelle
@ 2013-02-17 21:35 ` Arnout Vandecappelle
2013-02-17 23:22 ` [Buildroot] Adding a ModemManager package Shawn J. Goff
1 sibling, 0 replies; 7+ messages in thread
From: Arnout Vandecappelle @ 2013-02-17 21:35 UTC (permalink / raw)
To: buildroot
From: "Arnout Vandecappelle (Essensium/Mind)" <arnout@mind.be>
host-gettext is required for the autotools macros used by modem-manager.
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
---
I noticed that gettext uses ncurses if available, but there is no dependency
or --disable in the .mk file...
---
package/gettext/gettext.mk | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/package/gettext/gettext.mk b/package/gettext/gettext.mk
index 204af10..d69b1c8 100644
--- a/package/gettext/gettext.mk
+++ b/package/gettext/gettext.mk
@@ -55,4 +55,18 @@ endef
GETTEXT_POST_PATCH_HOOKS += GETTEXT_DISABLE_TOOLS
GETTEXT_POST_PATCH_HOOKS += GETTEXT_DISABLE_TESTS
+HOST_GETTEXT_CONF_OPT += \
+ --disable-libasprintf \
+ --disable-acl \
+ --disable-openmp \
+ --disable-rpath \
+ --disable-java \
+ --disable-native-java \
+ --disable-csharp \
+ --disable-relocatable \
+ --without-emacs \
+ --disable-nls \
+ --disable-curses
+
$(eval $(autotools-package))
+$(eval $(host-autotools-package))
--
1.7.10.4
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [Buildroot] Adding a ModemManager package
2013-02-17 21:29 ` Arnout Vandecappelle
2013-02-17 21:35 ` [Buildroot] [PATCH] gettext: add host-gettext Arnout Vandecappelle
@ 2013-02-17 23:22 ` Shawn J. Goff
1 sibling, 0 replies; 7+ messages in thread
From: Shawn J. Goff @ 2013-02-17 23:22 UTC (permalink / raw)
To: buildroot
On 02/17/2013 04:29 PM, Arnout Vandecappelle wrote:
> On 17/02/13 18:07, Shawn J. Goff wrote:
>> I'm trying to add a ModemManager package. While building, I'm getting
>> this error during the installation step: "/usr/lib/libgcc_s.so: file not
>> recognized: File format not recognized". This looks like it's looking at
>> my host's libgcc_s.so instead of the target's version. If that's the
>> case
>> I'm not sure why or how to fix it. I did have to use autogen.sh to
>> create
>> the configure script and lots of other stuff; I did this on my host
>> system, so I'm not sure if that is affecting it.
>
> Hi Shawn,
>
> I haven't been able to reproduce your issue because your patch didn't
> include the libqmi package.
Oops... forgot about that. I've been sitting on that patch because
libqmi v1.0 has some bugs that have been fixed, but they haven't set a
version number since then, so it's just got a sha for the version
number. I'll go ahead and submit that, though.
> However, it is very well possible that the issue is caused by running
> 'autogen.sh'. Is it possible that the libtool patch doesn't get
> applied? I see that libtool adds "-rpath /usr/lib" to the link
> command, and I believe the libtool patch removes exactly that.
>
> To create configure properly, you need to set _AUTORECONF to YES, as
> mentioned by Thomas. Unfortunately, that is not so easy...
>
Yes - I noticed :-)
> - modem-manager uses gettext macros provided by the gettext package,
> so you need to add host-gettext to the dependencies. But host-gettext
> doesn't exist yet - I'll send a patch to add it.
>
Awesome.
> - modem-manager requires gtkdocize to be run. We certainly don't want
> to add gtkdocize to buildroot. But since it just generates two files
> for a total of 350 lines, it's easy to add that with a package patch.
Yes, actually, I do that with libqmi, so I'm familiar with that.
>
> Hopefully this will help you to solve the problem.
>
> Regards,
> Arnout
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2013-02-17 23:22 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-17 17:07 [Buildroot] Adding a ModemManager package Shawn J. Goff
2013-02-17 17:31 ` Thomas Petazzoni
2013-02-17 17:56 ` Shawn J. Goff
2013-02-17 18:17 ` Thomas Petazzoni
2013-02-17 21:29 ` Arnout Vandecappelle
2013-02-17 21:35 ` [Buildroot] [PATCH] gettext: add host-gettext Arnout Vandecappelle
2013-02-17 23:22 ` [Buildroot] Adding a ModemManager package Shawn J. Goff
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox