Bug 210236 - www/nginx: Crashes on start for missing symbol "__aeabi_uidiv" (ARM, FreeBSD 11-CURRENT))
Summary: www/nginx: Crashes on start for missing symbol "__aeabi_uidiv" (ARM, FreeBSD ...
Status: Closed Not A Bug
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: arm Any
: --- Affects Only Me
Assignee: Kubilay Kocak
URL:
Keywords: crash
Depends on:
Blocks:
 
Reported: 2016-06-12 16:20 UTC by Gergely Imreh
Modified: 2016-09-08 08:56 UTC (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gergely Imreh 2016-06-12 16:20:49 UTC
The latest nginx and nginx-devel both ends up crashing on start with the message:

# nginx -t
/usr/local/sbin/nginx: Undefined symbol "__aeabi_uidiv"

Looking around a bit, this looks like a possible cross-compile / toolchain issue when creating the package.

Using RaspberryPi 2 and FreeBSD 11.0-CURRENT. The previous version of the nginx package was working just fine earlier this week. Anything I can test?
Comment 1 Sergey A. Osokin freebsd_committer freebsd_triage 2016-06-12 19:35:47 UTC
Hi,

thanks for report.

Is there any chance to compile nginx or nginx-devel without PCRE support on an ARM platform and try again?
Comment 2 Gergely Imreh 2016-06-13 01:22:43 UTC
Hi, recompiled on the RPi2 itself, the resulting nginx-nopcre-1.10.1,2 runs fine (except that I cannot use it as need the rewrite). I guess it was expected because it's not cross-compilation this time?
Comment 3 Sergey A. Osokin freebsd_committer freebsd_triage 2016-06-13 12:22:53 UTC
Hi Gergely,

thanks for report.
I'm going to re-assign this ticket to the devel/pcre maintainer.


Dear Brendan,

could you please take a look on this issue, it looks like we have a problem with cross compilation of the devel/pcre.

Thanks.
Comment 4 Mikael Urankar freebsd_committer freebsd_triage 2016-06-13 14:39:19 UTC
nginx* works just fine here using the packages on pkg.FreeBSD.org. Do you build the packages yourself with a custom make.conf?
Comment 5 Gergely Imreh 2016-06-13 15:22:37 UTC
(In reply to mikael.urankar from comment #4)

Installed using pkg, not compiled. Just checked again, these are the files I can use from /var/cache/pkg:

 * Works: nginx-1.10.0_3,2.txz (nginx-1.10.0_3,2-3a64fde9fa.txz)
 * Breaks as reported: nginx-1.10.1,2.txz (nginx-1.10.1,2-0cab83e254.txz)
 * Breaks as reportd: nginx-devel-1.11.1.txz (nginx-devel-1.11.1-0f515a881e.txz)

Cannot compile it anyways due to PCRE issue (bug #210237)
Comment 6 Mikael Urankar freebsd_committer freebsd_triage 2016-06-13 15:52:37 UTC
Weird, do you have something in /etc/libmap.conf?
Comment 7 Gergely Imreh 2016-06-13 23:56:01 UTC
Only `includedir /usr/local/etc/libmap.d`, though that dir does not exists. Don't think I've adjusted anything on this.
Comment 8 Rene Ladan freebsd_committer freebsd_triage 2016-06-27 21:40:23 UTC
Maintainer reset.
Comment 9 Sergey A. Osokin freebsd_committer freebsd_triage 2016-08-29 12:01:54 UTC
Looks like related stuff https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57221
Comment 10 VK 2016-09-08 08:41:41 UTC
Guys, can you please identify where the failure is so we can assign to appropriate person? Is this still an issue with devel/pcre? CC-ing new maintainer after reset.
Comment 11 Mikael Urankar freebsd_committer freebsd_triage 2016-09-08 08:51:58 UTC
This isn't an issue.
The OP uses a mix of hardfloat and softfloat binaries which is unsupported (cf https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=210237#c8)

The packages from http://pkg.FreeBSD.org/ work just fine out of the box.

This pr can be closed.
Comment 12 Kubilay Kocak freebsd_committer freebsd_triage 2016-09-08 08:56:17 UTC
Close per comment 11 (referencing bug 210237 comment 8)