All of lore.kernel.org
 help / color / mirror / Atom feed
* xfsprogs build broken on armv7l
@ 2017-02-01 22:19 Richard Weinberger
  2017-02-01 22:31 ` Eric Sandeen
  0 siblings, 1 reply; 4+ messages in thread
From: Richard Weinberger @ 2017-02-01 22:19 UTC (permalink / raw)
  To: linux-xfs, gwendal
  Cc: vapier, hch, Eric Sandeen, David Oberhollenzer, David Gstir

Hi!

On my armv7 box, current xfsprogs fail to build:
    [TEST]    CRC32
In file included from crc32.c:37:0:
../include/xfs.h:53:12: error: size of array ‘xfs_assert_largefile’ is too large

First bad commit is:
commit 0a71e38396304b4d1215ba0b51cd6ce8e33eb40d
Author: Gwendal Grignou <gwendal@chromium.org>
Date:   Thu Jan 12 14:12:29 2017 -0600

    build: Allow compiling xfsprogs in a cross compile environment

    Without this patch, we are using the same compiler and options for the host
    compiler (BUILD_CC) and the target compiler (CC), and we would get error
    messages at compilation:
    x86_64-pc-linux-gnu-gcc -O2 -O2 -pipe -march=armv7-a -mtune=cortex-a15 ...
    x86_64-pc-linux-gnu-gcc.real: error: unrecognized command line option
    '-mfpu=neon'
    '-mfloat-abi=hard'
    '-clang-syntax'
    '-mfpu=neon'
    '-mfloat-abi=hard'
    '-clang-syntax'

    Add BUILD_CC and BUILD_CFLAGS as precious variables to allow setting it up
    from the ebuild.

    Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
    Reviewed-by: Mike Frysinger <vapier@gentoo.org>
    Reviewed-by: Christoph Hellwig <hch@lst.de>
    Signed-off-by: Eric Sandeen <sandeen@sandeen.net>

Thanks,
//richard

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: xfsprogs build broken on armv7l
  2017-02-01 22:19 xfsprogs build broken on armv7l Richard Weinberger
@ 2017-02-01 22:31 ` Eric Sandeen
  2017-02-01 23:12   ` Richard Weinberger
  0 siblings, 1 reply; 4+ messages in thread
From: Eric Sandeen @ 2017-02-01 22:31 UTC (permalink / raw)
  To: Richard Weinberger, linux-xfs, gwendal
  Cc: vapier, hch, David Oberhollenzer, David Gstir

On 2/1/17 4:19 PM, Richard Weinberger wrote:
> Hi!
> 
> On my armv7 box, current xfsprogs fail to build:
>     [TEST]    CRC32
> In file included from crc32.c:37:0:
> ../include/xfs.h:53:12: error: size of array ‘xfs_assert_largefile’ is too large

neat ;)

Does this fix it?



diff --git a/include/builddefs.in b/include/builddefs.in
index 94d25fc..4d6bb2d 100644
--- a/include/builddefs.in
+++ b/include/builddefs.in
@@ -26,7 +26,7 @@ MALLOCLIB = @malloc_lib@
 LOADERFLAGS = @LDFLAGS@
 LTLDFLAGS = @LDFLAGS@
 CFLAGS = @CFLAGS@ -D_FILE_OFFSET_BITS=64
-BUILD_CFLAGS = @BUILD_CFLAGS@
+BUILD_CFLAGS = @BUILD_CFLAGS@ -D_FILE_OFFSET_BITS=64
 
 LIBRT = @librt@
 LIBUUID = @libuuid@





> First bad commit is:
> commit 0a71e38396304b4d1215ba0b51cd6ce8e33eb40d
> Author: Gwendal Grignou <gwendal@chromium.org>
> Date:   Thu Jan 12 14:12:29 2017 -0600
> 
>     build: Allow compiling xfsprogs in a cross compile environment
> 
>     Without this patch, we are using the same compiler and options for the host
>     compiler (BUILD_CC) and the target compiler (CC), and we would get error
>     messages at compilation:
>     x86_64-pc-linux-gnu-gcc -O2 -O2 -pipe -march=armv7-a -mtune=cortex-a15 ...
>     x86_64-pc-linux-gnu-gcc.real: error: unrecognized command line option
>     '-mfpu=neon'
>     '-mfloat-abi=hard'
>     '-clang-syntax'
>     '-mfpu=neon'
>     '-mfloat-abi=hard'
>     '-clang-syntax'
> 
>     Add BUILD_CC and BUILD_CFLAGS as precious variables to allow setting it up
>     from the ebuild.
> 
>     Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
>     Reviewed-by: Mike Frysinger <vapier@gentoo.org>
>     Reviewed-by: Christoph Hellwig <hch@lst.de>
>     Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
> 
> Thanks,
> //richard
> 

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: xfsprogs build broken on armv7l
  2017-02-01 22:31 ` Eric Sandeen
@ 2017-02-01 23:12   ` Richard Weinberger
  2017-02-01 23:14     ` Eric Sandeen
  0 siblings, 1 reply; 4+ messages in thread
From: Richard Weinberger @ 2017-02-01 23:12 UTC (permalink / raw)
  To: Eric Sandeen, linux-xfs, gwendal
  Cc: vapier, hch, David Oberhollenzer, David Gstir

Eric,

Am 01.02.2017 um 23:31 schrieb Eric Sandeen:
> On 2/1/17 4:19 PM, Richard Weinberger wrote:
>> Hi!
>>
>> On my armv7 box, current xfsprogs fail to build:
>>     [TEST]    CRC32
>> In file included from crc32.c:37:0:
>> ../include/xfs.h:53:12: error: size of array ‘xfs_assert_largefile’ is too large
> 
> neat ;)
> 
> Does this fix it?

Yes, it does. :-)

Thanks,
//richard

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: xfsprogs build broken on armv7l
  2017-02-01 23:12   ` Richard Weinberger
@ 2017-02-01 23:14     ` Eric Sandeen
  0 siblings, 0 replies; 4+ messages in thread
From: Eric Sandeen @ 2017-02-01 23:14 UTC (permalink / raw)
  To: Richard Weinberger, linux-xfs, gwendal
  Cc: vapier, hch, David Oberhollenzer, David Gstir

On 2/1/17 5:12 PM, Richard Weinberger wrote:
> Eric,
> 
> Am 01.02.2017 um 23:31 schrieb Eric Sandeen:
>> On 2/1/17 4:19 PM, Richard Weinberger wrote:
>>> Hi!
>>>
>>> On my armv7 box, current xfsprogs fail to build:
>>>     [TEST]    CRC32
>>> In file included from crc32.c:37:0:
>>> ../include/xfs.h:53:12: error: size of array ‘xfs_assert_largefile’ is too large
>>
>> neat ;)
>>
>> Does this fix it?
> 
> Yes, it does. :-)

Cool (and just realized that patch was sent earlier today by
Eric Biggers as well, so I guess that's dual-confirmation) :)

-eric

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-02-01 23:14 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-01 22:19 xfsprogs build broken on armv7l Richard Weinberger
2017-02-01 22:31 ` Eric Sandeen
2017-02-01 23:12   ` Richard Weinberger
2017-02-01 23:14     ` Eric Sandeen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.