Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ rm -rf build/sim; litex/litex/tools/litex_sim.py --cpu-type mor1kx
- INFO:SoC: __ _ __ _ __
- INFO:SoC: / / (_) /____ | |/_/
- INFO:SoC: / /__/ / __/ -_)> <
- INFO:SoC: /____/_/\__/\__/_/|_|
- INFO:SoC: Build your hardware, easily!
- INFO:SoC:--------------------------------------------------------------------------------
- INFO:SoC:Creating SoC... (2021-10-22 10:11:39)
- INFO:SoC:--------------------------------------------------------------------------------
- INFO:SoC:FPGA device : SIM.
- INFO:SoC:System clock: 1.000MHz.
- INFO:SoCBusHandler:Creating Bus Handler...
- INFO:SoCBusHandler:32-bit wishbone Bus, 4.0GiB Address Space.
- INFO:SoCBusHandler:Adding reserved Bus Regions...
- INFO:SoCBusHandler:Bus Handler created.
- INFO:SoCCSRHandler:Creating CSR Handler...
- INFO:SoCCSRHandler:32-bit CSR Bus, 32-bit Aligned, 16.0KiB Address Space, 2048B Paging, big Ordering (Up to 32 Locations).
- INFO:SoCCSRHandler:Adding reserved CSRs...
- INFO:SoCCSRHandler:CSR Handler created.
- INFO:SoCIRQHandler:Creating IRQ Handler...
- INFO:SoCIRQHandler:IRQ Handler (up to 32 Locations).
- INFO:SoCIRQHandler:Adding reserved IRQs...
- INFO:SoCIRQHandler:IRQ Handler created.
- INFO:SoC:--------------------------------------------------------------------------------
- INFO:SoC:Initial SoC:
- INFO:SoC:--------------------------------------------------------------------------------
- INFO:SoC:32-bit wishbone Bus, 4.0GiB Address Space.
- INFO:SoC:32-bit CSR Bus, 32-bit Aligned, 16.0KiB Address Space, 2048B Paging, big Ordering (Up to 32 Locations).
- INFO:SoC:IRQ Handler (up to 32 Locations).
- INFO:SoC:--------------------------------------------------------------------------------
- INFO:SoCBusHandler:io0 Region added at Origin: 0x80000000, Size: 0x80000000, Mode: RW, Cached: False Linker: False.
- INFO:SoCBusHandler:cpu_bus0 added as Bus Master.
- INFO:SoCBusHandler:cpu_bus1 added as Bus Master.
- INFO:SoCBusHandler:rom Region added at Origin: 0x00000000, Size: 0x00020000, Mode: R, Cached: True Linker: False.
- INFO:SoCBusHandler:rom added as Bus Slave.
- INFO:SoC:RAM rom added Origin: 0x00000000, Size: 0x00020000, Mode: R, Cached: True Linker: False.
- INFO:SoCBusHandler:sram Region added at Origin: 0x01000000, Size: 0x00002000, Mode: RW, Cached: True Linker: False.
- INFO:SoCBusHandler:sram added as Bus Slave.
- INFO:SoC:RAM sram added Origin: 0x01000000, Size: 0x00002000, Mode: RW, Cached: True Linker: False.
- INFO:SoCIRQHandler:uart IRQ allocated at Location 0.
- INFO:SoCIRQHandler:timer0 IRQ allocated at Location 1.
- INFO:SoCBusHandler:csr Region added at Origin: 0x82000000, Size: 0x00010000, Mode: RW, Cached: False Linker: False.
- INFO:SoCBusHandler:csr added as Bus Slave.
- INFO:SoCCSRHandler:bridge added as CSR Master.
- INFO:SoCBusHandler:Interconnect: InterconnectShared (2 <-> 3).
- INFO:SoCCSRHandler:ctrl CSR allocated at Location 0.
- INFO:SoCCSRHandler:identifier_mem CSR allocated at Location 1.
- INFO:SoCCSRHandler:timer0 CSR allocated at Location 2.
- INFO:SoCCSRHandler:uart CSR allocated at Location 3.
- INFO:SoC:--------------------------------------------------------------------------------
- INFO:SoC:Finalized SoC:
- INFO:SoC:--------------------------------------------------------------------------------
- INFO:SoC:32-bit wishbone Bus, 4.0GiB Address Space.
- IO Regions: (1)
- io0 : Origin: 0x80000000, Size: 0x80000000, Mode: RW, Cached: False Linker: False
- Bus Regions: (3)
- rom : Origin: 0x00000000, Size: 0x00020000, Mode: R, Cached: True Linker: False
- sram : Origin: 0x01000000, Size: 0x00002000, Mode: RW, Cached: True Linker: False
- csr : Origin: 0x82000000, Size: 0x00010000, Mode: RW, Cached: False Linker: False
- Bus Masters: (2)
- - cpu_bus0
- - cpu_bus1
- Bus Slaves: (3)
- - rom
- - sram
- - csr
- INFO:SoC:32-bit CSR Bus, 32-bit Aligned, 16.0KiB Address Space, 2048B Paging, big Ordering (Up to 32 Locations).
- CSR Locations: (4)
- - ctrl : 0
- - identifier_mem : 1
- - timer0 : 2
- - uart : 3
- INFO:SoC:IRQ Handler (up to 32 Locations).
- IRQ Locations: (2)
- - uart : 0
- - timer0 : 1
- INFO:SoC:--------------------------------------------------------------------------------
- make: Entering directory '/home/somlo/LITEX/build/sim/software/libc'
- if [ -d "/home/somlo/LITEX/litex/litex/soc/software/libc/or1k" ]; then \
- cp /home/somlo/LITEX/litex/litex/soc/software/libc/or1k/* /home/somlo/LITEX/pythondata-software-picolibc/pythondata_software_picolibc/data/newlib/libc/machine/or1k/ ;\
- fi
- meson /home/somlo/LITEX/pythondata-software-picolibc/pythondata_software_picolibc/data \
- -Dmultilib=false \
- -Dpicocrt=false \
- -Datomic-ungetc=false \
- -Dthread-local-storage=false \
- -Dio-long-long=true \
- -Dformat-default=integer \
- -Dincludedir=picolibc/or1k-linux/include \
- -Dlibdir=picolibc/or1k-linux/lib \
- --cross-file cross.txt
- WARNING: Unknown CPU family or1k, please report this at https://github.com/mesonbuild/meson/issues/new
- The Meson build system
- Version: 0.59.1
- Source dir: /home/somlo/LITEX/pythondata-software-picolibc/pythondata_software_picolibc/data
- Build dir: /home/somlo/LITEX/build/sim/software/libc
- Build type: cross build
- Project name: picolibc
- Project version: 1.7.3
- C compiler for the host machine: or1k-linux-gcc (gcc 9.3.0 "or1k-linux-gcc.br_real (Buildroot 2020.08-14-ge5a2a90) 9.3.0")
- C linker for the host machine: or1k-linux-gcc ld.bfd 2.33.1
- C compiler for the build machine: ccache cc (gcc 11.2.1 "cc (GCC) 11.2.1 20210728 (Red Hat 11.2.1-1)")
- C linker for the build machine: cc ld.bfd 2.35.2-5
- Build machine cpu family: x86_64
- Build machine cpu: x86_64
- Host machine cpu family: or1k
- Host machine cpu: mor1kx
- Target machine cpu family: or1k
- Target machine cpu: mor1kx
- Checking if "long double check" compiles: YES
- Checking if "long double same as double" compiles: YES
- Compiler for C supports arguments -fno-stack-protector: YES
- Compiler for C supports arguments -fno-common: YES
- Compiler for C supports arguments -frounding-math: YES
- Program or1k-linux-gcc-nm found: YES
- Program scripts/duplicate-names found: YES (/home/somlo/LITEX/pythondata-software-picolibc/pythondata_software_picolibc/data/scripts/duplicate-names)
- Compiler for C supports link arguments -Wl,--defsym=_start=0: YES
- Compiler for C supports link arguments -Wl,-alias,main,testalias: NO
- Compiler for C supports function attribute alias: YES
- Compiler for C supports function attribute format: YES
- Configuring picolibc.specs using configuration
- Configuring picolibcpp.specs using configuration
- Configuring test.specs using configuration
- Configuring picolibc.ld using configuration
- Configuring picolibcpp.ld using configuration
- Compiler for C supports arguments -Wall: YES
- Compiler for C supports arguments -Wextra: YES
- Compiler for C supports arguments -Wno-missing-braces: YES
- Compiler for C supports arguments -Wno-implicit-int: YES
- Compiler for C supports arguments -Wno-return-type: YES
- Compiler for C supports arguments -Werror=implicit-function-declaration: YES
- Compiler for C supports arguments -Werror=vla: YES
- Compiler for C supports arguments -Wno-unused-command-line-argument: NO
- Checking if "packed structs may contain bitfields" compiles: YES
- Checking if "has __builtin_mul_overflow" links: YES
- Checking if "supports _Complex" compiles: YES
- Checking if "has __builtin_expect" links: YES
- Compiler for C supports arguments -Werror: YES
- Checking if "attribute __alloc_size__" compiles: NO
- Compiler for C supports arguments -Werror: YES (cached)
- Checking if "attributes constructor/destructor" compiles: YES
- Checking if "test for __builtin_alloca" links: YES
- Checking if "test for __builtin_ffs" links: YES
- Checking if "test for __builtin_ffsl" links: YES
- Checking if "test for __builtin_ffsll" links: YES
- Checking if "test for __builtin_ctz" links: YES
- Checking if "test for __builtin_ctzl" links: YES
- Checking if "test for __builtin_ctzll" links: YES
- Checking if "test for __builtin_copysignl" links: NO
- Checking if "test for __builtin_copysign" links: NO
- Checking if "test for __builtin_isinfl" links: YES
- Checking if "test for __builtin_isinf" links: YES
- Checking if "test for __builtin_isnanl" links: YES
- Checking if "test for __builtin_isnan" links: YES
- Checking if "test for __builtin_finitel" links: YES
- Checking if "test for __builtin_isfinite" links: YES
- Compiler for C supports arguments -fno-tree-loop-distribute-patterns: YES
- Compiler for C supports arguments -fno-builtin: YES
- Compiler for C supports arguments -ffunction-sections: YES
- Compiler for C supports arguments -fstack-protector-all: YES
- Compiler for C supports arguments -fstack-protector-strong: YES
- Compiler for C supports arguments -fno-builtin-malloc: YES
- Compiler for C supports arguments -fno-builtin-free: YES
- Compiler for C supports arguments -fno-builtin-exp2: YES
- Message: Set c_args_exp2
- Configuring picolibc.h using configuration
- Build targets in project: 10
- Found ninja-1.10.2 at /usr/bin/ninja
- meson compile
- [54/929] Compiling C object newlib/lib...hine/or1k/libmachine.a.p/exception.c.o
- In file included from /home/somlo/LITEX/build/sim/software/include/generated/csr.h:8,
- from ../../../../pythondata-software-picolibc/pythondata_software_picolibc/data/newlib/libc/machine/or1k/exception.c:1:
- /home/somlo/LITEX/litex/litex/soc/cores/cpu/mor1kx/system.h: In function ‘flush_cpu_icache’:
- /home/somlo/LITEX/litex/litex/soc/cores/cpu/mor1kx/system.h:39:16: warning: comparison of integer expressions of different signedness: ‘int’ and ‘long unsigned int’ [-Wsign-compare]
- 39 | for (i = 0; i < cache_size; i += cache_block_size)
- | ^
- /home/somlo/LITEX/litex/litex/soc/cores/cpu/mor1kx/system.h: In function ‘flush_cpu_dcache’:
- /home/somlo/LITEX/litex/litex/soc/cores/cpu/mor1kx/system.h:58:16: warning: comparison of integer expressions of different signedness: ‘int’ and ‘long unsigned int’ [-Wsign-compare]
- 58 | for (i = 0; i < cache_size; i += cache_block_size)
- | ^
- [429/929] Compiling C object newlib/libc.a.p/libc_xdr_xdr_rec.c.o
- FAILED: newlib/libc.a.p/libc_xdr_xdr_rec.c.o
- or1k-linux-gcc -Inewlib/libc.a.p -Inewlib -I../../../../pythondata-software-picolibc/pythondata_software_picolibc/data/newlib -Inewlib/libm/common -I../../../../pythondata-software-picolibc/pythondata_software_picolibc/data/newlib/libm/common -Inewlib/libc/machine/or1k -I../../../../pythondata-software-picolibc/pythondata_software_picolibc/data/newlib/libc/machine/or1k -Inewlib/libc/tinystdio -I../../../../pythondata-software-picolibc/pythondata_software_picolibc/data/newlib/libc/tinystdio -I. -I../../../../pythondata-software-picolibc/pythondata_software_picolibc/data -Inewlib/libc/include -I../../../../pythondata-software-picolibc/pythondata_software_picolibc/data/newlib/libc/include -I/home/somlo/LITEX/pythondata-software-picolibc/pythondata_software_picolibc/data/newlib/libc/tinystdio -I/home/somlo/LITEX/pythondata-software-picolibc/pythondata_software_picolibc/data/newlib/libc/include -I/home/somlo/LITEX/litex/litex/soc/software/libbase -I/home/somlo/LITEX/litex/litex/soc/software/include -I/home/somlo/LITEX/litex/litex/soc/software -I/home/somlo/LITEX/build/sim/software/include -I/home/somlo/LITEX/build/sim/software/include/../libc -I/home/somlo/LITEX/litex/litex/soc/cores/cpu/mor1kx -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c18 -Os -g -ffunction-sections -Os -mhard-mul -mhard-div -mcmov -D__mor1kx__ -g3 -fomit-frame-pointer -Wall -fno-builtin -fno-stack-protector -fexceptions -Wpragmas -include /home/somlo/LITEX/build/sim/software/libc/picolibc.h -fno-stack-protector -U_FORTIFY_SOURCE -fno-common -frounding-math -DFORMAT_DEFAULT_INTEGER -Wall -Wextra -Wno-missing-braces -Wno-implicit-int -Wno-return-type -Werror=implicit-function-declaration -Werror=vla -D_COMPILING_NEWLIB -MD -MQ newlib/libc.a.p/libc_xdr_xdr_rec.c.o -MF newlib/libc.a.p/libc_xdr_xdr_rec.c.o.d -o newlib/libc.a.p/libc_xdr_xdr_rec.c.o -c ../../../../pythondata-software-picolibc/pythondata_software_picolibc/data/newlib/libc/xdr/xdr_rec.c
- In file included from ../../../../pythondata-software-picolibc/pythondata_software_picolibc/data/newlib/libc/include/sys/types.h:77,
- from ../../../../pythondata-software-picolibc/pythondata_software_picolibc/data/newlib/libc/xdr/xdr_rec.c:49:
- ../../../../pythondata-software-picolibc/pythondata_software_picolibc/data/newlib/libc/xdr/xdr_rec.c: In function ‘xdrrec_getlong’:
- ../../../../pythondata-software-picolibc/pythondata_software_picolibc/data/newlib/libc/include/machine/endian.h:74:30: error: expected ‘;’ before ‘)’ token
- 74 | #define ntohl(_x) __ntohl(_x))
- | ^
- ../../../../pythondata-software-picolibc/pythondata_software_picolibc/data/newlib/libc/xdr/xdr_rec.c:275:20: note: in expansion of macro ‘ntohl’
- 275 | *lp = (long) ntohl ((u_int32_t) (*buflp));
- | ^~~~~
- ../../../../pythondata-software-picolibc/pythondata_software_picolibc/data/newlib/libc/include/machine/endian.h:74:30: error: expected statement before ‘)’ token
- 74 | #define ntohl(_x) __ntohl(_x))
- | ^
- ../../../../pythondata-software-picolibc/pythondata_software_picolibc/data/newlib/libc/xdr/xdr_rec.c:275:20: note: in expansion of macro ‘ntohl’
- 275 | *lp = (long) ntohl ((u_int32_t) (*buflp));
- | ^~~~~
- ../../../../pythondata-software-picolibc/pythondata_software_picolibc/data/newlib/libc/include/machine/endian.h:74:30: error: expected ‘;’ before ‘)’ token
- 74 | #define ntohl(_x) __ntohl(_x))
- | ^
- ../../../../pythondata-software-picolibc/pythondata_software_picolibc/data/newlib/libc/xdr/xdr_rec.c:284:20: note: in expansion of macro ‘ntohl’
- 284 | *lp = (long) ntohl ((u_int32_t) mylong);
- | ^~~~~
- ../../../../pythondata-software-picolibc/pythondata_software_picolibc/data/newlib/libc/include/machine/endian.h:74:30: error: expected statement before ‘)’ token
- 74 | #define ntohl(_x) __ntohl(_x))
- | ^
- ../../../../pythondata-software-picolibc/pythondata_software_picolibc/data/newlib/libc/xdr/xdr_rec.c:284:20: note: in expansion of macro ‘ntohl’
- 284 | *lp = (long) ntohl ((u_int32_t) mylong);
- | ^~~~~
- ../../../../pythondata-software-picolibc/pythondata_software_picolibc/data/newlib/libc/xdr/xdr_rec.c: In function ‘xdrrec_putlong’:
- ../../../../pythondata-software-picolibc/pythondata_software_picolibc/data/newlib/libc/include/machine/endian.h:72:30: error: expected ‘;’ before ‘)’ token
- 72 | #define htonl(_x) __htonl(_x))
- | ^
- ../../../../pythondata-software-picolibc/pythondata_software_picolibc/data/newlib/libc/xdr/xdr_rec.c:309:24: note: in expansion of macro ‘htonl’
- 309 | *dest_lp = (int32_t) htonl ((u_int32_t) (*lp));
- | ^~~~~
- ../../../../pythondata-software-picolibc/pythondata_software_picolibc/data/newlib/libc/include/machine/endian.h:72:30: error: expected statement before ‘)’ token
- 72 | #define htonl(_x) __htonl(_x))
- | ^
- ../../../../pythondata-software-picolibc/pythondata_software_picolibc/data/newlib/libc/xdr/xdr_rec.c:309:24: note: in expansion of macro ‘htonl’
- 309 | *dest_lp = (int32_t) htonl ((u_int32_t) (*lp));
- | ^~~~~
- ../../../../pythondata-software-picolibc/pythondata_software_picolibc/data/newlib/libc/xdr/xdr_rec.c: In function ‘xdrrec_getint32’:
- ../../../../pythondata-software-picolibc/pythondata_software_picolibc/data/newlib/libc/include/machine/endian.h:74:30: error: expected ‘;’ before ‘)’ token
- 74 | #define ntohl(_x) __ntohl(_x))
- | ^
- ../../../../pythondata-software-picolibc/pythondata_software_picolibc/data/newlib/libc/xdr/xdr_rec.c:499:23: note: in expansion of macro ‘ntohl’
- 499 | *ip = (int32_t) ntohl (*bufip);
- | ^~~~~
- ../../../../pythondata-software-picolibc/pythondata_software_picolibc/data/newlib/libc/include/machine/endian.h:74:30: error: expected statement before ‘)’ token
- 74 | #define ntohl(_x) __ntohl(_x))
- | ^
- ../../../../pythondata-software-picolibc/pythondata_software_picolibc/data/newlib/libc/xdr/xdr_rec.c:499:23: note: in expansion of macro ‘ntohl’
- 499 | *ip = (int32_t) ntohl (*bufip);
- | ^~~~~
- ../../../../pythondata-software-picolibc/pythondata_software_picolibc/data/newlib/libc/include/machine/endian.h:74:30: error: expected ‘;’ before ‘)’ token
- 74 | #define ntohl(_x) __ntohl(_x))
- | ^
- ../../../../pythondata-software-picolibc/pythondata_software_picolibc/data/newlib/libc/xdr/xdr_rec.c:508:23: note: in expansion of macro ‘ntohl’
- 508 | *ip = (int32_t) ntohl (mylong);
- | ^~~~~
- ../../../../pythondata-software-picolibc/pythondata_software_picolibc/data/newlib/libc/include/machine/endian.h:74:30: error: expected statement before ‘)’ token
- 74 | #define ntohl(_x) __ntohl(_x))
- | ^
- ../../../../pythondata-software-picolibc/pythondata_software_picolibc/data/newlib/libc/xdr/xdr_rec.c:508:23: note: in expansion of macro ‘ntohl’
- 508 | *ip = (int32_t) ntohl (mylong);
- | ^~~~~
- ../../../../pythondata-software-picolibc/pythondata_software_picolibc/data/newlib/libc/xdr/xdr_rec.c: In function ‘xdrrec_putint32’:
- ../../../../pythondata-software-picolibc/pythondata_software_picolibc/data/newlib/libc/include/machine/endian.h:72:30: error: expected ‘;’ before ‘)’ token
- 72 | #define htonl(_x) __htonl(_x))
- | ^
- ../../../../pythondata-software-picolibc/pythondata_software_picolibc/data/newlib/libc/xdr/xdr_rec.c:533:24: note: in expansion of macro ‘htonl’
- 533 | *dest_ip = (int32_t) htonl (*ip);
- | ^~~~~
- ../../../../pythondata-software-picolibc/pythondata_software_picolibc/data/newlib/libc/include/machine/endian.h:72:30: error: expected statement before ‘)’ token
- 72 | #define htonl(_x) __htonl(_x))
- | ^
- ../../../../pythondata-software-picolibc/pythondata_software_picolibc/data/newlib/libc/xdr/xdr_rec.c:533:24: note: in expansion of macro ‘htonl’
- 533 | *dest_ip = (int32_t) htonl (*ip);
- | ^~~~~
- ../../../../pythondata-software-picolibc/pythondata_software_picolibc/data/newlib/libc/xdr/xdr_rec.c: In function ‘xdrrec_endofrecord’:
- ../../../../pythondata-software-picolibc/pythondata_software_picolibc/data/newlib/libc/include/machine/endian.h:72:30: error: expected ‘;’ before ‘)’ token
- 72 | #define htonl(_x) __htonl(_x))
- | ^
- ../../../../pythondata-software-picolibc/pythondata_software_picolibc/data/newlib/libc/xdr/xdr_rec.c:623:27: note: in expansion of macro ‘htonl’
- 623 | *(rstrm->frag_header) = htonl ((u_int32_t) len | LAST_FRAG);
- | ^~~~~
- ../../../../pythondata-software-picolibc/pythondata_software_picolibc/data/newlib/libc/include/machine/endian.h:72:30: error: expected statement before ‘)’ token
- 72 | #define htonl(_x) __htonl(_x))
- | ^
- ../../../../pythondata-software-picolibc/pythondata_software_picolibc/data/newlib/libc/xdr/xdr_rec.c:623:27: note: in expansion of macro ‘htonl’
- 623 | *(rstrm->frag_header) = htonl ((u_int32_t) len | LAST_FRAG);
- | ^~~~~
- ../../../../pythondata-software-picolibc/pythondata_software_picolibc/data/newlib/libc/xdr/xdr_rec.c: In function ‘__xdrrec_getrec’:
- ../../../../pythondata-software-picolibc/pythondata_software_picolibc/data/newlib/libc/include/machine/endian.h:74:30: error: expected ‘;’ before ‘)’ token
- 74 | #define ntohl(_x) __ntohl(_x))
- | ^
- ../../../../pythondata-software-picolibc/pythondata_software_picolibc/data/newlib/libc/xdr/xdr_rec.c:663:26: note: in expansion of macro ‘ntohl’
- 663 | rstrm->in_header = ntohl (rstrm->in_header);
- | ^~~~~
- ../../../../pythondata-software-picolibc/pythondata_software_picolibc/data/newlib/libc/include/machine/endian.h:74:30: error: expected statement before ‘)’ token
- 74 | #define ntohl(_x) __ntohl(_x))
- | ^
- ../../../../pythondata-software-picolibc/pythondata_software_picolibc/data/newlib/libc/xdr/xdr_rec.c:663:26: note: in expansion of macro ‘ntohl’
- 663 | rstrm->in_header = ntohl (rstrm->in_header);
- | ^~~~~
- ../../../../pythondata-software-picolibc/pythondata_software_picolibc/data/newlib/libc/xdr/xdr_rec.c: In function ‘flush_out’:
- ../../../../pythondata-software-picolibc/pythondata_software_picolibc/data/newlib/libc/include/machine/endian.h:72:30: error: expected ‘;’ before ‘)’ token
- 72 | #define htonl(_x) __htonl(_x))
- | ^
- ../../../../pythondata-software-picolibc/pythondata_software_picolibc/data/newlib/libc/xdr/xdr_rec.c:750:27: note: in expansion of macro ‘htonl’
- 750 | *(rstrm->frag_header) = htonl (len | eormask);
- | ^~~~~
- ../../../../pythondata-software-picolibc/pythondata_software_picolibc/data/newlib/libc/include/machine/endian.h:72:30: error: expected statement before ‘)’ token
- 72 | #define htonl(_x) __htonl(_x))
- | ^
- ../../../../pythondata-software-picolibc/pythondata_software_picolibc/data/newlib/libc/xdr/xdr_rec.c:750:27: note: in expansion of macro ‘htonl’
- 750 | *(rstrm->frag_header) = htonl (len | eormask);
- | ^~~~~
- ../../../../pythondata-software-picolibc/pythondata_software_picolibc/data/newlib/libc/xdr/xdr_rec.c: In function ‘set_input_fragment’:
- ../../../../pythondata-software-picolibc/pythondata_software_picolibc/data/newlib/libc/include/machine/endian.h:74:30: error: expected ‘;’ before ‘)’ token
- 74 | #define ntohl(_x) __ntohl(_x))
- | ^
- ../../../../pythondata-software-picolibc/pythondata_software_picolibc/data/newlib/libc/xdr/xdr_rec.c:827:12: note: in expansion of macro ‘ntohl’
- 827 | header = ntohl (header);
- | ^~~~~
- ../../../../pythondata-software-picolibc/pythondata_software_picolibc/data/newlib/libc/include/machine/endian.h:74:30: error: expected statement before ‘)’ token
- 74 | #define ntohl(_x) __ntohl(_x))
- | ^
- ../../../../pythondata-software-picolibc/pythondata_software_picolibc/data/newlib/libc/xdr/xdr_rec.c:827:12: note: in expansion of macro ‘ntohl’
- 827 | header = ntohl (header);
- | ^~~~~
- [430/929] Compiling C object newlib/libc.a.p/libc_xdr_xdr_mem.c.o
- FAILED: newlib/libc.a.p/libc_xdr_xdr_mem.c.o
- or1k-linux-gcc -Inewlib/libc.a.p -Inewlib -I../../../../pythondata-software-picolibc/pythondata_software_picolibc/data/newlib -Inewlib/libm/common -I../../../../pythondata-software-picolibc/pythondata_software_picolibc/data/newlib/libm/common -Inewlib/libc/machine/or1k -I../../../../pythondata-software-picolibc/pythondata_software_picolibc/data/newlib/libc/machine/or1k -Inewlib/libc/tinystdio -I../../../../pythondata-software-picolibc/pythondata_software_picolibc/data/newlib/libc/tinystdio -I. -I../../../../pythondata-software-picolibc/pythondata_software_picolibc/data -Inewlib/libc/include -I../../../../pythondata-software-picolibc/pythondata_software_picolibc/data/newlib/libc/include -I/home/somlo/LITEX/pythondata-software-picolibc/pythondata_software_picolibc/data/newlib/libc/tinystdio -I/home/somlo/LITEX/pythondata-software-picolibc/pythondata_software_picolibc/data/newlib/libc/include -I/home/somlo/LITEX/litex/litex/soc/software/libbase -I/home/somlo/LITEX/litex/litex/soc/software/include -I/home/somlo/LITEX/litex/litex/soc/software -I/home/somlo/LITEX/build/sim/software/include -I/home/somlo/LITEX/build/sim/software/include/../libc -I/home/somlo/LITEX/litex/litex/soc/cores/cpu/mor1kx -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c18 -Os -g -ffunction-sections -Os -mhard-mul -mhard-div -mcmov -D__mor1kx__ -g3 -fomit-frame-pointer -Wall -fno-builtin -fno-stack-protector -fexceptions -Wpragmas -include /home/somlo/LITEX/build/sim/software/libc/picolibc.h -fno-stack-protector -U_FORTIFY_SOURCE -fno-common -frounding-math -DFORMAT_DEFAULT_INTEGER -Wall -Wextra -Wno-missing-braces -Wno-implicit-int -Wno-return-type -Werror=implicit-function-declaration -Werror=vla -D_COMPILING_NEWLIB -MD -MQ newlib/libc.a.p/libc_xdr_xdr_mem.c.o -MF newlib/libc.a.p/libc_xdr_xdr_mem.c.o.d -o newlib/libc.a.p/libc_xdr_xdr_mem.c.o -c ../../../../pythondata-software-picolibc/pythondata_software_picolibc/data/newlib/libc/xdr/xdr_mem.c
- In file included from ../../../../pythondata-software-picolibc/pythondata_software_picolibc/data/newlib/libc/include/sys/types.h:77,
- from ../../../../pythondata-software-picolibc/pythondata_software_picolibc/data/newlib/libc/xdr/xdr_mem.c:41:
- ../../../../pythondata-software-picolibc/pythondata_software_picolibc/data/newlib/libc/xdr/xdr_mem.c: In function ‘xdrmem_getlong_aligned’:
- ../../../../pythondata-software-picolibc/pythondata_software_picolibc/data/newlib/libc/include/machine/endian.h:74:30: error: expected ‘;’ before ‘)’ token
- 74 | #define ntohl(_x) __ntohl(_x))
- | ^
- ../../../../pythondata-software-picolibc/pythondata_software_picolibc/data/newlib/libc/xdr/xdr_mem.c:131:19: note: in expansion of macro ‘ntohl’
- 131 | *lp = (int32_t) ntohl (*(u_int32_t *) xdrs->x_private);
- | ^~~~~
- ../../../../pythondata-software-picolibc/pythondata_software_picolibc/data/newlib/libc/include/machine/endian.h:74:30: error: expected statement before ‘)’ token
- 74 | #define ntohl(_x) __ntohl(_x))
- | ^
- ../../../../pythondata-software-picolibc/pythondata_software_picolibc/data/newlib/libc/xdr/xdr_mem.c:131:19: note: in expansion of macro ‘ntohl’
- 131 | *lp = (int32_t) ntohl (*(u_int32_t *) xdrs->x_private);
- | ^~~~~
- ../../../../pythondata-software-picolibc/pythondata_software_picolibc/data/newlib/libc/xdr/xdr_mem.c: In function ‘xdrmem_putlong_aligned’:
- ../../../../pythondata-software-picolibc/pythondata_software_picolibc/data/newlib/libc/include/machine/endian.h:72:30: error: expected ‘;’ before ‘)’ token
- 72 | #define htonl(_x) __htonl(_x))
- | ^
- ../../../../pythondata-software-picolibc/pythondata_software_picolibc/data/newlib/libc/xdr/xdr_mem.c:143:36: note: in expansion of macro ‘htonl’
- 143 | *(u_int32_t *) xdrs->x_private = htonl ((u_int32_t) * lp);
- | ^~~~~
- ../../../../pythondata-software-picolibc/pythondata_software_picolibc/data/newlib/libc/include/machine/endian.h:72:30: error: expected statement before ‘)’ token
- 72 | #define htonl(_x) __htonl(_x))
- | ^
- ../../../../pythondata-software-picolibc/pythondata_software_picolibc/data/newlib/libc/xdr/xdr_mem.c:143:36: note: in expansion of macro ‘htonl’
- 143 | *(u_int32_t *) xdrs->x_private = htonl ((u_int32_t) * lp);
- | ^~~~~
- ../../../../pythondata-software-picolibc/pythondata_software_picolibc/data/newlib/libc/xdr/xdr_mem.c: In function ‘xdrmem_getlong_unaligned’:
- ../../../../pythondata-software-picolibc/pythondata_software_picolibc/data/newlib/libc/include/machine/endian.h:74:30: error: expected ‘;’ before ‘)’ token
- 74 | #define ntohl(_x) __ntohl(_x))
- | ^
- ../../../../pythondata-software-picolibc/pythondata_software_picolibc/data/newlib/libc/xdr/xdr_mem.c:158:9: note: in expansion of macro ‘ntohl’
- 158 | *lp = ntohl (l);
- | ^~~~~
- ../../../../pythondata-software-picolibc/pythondata_software_picolibc/data/newlib/libc/include/machine/endian.h:74:30: error: expected statement before ‘)’ token
- 74 | #define ntohl(_x) __ntohl(_x))
- | ^
- ../../../../pythondata-software-picolibc/pythondata_software_picolibc/data/newlib/libc/xdr/xdr_mem.c:158:9: note: in expansion of macro ‘ntohl’
- 158 | *lp = ntohl (l);
- | ^~~~~
- ../../../../pythondata-software-picolibc/pythondata_software_picolibc/data/newlib/libc/xdr/xdr_mem.c: In function ‘xdrmem_putlong_unaligned’:
- ../../../../pythondata-software-picolibc/pythondata_software_picolibc/data/newlib/libc/include/machine/endian.h:72:30: error: expected ‘;’ before ‘)’ token
- 72 | #define htonl(_x) __htonl(_x))
- | ^
- ../../../../pythondata-software-picolibc/pythondata_software_picolibc/data/newlib/libc/xdr/xdr_mem.c:172:7: note: in expansion of macro ‘htonl’
- 172 | l = htonl ((u_int32_t) * lp);
- | ^~~~~
- ../../../../pythondata-software-picolibc/pythondata_software_picolibc/data/newlib/libc/include/machine/endian.h:72:30: error: expected statement before ‘)’ token
- 72 | #define htonl(_x) __htonl(_x))
- | ^
- ../../../../pythondata-software-picolibc/pythondata_software_picolibc/data/newlib/libc/xdr/xdr_mem.c:172:7: note: in expansion of macro ‘htonl’
- 172 | l = htonl ((u_int32_t) * lp);
- | ^~~~~
- ../../../../pythondata-software-picolibc/pythondata_software_picolibc/data/newlib/libc/xdr/xdr_mem.c: In function ‘xdrmem_getint32_aligned’:
- ../../../../pythondata-software-picolibc/pythondata_software_picolibc/data/newlib/libc/include/machine/endian.h:74:30: error: expected ‘;’ before ‘)’ token
- 74 | #define ntohl(_x) __ntohl(_x))
- | ^
- ../../../../pythondata-software-picolibc/pythondata_software_picolibc/data/newlib/libc/xdr/xdr_mem.c:261:19: note: in expansion of macro ‘ntohl’
- 261 | *ip = (int32_t) ntohl (*(u_int32_t *) xdrs->x_private);
- | ^~~~~
- ../../../../pythondata-software-picolibc/pythondata_software_picolibc/data/newlib/libc/include/machine/endian.h:74:30: error: expected statement before ‘)’ token
- 74 | #define ntohl(_x) __ntohl(_x))
- | ^
- ../../../../pythondata-software-picolibc/pythondata_software_picolibc/data/newlib/libc/xdr/xdr_mem.c:261:19: note: in expansion of macro ‘ntohl’
- 261 | *ip = (int32_t) ntohl (*(u_int32_t *) xdrs->x_private);
- | ^~~~~
- ../../../../pythondata-software-picolibc/pythondata_software_picolibc/data/newlib/libc/xdr/xdr_mem.c: In function ‘xdrmem_putint32_aligned’:
- ../../../../pythondata-software-picolibc/pythondata_software_picolibc/data/newlib/libc/include/machine/endian.h:72:30: error: expected ‘;’ before ‘)’ token
- 72 | #define htonl(_x) __htonl(_x))
- | ^
- ../../../../pythondata-software-picolibc/pythondata_software_picolibc/data/newlib/libc/xdr/xdr_mem.c:273:36: note: in expansion of macro ‘htonl’
- 273 | *(u_int32_t *) xdrs->x_private = htonl ((u_int32_t) * ip);
- | ^~~~~
- ../../../../pythondata-software-picolibc/pythondata_software_picolibc/data/newlib/libc/include/machine/endian.h:72:30: error: expected statement before ‘)’ token
- 72 | #define htonl(_x) __htonl(_x))
- | ^
- ../../../../pythondata-software-picolibc/pythondata_software_picolibc/data/newlib/libc/xdr/xdr_mem.c:273:36: note: in expansion of macro ‘htonl’
- 273 | *(u_int32_t *) xdrs->x_private = htonl ((u_int32_t) * ip);
- | ^~~~~
- ../../../../pythondata-software-picolibc/pythondata_software_picolibc/data/newlib/libc/xdr/xdr_mem.c: In function ‘xdrmem_getint32_unaligned’:
- ../../../../pythondata-software-picolibc/pythondata_software_picolibc/data/newlib/libc/include/machine/endian.h:74:30: error: expected ‘;’ before ‘)’ token
- 74 | #define ntohl(_x) __ntohl(_x))
- | ^
- ../../../../pythondata-software-picolibc/pythondata_software_picolibc/data/newlib/libc/xdr/xdr_mem.c:288:19: note: in expansion of macro ‘ntohl’
- 288 | *ip = (int32_t) ntohl (l);
- | ^~~~~
- ../../../../pythondata-software-picolibc/pythondata_software_picolibc/data/newlib/libc/include/machine/endian.h:74:30: error: expected statement before ‘)’ token
- 74 | #define ntohl(_x) __ntohl(_x))
- | ^
- ../../../../pythondata-software-picolibc/pythondata_software_picolibc/data/newlib/libc/xdr/xdr_mem.c:288:19: note: in expansion of macro ‘ntohl’
- 288 | *ip = (int32_t) ntohl (l);
- | ^~~~~
- ../../../../pythondata-software-picolibc/pythondata_software_picolibc/data/newlib/libc/xdr/xdr_mem.c: In function ‘xdrmem_putint32_unaligned’:
- ../../../../pythondata-software-picolibc/pythondata_software_picolibc/data/newlib/libc/include/machine/endian.h:72:30: error: expected ‘;’ before ‘)’ token
- 72 | #define htonl(_x) __htonl(_x))
- | ^
- ../../../../pythondata-software-picolibc/pythondata_software_picolibc/data/newlib/libc/xdr/xdr_mem.c:302:7: note: in expansion of macro ‘htonl’
- 302 | l = htonl ((u_int32_t) * ip);
- | ^~~~~
- ../../../../pythondata-software-picolibc/pythondata_software_picolibc/data/newlib/libc/include/machine/endian.h:72:30: error: expected statement before ‘)’ token
- 72 | #define htonl(_x) __htonl(_x))
- | ^
- ../../../../pythondata-software-picolibc/pythondata_software_picolibc/data/newlib/libc/xdr/xdr_mem.c:302:7: note: in expansion of macro ‘htonl’
- 302 | l = htonl ((u_int32_t) * ip);
- | ^~~~~
- [434/929] Compiling C object newlib/libc.a.p/libc_xdr_xdr_stdio.c.o
- FAILED: newlib/libc.a.p/libc_xdr_xdr_stdio.c.o
- or1k-linux-gcc -Inewlib/libc.a.p -Inewlib -I../../../../pythondata-software-picolibc/pythondata_software_picolibc/data/newlib -Inewlib/libm/common -I../../../../pythondata-software-picolibc/pythondata_software_picolibc/data/newlib/libm/common -Inewlib/libc/machine/or1k -I../../../../pythondata-software-picolibc/pythondata_software_picolibc/data/newlib/libc/machine/or1k -Inewlib/libc/tinystdio -I../../../../pythondata-software-picolibc/pythondata_software_picolibc/data/newlib/libc/tinystdio -I. -I../../../../pythondata-software-picolibc/pythondata_software_picolibc/data -Inewlib/libc/include -I../../../../pythondata-software-picolibc/pythondata_software_picolibc/data/newlib/libc/include -I/home/somlo/LITEX/pythondata-software-picolibc/pythondata_software_picolibc/data/newlib/libc/tinystdio -I/home/somlo/LITEX/pythondata-software-picolibc/pythondata_software_picolibc/data/newlib/libc/include -I/home/somlo/LITEX/litex/litex/soc/software/libbase -I/home/somlo/LITEX/litex/litex/soc/software/include -I/home/somlo/LITEX/litex/litex/soc/software -I/home/somlo/LITEX/build/sim/software/include -I/home/somlo/LITEX/build/sim/software/include/../libc -I/home/somlo/LITEX/litex/litex/soc/cores/cpu/mor1kx -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c18 -Os -g -ffunction-sections -Os -mhard-mul -mhard-div -mcmov -D__mor1kx__ -g3 -fomit-frame-pointer -Wall -fno-builtin -fno-stack-protector -fexceptions -Wpragmas -include /home/somlo/LITEX/build/sim/software/libc/picolibc.h -fno-stack-protector -U_FORTIFY_SOURCE -fno-common -frounding-math -DFORMAT_DEFAULT_INTEGER -Wall -Wextra -Wno-missing-braces -Wno-implicit-int -Wno-return-type -Werror=implicit-function-declaration -Werror=vla -D_COMPILING_NEWLIB -MD -MQ newlib/libc.a.p/libc_xdr_xdr_stdio.c.o -MF newlib/libc.a.p/libc_xdr_xdr_stdio.c.o.d -o newlib/libc.a.p/libc_xdr_xdr_stdio.c.o -c ../../../../pythondata-software-picolibc/pythondata_software_picolibc/data/newlib/libc/xdr/xdr_stdio.c
- In file included from ../../../../pythondata-software-picolibc/pythondata_software_picolibc/data/newlib/libc/include/sys/types.h:77,
- from ../../../../pythondata-software-picolibc/pythondata_software_picolibc/data/newlib/libc/include/rpc/types.h:42,
- from ../../../../pythondata-software-picolibc/pythondata_software_picolibc/data/newlib/libc/xdr/xdr_stdio.c:42:
- ../../../../pythondata-software-picolibc/pythondata_software_picolibc/data/newlib/libc/xdr/xdr_stdio.c: In function ‘xdrstdio_getlong’:
- ../../../../pythondata-software-picolibc/pythondata_software_picolibc/data/newlib/libc/include/machine/endian.h:74:30: error: expected ‘;’ before ‘)’ token
- 74 | #define ntohl(_x) __ntohl(_x))
- | ^
- ../../../../pythondata-software-picolibc/pythondata_software_picolibc/data/newlib/libc/xdr/xdr_stdio.c:117:26: note: in expansion of macro ‘ntohl’
- 117 | *lp = (long) (int32_t) ntohl (temp);
- | ^~~~~
- ../../../../pythondata-software-picolibc/pythondata_software_picolibc/data/newlib/libc/include/machine/endian.h:74:30: error: expected statement before ‘)’ token
- 74 | #define ntohl(_x) __ntohl(_x))
- | ^
- ../../../../pythondata-software-picolibc/pythondata_software_picolibc/data/newlib/libc/xdr/xdr_stdio.c:117:26: note: in expansion of macro ‘ntohl’
- 117 | *lp = (long) (int32_t) ntohl (temp);
- | ^~~~~
- ../../../../pythondata-software-picolibc/pythondata_software_picolibc/data/newlib/libc/xdr/xdr_stdio.c: In function ‘xdrstdio_putlong’:
- ../../../../pythondata-software-picolibc/pythondata_software_picolibc/data/newlib/libc/include/machine/endian.h:72:30: error: expected ‘,’ or ‘;’ before ‘)’ token
- 72 | #define htonl(_x) __htonl(_x))
- | ^
- ../../../../pythondata-software-picolibc/pythondata_software_picolibc/data/newlib/libc/xdr/xdr_stdio.c:125:20: note: in expansion of macro ‘htonl’
- 125 | u_int32_t temp = htonl ((u_int32_t) * lp);
- | ^~~~~
- ../../../../pythondata-software-picolibc/pythondata_software_picolibc/data/newlib/libc/xdr/xdr_stdio.c: In function ‘xdrstdio_getint32’:
- ../../../../pythondata-software-picolibc/pythondata_software_picolibc/data/newlib/libc/include/machine/endian.h:74:30: error: expected ‘;’ before ‘)’ token
- 74 | #define ntohl(_x) __ntohl(_x))
- | ^
- ../../../../pythondata-software-picolibc/pythondata_software_picolibc/data/newlib/libc/xdr/xdr_stdio.c:195:9: note: in expansion of macro ‘ntohl’
- 195 | *ip = ntohl (temp);
- | ^~~~~
- ../../../../pythondata-software-picolibc/pythondata_software_picolibc/data/newlib/libc/include/machine/endian.h:74:30: error: expected statement before ‘)’ token
- 74 | #define ntohl(_x) __ntohl(_x))
- | ^
- ../../../../pythondata-software-picolibc/pythondata_software_picolibc/data/newlib/libc/xdr/xdr_stdio.c:195:9: note: in expansion of macro ‘ntohl’
- 195 | *ip = ntohl (temp);
- | ^~~~~
- ../../../../pythondata-software-picolibc/pythondata_software_picolibc/data/newlib/libc/xdr/xdr_stdio.c: In function ‘xdrstdio_putint32’:
- ../../../../pythondata-software-picolibc/pythondata_software_picolibc/data/newlib/libc/include/machine/endian.h:72:30: error: expected ‘,’ or ‘;’ before ‘)’ token
- 72 | #define htonl(_x) __htonl(_x))
- | ^
- ../../../../pythondata-software-picolibc/pythondata_software_picolibc/data/newlib/libc/xdr/xdr_stdio.c:203:18: note: in expansion of macro ‘htonl’
- 203 | int32_t temp = htonl (*ip);
- | ^~~~~
- [446/929] Compiling C object newlib/libc.a.p/libc_time_strftime.c.o
- ninja: build stopped: subcommand failed.
- make: *** [/home/somlo/LITEX/litex/litex/soc/software/libc/Makefile:38: __libc.a] Error 1
- make: Leaving directory '/home/somlo/LITEX/build/sim/software/libc'
- Traceback (most recent call last):
- File "/home/somlo/LITEX/litex/litex/tools/litex_sim.py", line 477, in <module>
- main()
- File "/home/somlo/LITEX/litex/litex/tools/litex_sim.py", line 464, in main
- builder.build(
- File "/home/somlo/LITEX/litex/litex/soc/integration/builder.py", line 319, in build
- self._generate_rom_software(compile_bios=use_bios)
- File "/home/somlo/LITEX/litex/litex/soc/integration/builder.py", line 263, in _generate_rom_software
- subprocess.check_call(["make", "-C", dst_dir, "-f", makefile])
- File "/usr/lib64/python3.9/subprocess.py", line 373, in check_call
- raise CalledProcessError(retcode, cmd)
- subprocess.CalledProcessError: Command '['make', '-C', '/home/somlo/LITEX/build/sim/software/libc', '-f', '/home/somlo/LITEX/litex/litex/soc/software/libc/Makefile']' returned non-zero exit status 2.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement