{"action":"closed","issue":{"url":"https://api.github.com/repos/sergeykhbr/riscv_vhdl/issues/2","repository_url":"https://api.github.com/repos/sergeykhbr/riscv_vhdl","labels_url":"https://api.github.com/repos/sergeykhbr/riscv_vhdl/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/sergeykhbr/riscv_vhdl/issues/2/comments","events_url":"https://api.github.com/repos/sergeykhbr/riscv_vhdl/issues/2/events","html_url":"https://github.com/sergeykhbr/riscv_vhdl/issues/2","id":149182346,"number":2,"title":"Building bootimage fails on linux using riscv-gcc 5.3.0","user":{"login":"bkoppelmann","id":6539972,"avatar_url":"https://avatars.githubusercontent.com/u/6539972?v=3","gravatar_id":"","url":"https://api.github.com/users/bkoppelmann","html_url":"https://github.com/bkoppelmann","followers_url":"https://api.github.com/users/bkoppelmann/followers","following_url":"https://api.github.com/users/bkoppelmann/following{/other_user}","gists_url":"https://api.github.com/users/bkoppelmann/gists{/gist_id}","starred_url":"https://api.github.com/users/bkoppelmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bkoppelmann/subscriptions","organizations_url":"https://api.github.com/users/bkoppelmann/orgs","repos_url":"https://api.github.com/users/bkoppelmann/repos","events_url":"https://api.github.com/users/bkoppelmann/events{/privacy}","received_events_url":"https://api.github.com/users/bkoppelmann/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-18T15:19:43Z","updated_at":"2016-04-23T20:42:32Z","closed_at":"2016-04-23T20:42:32Z","body":"When running make to build the bootimage I get the following error:\r\n\r\nriscv64-unknown-elf-gcc -c -g -static -std=gnu99 -O0 -fno-common -fno-builtin-printf -march=RV64IMA -msoft-float -I../../common -I../src ../src/main.c -o ../linuxbuild/obj/main.o\r\nriscv64-unknown-elf-gcc -c -g -static -std=gnu99 -O0 -fno-common -fno-builtin-printf -march=RV64IMA -msoft-float -I../../common -I../src ../src/trap.c -o ../linuxbuild/obj/trap.o\r\nriscv64-unknown-elf-gcc -c -g -static -std=gnu99 -O0 -fno-common -fno-builtin-printf -march=RV64IMA -msoft-float -D__ASSEMBLY__=1 -I../../common -I../src ../src/crt.S -o ../linuxbuild/obj/crt.o\r\nriscv64-unknown-elf-gcc -T test.ld -nostdlib -nostartfiles ../linuxbuild/obj/main.o ../linuxbuild/obj/trap.o ../linuxbuild/obj/crt.o -o ../linuxbuild/bin/bootimage -lgcc -lc -lm\r\n/mnt/ultrabay/paco-env/riscv-tools/lib/gcc/riscv64-unknown-elf/5.3.0/../../../../riscv64-unknown-elf/bin/ld: /mnt/ultrabay/paco-env/riscv-tools/lib/gcc/riscv64-unknown-elf/5.3.0/../../../../riscv64-unknown-elf/lib/libc.a(lib_a-memcpy.o): can't link hard-float modules with soft-float modules\r\n/mnt/ultrabay/paco-env/riscv-tools/lib/gcc/riscv64-unknown-elf/5.3.0/../../../../riscv64-unknown-elf/bin/ld: failed to merge target specific data of file /mnt/ultrabay/paco-env/riscv-tools/lib/gcc/riscv64-unknown-elf/5.3.0/../../../../riscv64-unknown-elf/lib/libc.a(lib_a-memcpy.o)\r\n\r\nChanging the CFLAGS back to -O2 seems to fix the problem.\r\n\r\nCheers,\r\nBastian "}}