Skip to content

[BUILD] Building the toolchain does not build/install libdw_uart.a #262

Closed
@shahab-vahedi

Description

@shahab-vahedi

versions

binutils:  arc-2019.09
gcc:       arc-2019.09
newlib:    arc-2019.09
toolchain: arc-releases    , 7fdabaf      (Merge branch 'arc-staging'...)

build command

$build-all.sh --source-dir    /data/work/repos/arcgnu/${SRCDIR}    \
              --build-dir     /data/work/build/arcgnu/${BLDDIR}    \
              --install-dir   /data/work/install/arcgnu/${INSTDIR} \
              --release-name  "${RLSNAME}"                         \
              --cpu           em4_dmips                            \
              --no-multilib                                        \
              --elf32                                              \
              --no-uclibc                                          \
              --target-cflags "-Og -g3 -fvar-tracking-assignments" \
              --jobs          8                                    \
              --no-pdf                                             \
              --no-auto-checkout                                   \
              --no-auto-pull                                       \
              --no-external-download                               \
              --no-strip                                           \
              --no-elf32-strip-target-libs                         \
              --no-native                                          \
              --no-optsize-newlib                                  \
              --no-optsize-libstdc++

problem

Building a hello world program with a command like below fails:

/data/work/install/arcgnu/ul_1909/bin/arc-elf32-gcc -mcpu=em4_dmips --specs=emsk_em9d.specs test.c -o test.exe
/data/work/install/arcgnu/ul_1909/lib/gcc/arc-elf32/9.2.1/../../../../arc-elf32/bin/ld: cannot find -ldw_uart
collect2: error: ld returned 1 exit status

investigation

Building the toolchain with the above commands, although creates this directory

/bld/dir/bd-elf32/newlib/arc-elf32/libgloss/arc/dw_uart
.
├── Makefile
├── config.log
└── config.status

It never compiles the dw_uart. Executing make command in that directory does build some .o files, but not libdw_uart.a in parent directory of course.

expected behavior

libdw_uart.a is built and installed.

Please let me know if you need more info.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions