-
Notifications
You must be signed in to change notification settings - Fork 251
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
Failed to cross-compile the text-icu
package from x86_64 to aarch64.
- Build system:
x86_64-linux
, cross compiling to aarch64 - GHC version: 9.12.2
- Haskell.nix version: 4d49344
Steps To Reproduce
- Checkout the
text-icu
branch in this repo: https://github.com/dcastro/haskellnixtest/tree/text-icu - Run
nix build .#aarch64
The project in the repo has an executable with a single dependency, text-icu
.
Expected behavior
Expected the build to succeed.
Additional context
Failed to build the text-icu
package.
Char.hsc: In function ‘_hsc2hs_test45’:
Char.hsc:1227:20: error: storage size of ‘test_array’ isn’t constant
Char.hsc:1227:20: warning: unused variable ‘test_array’ [-Wunused-variable]
compilation failed
Full logs
Running phase: unpackPhase
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking source archive /nix/store/dswjqw78kq3ml0p4bnk33qrfwpij0m9r-text-icu-0.8.0.5.tar.gz
source root is text-icu-0.8.0.5
setting SOURCE_DATE_EPOCH to timestamp 1000000000 of file "text-icu-0.8.0.5/text-icu.cabal"
Running phase: patchPhase
@nix { "action": "setPhase", "phase": "patchPhase" }
'/build/.attr-0h9ydb7s8pfhl5kfs3rmmwnmpi49yyiw7jgr5dpw9rmvv8sy0f2b' -> 'text-icu.cabal'
Running phase: updateAutotoolsGnuConfigScriptsPhase
@nix { "action": "setPhase", "phase": "updateAutotoolsGnuConfigScriptsPhase" }
Running phase: updateAutotoolsGnuConfigScriptsPhase
@nix { "action": "setPhase", "phase": "updateAutotoolsGnuConfigScriptsPhase" }
Running phase: configurePhase
@nix { "action": "setPhase", "phase": "configurePhase" }
Configure flags:
--prefix=/nix/store/1rib23q2552v2vrbnvb2y56zxgwzwdzf-text-icu-lib-text-icu-aarch64-unknown-linux-gnu-0.8.0.5 lib:text-icu --extra-include-dirs=/nix/store/x821igi1a27ffi417wv2w8wq1qf4qnjw-icu4c-aarch64-unknown-linux-gnu-76.1-dev/include --extra-include-dirs=/nix/store/x821igi1a27ffi417wv2w8wq1qf4qnjw-icu4c-aarch64->
Configuring library for text-icu-0.8.0.5...
Running phase: buildPhase
@nix { "action": "setPhase", "phase": "buildPhase" }
Preprocessing library for text-icu-0.8.0.5...
In file included from dist/build/Data/Text/ICU/BiDi_hsc_test0.c:1:
/nix/store/k7dy15plnc30b4d4rh8g9mfyxly9h4c1-aarch64-unknown-linux-gnu-ghc-9.12.2/lib/template-hsc.h:44:20: warning: ISO C does not permit named variadic macros [-Wvariadic-macros]
44 | #define hsc_const(x...) \
| ^~~
/nix/store/k7dy15plnc30b4d4rh8g9mfyxly9h4c1-aarch64-unknown-linux-gnu-ghc-9.12.2/lib/template-hsc.h:50:24: warning: ISO C does not permit named variadic macros [-Wvariadic-macros]
50 | #define hsc_const_str(x...) \
| ^~~
/nix/store/k7dy15plnc30b4d4rh8g9mfyxly9h4c1-aarch64-unknown-linux-gnu-ghc-9.12.2/lib/template-hsc.h:69:19: warning: ISO C does not permit named variadic macros [-Wvariadic-macros]
69 | #define hsc_type(t...) \
| ^~~
/nix/store/k7dy15plnc30b4d4rh8g9mfyxly9h4c1-aarch64-unknown-linux-gnu-ghc-9.12.2/lib/template-hsc.h:95:19: warning: ISO C does not permit named variadic macros [-Wvariadic-macros]
95 | #define hsc_size(t...) \
| ^~~
/nix/store/k7dy15plnc30b4d4rh8g9mfyxly9h4c1-aarch64-unknown-linux-gnu-ghc-9.12.2/lib/template-hsc.h:98:24: warning: ISO C does not permit named variadic macros [-Wvariadic-macros]
98 | #define hsc_alignment(x...) \
| ^~~
/nix/store/k7dy15plnc30b4d4rh8g9mfyxly9h4c1-aarch64-unknown-linux-gnu-ghc-9.12.2/lib/template-hsc.h:117:25: warning: ISO C does not permit named variadic macros [-Wvariadic-macros]
117 | #define hsc_haskellize(x...) \
| ^~~
In file included from dist/build/Data/Text/ICU/Calendar_hsc_test0.c:1:
/nix/store/k7dy15plnc30b4d4rh8g9mfyxly9h4c1-aarch64-unknown-linux-gnu-ghc-9.12.2/lib/template-hsc.h:44:20: warning: ISO C does not permit named variadic macros [-Wvariadic-macros]
44 | #define hsc_const(x...) \
| ^~~
/nix/store/k7dy15plnc30b4d4rh8g9mfyxly9h4c1-aarch64-unknown-linux-gnu-ghc-9.12.2/lib/template-hsc.h:50:24: warning: ISO C does not permit named variadic macros [-Wvariadic-macros]
50 | #define hsc_const_str(x...) \
| ^~~
/nix/store/k7dy15plnc30b4d4rh8g9mfyxly9h4c1-aarch64-unknown-linux-gnu-ghc-9.12.2/lib/template-hsc.h:69:19: warning: ISO C does not permit named variadic macros [-Wvariadic-macros]
69 | #define hsc_type(t...) \
| ^~~
/nix/store/k7dy15plnc30b4d4rh8g9mfyxly9h4c1-aarch64-unknown-linux-gnu-ghc-9.12.2/lib/template-hsc.h:95:19: warning: ISO C does not permit named variadic macros [-Wvariadic-macros]
95 | #define hsc_size(t...) \
| ^~~
/nix/store/k7dy15plnc30b4d4rh8g9mfyxly9h4c1-aarch64-unknown-linux-gnu-ghc-9.12.2/lib/template-hsc.h:98:24: warning: ISO C does not permit named variadic macros [-Wvariadic-macros]
98 | #define hsc_alignment(x...) \
| ^~~
/nix/store/k7dy15plnc30b4d4rh8g9mfyxly9h4c1-aarch64-unknown-linux-gnu-ghc-9.12.2/lib/template-hsc.h:117:25: warning: ISO C does not permit named variadic macros [-Wvariadic-macros]
117 | #define hsc_haskellize(x...) \
| ^~~
In file included from dist/build/Data/Text/ICU/Break_hsc_test0.c:1:
/nix/store/k7dy15plnc30b4d4rh8g9mfyxly9h4c1-aarch64-unknown-linux-gnu-ghc-9.12.2/lib/template-hsc.h:44:20: warning: ISO C does not permit named variadic macros [-Wvariadic-macros]
44 | #define hsc_const(x...) \
| ^~~
/nix/store/k7dy15plnc30b4d4rh8g9mfyxly9h4c1-aarch64-unknown-linux-gnu-ghc-9.12.2/lib/template-hsc.h:50:24: warning: ISO C does not permit named variadic macros [-Wvariadic-macros]
50 | #define hsc_const_str(x...) \
| ^~~
/nix/store/k7dy15plnc30b4d4rh8g9mfyxly9h4c1-aarch64-unknown-linux-gnu-ghc-9.12.2/lib/template-hsc.h:69:19: warning: ISO C does not permit named variadic macros [-Wvariadic-macros]
69 | #define hsc_type(t...) \
| ^~~
/nix/store/k7dy15plnc30b4d4rh8g9mfyxly9h4c1-aarch64-unknown-linux-gnu-ghc-9.12.2/lib/template-hsc.h:95:19: warning: ISO C does not permit named variadic macros [-Wvariadic-macros]
95 | #define hsc_size(t...) \
| ^~~
/nix/store/k7dy15plnc30b4d4rh8g9mfyxly9h4c1-aarch64-unknown-linux-gnu-ghc-9.12.2/lib/template-hsc.h:98:24: warning: ISO C does not permit named variadic macros [-Wvariadic-macros]
98 | #define hsc_alignment(x...) \
| ^~~
/nix/store/k7dy15plnc30b4d4rh8g9mfyxly9h4c1-aarch64-unknown-linux-gnu-ghc-9.12.2/lib/template-hsc.h:117:25: warning: ISO C does not permit named variadic macros [-Wvariadic-macros]
117 | #define hsc_haskellize(x...) \
| ^~~
In file included from dist/build/Data/Text/ICU/Char_hsc_test0.c:1:
/nix/store/k7dy15plnc30b4d4rh8g9mfyxly9h4c1-aarch64-unknown-linux-gnu-ghc-9.12.2/lib/template-hsc.h:44:20: warning: ISO C does not permit named variadic macros [-Wvariadic-macros]
44 | #define hsc_const(x...) \
| ^~~
/nix/store/k7dy15plnc30b4d4rh8g9mfyxly9h4c1-aarch64-unknown-linux-gnu-ghc-9.12.2/lib/template-hsc.h:50:24: warning: ISO C does not permit named variadic macros [-Wvariadic-macros]
50 | #define hsc_const_str(x...) \
| ^~~
/nix/store/k7dy15plnc30b4d4rh8g9mfyxly9h4c1-aarch64-unknown-linux-gnu-ghc-9.12.2/lib/template-hsc.h:69:19: warning: ISO C does not permit named variadic macros [-Wvariadic-macros]
69 | #define hsc_type(t...) \
| ^~~
/nix/store/k7dy15plnc30b4d4rh8g9mfyxly9h4c1-aarch64-unknown-linux-gnu-ghc-9.12.2/lib/template-hsc.h:95:19: warning: ISO C does not permit named variadic macros [-Wvariadic-macros]
95 | #define hsc_size(t...) \
| ^~~
/nix/store/k7dy15plnc30b4d4rh8g9mfyxly9h4c1-aarch64-unknown-linux-gnu-ghc-9.12.2/lib/template-hsc.h:98:24: warning: ISO C does not permit named variadic macros [-Wvariadic-macros]
98 | #define hsc_alignment(x...) \
| ^~~
/nix/store/k7dy15plnc30b4d4rh8g9mfyxly9h4c1-aarch64-unknown-linux-gnu-ghc-9.12.2/lib/template-hsc.h:117:25: warning: ISO C does not permit named variadic macros [-Wvariadic-macros]
117 | #define hsc_haskellize(x...) \
| ^~~
Char.hsc: In function ‘_hsc2hs_test45’:
Char.hsc:1227:20: error: storage size of ‘test_array’ isn’t constant
Char.hsc:1227:20: warning: unused variable ‘test_array’ [-Wunused-variable]
compilation failed
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working