[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Building fcl on mipsel.



YunQiang Su <wzssyqa@gmail.com> 于2020年12月26日周六 下午2:52写道:
>
> Leopold Palomo-Avellaneda <leo@alaxarxa.net> 于2020年12月26日周六 上午7:28写道:
> >
> > Hi,
> >
> > thanks for the idea but no luck. I have tried in rules
> >  -DCMAKE_EXE_LINKER_FLAGS="-fuse-ld=gold -Wl,--no-map-whole-files
> > -Wl,--no-keep-memory -Wl,--no-keep-files-mapped" \
> >
>

add
-DCMAKE_CXX_FLAGS=-Wa,--reduce-memory-overheads
to dh_auto_configure can make fcl buildable.

> It failed due to assembler, so you need to use -Wa to CFLAGS instead
> of -Wl to LDFLAGS.
>    https://gcc.gnu.org/onlinedocs/gcc/Assembler-Options.html
>
> > Also, I have tried to not build with debugging symbols:
> >
> > override_dh_strip:
> >         ifeq ($(DEB_HOST_ARCH),$(filter $(DEB_HOST_ARCH),mipsel))
> >                 dh_strip --no-automatic-dbgsym
> >         endif
> >
> > Even, with make -j1 I got the same error:
> >
> > usr/bin/as: out of memory allocating 4072 bytes after a total of 0 bytes
> > /tmp/ccqFrEvR.s: Assembler messages:
> > /tmp/ccqFrEvR.s: Fatal error: can't close
> > CMakeFiles/fcl.dir/narrowphase/continuous_collision.cpp.o: memory exhausted
> > make[3]: *** [src/CMakeFiles/fcl.dir/build.make:1060:
> > src/CMakeFiles/fcl.dir/narrowphase/continuous_collision.cpp.o] Error 1
> > make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-mipsel-linux-gnu'
> > make[2]: *** [CMakeFiles/Makefile2:1177: src/CMakeFiles/fcl.dir/all] Error 2
> > make[2]: Leaving directory '/<<PKGBUILDDIR>>/obj-mipsel-linux-gnu'
> > make[1]: *** [Makefile:163: all] Error 2
> > make[1]: Leaving directory '/<<PKGBUILDDIR>>/obj-mipsel-linux-gnu'
> > dh_auto_build: error: cd obj-mipsel-linux-gnu && make -j1
> > "INSTALL=install --strip-program=true" VERBOSE=1 returned exit code 2
> > make: *** [debian/rules:22: binary] Error 25
> >
> >
> > So, I understand that it is in the compile process, not in link process.
> > Any other idea?
> >
> > Leopold
> >
> >
> > El 25/12/20 a les 2:11, YunQiang Su ha escrit:
> > > Leopold Palomo-Avellaneda <leo@alaxarxa.net> 于2020年12月24日周四 下午11:37写道:
> > >>
> > >> Hi,
> > >>
> > >> I have a problem with a package that doesn't build in mipsel [1]. The
> > >> error, is:
> > >>
> > >> as: out of memory allocating 4072 bytes after a total of 569389056 bytes
> > >>
> > >> I have also tried to build in debomatic [2], with -j1, but similar error:
> > >>
> > >>  out of memory allocating 4072 bytes after a total of 0 bytes
> > >> /tmp/ccUbCUlA.s: Assembler messages:
> > >> /tmp/ccUbCUlA.s: Fatal error: can't close
> > >> CMakeFiles/fcl.dir/narrowphase/continuous_collision.cpp.o: memory exhausted
> > >>
> > >> I would like to ask some advice of what to do because I would like to
> > >> ask a transition and it's the only arch that doesn't build.
> > >>
> > >> I have asked in IRC, but no result.
> > >
> > > try pass `--reduce-memory-overheads` to assembler?
> > >
> > >>
> > >> Best regards,
> > >>
> > >> Leopold
> > >>
> > >> PS. Please make CC to me, I'm not in the list.
> > >>
> > >> [1]
> > >> https://buildd.debian.org/status/fetch.php?pkg=fcl&arch=mipsel&ver=0.6.1-3&stamp=1606649354&raw=0
> > >> [2]
> > >> http://debomatic-mipsel.debian.net/distribution#unstable/fcl/0.6.1-4/buildlog
> > >>
> > >> --
> > >> --
> > >> Linux User 152692     GPG: 05F4A7A949A2D9AA
> > >> Catalonia
> > >> -------------------------------------
> > >> A: Because it messes up the order in which people normally read text.
> > >> Q: Why is top-posting such a bad thing?
> > >> A: Top-posting.
> > >> Q: What is the most annoying thing in e-mail?
> > >>
> > >
> > >
> >
> >
> > --
> > --
> > Linux User 152692     GPG: 05F4A7A949A2D9AA
> > Catalonia
> > -------------------------------------
> > A: Because it messes up the order in which people normally read text.
> > Q: Why is top-posting such a bad thing?
> > A: Top-posting.
> > Q: What is the most annoying thing in e-mail?
>
>
>
> --
> YunQiang Su



-- 
YunQiang Su


Reply to: