Bug 179561 - Compilation issue for www/lighttpd on raspberry pi
Summary: Compilation issue for www/lighttpd on raspberry pi
Status: Closed Feedback Timeout
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Martin Matuska
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-15 01:00 UTC by Sreekanth
Modified: 2014-07-06 02:46 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sreekanth 2013-06-15 01:00:00 UTC
I am trying to compile lighttpd on Raspberry Pi, I get the following error while doing so.

===>  Building for pcre-8.20
make  all-am
/bin/sh ./libtool --tag=CXX    --mode=compile c++ -DHAVE_CONFIG_H -I.      -O -pipe -MT pcrecpp.lo -MD -MP -MF .deps/pcrecpp.Tpo -c -o pcrecpp.lo pcrecpp.cc
libtool: compile:  c++ -DHAVE_CONFIG_H -I. -O -pipe -MT pcrecpp.lo -MD -MP -MF .deps/pcrecpp.Tpo -c pcrecpp.cc  -fPIC -DPIC -o .libs/pcrecpp.o
Assertion failed: ((PtrVal & ((1 << PtrTraits::NumLowBitsAvailable)-1)) == 0 && "Pointer is not sufficiently aligned"), function initWithPointer, file /b/raspberry/head/lib/clang/libclangsema/../../../contrib/llvm/include/llvm/ADT/PointerIntPair.h, line 100.
Stack dump:
0.	Program arguments: /usr/bin/c++ -cc1 -triple armv6-unknown-freebsd10.0 -S -disable-free -main-file-name pcrecpp.cc -mrelocation-model pic -pic-level 2 -mdisable-fp-elim -mconstructor-aliases -target-abi apcs-gnu -target-cpu arm1136jf-s -msoft-float -mfloat-abi soft -target-feature +soft-float -target-feature +soft-float-abi -target-feature -neon -coverage-file /tmp/pcrecpp-kHaeg4.s -resource-dir /usr/bin/../lib/clang/3.3 -dependency-file .deps/pcrecpp.Tpo -sys-header-deps -MP -MT pcrecpp.lo -D HAVE_CONFIG_H -D PIC -I . -O2 -fdeprecated-macro -fno-dwarf-directory-asm -fdebug-compilation-dir /usr/ports/devel/pcre/work/pcre-8.20 -ferror-limit 19 -fmessage-length 181 -mstackrealign -fno-signed-char -fobjc-runtime=gnustep -fobjc-default-synthesize-properties -fcxx-exceptions -fexceptions -fsjlj-exceptions -fdiagnostics-show-option -fcolor-diagnostics -backend-option -vectorize-loops -o /tmp/pcrecpp-kHaeg4.s -x c++ pcrecpp.cc 
1.	/usr/include/c++/4.2/bits/basic_string.tcc:978:43: current parser token ';'
2.	/usr/include/c++/4.2/bits/basic_string.tcc:48:1 <Spelling=/usr/include/c++/4.2/bits/c++config.h:76:38>: parsing namespace 'std'
c++: error: unable to execute command: Abort trap (core dumped)
c++: error: clang frontend command failed due to signal (use -v to see invocation)
FreeBSD clang version 3.3 (trunk 178860) 20130405
Target: armv6-unknown-freebsd10.0
Thread model: posix
c++: note: diagnostic msg: PLEASE submit a bug report to http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and associated run script.
c++: note: diagnostic msg: Error generating preprocessed source(s).
*** [pcrecpp.lo] Error code 1

Stop in /usr/ports/devel/pcre/work/pcre-8.20.
*** [all] Error code 1

Stop in /usr/ports/devel/pcre/work/pcre-8.20.
*** [do-build] Error code 1

Stop in /usr/ports/devel/pcre.
*** [install] Error code 1

Stop in /usr/ports/devel/pcre.
*** [lib-depends] Error code 1

Stop in /usr/ports/www/lighttpd.
*** [build] Error code 1

How-To-Repeat: run make in /usr/ports/www/lightpd/
Comment 1 Hiren Panchasara freebsd_committer freebsd_triage 2013-06-15 01:25:46 UTC
Does this look similar?: http://www.freebsd.org/cgi/query-pr.cgi?pr=178495

FWIW, Clang got updated to release 3.3 a couple days back on HEAD. Not
sure if this is fixed in that version.

cheers,
Hiren
Comment 2 Sreekanth 2013-06-16 23:00:15 UTC
On 6/14/13 5:25 PM, hiren panchasara wrote:
> Does this look similar?:http://www.freebsd.org/cgi/query-pr.cgi?pr=178495
>
> FWIW, Clang got updated to release 3.3 a couple days back on HEAD. Not
> sure if this is fixed in that version.
>
> cheers,
> Hiren
No, looks like the issue remains on today's revision of HEAD. On top of 
that looks like the kernel for raspberry pi is broken. It now hangs at 
Kernel args: (null). I used an older version of kernel and I get the 
same error when compiling pcre port.

-S
Comment 3 Mark Linimon freebsd_committer freebsd_triage 2013-09-01 05:02:55 UTC
Responsible Changed
From-To: freebsd-arm->mm

make this a ports PR and assign.
Comment 4 luiz.souza 2013-09-11 14:20:25 UTC
Hello Sreekanth,

This seems to no longer be an issue on -HEAD. Could you please confirm =
if this issue was fixed for you ? If this is the case can we close this =
PR ?

Regards,
Luiz=
Comment 5 Luiz Otavio O Souza 2013-09-11 14:44:26 UTC
Hello Sreekanth,

This seems to no longer be an issue on -HEAD. Could you please confirm =
if this issue was fixed for you ? If this is the case can we close this =
PR ?

Regards,
Luiz=
Comment 6 Sean Bruno freebsd_committer freebsd_triage 2014-07-06 02:46:05 UTC
This appears to now be working on my cluster buildsystem via qemu.