All Forums |
Register |
Login |
Search |
Subscriptions |
My Profile |
Inbox |
Tool Warehouse |
FAQs |
Resources |
Help |
Member List |
Address Book |
Logout |
|
|
gcc not working after re-install of SFU3.5 with SDK
|
Logged in as: Guest |
Users viewing this topic: none |
|
Login  |
|
|
gcc not working after re-install of SFU3.5 with SDK - Sep. 22, '05, 11:50:45 AM
|
|
|
mhovers
Posts: 51
Joined: Oct. 15, '02,
Status: offline
|
I just re-installed SFU3.5 with all the SDK that gets me gcc.
When I try to run gcc I get:
%make
gcc -c -I/usr/X11R6/include -I/usr/include -g ./xygraph.c -o ./xygraph.o
gcc: Internal error: Segmentation fault (program cc1)
Please submit a full bug report.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
*** Error code 1
I cant find a gcc on the tool warehouse, where do I get the latest version that should work with sfu3.5 so I can re-install??
thanks
|
|
|
RE: gcc not working after re-install of SFU3.5 with SDK - Sep. 22, '05, 12:14:48 PM
|
|
|
Rodney
Posts: 3728
Joined: Jul. 9, '02,
From: /Tools lab
Status: offline
|
The most current version of gcc (3.3) is the SFU 3.5 CD.
There was for Interix 3.0 an update for gcc (version 3.2 I think it was) that morphed into gcc 3.3.
The SEGV is usually an indication (at least in recent weeks) of DEP being turned on.
Which Windows version & SP are you running? (x-ref the FAQ's)
|
|
|
RE: gcc not working after re-install of SFU3.5 with SDK - Sep. 22, '05, 12:22:55 PM
|
|
|
mhovers
Posts: 51
Joined: Oct. 15, '02,
Status: offline
|
Im am running XP Professional SP 2?
What is DEP? and what FAQ's should I check?
thanks,
|
|
|
RE: gcc not working after re-install of SFU3.5 with SDK - Sep. 22, '05, 12:46:34 PM
|
|
|
Rodney
Posts: 3728
Joined: Jul. 9, '02,
From: /Tools lab
Status: offline
|
> Im am running XP Professional SP 2?
Yup, you got DEP on then.
> What is DEP? and what FAQ's should I check?
You want to look at FAQ 2.07
|
|
|
RE: gcc not working after re-install of SFU3.5 with SDK - May 3, '06, 12:13:11 PM
|
|
|
cerenaksu
Posts: 49
Joined: May 3, '06,
Status: offline
|
I am new in the SFU-interix and gcc. I have been looking for an answer to a problem I am having. Seems like others had the same problem: "Segmentation fault". I have been reading your answers. The problem is: the links is not working for "FAQ 2,07". It is about DEP. What ever that is, I have no idea. I would really appreciate any help on this.
I have Windows-XP prof. SP-2.
|
|
|
RE: gcc not working after re-install of SFU3.5 with SDK - May 3, '06, 1:19:41 PM
|
|
|
Rodney
Posts: 3728
Joined: Jul. 9, '02,
From: /Tools lab
Status: offline
|
Odd, I don't know why the link isn't working.
Anyway, it's just a link to the FAQ page which is in the navigation bar at the top
of each page already. Look for entry 2.07. It has an additional link to an MS DEP page.
|
|
|
RE: gcc not working after re-install of SFU3.5 with SDK - May 3, '06, 3:49:55 PM
|
|
|
cerenaksu
Posts: 49
Joined: May 3, '06,
Status: offline
|
Now I don't get "gcc: Internal error: Segmentation fault" anymore. But my project still doesn't compile. It stops without giving me any error. Just says stoped.
This project has been compiled and running with the original interix and gcc. Since Microsoft SFU came out, it doesn't work under SFU. I cannot find the latest interix before Microsoft bought it. The version compiler with original interix is working on another computer which has interix not sfu. First I try to run the executible files. It didn't work. Then, I try to compile with the new settings, it doesn't work either. I have to make this work with SFU. Question is how?
|
|
|
RE: gcc not working after re-install of SFU3.5 with SDK - May 3, '06, 4:19:57 PM
|
|
|
Rodney
Posts: 3728
Joined: Jul. 9, '02,
From: /Tools lab
Status: offline
|
For history the last Softway release was version 2.2. MS also
had an Interix 2.2 release which was the same as Softway's plus
a fix for W2K changes).
The newer versions of Interix are a lot easier to port/write code for.
Not all 2.2 binaries will run with Interix 3.0/3.5. If I recall it
had to do with one of the locale calls. Mark probably remembers better
(he might correct me :-) ).
You have to give us more details to give you help.
What do you mean by "new settings"?
What compile/link errors do you get?
etc.
|
|
|
RE: gcc not working after re-install of SFU3.5 with SDK - May 3, '06, 4:55:20 PM
|
|
|
cerenaksu
Posts: 49
Joined: May 3, '06,
Status: offline
|
What I meen by new setting is:
Old make file had lines like this:
################
DEBUG = -g
WORKDIR = .
XDIR = //C/Interix/usr/X11R5
#
CCFLAGS = $(DEBUG)
COMPILE.C = gcc -c -I$(XDIR)/include
LINK.C = gcc $(CFLAGS) -L$(XDIR)/lib
#
RM = rm -f
##################
My new makefile has these lines:
##########################
DEBUG = -g
WORKDIR = .
XDIR = /dev/fs/C/sfu/usr/X11R6
#
CCFLAGS = $(DEBUG)
COMPILE.C = gcc -c -I$(XDIR)/include
LINK.C = gcc $(CFLAGS) -L$(XDIR)/lib
#
RM = rm -f
_____________________________________
Rest of the makefile is very long. There are many *.c programs to compile and link. They are all in the working directory.
p.s. These programs need motif graphics libraries, so I also installed Interop's Motif and OpenGl Dev Kit.
I am also new at Unix too. I have never wrote a program with this complexity. This is someone else codes. I am just trying to make it work on my computer.
Thanks
|
|
|
RE: gcc not working after re-install of SFU3.5 with SDK - May 3, '06, 8:41:39 PM
|
|
|
Rodney
Posts: 3728
Joined: Jul. 9, '02,
From: /Tools lab
Status: offline
|
Interix 3.0 and after have a Single Rooted Filesystem (SRFS).
Thus the prefix of //C/blah-blah/ is no longer needed at all.
Avoid replacing it with "/dev/fs/C/sfu/" because this location
can change based on the installation (happens regularly). So
just delete the "//C/Interix" part to leave "/usr/X11R6".
This will help keep it portable.
Using the editor's global search and replace can make this pretty straght-
forward. If you have many of these makesfiles then you can write a script
to find the Makefiles and do the editing. It's a lot faster and less tedious.
From your statement I'll assume that you've not written a shell script or
used one of the non-interactive editors. So here's a sample file to be run
at the root of the source tree:
#!/bin/sh
for i in `find . -name Makefile`
do
ed $i << EOF
1,\$s=//C/Interix==g
1,\$s=/dev/fs/C/sfu==g
wq
EOF
done
The backslash on the "$" escapes it so the shell lets it through to the editor.
This finds each Makefile and then removes the two strings from all locations in
each file.
Run it from a shell with the command "sh foo" (foo being the filename you saved it as).
|
|
|
RE: gcc not working after re-install of SFU3.5 with SDK - May 4, '06, 10:35:02 AM
|
|
|
cerenaksu
Posts: 49
Joined: May 3, '06,
Status: offline
|
Thanks Rodney. I am not getting Segmentation fault error anymore. How ever,
now I have another problem.
After running make,
It speels out the first line executed and I get this message:
*** Signal 11
stop.
Issues with "Turning off DEP"
There are two options:
1- Turn on DEP for essential windows programs and services only
2- Turn on DEP for all programs and services except those I select: (I selected a list of gnu compilers, c, c++, fortran, and some more)
There is no option saying Turn off DEP .
If I choose the second option I have to list all the binaries!! I don’t even know how many binaries needed to compile and run this programs!
Direction I get on how to change DEP setting doesn't give me much options.
|
|
|
RE: gcc not working after re-install of SFU3.5 with SDK - May 4, '06, 2:04:44 PM
|
|
|
Rodney
Posts: 3728
Joined: Jul. 9, '02,
From: /Tools lab
Status: offline
|
Well, really, there are no options.
You either turn DEP off or not.
The two selections you mention are for Win32 only. These are not kernel settings.
|
|
|
RE: gcc not working after re-install of SFU3.5 with SDK - May 4, '06, 3:37:24 PM
|
|
|
cerenaksu
Posts: 49
Joined: May 3, '06,
Status: offline
|
How do you turn off DEP on Windows machine? The direction I get from the help pages is go to control panel---> system---> and so on. How do you do it?
|
|
|
RE: gcc not working after re-install of SFU3.5 with SDK - May 4, '06, 6:53:23 PM
|
|
|
Rodney
Posts: 3728
Joined: Jul. 9, '02,
From: /Tools lab
Status: offline
|
The long complex instructions in the FAQ (entry 2.07) are:
What you need to do is edit the file "C:\Boot.ini" and add the line "/noexecute=AlwaysOff". Then reboot the system.
That's it.
|
|
|
RE: gcc not working after re-install of SFU3.5 with SDK - May 5, '06, 12:01:30 PM
|
|
|
cerenaksu
Posts: 49
Joined: May 3, '06,
Status: offline
|
After some manipulation of file attributes, I managed to add the line: "/noexecute=AlwaysOff". The first time without the "", second time with the "". Either way didn't work. Each time when I re-boot the computer, gave me two boot option: 1-Microsoft Windows XP professional and 2- AlwaysOff. Each time I choose the Alwaysoff option, it pretended like it is gooing to boot with my choice, but it returned the boot selection window. AlwaysOff option didn't do a thing!
Is it possible you would copy one of your boot.ini file for me?
Thanks
|
|
|
RE: gcc not working after re-install of SFU3.5 with SDK - May 5, '06, 12:29:25 PM
|
|
|
Rodney
Posts: 3728
Joined: Jul. 9, '02,
From: /Tools lab
Status: offline
|
Sorry, it should have read "...add to the line..".
So same line that starts something like "multi(0)disk(0)rdisk(0)partition(1)..." add it at the end of the line.
|
|
|
RE: gcc not working after re-install of SFU3.5 with SDK - May 5, '06, 12:39:30 PM
|
|
|
lvirden
Posts: 38
Joined: Nov. 3, '05,
From: Larry W. Virden
Status: offline
|
I also just reinstalled SFU 3.5. I marked it to load the SDK. I don't find gcc loaded anywhere. There is a /bin/cc - but when I run that, I get this:
$ cc --version
cc: Cannot find compiler 'CL.EXE' in PATH
cc: Either set the C89_COMPILER environment variable or add the
directory that contains the CL.EXE program to PATH
|
|
|
RE: gcc not working after re-install of SFU3.5 with SDK - May 5, '06, 1:32:55 PM
|
|
|
Rodney
Posts: 3728
Joined: Jul. 9, '02,
From: /Tools lab
Status: offline
|
You have only loaded one of the two SDK's.
I'll refer to the FAQ entry 1.01 (Installation): you need to install both
the Interix SDK and the Interix GNU SDK. The latter loads in gcc, gdb, etc.
The first one is header files and sets up c89/cc to work with MSVC (if you
have it installed). You can add in the Interix GNU SDK component now by
rerunning the install (not need to uninstall). Select that you want to add
a component from the choices. Then select the box on the next screen from
the tree-like display.
|
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
|
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts |
|
|
|