Skip to contentSkip to conversation

New: GNU nano fails to compile for x86_64

Buildroot bugzilla at busybox.net 1 participant 5 messages Nov 14, 2013 – Nov 28, 2013

lore
Share & tools
lore
#0 lore raw

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

Summary: GNU nano fails to compile for x86_64
Product: buildroot
Version: 2013.08
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P5
Component: Other
AssignedTo: unassigned at buildroot.uclibc.org
ReportedBy: cassiano at idbinfo.com.br
CC: buildroot at uclibc.org
Estimated Hours: 0.0

GNU nano configure misdetect libmagic from somewhere. I'm not really sure what is going on, as I digged config.log it tries to link nano agains libmagic.so which is not provided byt buildroot. Most interesting is that is does no happen when compiling to x86 or mips64. Only x86_64 is affected. Same build host, same configuration.

I've fixed it by forcing autoconf env: NANO_CONF_ENV = ac_cv_lib_magic_magic_open=no

Then it builds fine.

Thanks

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 6692] GNU nano fails to compile for x86_64

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

Gustavo Zacarias <[email protected]> changed:

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

             Status|NEW                         |ASSIGNED
         AssignedTo|unassigned at buildroot.uclibc |gustavo at zacarias.com.ar
                   |.org                        |

--- Comment #1 from Gustavo Zacarias <[email protected]> 2013-11-14 12:29:39 UTC --- Thanks for the report.
Normally libmagic is provided by file, it's possible that your distribution libmagic is somehow leaking into the build.

Can you test what happens if you enable the file package and then build nano? (i can't reproduce it locally).
So as to make the workaround conditional on file being available or not.

Thanks.

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 6692] GNU nano fails to compile for x86_64

In reply to bugzilla at busybox.net

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

--- Comment #2 from Cassiano Martin <[email protected]> 2013-11-14 16:22:41 UTC --- Confirmed. I enabled file package and now nano compiles just fine. Somehow libmagic from my distribution is leaking into build, as you said.

And this is not the only one, libncursesw also leaked into the build, resulting into nano binary linked against it.

Thanks

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 6692] GNU nano fails to compile for x86_64

In reply to bugzilla at busybox.net

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

--- Comment #3 from Gustavo Zacarias <[email protected]> 2013-11-14 16:50:31 UTC --- The libncursesw failure was detected and fixed in
http://git.buildroot.net/buildroot/commit/package/nano/nano.mk?id=f0801fa2f3e1cbd617bacef3b442da6914caae0a
Patch sent to the list about this issue, thanks.

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 6692] GNU nano fails to compile for x86_64

In reply to bugzilla at busybox.net

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

Gustavo Zacarias <[email protected]> changed:

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

             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED

--- Comment #4 from Gustavo Zacarias <[email protected]> 2013-11-28 11:56:17 UTC --- Solved in commit 893108810b952777feca054a90c7ecfe7cad06e1 for the upcoming 2013.11 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.