Created
June 5, 2019 11:50
-
-
Save pranav083/039950b75151d2746eb0c6e05ce8cc7d to your computer and use it in GitHub Desktop.
bus error
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
debian@beaglebone:~/bes/src$ arm-linux-gnueabihf-g++ pru.cpp pru/prussdrv.c -nostartfiles -g | |
pru/prussdrv.c: In function ‘int __prussdrv_memmap_init()’: | |
pru/prussdrv.c:147:47: warning: pointer of type ‘void *’ used in arithmetic [-Wpointer-arith] | |
prussdrv.pru0_dataram_base + prussdrv.pru1_dataram_phy_base - | |
^~~~~~~~~~~~~~~~~~~~~ | |
pru/prussdrv.c:148:18: warning: pointer of type ‘void *’ used in arithmetic [-Wpointer-arith] | |
prussdrv.pru0_dataram_phy_base; | |
^~~~~~~~~~~~~~~~~~~~~ | |
pru/prussdrv.c:150:47: warning: pointer of type ‘void *’ used in arithmetic [-Wpointer-arith] | |
prussdrv.pru0_dataram_base + prussdrv.intc_phy_base - | |
^~~~~~~~~~~~~ | |
pru/prussdrv.c:151:18: warning: pointer of type ‘void *’ used in arithmetic [-Wpointer-arith] | |
prussdrv.pru0_dataram_phy_base; | |
^~~~~~~~~~~~~~~~~~~~~ | |
pru/prussdrv.c:153:47: warning: pointer of type ‘void *’ used in arithmetic [-Wpointer-arith] | |
prussdrv.pru0_dataram_base + prussdrv.pru0_control_phy_base - | |
^~~~~~~~~~~~~~~~~~~~~ | |
pru/prussdrv.c:154:18: warning: pointer of type ‘void *’ used in arithmetic [-Wpointer-arith] | |
prussdrv.pru0_dataram_phy_base; | |
^~~~~~~~~~~~~~~~~~~~~ | |
pru/prussdrv.c:156:47: warning: pointer of type ‘void *’ used in arithmetic [-Wpointer-arith] | |
prussdrv.pru0_dataram_base + prussdrv.pru0_debug_phy_base - | |
^~~~~~~~~~~~~~~~~~~ | |
pru/prussdrv.c:157:18: warning: pointer of type ‘void *’ used in arithmetic [-Wpointer-arith] | |
prussdrv.pru0_dataram_phy_base; | |
^~~~~~~~~~~~~~~~~~~~~ | |
pru/prussdrv.c:159:47: warning: pointer of type ‘void *’ used in arithmetic [-Wpointer-arith] | |
prussdrv.pru0_dataram_base + prussdrv.pru1_control_phy_base - | |
^~~~~~~~~~~~~~~~~~~~~ | |
pru/prussdrv.c:160:18: warning: pointer of type ‘void *’ used in arithmetic [-Wpointer-arith] | |
prussdrv.pru0_dataram_phy_base; | |
^~~~~~~~~~~~~~~~~~~~~ | |
pru/prussdrv.c:162:47: warning: pointer of type ‘void *’ used in arithmetic [-Wpointer-arith] | |
prussdrv.pru0_dataram_base + prussdrv.pru1_debug_phy_base - | |
^~~~~~~~~~~~~~~~~~~ | |
pru/prussdrv.c:163:18: warning: pointer of type ‘void *’ used in arithmetic [-Wpointer-arith] | |
prussdrv.pru0_dataram_phy_base; | |
^~~~~~~~~~~~~~~~~~~~~ | |
pru/prussdrv.c:165:47: warning: pointer of type ‘void *’ used in arithmetic [-Wpointer-arith] | |
prussdrv.pru0_dataram_base + prussdrv.pru0_iram_phy_base - | |
^~~~~~~~~~~~~~~~~~ | |
pru/prussdrv.c:166:18: warning: pointer of type ‘void *’ used in arithmetic [-Wpointer-arith] | |
prussdrv.pru0_dataram_phy_base; | |
^~~~~~~~~~~~~~~~~~~~~ | |
pru/prussdrv.c:168:47: warning: pointer of type ‘void *’ used in arithmetic [-Wpointer-arith] | |
prussdrv.pru0_dataram_base + prussdrv.pru1_iram_phy_base - | |
^~~~~~~~~~~~~~~~~~ | |
pru/prussdrv.c:169:18: warning: pointer of type ‘void *’ used in arithmetic [-Wpointer-arith] | |
prussdrv.pru0_dataram_phy_base; | |
^~~~~~~~~~~~~~~~~~~~~ | |
pru/prussdrv.c:173:22: warning: pointer of type ‘void *’ used in arithmetic [-Wpointer-arith] | |
prussdrv.pruss_sharedram_phy_base - | |
^~~~~~~~~~~~~~~~~~~~~~~~ | |
pru/prussdrv.c:174:22: warning: pointer of type ‘void *’ used in arithmetic [-Wpointer-arith] | |
prussdrv.pru0_dataram_phy_base; | |
^~~~~~~~~~~~~~~~~~~~~ | |
pru/prussdrv.c:176:51: warning: pointer of type ‘void *’ used in arithmetic [-Wpointer-arith] | |
prussdrv.pru0_dataram_base + prussdrv.pruss_cfg_phy_base - | |
^~~~~~~~~~~~~~~~~~ | |
pru/prussdrv.c:177:22: warning: pointer of type ‘void *’ used in arithmetic [-Wpointer-arith] | |
prussdrv.pru0_dataram_phy_base; | |
^~~~~~~~~~~~~~~~~~~~~ | |
pru/prussdrv.c:179:51: warning: pointer of type ‘void *’ used in arithmetic [-Wpointer-arith] | |
prussdrv.pru0_dataram_base + prussdrv.pruss_uart_phy_base - | |
^~~~~~~~~~~~~~~~~~~ | |
pru/prussdrv.c:180:22: warning: pointer of type ‘void *’ used in arithmetic [-Wpointer-arith] | |
prussdrv.pru0_dataram_phy_base; | |
^~~~~~~~~~~~~~~~~~~~~ | |
pru/prussdrv.c:182:51: warning: pointer of type ‘void *’ used in arithmetic [-Wpointer-arith] | |
prussdrv.pru0_dataram_base + prussdrv.pruss_iep_phy_base - | |
^~~~~~~~~~~~~~~~~~ | |
pru/prussdrv.c:183:22: warning: pointer of type ‘void *’ used in arithmetic [-Wpointer-arith] | |
prussdrv.pru0_dataram_phy_base; | |
^~~~~~~~~~~~~~~~~~~~~ | |
pru/prussdrv.c:185:51: warning: pointer of type ‘void *’ used in arithmetic [-Wpointer-arith] | |
prussdrv.pru0_dataram_base + prussdrv.pruss_ecap_phy_base - | |
^~~~~~~~~~~~~~~~~~~ | |
pru/prussdrv.c:186:22: warning: pointer of type ‘void *’ used in arithmetic [-Wpointer-arith] | |
prussdrv.pru0_dataram_phy_base; | |
^~~~~~~~~~~~~~~~~~~~~ | |
pru/prussdrv.c:188:51: warning: pointer of type ‘void *’ used in arithmetic [-Wpointer-arith] | |
prussdrv.pru0_dataram_base + prussdrv.pruss_miirt_phy_base - | |
^~~~~~~~~~~~~~~~~~~~ | |
pru/prussdrv.c:189:22: warning: pointer of type ‘void *’ used in arithmetic [-Wpointer-arith] | |
prussdrv.pru0_dataram_phy_base; | |
^~~~~~~~~~~~~~~~~~~~~ | |
pru/prussdrv.c:191:51: warning: pointer of type ‘void *’ used in arithmetic [-Wpointer-arith] | |
prussdrv.pru0_dataram_base + prussdrv.pruss_mdio_phy_base - | |
^~~~~~~~~~~~~~~~~~~ | |
pru/prussdrv.c:192:22: warning: pointer of type ‘void *’ used in arithmetic [-Wpointer-arith] | |
prussdrv.pru0_dataram_phy_base; | |
^~~~~~~~~~~~~~~~~~~~~ | |
pru/prussdrv.c: In function ‘uint32_t prussdrv_get_phys_addr(const void*)’: | |
pru/prussdrv.c:605:51: warning: pointer of type ‘void *’ used in arithmetic [-Wpointer-arith] | |
prussdrv.pru0_dataram_base + prussdrv.pruss_map_size)) { | |
^~~~~~~~~~~~~~ | |
pru/prussdrv.c:611:51: warning: pointer of type ‘void *’ used in arithmetic [-Wpointer-arith] | |
prussdrv.l3ram_base + prussdrv.l3ram_map_size)) { | |
^~~~~~~~~~~~~~ | |
pru/prussdrv.c:617:52: warning: pointer of type ‘void *’ used in arithmetic [-Wpointer-arith] | |
prussdrv.extram_base + prussdrv.extram_map_size)) { | |
^~~~~~~~~~~~~~~ | |
/usr/bin/ld: warning: cannot find entry symbol _start; defaulting to 00000578 | |
debian@beaglebone:~/bes/src$ ls -al | |
total 688 | |
drwxr-xr-x 8 debian debian 4096 Jun 5 11:47 . | |
drwxr-xr-x 8 debian debian 4096 Jun 4 20:07 .. | |
-rwxr-xr-x 1 debian debian 39516 Jun 5 11:47 a.out | |
-rw-r--r-- 1 debian debian 242 Jun 4 19:14 beagleboard.h | |
-rw-r--r-- 1 debian debian 15655 Jun 4 19:14 besCartDisplay.cpp | |
-rw-r--r-- 1 debian debian 315 Jun 4 19:14 besCartDisplay.h | |
-rw-r--r-- 1 debian debian 19129 Jun 4 19:14 besControls.cpp | |
-rw-r--r-- 1 debian debian 2327 Jun 4 19:14 besControls.h | |
-rw-r--r-- 1 debian debian 7463 Jun 4 19:14 besDatabase.cpp | |
-rw-r--r-- 1 debian debian 1278 Jun 4 19:14 besKeys.h | |
-rw-r--r-- 1 debian debian 171 Jun 4 19:14 besPru.h | |
-rw-r--r-- 1 debian debian 45989 Jun 4 19:14 config.guess | |
-rw-r--r-- 1 debian debian 33941 Jun 4 19:14 config.sub | |
-rwxr-xr-x 1 debian debian 177825 Jun 4 19:14 configure | |
-rw-r--r-- 1 debian debian 6957 Jun 4 19:14 configure.ac | |
-rwxr-xr-x 1 debian debian 1324 Jun 4 19:14 createdb.sh | |
-rw-r--r-- 1 debian debian 5860 Jun 4 19:14 CREDITS | |
drwxr-xr-x 2 debian debian 4096 Jun 4 19:14 docs | |
-rwxr-xr-x 1 debian debian 1807 Jun 4 19:14 dummydb.sh | |
-rw-r--r-- 1 debian debian 4830 Jun 4 19:14 eglSetup.cpp | |
-rw-r--r-- 1 debian debian 7307 Jun 4 19:14 eglTexture.cpp | |
-rwxr-xr-x 1 debian debian 578 Jun 4 19:14 emptydb.sh | |
drwxr-xr-x 10 debian debian 4096 Jun 4 19:14 gba | |
-rw-r--r-- 1 debian debian 4140 Jun 4 19:14 guiAudio.cpp | |
-rw-r--r-- 1 debian debian 8474 Jun 4 19:14 guiAudioDlg.cpp | |
-rw-r--r-- 1 debian debian 13896 Jun 4 19:14 gui.cpp | |
-rw-r--r-- 1 debian debian 6803 Jun 4 19:14 guiGameInfo.cpp | |
-rw-r--r-- 1 debian debian 18185 Jun 4 19:14 guiGameList.cpp | |
-rw-r--r-- 1 debian debian 3752 Jun 4 19:14 guiGamepad.cpp | |
-rw-r--r-- 1 debian debian 10392 Jun 4 19:14 guiGBASettingsDlg.cpp | |
-rw-r--r-- 1 debian debian 6948 Jun 4 19:14 gui.h | |
-rw-r--r-- 1 debian debian 1039 Jun 4 19:14 guiLaunch.cpp | |
-rw-r--r-- 1 debian debian 9379 Jun 4 19:14 guiNoGamesDlg.cpp | |
-rw-r--r-- 1 debian debian 13216 Jun 4 19:14 guiParser.cpp | |
-rw-r--r-- 1 debian debian 20518 Jun 4 19:14 guiPauseDlg.cpp | |
-rw-r--r-- 1 debian debian 4203 Jun 4 19:14 guiSplash.cpp | |
-rwxr-xr-x 1 debian debian 39516 Jun 5 11:40 hello | |
-rw-r--r-- 1 debian debian 9233 Jun 4 19:14 install-sh | |
-rw-r--r-- 1 debian debian 2687 Jun 4 19:14 main.cpp | |
-rw-r--r-- 1 debian debian 13595 Jun 4 19:14 Makefile.in | |
drwxr-xr-x 10 debian debian 4096 Jun 4 19:14 nes | |
drwxr-xr-x 2 debian debian 4096 Jun 5 11:24 pru | |
-rw-r--r-- 1 debian debian 4201 Jun 4 21:01 pru.cpp | |
-rwxr-xr-x 1 debian debian 432 Jun 4 19:14 release.sh | |
-rw-r--r-- 1 debian debian 4388 Jun 4 19:14 savepng.c | |
-rw-r--r-- 1 debian debian 1156 Jun 4 19:14 savepng.h | |
drwxr-xr-x 12 debian debian 4096 Jun 4 19:14 snes | |
drwxr-xr-x 2 debian debian 4096 Jun 4 19:14 sqlite | |
debian@beaglebone:~/bes/src$ ./a.out | |
Bus error | |
debian@beaglebone:~/bes/src$ | |
########################################################################### | |
########################################################################### | |
when running without "-nostartfiles -g" in the complier | |
########################################################################### | |
########################################################################### | |
debian@beaglebone:~/bes/src$ arm-linux-gnueabihf-g++ pru.cpp pru/prussdrv.c | |
pru/prussdrv.c: In function ‘int __prussdrv_memmap_init()’: | |
pru/prussdrv.c:147:47: warning: pointer of type ‘void *’ used in arithmetic [-Wpointer-arith] | |
prussdrv.pru0_dataram_base + prussdrv.pru1_dataram_phy_base - | |
^~~~~~~~~~~~~~~~~~~~~ | |
pru/prussdrv.c:148:18: warning: pointer of type ‘void *’ used in arithmetic [-Wpointer-arith] | |
prussdrv.pru0_dataram_phy_base; | |
^~~~~~~~~~~~~~~~~~~~~ | |
pru/prussdrv.c:150:47: warning: pointer of type ‘void *’ used in arithmetic [-Wpointer-arith] | |
prussdrv.pru0_dataram_base + prussdrv.intc_phy_base - | |
^~~~~~~~~~~~~ | |
pru/prussdrv.c:151:18: warning: pointer of type ‘void *’ used in arithmetic [-Wpointer-arith] | |
prussdrv.pru0_dataram_phy_base; | |
^~~~~~~~~~~~~~~~~~~~~ | |
pru/prussdrv.c:153:47: warning: pointer of type ‘void *’ used in arithmetic [-Wpointer-arith] | |
prussdrv.pru0_dataram_base + prussdrv.pru0_control_phy_base - | |
^~~~~~~~~~~~~~~~~~~~~ | |
pru/prussdrv.c:154:18: warning: pointer of type ‘void *’ used in arithmetic [-Wpointer-arith] | |
prussdrv.pru0_dataram_phy_base; | |
^~~~~~~~~~~~~~~~~~~~~ | |
pru/prussdrv.c:156:47: warning: pointer of type ‘void *’ used in arithmetic [-Wpointer-arith] | |
prussdrv.pru0_dataram_base + prussdrv.pru0_debug_phy_base - | |
^~~~~~~~~~~~~~~~~~~ | |
pru/prussdrv.c:157:18: warning: pointer of type ‘void *’ used in arithmetic [-Wpointer-arith] | |
prussdrv.pru0_dataram_phy_base; | |
^~~~~~~~~~~~~~~~~~~~~ | |
pru/prussdrv.c:159:47: warning: pointer of type ‘void *’ used in arithmetic [-Wpointer-arith] | |
prussdrv.pru0_dataram_base + prussdrv.pru1_control_phy_base - | |
^~~~~~~~~~~~~~~~~~~~~ | |
pru/prussdrv.c:160:18: warning: pointer of type ‘void *’ used in arithmetic [-Wpointer-arith] | |
prussdrv.pru0_dataram_phy_base; | |
^~~~~~~~~~~~~~~~~~~~~ | |
pru/prussdrv.c:162:47: warning: pointer of type ‘void *’ used in arithmetic [-Wpointer-arith] | |
prussdrv.pru0_dataram_base + prussdrv.pru1_debug_phy_base - | |
^~~~~~~~~~~~~~~~~~~ | |
pru/prussdrv.c:163:18: warning: pointer of type ‘void *’ used in arithmetic [-Wpointer-arith] | |
prussdrv.pru0_dataram_phy_base; | |
^~~~~~~~~~~~~~~~~~~~~ | |
pru/prussdrv.c:165:47: warning: pointer of type ‘void *’ used in arithmetic [-Wpointer-arith] | |
prussdrv.pru0_dataram_base + prussdrv.pru0_iram_phy_base - | |
^~~~~~~~~~~~~~~~~~ | |
pru/prussdrv.c:166:18: warning: pointer of type ‘void *’ used in arithmetic [-Wpointer-arith] | |
prussdrv.pru0_dataram_phy_base; | |
^~~~~~~~~~~~~~~~~~~~~ | |
pru/prussdrv.c:168:47: warning: pointer of type ‘void *’ used in arithmetic [-Wpointer-arith] | |
prussdrv.pru0_dataram_base + prussdrv.pru1_iram_phy_base - | |
^~~~~~~~~~~~~~~~~~ | |
pru/prussdrv.c:169:18: warning: pointer of type ‘void *’ used in arithmetic [-Wpointer-arith] | |
prussdrv.pru0_dataram_phy_base; | |
^~~~~~~~~~~~~~~~~~~~~ | |
pru/prussdrv.c:173:22: warning: pointer of type ‘void *’ used in arithmetic [-Wpointer-arith] | |
prussdrv.pruss_sharedram_phy_base - | |
^~~~~~~~~~~~~~~~~~~~~~~~ | |
pru/prussdrv.c:174:22: warning: pointer of type ‘void *’ used in arithmetic [-Wpointer-arith] | |
prussdrv.pru0_dataram_phy_base; | |
^~~~~~~~~~~~~~~~~~~~~ | |
pru/prussdrv.c:176:51: warning: pointer of type ‘void *’ used in arithmetic [-Wpointer-arith] | |
prussdrv.pru0_dataram_base + prussdrv.pruss_cfg_phy_base - | |
^~~~~~~~~~~~~~~~~~ | |
pru/prussdrv.c:177:22: warning: pointer of type ‘void *’ used in arithmetic [-Wpointer-arith] | |
prussdrv.pru0_dataram_phy_base; | |
^~~~~~~~~~~~~~~~~~~~~ | |
pru/prussdrv.c:179:51: warning: pointer of type ‘void *’ used in arithmetic [-Wpointer-arith] | |
prussdrv.pru0_dataram_base + prussdrv.pruss_uart_phy_base - | |
^~~~~~~~~~~~~~~~~~~ | |
pru/prussdrv.c:180:22: warning: pointer of type ‘void *’ used in arithmetic [-Wpointer-arith] | |
prussdrv.pru0_dataram_phy_base; | |
^~~~~~~~~~~~~~~~~~~~~ | |
pru/prussdrv.c:182:51: warning: pointer of type ‘void *’ used in arithmetic [-Wpointer-arith] | |
prussdrv.pru0_dataram_base + prussdrv.pruss_iep_phy_base - | |
^~~~~~~~~~~~~~~~~~ | |
pru/prussdrv.c:183:22: warning: pointer of type ‘void *’ used in arithmetic [-Wpointer-arith] | |
prussdrv.pru0_dataram_phy_base; | |
^~~~~~~~~~~~~~~~~~~~~ | |
pru/prussdrv.c:185:51: warning: pointer of type ‘void *’ used in arithmetic [-Wpointer-arith] | |
prussdrv.pru0_dataram_base + prussdrv.pruss_ecap_phy_base - | |
^~~~~~~~~~~~~~~~~~~ | |
pru/prussdrv.c:186:22: warning: pointer of type ‘void *’ used in arithmetic [-Wpointer-arith] | |
prussdrv.pru0_dataram_phy_base; | |
^~~~~~~~~~~~~~~~~~~~~ | |
pru/prussdrv.c:188:51: warning: pointer of type ‘void *’ used in arithmetic [-Wpointer-arith] | |
prussdrv.pru0_dataram_base + prussdrv.pruss_miirt_phy_base - | |
^~~~~~~~~~~~~~~~~~~~ | |
pru/prussdrv.c:189:22: warning: pointer of type ‘void *’ used in arithmetic [-Wpointer-arith] | |
prussdrv.pru0_dataram_phy_base; | |
^~~~~~~~~~~~~~~~~~~~~ | |
pru/prussdrv.c:191:51: warning: pointer of type ‘void *’ used in arithmetic [-Wpointer-arith] | |
prussdrv.pru0_dataram_base + prussdrv.pruss_mdio_phy_base - | |
^~~~~~~~~~~~~~~~~~~ | |
pru/prussdrv.c:192:22: warning: pointer of type ‘void *’ used in arithmetic [-Wpointer-arith] | |
prussdrv.pru0_dataram_phy_base; | |
^~~~~~~~~~~~~~~~~~~~~ | |
pru/prussdrv.c: In function ‘uint32_t prussdrv_get_phys_addr(const void*)’: | |
pru/prussdrv.c:605:51: warning: pointer of type ‘void *’ used in arithmetic [-Wpointer-arith] | |
prussdrv.pru0_dataram_base + prussdrv.pruss_map_size)) { | |
^~~~~~~~~~~~~~ | |
pru/prussdrv.c:611:51: warning: pointer of type ‘void *’ used in arithmetic [-Wpointer-arith] | |
prussdrv.l3ram_base + prussdrv.l3ram_map_size)) { | |
^~~~~~~~~~~~~~ | |
pru/prussdrv.c:617:52: warning: pointer of type ‘void *’ used in arithmetic [-Wpointer-arith] | |
prussdrv.extram_base + prussdrv.extram_map_size)) { | |
^~~~~~~~~~~~~~~ | |
/usr/lib/gcc/arm-linux-gnueabihf/6/../../../arm-linux-gnueabihf/Scrt1.o: In function `_start': | |
(.text+0x44): undefined reference to `main' | |
collect2: error: ld returned 1 exit status | |
debian@beaglebone:~/bes/src$ | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment