[oi-dev] Some packages did not build anymore in userland

Tim Mooney Tim.Mooney at ndsu.edu
Wed Dec 22 23:40:03 UTC 2021


In regard to: Re: [oi-dev] Some packages did not build anymore in userland,...:

> On Wed, Dec 22, 2021 at 08:58:12PM +0100, Alexander Jung wrote:
>>
>> i build the whole oi-userland from time to time, but in the last time there
>> are many packages they did not build anymore. I tried a fresh install and
>> fresh sync of oi-userland but it is the same.
>>
>> For example glib stops with this message ...
> [...]
>> /usr/gcc/9/bin/gcc -Igio/gresource.p -Igio -I../../glib-2.66.8/gio -Igmodule
>> -I../../glib-2.66.8/gmodule -I. -I../../glib-2.66.8 -Iglib
>> -I../../glib-2.66.8/glib -Igobject -I../../glib-2.66.8/gobject
>> -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch
>> -std=gnu99 -O3 -D_GNU_SOURCE -fno-strict-aliasing -DG_DISABLE_CAST_CHECKS
>> -Wduplicated-branches -Wimplicit-fallthrough -Wmisleading-indentation
>> -Wstrict-prototypes -Wunused -Wno-unused-parameter -Wno-bad-function-cast
>> -Wno-cast-function-type -Wno-pedantic -Wno-format-zero-length
>> -Werror=declaration-after-statement -Werror=format=2
>> -Werror=implicit-function-declaration -Werror=init-self
>> -Werror=missing-include-dirs -Werror=missing-prototypes
>> -Werror=pointer-arith -m32 -O3 -Wno-error=format-nonliteral
>> -D_XOPEN_SOURCE=600 -D__EXTENSIONS__=1 -D_XPG6 -MD -MQ
>> gio/gresource.p/gresource-tool.c.o -MF gio/gresource.p/gresource-tool.c.o.d
>> -o gio/gresource.p/gresource-tool.c.o -c
>> ../../glib-2.66.8/gio/gresource-tool.c
>
> I've seen that behavior too.  It's a bug in ninja, but the developer
> refuses to accept complaints about it.  Ninja unconditionally defines
> _FILE_OFFSET_BITS=64 .  The bug affects only 32-bit builds, but
> sometimes you need a 32-bit build.

Wow, good find Gary.  I'm sure I would have wasted a bunch of time
debugging that.

>It's easily fixed on OI, by a
> patch that removes the offending statement.

Is that something someone else has had rejected in the ninja bugtracker,
or what's the provenance of that patch?

Thanks,

Tim
-- 
Tim Mooney                                             Tim.Mooney at ndsu.edu
Enterprise Computing & Infrastructure /
Division of Information Technology    /                701-231-1076 (Voice)
North Dakota State University, Fargo, ND 58105-5164



More information about the oi-dev mailing list